2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for DOLFIN 0.7.2.
5
# Report bugs to <http://www.fenics.org/bugzilla/>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $echo works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
echo_test_string=`eval $cmd` &&
600
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
612
# The Solaris, AIX, and Digital Unix default echo programs unquote
613
# backslashes. This makes it impossible to quote backslashes using
614
# echo "$something" | sed 's/\\/\\\\/g'
616
# So, first we look for a working echo in the user's PATH.
618
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
for dir in $PATH /usr/ucb; do
621
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
test "X$echo_testing_string" = "X$echo_test_string"; then
631
if test "X$echo" = Xecho; then
632
# We didn't find a better echo, so look for alternatives.
633
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# This shell has a builtin print -r that does the trick.
638
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
test "X$CONFIG_SHELL" != X/bin/ksh; then
640
# If we have ksh, try running configure again with it.
641
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
export ORIGINAL_CONFIG_SHELL
643
CONFIG_SHELL=/bin/ksh
645
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
654
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
test "X$echo_testing_string" = 'X\t' &&
656
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
SHELL="$CONFIG_SHELL"
662
echo="$CONFIG_SHELL $0 --fallback-echo"
663
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
test "X$echo_testing_string" = 'X\t' &&
665
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
test "X$echo_testing_string" = "X$echo_test_string"; then
667
echo="$CONFIG_SHELL $0 --fallback-echo"
669
# maybe with a smaller string...
672
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680
if test "$prev" != 'sed 50q "$0"'; then
681
echo_test_string=`eval $prev`
682
export echo_test_string
683
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
# Oops. We lost completely, so just stick with echo.
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704
tagnames=${tagnames+${tagnames},}CXX
706
tagnames=${tagnames+${tagnames},}F77
708
exec 7<&0 </dev/null 6>&1
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
ac_default_prefix=/usr/local
720
ac_config_libobj_dir=.
726
SHELL=${CONFIG_SHELL-/bin/sh}
728
# Identity of this package.
729
PACKAGE_NAME='DOLFIN'
730
PACKAGE_TARNAME='dolfin'
731
PACKAGE_VERSION='0.7.2'
732
PACKAGE_STRING='DOLFIN 0.7.2'
733
PACKAGE_BUGREPORT='http://www.fenics.org/bugzilla/'
735
# Factoring default headers for most tests.
736
ac_includes_default="\
738
#ifdef HAVE_SYS_TYPES_H
739
# include <sys/types.h>
741
#ifdef HAVE_SYS_STAT_H
742
# include <sys/stat.h>
748
# ifdef HAVE_STDLIB_H
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758
#ifdef HAVE_STRINGS_H
759
# include <strings.h>
761
#ifdef HAVE_INTTYPES_H
762
# include <inttypes.h>
780
program_transform_name
822
INSTALL_STRIP_PROGRAM
831
MAINTAINER_MODE_FALSE
906
COMPILE_PYDOLFIN_TRUE
907
COMPILE_PYDOLFIN_FALSE
920
ac_precious_vars='build_alias
944
# Initialize some variables set by options.
946
ac_init_version=false
947
# The variables have the same names as the options, with
948
# dashes changed to underlines.
956
program_transform_name=s,x,x,
964
# Installation directory options.
965
# These are left unexpanded so users can "make install exec_prefix=/foo"
966
# and all the variables that are supposed to be based on exec_prefix
967
# by default will actually change.
968
# Use braces instead of parens because sh, perl, etc. also accept them.
969
# (The list follows the same order as the GNU Coding Standards.)
970
bindir='${exec_prefix}/bin'
971
sbindir='${exec_prefix}/sbin'
972
libexecdir='${exec_prefix}/libexec'
973
datarootdir='${prefix}/share'
974
datadir='${datarootdir}'
975
sysconfdir='${prefix}/etc'
976
sharedstatedir='${prefix}/com'
977
localstatedir='${prefix}/var'
978
includedir='${prefix}/include'
979
oldincludedir='/usr/include'
980
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981
infodir='${datarootdir}/info'
986
libdir='${exec_prefix}/lib'
987
localedir='${datarootdir}/locale'
988
mandir='${datarootdir}/man'
994
# If the previous option needs an argument, assign it.
995
if test -n "$ac_prev"; then
996
eval $ac_prev=\$ac_option
1002
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006
# Accept the important Cygnus configure options, so we can diagnose typos.
1008
case $ac_dashdash$ac_option in
1012
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1014
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015
bindir=$ac_optarg ;;
1017
-build | --build | --buil | --bui | --bu)
1018
ac_prev=build_alias ;;
1019
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020
build_alias=$ac_optarg ;;
1022
-cache-file | --cache-file | --cache-fil | --cache-fi \
1023
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024
ac_prev=cache_file ;;
1025
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027
cache_file=$ac_optarg ;;
1029
--config-cache | -C)
1030
cache_file=config.cache ;;
1032
-datadir | --datadir | --datadi | --datad)
1034
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1035
datadir=$ac_optarg ;;
1037
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038
| --dataroo | --dataro | --datar)
1039
ac_prev=datarootdir ;;
1040
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042
datarootdir=$ac_optarg ;;
1044
-disable-* | --disable-*)
1045
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046
# Reject names that are not valid shell variable names.
1047
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049
{ (exit 1); exit 1; }; }
1050
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1051
eval enable_$ac_feature=no ;;
1053
-docdir | --docdir | --docdi | --doc | --do)
1055
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056
docdir=$ac_optarg ;;
1058
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061
dvidir=$ac_optarg ;;
1063
-enable-* | --enable-*)
1064
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065
# Reject names that are not valid shell variable names.
1066
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068
{ (exit 1); exit 1; }; }
1069
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1070
eval enable_$ac_feature=\$ac_optarg ;;
1072
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074
| --exec | --exe | --ex)
1075
ac_prev=exec_prefix ;;
1076
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078
| --exec=* | --exe=* | --ex=*)
1079
exec_prefix=$ac_optarg ;;
1081
-gas | --gas | --ga | --g)
1082
# Obsolete; use --with-gas.
1085
-help | --help | --hel | --he | -h)
1086
ac_init_help=long ;;
1087
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088
ac_init_help=recursive ;;
1089
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090
ac_init_help=short ;;
1092
-host | --host | --hos | --ho)
1093
ac_prev=host_alias ;;
1094
-host=* | --host=* | --hos=* | --ho=*)
1095
host_alias=$ac_optarg ;;
1097
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101
htmldir=$ac_optarg ;;
1103
-includedir | --includedir | --includedi | --included | --include \
1104
| --includ | --inclu | --incl | --inc)
1105
ac_prev=includedir ;;
1106
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107
| --includ=* | --inclu=* | --incl=* | --inc=*)
1108
includedir=$ac_optarg ;;
1110
-infodir | --infodir | --infodi | --infod | --info | --inf)
1112
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113
infodir=$ac_optarg ;;
1115
-libdir | --libdir | --libdi | --libd)
1117
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1118
libdir=$ac_optarg ;;
1120
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121
| --libexe | --libex | --libe)
1122
ac_prev=libexecdir ;;
1123
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124
| --libexe=* | --libex=* | --libe=*)
1125
libexecdir=$ac_optarg ;;
1127
-localedir | --localedir | --localedi | --localed | --locale)
1128
ac_prev=localedir ;;
1129
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130
localedir=$ac_optarg ;;
1132
-localstatedir | --localstatedir | --localstatedi | --localstated \
1133
| --localstate | --localstat | --localsta | --localst | --locals)
1134
ac_prev=localstatedir ;;
1135
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137
localstatedir=$ac_optarg ;;
1139
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142
mandir=$ac_optarg ;;
1144
-nfp | --nfp | --nf)
1145
# Obsolete; use --without-fp.
1148
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149
| --no-cr | --no-c | -n)
1152
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158
| --oldin | --oldi | --old | --ol | --o)
1159
ac_prev=oldincludedir ;;
1160
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163
oldincludedir=$ac_optarg ;;
1165
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168
prefix=$ac_optarg ;;
1170
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1171
| --program-pre | --program-pr | --program-p)
1172
ac_prev=program_prefix ;;
1173
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1174
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175
program_prefix=$ac_optarg ;;
1177
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1178
| --program-suf | --program-su | --program-s)
1179
ac_prev=program_suffix ;;
1180
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1181
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182
program_suffix=$ac_optarg ;;
1184
-program-transform-name | --program-transform-name \
1185
| --program-transform-nam | --program-transform-na \
1186
| --program-transform-n | --program-transform- \
1187
| --program-transform | --program-transfor \
1188
| --program-transfo | --program-transf \
1189
| --program-trans | --program-tran \
1190
| --progr-tra | --program-tr | --program-t)
1191
ac_prev=program_transform_name ;;
1192
-program-transform-name=* | --program-transform-name=* \
1193
| --program-transform-nam=* | --program-transform-na=* \
1194
| --program-transform-n=* | --program-transform-=* \
1195
| --program-transform=* | --program-transfor=* \
1196
| --program-transfo=* | --program-transf=* \
1197
| --program-trans=* | --program-tran=* \
1198
| --progr-tra=* | --program-tr=* | --program-t=*)
1199
program_transform_name=$ac_optarg ;;
1201
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204
pdfdir=$ac_optarg ;;
1206
-psdir | --psdir | --psdi | --psd | --ps)
1208
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212
| -silent | --silent | --silen | --sile | --sil)
1215
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219
sbindir=$ac_optarg ;;
1221
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1222
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223
| --sharedst | --shareds | --shared | --share | --shar \
1225
ac_prev=sharedstatedir ;;
1226
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230
sharedstatedir=$ac_optarg ;;
1232
-site | --site | --sit)
1234
-site=* | --site=* | --sit=*)
1237
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240
srcdir=$ac_optarg ;;
1242
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243
| --syscon | --sysco | --sysc | --sys | --sy)
1244
ac_prev=sysconfdir ;;
1245
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247
sysconfdir=$ac_optarg ;;
1249
-target | --target | --targe | --targ | --tar | --ta | --t)
1250
ac_prev=target_alias ;;
1251
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252
target_alias=$ac_optarg ;;
1254
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1257
-version | --version | --versio | --versi | --vers | -V)
1258
ac_init_version=: ;;
1261
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262
# Reject names that are not valid shell variable names.
1263
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1265
{ (exit 1); exit 1; }; }
1266
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1267
eval with_$ac_package=\$ac_optarg ;;
1269
-without-* | --without-*)
1270
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271
# Reject names that are not valid shell variable names.
1272
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1274
{ (exit 1); exit 1; }; }
1275
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1276
eval with_$ac_package=no ;;
1279
# Obsolete; use --with-x.
1282
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1283
| --x-incl | --x-inc | --x-in | --x-i)
1284
ac_prev=x_includes ;;
1285
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1286
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1287
x_includes=$ac_optarg ;;
1289
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1290
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1291
ac_prev=x_libraries ;;
1292
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1293
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1294
x_libraries=$ac_optarg ;;
1296
-*) { echo "$as_me: error: unrecognized option: $ac_option
1297
Try \`$0 --help' for more information." >&2
1298
{ (exit 1); exit 1; }; }
1302
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303
# Reject names that are not valid shell variable names.
1304
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1305
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1306
{ (exit 1); exit 1; }; }
1307
eval $ac_envvar=\$ac_optarg
1308
export $ac_envvar ;;
1311
# FIXME: should be removed in autoconf 3.0.
1312
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1313
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1314
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1315
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321
if test -n "$ac_prev"; then
1322
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1323
{ echo "$as_me: error: missing argument to $ac_option" >&2
1324
{ (exit 1); exit 1; }; }
1327
# Be sure to have absolute directory names.
1328
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329
datadir sysconfdir sharedstatedir localstatedir includedir \
1330
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331
libdir localedir mandir
1333
eval ac_val=\$$ac_var
1335
[\\/$]* | ?:[\\/]* ) continue;;
1336
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1339
{ (exit 1); exit 1; }; }
1342
# There might be people who depend on the old broken behavior: `$host'
1343
# used to hold the argument of --host etc.
1344
# FIXME: To remove some day.
1347
target=$target_alias
1349
# FIXME: To remove some day.
1350
if test "x$host_alias" != x; then
1351
if test "x$build_alias" = x; then
1352
cross_compiling=maybe
1353
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1354
If a cross compiler is detected then cross compile mode will be used." >&2
1355
elif test "x$build_alias" != "x$host_alias"; then
1361
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
test "$silent" = yes && exec 6>/dev/null
1366
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367
ac_ls_di=`ls -di .` &&
1368
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369
{ echo "$as_me: error: Working directory cannot be determined" >&2
1370
{ (exit 1); exit 1; }; }
1371
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1373
{ (exit 1); exit 1; }; }
1376
# Find the source files, if location was not specified.
1377
if test -z "$srcdir"; then
1378
ac_srcdir_defaulted=yes
1379
# Try the directory containing this script, then the parent directory.
1380
ac_confdir=`$as_dirname -- "$0" ||
1381
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382
X"$0" : 'X\(//\)[^/]' \| \
1383
X"$0" : 'X\(//\)$' \| \
1384
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404
if test ! -r "$srcdir/$ac_unique_file"; then
1408
ac_srcdir_defaulted=no
1410
if test ! -r "$srcdir/$ac_unique_file"; then
1411
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1413
{ (exit 1); exit 1; }; }
1415
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1418
{ (exit 1); exit 1; }; }
1420
# When building in place, set srcdir=.
1421
if test "$ac_abs_confdir" = "$ac_pwd"; then
1424
# Remove unnecessary trailing slashes from srcdir.
1425
# Double slashes in file names in object file debugging info
1426
# mess up M-x gdb in Emacs.
1428
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430
for ac_var in $ac_precious_vars; do
1431
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432
eval ac_env_${ac_var}_value=\$${ac_var}
1433
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438
# Report the --help message.
1440
if test "$ac_init_help" = "long"; then
1441
# Omit some internal or obsolete options to make the list less imposing.
1442
# This message is too long to be a string in the A/UX 3.1 sh.
1444
\`configure' configures DOLFIN 0.7.2 to adapt to many kinds of systems.
1446
Usage: $0 [OPTION]... [VAR=VALUE]...
1448
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449
VAR=VALUE. See below for descriptions of some of the useful variables.
1451
Defaults for the options are specified in brackets.
1454
-h, --help display this help and exit
1455
--help=short display options specific to this package
1456
--help=recursive display the short help of all the included packages
1457
-V, --version display version information and exit
1458
-q, --quiet, --silent do not print \`checking...' messages
1459
--cache-file=FILE cache test results in FILE [disabled]
1460
-C, --config-cache alias for \`--cache-file=config.cache'
1461
-n, --no-create do not create output files
1462
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1464
Installation directories:
1465
--prefix=PREFIX install architecture-independent files in PREFIX
1466
[$ac_default_prefix]
1467
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470
By default, \`make install' will install all the files in
1471
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473
for instance \`--prefix=\$HOME'.
1475
For better control, use the options below.
1477
Fine tuning of the installation directories:
1478
--bindir=DIR user executables [EPREFIX/bin]
1479
--sbindir=DIR system admin executables [EPREFIX/sbin]
1480
--libexecdir=DIR program executables [EPREFIX/libexec]
1481
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484
--libdir=DIR object code libraries [EPREFIX/lib]
1485
--includedir=DIR C header files [PREFIX/include]
1486
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1487
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489
--infodir=DIR info documentation [DATAROOTDIR/info]
1490
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491
--mandir=DIR man documentation [DATAROOTDIR/man]
1492
--docdir=DIR documentation root [DATAROOTDIR/doc/dolfin]
1493
--htmldir=DIR html documentation [DOCDIR]
1494
--dvidir=DIR dvi documentation [DOCDIR]
1495
--pdfdir=DIR pdf documentation [DOCDIR]
1496
--psdir=DIR ps documentation [DOCDIR]
1502
--program-prefix=PREFIX prepend PREFIX to installed program names
1503
--program-suffix=SUFFIX append SUFFIX to installed program names
1504
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507
--build=BUILD configure for building on BUILD [guessed]
1508
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1512
if test -n "$ac_init_help"; then
1513
case $ac_init_help in
1514
short | recursive ) echo "Configuration of DOLFIN 0.7.2:";;
1519
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521
--enable-maintainer-mode enable make rules and dependencies not useful
1522
(and sometimes confusing) to the casual installer
1523
--enable-debug Turn on debugging and warnings
1524
--enable-debug-ublas Turn on extra debugging for uBlas, only works with
1526
--enable-optimization Turn on optimizations
1527
--disable-pydolfin Disable compilation of PyDOLFIN, the DOLFIN Python
1529
--enable-petsc Compile with support for PETSc linear algebra
1530
--enable-mpi Compile with support for MPI
1531
--enable-scotch Compile with support for SCOTCH graph partitioning
1532
--disable-dependency-tracking speeds up one-time build
1533
--enable-dependency-tracking do not reject slow dependency extractors
1534
--enable-shared[=PKGS] build shared libraries [default=yes]
1535
--enable-static[=PKGS] build static libraries [default=yes]
1536
--enable-fast-install[=PKGS]
1537
optimize for fast installation [default=yes]
1538
--disable-libtool-lock avoid locking (might break parallel builds)
1539
--disable-xmltest Do not try to compile and run a test LIBXML program
1542
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544
--with-petsc-dir=<path> Specify path to PETSc
1545
--with-umfpack-include=<path>
1546
Specify path to umfpack include files
1547
--with-umfpack-lib=<path>
1548
Specify path to umfpack library
1549
--with-amd-lib=<path> Specify path to amd library (part of umfpack)
1550
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1551
--with-pic try to use only PIC/non-PIC objects [default=use
1553
--with-tags[=TAGS] include additional configurations [automatic]
1554
--with-xml-prefix=PFX Prefix where libxml is installed (optional)
1555
--with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1556
--with-boost[=DIR] it is possible to specify the root directory for
1559
Some influential environment variables:
1560
CXX C++ compiler command
1561
CXXFLAGS C++ compiler flags
1562
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1563
nonstandard directory <lib dir>
1564
LIBS libraries to pass to the linker, e.g. -l<library>
1565
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566
you have headers in a nonstandard directory <include dir>
1567
CC C compiler command
1568
CFLAGS C compiler flags
1569
CXXCPP C++ preprocessor
1571
F77 Fortran 77 compiler command
1572
FFLAGS Fortran 77 compiler flags
1573
PKG_CONFIG path to pkg-config utility
1574
GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1575
GLIB_LIBS linker flags for GLIB, overriding pkg-config
1576
GTS_CFLAGS C compiler flags for GTS, overriding pkg-config
1577
GTS_LIBS linker flags for GTS, overriding pkg-config
1578
UFC_CFLAGS C compiler flags for UFC, overriding pkg-config
1579
UFC_LIBS linker flags for UFC, overriding pkg-config
1581
Use these variables to override the choices made by `configure' or to help
1582
it to find libraries and programs with nonstandard names/locations.
1584
Report bugs to <http://www.fenics.org/bugzilla/>.
1589
if test "$ac_init_help" = "recursive"; then
1590
# If there are subdirs, report their specific --help.
1591
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592
test -d "$ac_dir" || continue
1596
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1599
# A ".." for each directory in $ac_dir_suffix.
1600
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1601
case $ac_top_builddir_sub in
1602
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1606
ac_abs_top_builddir=$ac_pwd
1607
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608
# for backward compatibility:
1609
ac_top_builddir=$ac_top_build_prefix
1612
.) # We are building in place.
1614
ac_top_srcdir=$ac_top_builddir_sub
1615
ac_abs_top_srcdir=$ac_pwd ;;
1616
[\\/]* | ?:[\\/]* ) # Absolute name.
1617
ac_srcdir=$srcdir$ac_dir_suffix;
1618
ac_top_srcdir=$srcdir
1619
ac_abs_top_srcdir=$srcdir ;;
1621
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622
ac_top_srcdir=$ac_top_build_prefix$srcdir
1623
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
cd "$ac_dir" || { ac_status=$?; continue; }
1628
# Check for guested configure.
1629
if test -f "$ac_srcdir/configure.gnu"; then
1631
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632
elif test -f "$ac_srcdir/configure"; then
1634
$SHELL "$ac_srcdir/configure" --help=recursive
1636
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638
cd "$ac_pwd" || { ac_status=$?; break; }
1642
test -n "$ac_init_help" && exit $ac_status
1643
if $ac_init_version; then
1645
DOLFIN configure 0.7.2
1646
generated by GNU Autoconf 2.61
1648
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1649
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1650
This configure script is free software; the Free Software Foundation
1651
gives unlimited permission to copy, distribute and modify it.
1655
cat >config.log <<_ACEOF
1656
This file contains any messages produced by compilers while
1657
running configure, to aid debugging if configure makes a mistake.
1659
It was created by DOLFIN $as_me 0.7.2, which was
1660
generated by GNU Autoconf 2.61. Invocation command line was
1672
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1681
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1682
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1683
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1684
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1685
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1686
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1687
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695
test -z "$as_dir" && as_dir=.
1696
echo "PATH: $as_dir"
1712
# Keep a trace of the command line.
1713
# Strip out --no-create and --no-recursion so they do not pile up.
1714
# Strip out --silent because we don't want to record it for future runs.
1715
# Also quote any args containing shell meta-characters.
1716
# Make two passes to allow for proper duplicate-argument suppression.
1720
ac_must_keep_next=false
1726
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728
| -silent | --silent | --silen | --sile | --sil)
1731
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1737
if test $ac_must_keep_next = true; then
1738
ac_must_keep_next=false # Got value, back to normal.
1741
*=* | --config-cache | -C | -disable-* | --disable-* \
1742
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744
| -with-* | --with-* | -without-* | --without-* | --x)
1745
case "$ac_configure_args0 " in
1746
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1749
-* ) ac_must_keep_next=true ;;
1752
ac_configure_args="$ac_configure_args '$ac_arg'"
1757
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1758
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760
# When interrupted or exit'd, cleanup temporary files, and complete
1761
# config.log. We remove comments because anyway the quotes in there
1762
# would cause problems or look ugly.
1763
# WARNING: Use '\'' to represent an apostrophe within the trap.
1764
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1765
trap 'exit_status=$?
1766
# Save into config.log some information that might help in debugging.
1771
## ---------------- ##
1772
## Cache variables. ##
1773
## ---------------- ##
1776
# The following way of writing the cache mishandles newlines in values,
1778
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1779
eval ac_val=\$$ac_var
1783
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1784
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1787
_ | IFS | as_nl) ;; #(
1788
*) $as_unset $ac_var ;;
1793
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1794
*${as_nl}ac_space=\ *)
1796
"s/'\''/'\''\\\\'\'''\''/g;
1797
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1800
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1808
## ----------------- ##
1809
## Output variables. ##
1810
## ----------------- ##
1813
for ac_var in $ac_subst_vars
1815
eval ac_val=\$$ac_var
1817
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819
echo "$ac_var='\''$ac_val'\''"
1823
if test -n "$ac_subst_files"; then
1825
## ------------------- ##
1826
## File substitutions. ##
1827
## ------------------- ##
1830
for ac_var in $ac_subst_files
1832
eval ac_val=\$$ac_var
1834
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836
echo "$ac_var='\''$ac_val'\''"
1841
if test -s confdefs.h; then
1851
test "$ac_signal" != 0 &&
1852
echo "$as_me: caught signal $ac_signal"
1853
echo "$as_me: exit $exit_status"
1855
rm -f core *.core core.conftest.* &&
1856
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1859
for ac_signal in 1 2 13 15; do
1860
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1864
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1865
rm -f -r conftest* confdefs.h
1867
# Predefined preprocessor variables.
1869
cat >>confdefs.h <<_ACEOF
1870
#define PACKAGE_NAME "$PACKAGE_NAME"
1874
cat >>confdefs.h <<_ACEOF
1875
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1879
cat >>confdefs.h <<_ACEOF
1880
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1884
cat >>confdefs.h <<_ACEOF
1885
#define PACKAGE_STRING "$PACKAGE_STRING"
1889
cat >>confdefs.h <<_ACEOF
1890
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1894
# Let the site file select an alternate cache file if it wants to.
1895
# Prefer explicitly selected file to automatically selected ones.
1896
if test -n "$CONFIG_SITE"; then
1897
set x "$CONFIG_SITE"
1898
elif test "x$prefix" != xNONE; then
1899
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901
set x "$ac_default_prefix/share/config.site" \
1902
"$ac_default_prefix/etc/config.site"
1907
if test -r "$ac_site_file"; then
1908
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909
echo "$as_me: loading site script $ac_site_file" >&6;}
1910
sed 's/^/| /' "$ac_site_file" >&5
1915
if test -r "$cache_file"; then
1916
# Some versions of bash will fail to source /dev/null (special
1917
# files actually), so we avoid doing that.
1918
if test -f "$cache_file"; then
1919
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920
echo "$as_me: loading cache $cache_file" >&6;}
1922
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1923
*) . "./$cache_file";;
1927
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928
echo "$as_me: creating cache $cache_file" >&6;}
1932
# Check that the precious variables saved in the cache have kept the same
1934
ac_cache_corrupted=false
1935
for ac_var in $ac_precious_vars; do
1936
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937
eval ac_new_set=\$ac_env_${ac_var}_set
1938
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939
eval ac_new_val=\$ac_env_${ac_var}_value
1940
case $ac_old_set,$ac_new_set in
1942
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944
ac_cache_corrupted=: ;;
1946
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948
ac_cache_corrupted=: ;;
1951
if test "x$ac_old_val" != "x$ac_new_val"; then
1952
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1953
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1954
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1955
echo "$as_me: former value: $ac_old_val" >&2;}
1956
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1957
echo "$as_me: current value: $ac_new_val" >&2;}
1958
ac_cache_corrupted=:
1961
# Pass precious variables to config.status.
1962
if test "$ac_new_set" = set; then
1964
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965
*) ac_arg=$ac_var=$ac_new_val ;;
1967
case " $ac_configure_args " in
1968
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1973
if $ac_cache_corrupted; then
1974
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978
{ (exit 1); exit 1; }; }
2006
ac_cpp='$CPP $CPPFLAGS'
2007
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014
am__api_version='1.10'
2017
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2018
if test -f "$ac_dir/install-sh"; then
2020
ac_install_sh="$ac_aux_dir/install-sh -c"
2022
elif test -f "$ac_dir/install.sh"; then
2024
ac_install_sh="$ac_aux_dir/install.sh -c"
2026
elif test -f "$ac_dir/shtool"; then
2028
ac_install_sh="$ac_aux_dir/shtool install -c"
2032
if test -z "$ac_aux_dir"; then
2033
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2034
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2035
{ (exit 1); exit 1; }; }
2038
# These three variables are undocumented and unsupported,
2039
# and are intended to be withdrawn in a future Autoconf release.
2040
# They can cause serious problems if a builder's source tree is in a directory
2041
# whose full name contains unusual characters.
2042
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2043
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2044
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2047
# Find a good install program. We prefer a C program (faster),
2048
# so one script is as good as another. But avoid the broken or
2049
# incompatible versions:
2050
# SysV /etc/install, /usr/sbin/install
2051
# SunOS /usr/etc/install
2052
# IRIX /sbin/install
2054
# AmigaOS /C/install, which installs bootblocks on floppy discs
2055
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2056
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2057
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2058
# OS/2's system install, which has a completely different semantic
2059
# ./install, which can be erroneously created by make from ./install.sh.
2060
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2061
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2062
if test -z "$INSTALL"; then
2063
if test "${ac_cv_path_install+set}" = set; then
2064
echo $ECHO_N "(cached) $ECHO_C" >&6
2066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070
test -z "$as_dir" && as_dir=.
2071
# Account for people who put trailing slashes in PATH elements.
2073
./ | .// | /cC/* | \
2074
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2075
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2078
# OSF1 and SCO ODT 3.0 have their own names for install.
2079
# Don't use installbsd from OSF since it installs stuff as root
2081
for ac_prog in ginstall scoinst install; do
2082
for ac_exec_ext in '' $ac_executable_extensions; do
2083
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2084
if test $ac_prog = install &&
2085
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2086
# AIX install. It has an incompatible calling convention.
2088
elif test $ac_prog = install &&
2089
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2090
# program-specific install script used by HP pwplus--don't use.
2093
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2106
if test "${ac_cv_path_install+set}" = set; then
2107
INSTALL=$ac_cv_path_install
2109
# As a last resort, use the slow shell script. Don't cache a
2110
# value for INSTALL within a source directory, because that will
2111
# break other packages using the cache if that directory is
2112
# removed, or if the value is a relative name.
2113
INSTALL=$ac_install_sh
2116
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2117
echo "${ECHO_T}$INSTALL" >&6; }
2119
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2120
# It thinks the first close brace ends the variable substitution.
2121
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2123
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2125
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2127
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2128
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2131
echo timestamp > conftest.file
2132
# Do `set' in a subshell so we don't clobber the current shell's
2133
# arguments. Must try -L first in case configure is actually a
2134
# symlink; some systems play weird games with the mod time of symlinks
2135
# (eg FreeBSD returns the mod time of the symlink's containing
2138
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2139
if test "$*" = "X"; then
2141
set X `ls -t $srcdir/configure conftest.file`
2144
if test "$*" != "X $srcdir/configure conftest.file" \
2145
&& test "$*" != "X conftest.file $srcdir/configure"; then
2147
# If neither matched, then we have a broken ls. This can happen
2148
# if, for instance, CONFIG_SHELL is bash and it inherits a
2149
# broken ls alias from the environment. This has actually
2150
# happened. Such a system could not be considered "sane".
2151
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2152
alias in your environment" >&5
2153
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2154
alias in your environment" >&2;}
2155
{ (exit 1); exit 1; }; }
2158
test "$2" = conftest.file
2164
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2165
Check your system clock" >&5
2166
echo "$as_me: error: newly created file is older than distributed files!
2167
Check your system clock" >&2;}
2168
{ (exit 1); exit 1; }; }
2170
{ echo "$as_me:$LINENO: result: yes" >&5
2171
echo "${ECHO_T}yes" >&6; }
2172
test "$program_prefix" != NONE &&
2173
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2174
# Use a double $ so make ignores it.
2175
test "$program_suffix" != NONE &&
2176
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2177
# Double any \ or $. echo might interpret backslashes.
2178
# By default was `s,x,x', remove it if useless.
2179
cat <<\_ACEOF >conftest.sed
2180
s/[\\$]/&&/g;s/;s,x,x,$//
2182
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2185
# expand $ac_aux_dir to an absolute path
2186
am_aux_dir=`cd $ac_aux_dir && pwd`
2188
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2189
# Use eval to expand $SHELL
2190
if eval "$MISSING --run true"; then
2191
am_missing_run="$MISSING --run "
2194
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2195
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2198
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2199
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2200
if test -z "$MKDIR_P"; then
2201
if test "${ac_cv_path_mkdir+set}" = set; then
2202
echo $ECHO_N "(cached) $ECHO_C" >&6
2204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2208
test -z "$as_dir" && as_dir=.
2209
for ac_prog in mkdir gmkdir; do
2210
for ac_exec_ext in '' $ac_executable_extensions; do
2211
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2212
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2213
'mkdir (GNU coreutils) '* | \
2214
'mkdir (coreutils) '* | \
2215
'mkdir (fileutils) '4.1*)
2216
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2226
if test "${ac_cv_path_mkdir+set}" = set; then
2227
MKDIR_P="$ac_cv_path_mkdir -p"
2229
# As a last resort, use the slow shell script. Don't cache a
2230
# value for MKDIR_P within a source directory, because that will
2231
# break other packages using the cache if that directory is
2232
# removed, or if the value is a relative name.
2233
test -d ./--version && rmdir ./--version
2234
MKDIR_P="$ac_install_sh -d"
2237
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2238
echo "${ECHO_T}$MKDIR_P" >&6; }
2242
[\\/$]* | ?:[\\/]*) ;;
2243
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2246
for ac_prog in gawk mawk nawk awk
2248
# Extract the first word of "$ac_prog", so it can be a program name with args.
2249
set dummy $ac_prog; ac_word=$2
2250
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2252
if test "${ac_cv_prog_AWK+set}" = set; then
2253
echo $ECHO_N "(cached) $ECHO_C" >&6
2255
if test -n "$AWK"; then
2256
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262
test -z "$as_dir" && as_dir=.
2263
for ac_exec_ext in '' $ac_executable_extensions; do
2264
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2265
ac_cv_prog_AWK="$ac_prog"
2266
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276
if test -n "$AWK"; then
2277
{ echo "$as_me:$LINENO: result: $AWK" >&5
2278
echo "${ECHO_T}$AWK" >&6; }
2280
{ echo "$as_me:$LINENO: result: no" >&5
2281
echo "${ECHO_T}no" >&6; }
2285
test -n "$AWK" && break
2288
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2289
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2290
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2291
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2292
echo $ECHO_N "(cached) $ECHO_C" >&6
2294
cat >conftest.make <<\_ACEOF
2297
@echo '@@@%%%=$(MAKE)=@@@%%%'
2299
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2300
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2302
eval ac_cv_prog_make_${ac_make}_set=yes;;
2304
eval ac_cv_prog_make_${ac_make}_set=no;;
2308
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2309
{ echo "$as_me:$LINENO: result: yes" >&5
2310
echo "${ECHO_T}yes" >&6; }
2313
{ echo "$as_me:$LINENO: result: no" >&5
2314
echo "${ECHO_T}no" >&6; }
2315
SET_MAKE="MAKE=${MAKE-make}"
2318
rm -rf .tst 2>/dev/null
2319
mkdir .tst 2>/dev/null
2320
if test -d .tst; then
2325
rmdir .tst 2>/dev/null
2327
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2328
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2329
# is not polluted with repeated "-I."
2330
am__isrc=' -I$(srcdir)'
2331
# test to see if srcdir already configured
2332
if test -f $srcdir/config.status; then
2333
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2334
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2335
{ (exit 1); exit 1; }; }
2339
# test whether we have cygpath
2340
if test -z "$CYGPATH_W"; then
2341
if (cygpath --version) >/dev/null 2>/dev/null; then
2342
CYGPATH_W='cygpath -w'
2349
# Define the identity of the package.
2350
PACKAGE=$PACKAGE_NAME
2351
VERSION=$PACKAGE_VERSION
2354
# Some tools Automake needs.
2356
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2359
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2362
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2365
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2368
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2370
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2372
# Installed binaries are usually stripped using `strip' when the user
2373
# run `make install-strip'. However `strip' might not be the right
2374
# tool to use in cross-compilation environments, therefore Automake
2375
# will honor the `STRIP' environment variable to overrule this program.
2376
if test "$cross_compiling" != no; then
2377
if test -n "$ac_tool_prefix"; then
2378
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2379
set dummy ${ac_tool_prefix}strip; ac_word=$2
2380
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2381
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382
if test "${ac_cv_prog_STRIP+set}" = set; then
2383
echo $ECHO_N "(cached) $ECHO_C" >&6
2385
if test -n "$STRIP"; then
2386
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392
test -z "$as_dir" && as_dir=.
2393
for ac_exec_ext in '' $ac_executable_extensions; do
2394
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2396
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405
STRIP=$ac_cv_prog_STRIP
2406
if test -n "$STRIP"; then
2407
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2408
echo "${ECHO_T}$STRIP" >&6; }
2410
{ echo "$as_me:$LINENO: result: no" >&5
2411
echo "${ECHO_T}no" >&6; }
2416
if test -z "$ac_cv_prog_STRIP"; then
2418
# Extract the first word of "strip", so it can be a program name with args.
2419
set dummy strip; ac_word=$2
2420
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2421
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2422
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2423
echo $ECHO_N "(cached) $ECHO_C" >&6
2425
if test -n "$ac_ct_STRIP"; then
2426
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432
test -z "$as_dir" && as_dir=.
2433
for ac_exec_ext in '' $ac_executable_extensions; do
2434
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435
ac_cv_prog_ac_ct_STRIP="strip"
2436
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2446
if test -n "$ac_ct_STRIP"; then
2447
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2448
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2450
{ echo "$as_me:$LINENO: result: no" >&5
2451
echo "${ECHO_T}no" >&6; }
2454
if test "x$ac_ct_STRIP" = x; then
2457
case $cross_compiling:$ac_tool_warned in
2459
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2460
whose name does not start with the host triplet. If you think this
2461
configuration is useful to you, please write to autoconf@gnu.org." >&5
2462
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2463
whose name does not start with the host triplet. If you think this
2464
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2465
ac_tool_warned=yes ;;
2470
STRIP="$ac_cv_prog_STRIP"
2474
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2476
# We need awk for the "check" target. The system "awk" is bad on
2478
# Always define AMTAR for backward compatibility.
2480
AMTAR=${AMTAR-"${am_missing_run}tar"}
2482
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2489
# Tell automake not to generate Makefile.in unless asked to.
2490
# This way the code can be installed on systems without automake installed.
2491
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2492
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2493
# Check whether --enable-maintainer-mode was given.
2494
if test "${enable_maintainer_mode+set}" = set; then
2495
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2497
USE_MAINTAINER_MODE=no
2500
{ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2501
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2502
if test $USE_MAINTAINER_MODE = yes; then
2503
MAINTAINER_MODE_TRUE=
2504
MAINTAINER_MODE_FALSE='#'
2506
MAINTAINER_MODE_TRUE='#'
2507
MAINTAINER_MODE_FALSE=
2510
MAINT=$MAINTAINER_MODE_TRUE
2514
# Option --enable/disable-debug
2515
# Check whether --enable-debug was given.
2516
if test "${enable_debug+set}" = set; then
2517
enableval=$enable_debug; enable_debug=$enableval
2523
# Option --enable/disable-debug-ublas
2524
# Check whether --enable-debug-ublas was given.
2525
if test "${enable_debug_ublas+set}" = set; then
2526
enableval=$enable_debug_ublas; enable_debug_ublas=$enableval
2528
enable_debug_ublas=no
2532
# Option --enable/disable-optimization
2533
# Check whether --enable-optimization was given.
2534
if test "${enable_optimization+set}" = set; then
2535
enableval=$enable_optimization; enable_optimization=$enableval
2537
enable_optimization=no
2541
# Option --enable/disable-pydolfin
2542
# Check whether --enable-pydolfin was given.
2543
if test "${enable_pydolfin+set}" = set; then
2544
enableval=$enable_pydolfin; enable_pydolfin=$enableval
2550
# Option --enable/disable-petsc
2551
# Check whether --enable-petsc was given.
2552
if test "${enable_petsc+set}" = set; then
2553
enableval=$enable_petsc; disable_petsc=$enableval
2559
# Option --with-petsc-dir
2561
# Check whether --with-petsc-dir was given.
2562
if test "${with_petsc_dir+set}" = set; then
2563
withval=$with_petsc_dir; PETSC_DIR=$with_petsc_dir
2567
# Option --enable/disable-mpi
2568
# Check whether --enable-mpi was given.
2569
if test "${enable_mpi+set}" = set; then
2570
enableval=$enable_mpi; enable_mpi=$enableval
2576
# Option --with-umfpack-include
2578
# Check whether --with-umfpack-include was given.
2579
if test "${with_umfpack_include+set}" = set; then
2580
withval=$with_umfpack_include; UMFPACK_INCLUDE_DIR=$with_umfpack_include
2584
# Option --with-umfpack-lib
2586
# Check whether --with-umfpack-lib was given.
2587
if test "${with_umfpack_lib+set}" = set; then
2588
withval=$with_umfpack_lib; UMFPACK_LIB_DIR=$with_umfpack_lib
2592
# Option --with-amd-lib
2594
# Check whether --with-amd-lib was given.
2595
if test "${with_amd_lib+set}" = set; then
2596
withval=$with_amd_lib; AMD_LIB_DIR=$with_amd_lib
2600
# Option --enable/disable-scotch
2601
# Check whether --enable-scotch was given.
2602
if test "${enable_scotch+set}" = set; then
2603
enableval=$enable_scotch; disable_scotch=$enableval
2609
# Use C++ compiler for performing configure tests
2611
ac_cpp='$CXXCPP $CPPFLAGS'
2612
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2619
ac_cpp='$CXXCPP $CPPFLAGS'
2620
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2623
if test -z "$CXX"; then
2624
if test -n "$CCC"; then
2627
if test -n "$ac_tool_prefix"; then
2628
for ac_prog in mpic++ mpicxx c++ g++
2630
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2631
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2632
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634
if test "${ac_cv_prog_CXX+set}" = set; then
2635
echo $ECHO_N "(cached) $ECHO_C" >&6
2637
if test -n "$CXX"; then
2638
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2640
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644
test -z "$as_dir" && as_dir=.
2645
for ac_exec_ext in '' $ac_executable_extensions; do
2646
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2648
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658
if test -n "$CXX"; then
2659
{ echo "$as_me:$LINENO: result: $CXX" >&5
2660
echo "${ECHO_T}$CXX" >&6; }
2662
{ echo "$as_me:$LINENO: result: no" >&5
2663
echo "${ECHO_T}no" >&6; }
2667
test -n "$CXX" && break
2670
if test -z "$CXX"; then
2672
for ac_prog in mpic++ mpicxx c++ g++
2674
# Extract the first word of "$ac_prog", so it can be a program name with args.
2675
set dummy $ac_prog; ac_word=$2
2676
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2679
echo $ECHO_N "(cached) $ECHO_C" >&6
2681
if test -n "$ac_ct_CXX"; then
2682
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688
test -z "$as_dir" && as_dir=.
2689
for ac_exec_ext in '' $ac_executable_extensions; do
2690
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691
ac_cv_prog_ac_ct_CXX="$ac_prog"
2692
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2702
if test -n "$ac_ct_CXX"; then
2703
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2704
echo "${ECHO_T}$ac_ct_CXX" >&6; }
2706
{ echo "$as_me:$LINENO: result: no" >&5
2707
echo "${ECHO_T}no" >&6; }
2711
test -n "$ac_ct_CXX" && break
2714
if test "x$ac_ct_CXX" = x; then
2717
case $cross_compiling:$ac_tool_warned in
2719
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2720
whose name does not start with the host triplet. If you think this
2721
configuration is useful to you, please write to autoconf@gnu.org." >&5
2722
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2723
whose name does not start with the host triplet. If you think this
2724
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725
ac_tool_warned=yes ;;
2733
# Provide some information about the compiler.
2734
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2735
ac_compiler=`set X $ac_compile; echo $2`
2736
{ (ac_try="$ac_compiler --version >&5"
2738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739
*) ac_try_echo=$ac_try;;
2741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742
(eval "$ac_compiler --version >&5") 2>&5
2744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745
(exit $ac_status); }
2746
{ (ac_try="$ac_compiler -v >&5"
2748
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749
*) ac_try_echo=$ac_try;;
2751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752
(eval "$ac_compiler -v >&5") 2>&5
2754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
(exit $ac_status); }
2756
{ (ac_try="$ac_compiler -V >&5"
2758
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759
*) ac_try_echo=$ac_try;;
2761
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762
(eval "$ac_compiler -V >&5") 2>&5
2764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765
(exit $ac_status); }
2767
cat >conftest.$ac_ext <<_ACEOF
2770
cat confdefs.h >>conftest.$ac_ext
2771
cat >>conftest.$ac_ext <<_ACEOF
2772
/* end confdefs.h. */
2782
ac_clean_files_save=$ac_clean_files
2783
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2784
# Try to create an executable without -o first, disregard a.out.
2785
# It will help us diagnose broken compilers, and finding out an intuition
2787
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2788
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2789
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2791
# List of possible output files, starting from the most likely.
2792
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2793
# only as a last resort. b.out is created by i960 compilers.
2794
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2796
# The IRIX 6 linker writes into existing files which may not be
2797
# executable, retaining their permissions. Remove them first so a
2798
# subsequent execution test works.
2800
for ac_file in $ac_files
2803
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2804
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2809
if { (ac_try="$ac_link_default"
2811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812
*) ac_try_echo=$ac_try;;
2814
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815
(eval "$ac_link_default") 2>&5
2817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818
(exit $ac_status); }; then
2819
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2820
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2821
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2822
# so that the user can short-circuit this test for compilers unknown to
2824
for ac_file in $ac_files ''
2826
test -f "$ac_file" || continue
2828
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2831
# We found the default executable, but exeext='' is most
2835
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2837
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2839
# We set ac_cv_exeext here because the later test for it is not
2840
# safe: cross compilers may not add the suffix if given an `-o'
2841
# argument, so we may need to know it at that point already.
2842
# Even if this section looks crufty: it has the advantage of
2849
test "$ac_cv_exeext" = no && ac_cv_exeext=
2855
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2856
echo "${ECHO_T}$ac_file" >&6; }
2857
if test -z "$ac_file"; then
2858
echo "$as_me: failed program was:" >&5
2859
sed 's/^/| /' conftest.$ac_ext >&5
2861
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2862
See \`config.log' for more details." >&5
2863
echo "$as_me: error: C++ compiler cannot create executables
2864
See \`config.log' for more details." >&2;}
2865
{ (exit 77); exit 77; }; }
2868
ac_exeext=$ac_cv_exeext
2870
# Check that the compiler produces executables we can run. If not, either
2871
# the compiler is broken, or we cross compile.
2872
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2873
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2874
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2875
# If not cross compiling, check that we can run a simple program.
2876
if test "$cross_compiling" != yes; then
2877
if { ac_try='./$ac_file'
2878
{ (case "(($ac_try" in
2879
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880
*) ac_try_echo=$ac_try;;
2882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883
(eval "$ac_try") 2>&5
2885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
(exit $ac_status); }; }; then
2889
if test "$cross_compiling" = maybe; then
2892
{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2893
If you meant to cross compile, use \`--host'.
2894
See \`config.log' for more details." >&5
2895
echo "$as_me: error: cannot run C++ compiled programs.
2896
If you meant to cross compile, use \`--host'.
2897
See \`config.log' for more details." >&2;}
2898
{ (exit 1); exit 1; }; }
2902
{ echo "$as_me:$LINENO: result: yes" >&5
2903
echo "${ECHO_T}yes" >&6; }
2905
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2906
ac_clean_files=$ac_clean_files_save
2907
# Check that the compiler produces executables we can run. If not, either
2908
# the compiler is broken, or we cross compile.
2909
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2910
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2911
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2912
echo "${ECHO_T}$cross_compiling" >&6; }
2914
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2915
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2916
if { (ac_try="$ac_link"
2918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919
*) ac_try_echo=$ac_try;;
2921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922
(eval "$ac_link") 2>&5
2924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925
(exit $ac_status); }; then
2926
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2927
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2928
# work properly (i.e., refer to `conftest.exe'), while it won't with
2930
for ac_file in conftest.exe conftest conftest.*; do
2931
test -f "$ac_file" || continue
2933
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2934
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2940
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2941
See \`config.log' for more details." >&5
2942
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2943
See \`config.log' for more details." >&2;}
2944
{ (exit 1); exit 1; }; }
2947
rm -f conftest$ac_cv_exeext
2948
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2949
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2951
rm -f conftest.$ac_ext
2952
EXEEXT=$ac_cv_exeext
2954
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2955
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2956
if test "${ac_cv_objext+set}" = set; then
2957
echo $ECHO_N "(cached) $ECHO_C" >&6
2959
cat >conftest.$ac_ext <<_ACEOF
2962
cat confdefs.h >>conftest.$ac_ext
2963
cat >>conftest.$ac_ext <<_ACEOF
2964
/* end confdefs.h. */
2974
rm -f conftest.o conftest.obj
2975
if { (ac_try="$ac_compile"
2977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978
*) ac_try_echo=$ac_try;;
2980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981
(eval "$ac_compile") 2>&5
2983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
(exit $ac_status); }; then
2985
for ac_file in conftest.o conftest.obj conftest.*; do
2986
test -f "$ac_file" || continue;
2988
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2989
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2994
echo "$as_me: failed program was:" >&5
2995
sed 's/^/| /' conftest.$ac_ext >&5
2997
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2998
See \`config.log' for more details." >&5
2999
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3000
See \`config.log' for more details." >&2;}
3001
{ (exit 1); exit 1; }; }
3004
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3006
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007
echo "${ECHO_T}$ac_cv_objext" >&6; }
3008
OBJEXT=$ac_cv_objext
3010
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3011
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3012
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3013
echo $ECHO_N "(cached) $ECHO_C" >&6
3015
cat >conftest.$ac_ext <<_ACEOF
3018
cat confdefs.h >>conftest.$ac_ext
3019
cat >>conftest.$ac_ext <<_ACEOF
3020
/* end confdefs.h. */
3033
rm -f conftest.$ac_objext
3034
if { (ac_try="$ac_compile"
3036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037
*) ac_try_echo=$ac_try;;
3039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040
(eval "$ac_compile") 2>conftest.er1
3042
grep -v '^ *+' conftest.er1 >conftest.err
3044
cat conftest.err >&5
3045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046
(exit $ac_status); } && {
3047
test -z "$ac_cxx_werror_flag" ||
3048
test ! -s conftest.err
3049
} && test -s conftest.$ac_objext; then
3052
echo "$as_me: failed program was:" >&5
3053
sed 's/^/| /' conftest.$ac_ext >&5
3058
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3062
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3063
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3064
GXX=`test $ac_compiler_gnu = yes && echo yes`
3065
ac_test_CXXFLAGS=${CXXFLAGS+set}
3066
ac_save_CXXFLAGS=$CXXFLAGS
3067
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3068
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3069
if test "${ac_cv_prog_cxx_g+set}" = set; then
3070
echo $ECHO_N "(cached) $ECHO_C" >&6
3072
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3073
ac_cxx_werror_flag=yes
3076
cat >conftest.$ac_ext <<_ACEOF
3079
cat confdefs.h >>conftest.$ac_ext
3080
cat >>conftest.$ac_ext <<_ACEOF
3081
/* end confdefs.h. */
3091
rm -f conftest.$ac_objext
3092
if { (ac_try="$ac_compile"
3094
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095
*) ac_try_echo=$ac_try;;
3097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098
(eval "$ac_compile") 2>conftest.er1
3100
grep -v '^ *+' conftest.er1 >conftest.err
3102
cat conftest.err >&5
3103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104
(exit $ac_status); } && {
3105
test -z "$ac_cxx_werror_flag" ||
3106
test ! -s conftest.err
3107
} && test -s conftest.$ac_objext; then
3108
ac_cv_prog_cxx_g=yes
3110
echo "$as_me: failed program was:" >&5
3111
sed 's/^/| /' conftest.$ac_ext >&5
3114
cat >conftest.$ac_ext <<_ACEOF
3117
cat confdefs.h >>conftest.$ac_ext
3118
cat >>conftest.$ac_ext <<_ACEOF
3119
/* end confdefs.h. */
3129
rm -f conftest.$ac_objext
3130
if { (ac_try="$ac_compile"
3132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133
*) ac_try_echo=$ac_try;;
3135
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136
(eval "$ac_compile") 2>conftest.er1
3138
grep -v '^ *+' conftest.er1 >conftest.err
3140
cat conftest.err >&5
3141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142
(exit $ac_status); } && {
3143
test -z "$ac_cxx_werror_flag" ||
3144
test ! -s conftest.err
3145
} && test -s conftest.$ac_objext; then
3148
echo "$as_me: failed program was:" >&5
3149
sed 's/^/| /' conftest.$ac_ext >&5
3151
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3153
cat >conftest.$ac_ext <<_ACEOF
3156
cat confdefs.h >>conftest.$ac_ext
3157
cat >>conftest.$ac_ext <<_ACEOF
3158
/* end confdefs.h. */
3168
rm -f conftest.$ac_objext
3169
if { (ac_try="$ac_compile"
3171
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172
*) ac_try_echo=$ac_try;;
3174
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175
(eval "$ac_compile") 2>conftest.er1
3177
grep -v '^ *+' conftest.er1 >conftest.err
3179
cat conftest.err >&5
3180
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181
(exit $ac_status); } && {
3182
test -z "$ac_cxx_werror_flag" ||
3183
test ! -s conftest.err
3184
} && test -s conftest.$ac_objext; then
3185
ac_cv_prog_cxx_g=yes
3187
echo "$as_me: failed program was:" >&5
3188
sed 's/^/| /' conftest.$ac_ext >&5
3193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3203
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3204
if test "$ac_test_CXXFLAGS" = set; then
3205
CXXFLAGS=$ac_save_CXXFLAGS
3206
elif test $ac_cv_prog_cxx_g = yes; then
3207
if test "$GXX" = yes; then
3213
if test "$GXX" = yes; then
3220
ac_cpp='$CXXCPP $CPPFLAGS'
3221
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3224
DEPDIR="${am__leading_dot}deps"
3226
ac_config_commands="$ac_config_commands depfiles"
3229
am_make=${MAKE-make}
3230
cat > confinc << 'END'
3235
# If we don't find an include directive, just comment out the code.
3236
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3237
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3241
# First try GNU make style include.
3242
echo "include confinc" > confmf
3243
# We grep out `Entering directory' and `Leaving directory'
3244
# messages which can occur if `w' ends up in MAKEFLAGS.
3245
# In particular we don't look at `^make:' because GNU make might
3246
# be invoked under some other name (usually "gmake"), in which
3247
# case it prints its new name instead of `make'.
3248
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3253
# Now try BSD make style include.
3254
if test "$am__include" = "#"; then
3255
echo '.include "confinc"' > confmf
3256
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3257
am__include=.include
3264
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3265
echo "${ECHO_T}$_am_result" >&6; }
3266
rm -f confinc confmf
3268
# Check whether --enable-dependency-tracking was given.
3269
if test "${enable_dependency_tracking+set}" = set; then
3270
enableval=$enable_dependency_tracking;
3273
if test "x$enable_dependency_tracking" != xno; then
3274
am_depcomp="$ac_aux_dir/depcomp"
3277
if test "x$enable_dependency_tracking" != xno; then
3287
depcc="$CXX" am_compiler_list=
3289
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3290
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3291
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3292
echo $ECHO_N "(cached) $ECHO_C" >&6
3294
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3295
# We make a subdir and do the tests there. Otherwise we can end up
3296
# making bogus files that we don't know about and never remove. For
3297
# instance it was reported that on HP-UX the gcc test will end up
3298
# making a dummy file named `D' -- because `-MD' means `put the output
3301
# Copy depcomp to subdir because otherwise we won't find it if we're
3302
# using a relative directory.
3303
cp "$am_depcomp" conftest.dir
3305
# We will build objects and dependencies in a subdirectory because
3306
# it helps to detect inapplicable dependency modes. For instance
3307
# both Tru64's cc and ICC support -MD to output dependencies as a
3308
# side effect of compilation, but ICC will put the dependencies in
3309
# the current directory while Tru64 will put them in the object
3313
am_cv_CXX_dependencies_compiler_type=none
3314
if test "$am_compiler_list" = ""; then
3315
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3317
for depmode in $am_compiler_list; do
3318
# Setup a source with many dependencies, because some compilers
3319
# like to wrap large dependency lists on column 80 (with \), and
3320
# we should not choose a depcomp mode which is confused by this.
3322
# We need to recreate these files for each test, as the compiler may
3323
# overwrite some of them when testing with obscure command lines.
3324
# This happens at least with the AIX C compiler.
3326
for i in 1 2 3 4 5 6; do
3327
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3328
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3329
# Solaris 8's {/usr,}/bin/sh.
3330
touch sub/conftst$i.h
3332
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3336
# after this tag, mechanisms are not by side-effect, so they'll
3337
# only be used when explicitly requested
3338
if test "x$enable_dependency_tracking" = xyes; then
3346
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3347
# mode. It turns out that the SunPro C++ compiler does not properly
3348
# handle `-M -o', and we need to detect this.
3349
if depmode=$depmode \
3350
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3351
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3352
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3353
>/dev/null 2>conftest.err &&
3354
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3355
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3356
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3357
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3358
# icc doesn't choke on unknown options, it will just issue warnings
3359
# or remarks (even with -Werror). So we grep stderr for any message
3360
# that says an option was ignored or not supported.
3361
# When given -MP, icc 7.0 and 7.1 complain thusly:
3362
# icc: Command line warning: ignoring option '-M'; no argument required
3363
# The diagnosis changed in icc 8.0:
3364
# icc: Command line remark: option '-MP' not supported
3365
if (grep 'ignoring option' conftest.err ||
3366
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3367
am_cv_CXX_dependencies_compiler_type=$depmode
3376
am_cv_CXX_dependencies_compiler_type=none
3380
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3381
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3382
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3385
test "x$enable_dependency_tracking" != xno \
3386
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3387
am__fastdepCXX_TRUE=
3388
am__fastdepCXX_FALSE='#'
3390
am__fastdepCXX_TRUE='#'
3391
am__fastdepCXX_FALSE=
3396
ac_cpp='$CPP $CPPFLAGS'
3397
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
if test -n "$ac_tool_prefix"; then
3401
for ac_prog in mpicc cc gcc
3403
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3406
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3407
if test "${ac_cv_prog_CC+set}" = set; then
3408
echo $ECHO_N "(cached) $ECHO_C" >&6
3410
if test -n "$CC"; then
3411
ac_cv_prog_CC="$CC" # Let the user override the test.
3413
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417
test -z "$as_dir" && as_dir=.
3418
for ac_exec_ext in '' $ac_executable_extensions; do
3419
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431
if test -n "$CC"; then
3432
{ echo "$as_me:$LINENO: result: $CC" >&5
3433
echo "${ECHO_T}$CC" >&6; }
3435
{ echo "$as_me:$LINENO: result: no" >&5
3436
echo "${ECHO_T}no" >&6; }
3440
test -n "$CC" && break
3443
if test -z "$CC"; then
3445
for ac_prog in mpicc cc gcc
3447
# Extract the first word of "$ac_prog", so it can be a program name with args.
3448
set dummy $ac_prog; ac_word=$2
3449
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3450
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3451
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3452
echo $ECHO_N "(cached) $ECHO_C" >&6
3454
if test -n "$ac_ct_CC"; then
3455
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461
test -z "$as_dir" && as_dir=.
3462
for ac_exec_ext in '' $ac_executable_extensions; do
3463
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464
ac_cv_prog_ac_ct_CC="$ac_prog"
3465
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475
if test -n "$ac_ct_CC"; then
3476
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3477
echo "${ECHO_T}$ac_ct_CC" >&6; }
3479
{ echo "$as_me:$LINENO: result: no" >&5
3480
echo "${ECHO_T}no" >&6; }
3484
test -n "$ac_ct_CC" && break
3487
if test "x$ac_ct_CC" = x; then
3490
case $cross_compiling:$ac_tool_warned in
3492
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3493
whose name does not start with the host triplet. If you think this
3494
configuration is useful to you, please write to autoconf@gnu.org." >&5
3495
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3496
whose name does not start with the host triplet. If you think this
3497
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3498
ac_tool_warned=yes ;;
3505
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3506
See \`config.log' for more details." >&5
3507
echo "$as_me: error: no acceptable C compiler found in \$PATH
3508
See \`config.log' for more details." >&2;}
3509
{ (exit 1); exit 1; }; }
3511
# Provide some information about the compiler.
3512
echo "$as_me:$LINENO: checking for C compiler version" >&5
3513
ac_compiler=`set X $ac_compile; echo $2`
3514
{ (ac_try="$ac_compiler --version >&5"
3516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517
*) ac_try_echo=$ac_try;;
3519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520
(eval "$ac_compiler --version >&5") 2>&5
3522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523
(exit $ac_status); }
3524
{ (ac_try="$ac_compiler -v >&5"
3526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527
*) ac_try_echo=$ac_try;;
3529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530
(eval "$ac_compiler -v >&5") 2>&5
3532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533
(exit $ac_status); }
3534
{ (ac_try="$ac_compiler -V >&5"
3536
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537
*) ac_try_echo=$ac_try;;
3539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540
(eval "$ac_compiler -V >&5") 2>&5
3542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543
(exit $ac_status); }
3545
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3546
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3547
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3548
echo $ECHO_N "(cached) $ECHO_C" >&6
3550
cat >conftest.$ac_ext <<_ACEOF
3553
cat confdefs.h >>conftest.$ac_ext
3554
cat >>conftest.$ac_ext <<_ACEOF
3555
/* end confdefs.h. */
3568
rm -f conftest.$ac_objext
3569
if { (ac_try="$ac_compile"
3571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572
*) ac_try_echo=$ac_try;;
3574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575
(eval "$ac_compile") 2>conftest.er1
3577
grep -v '^ *+' conftest.er1 >conftest.err
3579
cat conftest.err >&5
3580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581
(exit $ac_status); } && {
3582
test -z "$ac_c_werror_flag" ||
3583
test ! -s conftest.err
3584
} && test -s conftest.$ac_objext; then
3587
echo "$as_me: failed program was:" >&5
3588
sed 's/^/| /' conftest.$ac_ext >&5
3593
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3597
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3598
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3599
GCC=`test $ac_compiler_gnu = yes && echo yes`
3600
ac_test_CFLAGS=${CFLAGS+set}
3601
ac_save_CFLAGS=$CFLAGS
3602
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3603
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3604
if test "${ac_cv_prog_cc_g+set}" = set; then
3605
echo $ECHO_N "(cached) $ECHO_C" >&6
3607
ac_save_c_werror_flag=$ac_c_werror_flag
3608
ac_c_werror_flag=yes
3611
cat >conftest.$ac_ext <<_ACEOF
3614
cat confdefs.h >>conftest.$ac_ext
3615
cat >>conftest.$ac_ext <<_ACEOF
3616
/* end confdefs.h. */
3626
rm -f conftest.$ac_objext
3627
if { (ac_try="$ac_compile"
3629
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630
*) ac_try_echo=$ac_try;;
3632
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633
(eval "$ac_compile") 2>conftest.er1
3635
grep -v '^ *+' conftest.er1 >conftest.err
3637
cat conftest.err >&5
3638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639
(exit $ac_status); } && {
3640
test -z "$ac_c_werror_flag" ||
3641
test ! -s conftest.err
3642
} && test -s conftest.$ac_objext; then
3645
echo "$as_me: failed program was:" >&5
3646
sed 's/^/| /' conftest.$ac_ext >&5
3649
cat >conftest.$ac_ext <<_ACEOF
3652
cat confdefs.h >>conftest.$ac_ext
3653
cat >>conftest.$ac_ext <<_ACEOF
3654
/* end confdefs.h. */
3664
rm -f conftest.$ac_objext
3665
if { (ac_try="$ac_compile"
3667
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668
*) ac_try_echo=$ac_try;;
3670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671
(eval "$ac_compile") 2>conftest.er1
3673
grep -v '^ *+' conftest.er1 >conftest.err
3675
cat conftest.err >&5
3676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677
(exit $ac_status); } && {
3678
test -z "$ac_c_werror_flag" ||
3679
test ! -s conftest.err
3680
} && test -s conftest.$ac_objext; then
3683
echo "$as_me: failed program was:" >&5
3684
sed 's/^/| /' conftest.$ac_ext >&5
3686
ac_c_werror_flag=$ac_save_c_werror_flag
3688
cat >conftest.$ac_ext <<_ACEOF
3691
cat confdefs.h >>conftest.$ac_ext
3692
cat >>conftest.$ac_ext <<_ACEOF
3693
/* end confdefs.h. */
3703
rm -f conftest.$ac_objext
3704
if { (ac_try="$ac_compile"
3706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707
*) ac_try_echo=$ac_try;;
3709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710
(eval "$ac_compile") 2>conftest.er1
3712
grep -v '^ *+' conftest.er1 >conftest.err
3714
cat conftest.err >&5
3715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716
(exit $ac_status); } && {
3717
test -z "$ac_c_werror_flag" ||
3718
test ! -s conftest.err
3719
} && test -s conftest.$ac_objext; then
3722
echo "$as_me: failed program was:" >&5
3723
sed 's/^/| /' conftest.$ac_ext >&5
3728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735
ac_c_werror_flag=$ac_save_c_werror_flag
3737
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3738
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3739
if test "$ac_test_CFLAGS" = set; then
3740
CFLAGS=$ac_save_CFLAGS
3741
elif test $ac_cv_prog_cc_g = yes; then
3742
if test "$GCC" = yes; then
3748
if test "$GCC" = yes; then
3754
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3755
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3756
if test "${ac_cv_prog_cc_c89+set}" = set; then
3757
echo $ECHO_N "(cached) $ECHO_C" >&6
3759
ac_cv_prog_cc_c89=no
3761
cat >conftest.$ac_ext <<_ACEOF
3764
cat confdefs.h >>conftest.$ac_ext
3765
cat >>conftest.$ac_ext <<_ACEOF
3766
/* end confdefs.h. */
3769
#include <sys/types.h>
3770
#include <sys/stat.h>
3771
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3772
struct buf { int x; };
3773
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3774
static char *e (p, i)
3780
static char *f (char * (*g) (char **, int), char **p, ...)
3785
s = g (p, va_arg (v,int));
3790
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3791
function prototypes and stuff, but not '\xHH' hex character constants.
3792
These don't provoke an error unfortunately, instead are silently treated
3793
as 'x'. The following induces an error, until -std is added to get
3794
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3795
array size at least. It's necessary to write '\x00'==0 to get something
3796
that's true only with -std. */
3797
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3799
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3800
inside strings and character constants. */
3802
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3804
int test (int i, double x);
3805
struct s1 {int (*f) (int a);};
3806
struct s2 {int (*f) (double a);};
3807
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3813
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3818
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3819
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3821
CC="$ac_save_CC $ac_arg"
3822
rm -f conftest.$ac_objext
3823
if { (ac_try="$ac_compile"
3825
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826
*) ac_try_echo=$ac_try;;
3828
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829
(eval "$ac_compile") 2>conftest.er1
3831
grep -v '^ *+' conftest.er1 >conftest.err
3833
cat conftest.err >&5
3834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835
(exit $ac_status); } && {
3836
test -z "$ac_c_werror_flag" ||
3837
test ! -s conftest.err
3838
} && test -s conftest.$ac_objext; then
3839
ac_cv_prog_cc_c89=$ac_arg
3841
echo "$as_me: failed program was:" >&5
3842
sed 's/^/| /' conftest.$ac_ext >&5
3847
rm -f core conftest.err conftest.$ac_objext
3848
test "x$ac_cv_prog_cc_c89" != "xno" && break
3850
rm -f conftest.$ac_ext
3855
case "x$ac_cv_prog_cc_c89" in
3857
{ echo "$as_me:$LINENO: result: none needed" >&5
3858
echo "${ECHO_T}none needed" >&6; } ;;
3860
{ echo "$as_me:$LINENO: result: unsupported" >&5
3861
echo "${ECHO_T}unsupported" >&6; } ;;
3863
CC="$CC $ac_cv_prog_cc_c89"
3864
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3865
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3870
ac_cpp='$CXXCPP $CPPFLAGS'
3871
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3875
depcc="$CC" am_compiler_list=
3877
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3878
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3879
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3880
echo $ECHO_N "(cached) $ECHO_C" >&6
3882
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3883
# We make a subdir and do the tests there. Otherwise we can end up
3884
# making bogus files that we don't know about and never remove. For
3885
# instance it was reported that on HP-UX the gcc test will end up
3886
# making a dummy file named `D' -- because `-MD' means `put the output
3889
# Copy depcomp to subdir because otherwise we won't find it if we're
3890
# using a relative directory.
3891
cp "$am_depcomp" conftest.dir
3893
# We will build objects and dependencies in a subdirectory because
3894
# it helps to detect inapplicable dependency modes. For instance
3895
# both Tru64's cc and ICC support -MD to output dependencies as a
3896
# side effect of compilation, but ICC will put the dependencies in
3897
# the current directory while Tru64 will put them in the object
3901
am_cv_CC_dependencies_compiler_type=none
3902
if test "$am_compiler_list" = ""; then
3903
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3905
for depmode in $am_compiler_list; do
3906
# Setup a source with many dependencies, because some compilers
3907
# like to wrap large dependency lists on column 80 (with \), and
3908
# we should not choose a depcomp mode which is confused by this.
3910
# We need to recreate these files for each test, as the compiler may
3911
# overwrite some of them when testing with obscure command lines.
3912
# This happens at least with the AIX C compiler.
3914
for i in 1 2 3 4 5 6; do
3915
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3916
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3917
# Solaris 8's {/usr,}/bin/sh.
3918
touch sub/conftst$i.h
3920
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3924
# after this tag, mechanisms are not by side-effect, so they'll
3925
# only be used when explicitly requested
3926
if test "x$enable_dependency_tracking" = xyes; then
3934
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3935
# mode. It turns out that the SunPro C++ compiler does not properly
3936
# handle `-M -o', and we need to detect this.
3937
if depmode=$depmode \
3938
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3939
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3940
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3941
>/dev/null 2>conftest.err &&
3942
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3943
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3944
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3945
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3946
# icc doesn't choke on unknown options, it will just issue warnings
3947
# or remarks (even with -Werror). So we grep stderr for any message
3948
# that says an option was ignored or not supported.
3949
# When given -MP, icc 7.0 and 7.1 complain thusly:
3950
# icc: Command line warning: ignoring option '-M'; no argument required
3951
# The diagnosis changed in icc 8.0:
3952
# icc: Command line remark: option '-MP' not supported
3953
if (grep 'ignoring option' conftest.err ||
3954
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3955
am_cv_CC_dependencies_compiler_type=$depmode
3964
am_cv_CC_dependencies_compiler_type=none
3968
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3969
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3970
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3973
test "x$enable_dependency_tracking" != xno \
3974
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3976
am__fastdepCC_FALSE='#'
3978
am__fastdepCC_TRUE='#'
3979
am__fastdepCC_FALSE=
3985
{ echo "$as_me:$LINENO: checking for C++ compiler vendor" >&5
3986
echo $ECHO_N "checking for C++ compiler vendor... $ECHO_C" >&6; }
3987
if test "${ax_cv_cxx_compiler_vendor+set}" = set; then
3988
echo $ECHO_N "(cached) $ECHO_C" >&6
3990
ax_cv_cxx_compiler_vendor=unknown
3991
# note: don't check for gcc first since some other compilers define __GNUC__
3992
for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
3993
vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
3994
cat >conftest.$ac_ext <<_ACEOF
3997
cat confdefs.h >>conftest.$ac_ext
3998
cat >>conftest.$ac_ext <<_ACEOF
3999
/* end confdefs.h. */
4013
rm -f conftest.$ac_objext
4014
if { (ac_try="$ac_compile"
4016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017
*) ac_try_echo=$ac_try;;
4019
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020
(eval "$ac_compile") 2>conftest.er1
4022
grep -v '^ *+' conftest.er1 >conftest.err
4024
cat conftest.err >&5
4025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026
(exit $ac_status); } && {
4027
test -z "$ac_cxx_werror_flag" ||
4028
test ! -s conftest.err
4029
} && test -s conftest.$ac_objext; then
4030
ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
4032
echo "$as_me: failed program was:" >&5
4033
sed 's/^/| /' conftest.$ac_ext >&5
4038
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042
{ echo "$as_me:$LINENO: result: $ax_cv_cxx_compiler_vendor" >&5
4043
echo "${ECHO_T}$ax_cv_cxx_compiler_vendor" >&6; }
4045
for ac_prog in gawk mawk nawk awk
4047
# Extract the first word of "$ac_prog", so it can be a program name with args.
4048
set dummy $ac_prog; ac_word=$2
4049
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4050
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051
if test "${ac_cv_prog_AWK+set}" = set; then
4052
echo $ECHO_N "(cached) $ECHO_C" >&6
4054
if test -n "$AWK"; then
4055
ac_cv_prog_AWK="$AWK" # Let the user override the test.
4057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061
test -z "$as_dir" && as_dir=.
4062
for ac_exec_ext in '' $ac_executable_extensions; do
4063
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064
ac_cv_prog_AWK="$ac_prog"
4065
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075
if test -n "$AWK"; then
4076
{ echo "$as_me:$LINENO: result: $AWK" >&5
4077
echo "${ECHO_T}$AWK" >&6; }
4079
{ echo "$as_me:$LINENO: result: no" >&5
4080
echo "${ECHO_T}no" >&6; }
4084
test -n "$AWK" && break
4087
# Find a good install program. We prefer a C program (faster),
4088
# so one script is as good as another. But avoid the broken or
4089
# incompatible versions:
4090
# SysV /etc/install, /usr/sbin/install
4091
# SunOS /usr/etc/install
4092
# IRIX /sbin/install
4094
# AmigaOS /C/install, which installs bootblocks on floppy discs
4095
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4096
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4097
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4098
# OS/2's system install, which has a completely different semantic
4099
# ./install, which can be erroneously created by make from ./install.sh.
4100
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4101
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4102
if test -z "$INSTALL"; then
4103
if test "${ac_cv_path_install+set}" = set; then
4104
echo $ECHO_N "(cached) $ECHO_C" >&6
4106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110
test -z "$as_dir" && as_dir=.
4111
# Account for people who put trailing slashes in PATH elements.
4113
./ | .// | /cC/* | \
4114
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4115
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4118
# OSF1 and SCO ODT 3.0 have their own names for install.
4119
# Don't use installbsd from OSF since it installs stuff as root
4121
for ac_prog in ginstall scoinst install; do
4122
for ac_exec_ext in '' $ac_executable_extensions; do
4123
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4124
if test $ac_prog = install &&
4125
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4126
# AIX install. It has an incompatible calling convention.
4128
elif test $ac_prog = install &&
4129
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4130
# program-specific install script used by HP pwplus--don't use.
4133
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4146
if test "${ac_cv_path_install+set}" = set; then
4147
INSTALL=$ac_cv_path_install
4149
# As a last resort, use the slow shell script. Don't cache a
4150
# value for INSTALL within a source directory, because that will
4151
# break other packages using the cache if that directory is
4152
# removed, or if the value is a relative name.
4153
INSTALL=$ac_install_sh
4156
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4157
echo "${ECHO_T}$INSTALL" >&6; }
4159
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4160
# It thinks the first close brace ends the variable substitution.
4161
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4163
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4165
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4167
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4168
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4170
if test "$LN_S" = "ln -s"; then
4171
{ echo "$as_me:$LINENO: result: yes" >&5
4172
echo "${ECHO_T}yes" >&6; }
4174
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4175
echo "${ECHO_T}no, using $LN_S" >&6; }
4178
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4179
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4180
if test "${ac_cv_c_const+set}" = set; then
4181
echo $ECHO_N "(cached) $ECHO_C" >&6
4183
cat >conftest.$ac_ext <<_ACEOF
4186
cat confdefs.h >>conftest.$ac_ext
4187
cat >>conftest.$ac_ext <<_ACEOF
4188
/* end confdefs.h. */
4193
/* FIXME: Include the comments suggested by Paul. */
4195
/* Ultrix mips cc rejects this. */
4196
typedef int charset[2];
4198
/* SunOS 4.1.1 cc rejects this. */
4199
char const *const *pcpcc;
4201
/* NEC SVR4.0.2 mips cc rejects this. */
4202
struct point {int x, y;};
4203
static struct point const zero = {0,0};
4204
/* AIX XL C 1.02.0.0 rejects this.
4205
It does not let you subtract one const X* pointer from another in
4206
an arm of an if-expression whose if-part is not a constant
4208
const char *g = "string";
4209
pcpcc = &g + (g ? g-g : 0);
4210
/* HPUX 7.0 cc rejects these. */
4212
ppc = (char**) pcpcc;
4213
pcpcc = (char const *const *) ppc;
4214
{ /* SCO 3.2v4 cc rejects this. */
4216
char const *s = 0 ? (char *) 0 : (char const *) 0;
4221
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4223
const int *foo = &x[0];
4226
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4227
typedef const int *iptr;
4231
{ /* AIX XL C 1.02.0.0 rejects this saying
4232
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4233
struct s { int j; const int *ap[3]; };
4234
struct s *b; b->j = 5;
4236
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4240
return !cs[0] && !zero.x;
4247
rm -f conftest.$ac_objext
4248
if { (ac_try="$ac_compile"
4250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251
*) ac_try_echo=$ac_try;;
4253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254
(eval "$ac_compile") 2>conftest.er1
4256
grep -v '^ *+' conftest.er1 >conftest.err
4258
cat conftest.err >&5
4259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260
(exit $ac_status); } && {
4261
test -z "$ac_cxx_werror_flag" ||
4262
test ! -s conftest.err
4263
} && test -s conftest.$ac_objext; then
4266
echo "$as_me: failed program was:" >&5
4267
sed 's/^/| /' conftest.$ac_ext >&5
4272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4275
echo "${ECHO_T}$ac_cv_c_const" >&6; }
4276
if test $ac_cv_c_const = no; then
4278
cat >>confdefs.h <<\_ACEOF
4284
{ echo "$as_me:$LINENO: checking for inline" >&5
4285
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4286
if test "${ac_cv_c_inline+set}" = set; then
4287
echo $ECHO_N "(cached) $ECHO_C" >&6
4290
for ac_kw in inline __inline__ __inline; do
4291
cat >conftest.$ac_ext <<_ACEOF
4294
cat confdefs.h >>conftest.$ac_ext
4295
cat >>conftest.$ac_ext <<_ACEOF
4296
/* end confdefs.h. */
4299
static $ac_kw foo_t static_foo () {return 0; }
4300
$ac_kw foo_t foo () {return 0; }
4304
rm -f conftest.$ac_objext
4305
if { (ac_try="$ac_compile"
4307
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308
*) ac_try_echo=$ac_try;;
4310
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311
(eval "$ac_compile") 2>conftest.er1
4313
grep -v '^ *+' conftest.er1 >conftest.err
4315
cat conftest.err >&5
4316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317
(exit $ac_status); } && {
4318
test -z "$ac_cxx_werror_flag" ||
4319
test ! -s conftest.err
4320
} && test -s conftest.$ac_objext; then
4321
ac_cv_c_inline=$ac_kw
4323
echo "$as_me: failed program was:" >&5
4324
sed 's/^/| /' conftest.$ac_ext >&5
4329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330
test "$ac_cv_c_inline" != no && break
4334
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4338
case $ac_cv_c_inline in
4341
case $ac_cv_c_inline in
4343
*) ac_val=$ac_cv_c_inline;;
4345
cat >>confdefs.h <<_ACEOF
4347
#define inline $ac_val
4354
ac_cpp='$CXXCPP $CPPFLAGS'
4355
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4358
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4359
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4360
if test -z "$CXXCPP"; then
4361
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4362
echo $ECHO_N "(cached) $ECHO_C" >&6
4364
# Double quotes because CXXCPP needs to be expanded
4365
for CXXCPP in "$CXX -E" "/lib/cpp"
4368
for ac_cxx_preproc_warn_flag in '' yes
4370
# Use a header file that comes with gcc, so configuring glibc
4371
# with a fresh cross-compiler works.
4372
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4373
# <limits.h> exists even on freestanding compilers.
4374
# On the NeXT, cc -E runs the code through the compiler's parser,
4375
# not just through cpp. "Syntax error" is here to catch this case.
4376
cat >conftest.$ac_ext <<_ACEOF
4379
cat confdefs.h >>conftest.$ac_ext
4380
cat >>conftest.$ac_ext <<_ACEOF
4381
/* end confdefs.h. */
4383
# include <limits.h>
4385
# include <assert.h>
4389
if { (ac_try="$ac_cpp conftest.$ac_ext"
4391
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392
*) ac_try_echo=$ac_try;;
4394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4397
grep -v '^ *+' conftest.er1 >conftest.err
4399
cat conftest.err >&5
4400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401
(exit $ac_status); } >/dev/null && {
4402
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4403
test ! -s conftest.err
4407
echo "$as_me: failed program was:" >&5
4408
sed 's/^/| /' conftest.$ac_ext >&5
4410
# Broken: fails on valid input.
4414
rm -f conftest.err conftest.$ac_ext
4416
# OK, works on sane cases. Now check whether nonexistent headers
4417
# can be detected and how.
4418
cat >conftest.$ac_ext <<_ACEOF
4421
cat confdefs.h >>conftest.$ac_ext
4422
cat >>conftest.$ac_ext <<_ACEOF
4423
/* end confdefs.h. */
4424
#include <ac_nonexistent.h>
4426
if { (ac_try="$ac_cpp conftest.$ac_ext"
4428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429
*) ac_try_echo=$ac_try;;
4431
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4434
grep -v '^ *+' conftest.er1 >conftest.err
4436
cat conftest.err >&5
4437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438
(exit $ac_status); } >/dev/null && {
4439
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4440
test ! -s conftest.err
4442
# Broken: success on invalid input.
4445
echo "$as_me: failed program was:" >&5
4446
sed 's/^/| /' conftest.$ac_ext >&5
4448
# Passes both tests.
4453
rm -f conftest.err conftest.$ac_ext
4456
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4457
rm -f conftest.err conftest.$ac_ext
4458
if $ac_preproc_ok; then
4463
ac_cv_prog_CXXCPP=$CXXCPP
4466
CXXCPP=$ac_cv_prog_CXXCPP
4468
ac_cv_prog_CXXCPP=$CXXCPP
4470
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4471
echo "${ECHO_T}$CXXCPP" >&6; }
4473
for ac_cxx_preproc_warn_flag in '' yes
4475
# Use a header file that comes with gcc, so configuring glibc
4476
# with a fresh cross-compiler works.
4477
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4478
# <limits.h> exists even on freestanding compilers.
4479
# On the NeXT, cc -E runs the code through the compiler's parser,
4480
# not just through cpp. "Syntax error" is here to catch this case.
4481
cat >conftest.$ac_ext <<_ACEOF
4484
cat confdefs.h >>conftest.$ac_ext
4485
cat >>conftest.$ac_ext <<_ACEOF
4486
/* end confdefs.h. */
4488
# include <limits.h>
4490
# include <assert.h>
4494
if { (ac_try="$ac_cpp conftest.$ac_ext"
4496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497
*) ac_try_echo=$ac_try;;
4499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4502
grep -v '^ *+' conftest.er1 >conftest.err
4504
cat conftest.err >&5
4505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
(exit $ac_status); } >/dev/null && {
4507
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4508
test ! -s conftest.err
4512
echo "$as_me: failed program was:" >&5
4513
sed 's/^/| /' conftest.$ac_ext >&5
4515
# Broken: fails on valid input.
4519
rm -f conftest.err conftest.$ac_ext
4521
# OK, works on sane cases. Now check whether nonexistent headers
4522
# can be detected and how.
4523
cat >conftest.$ac_ext <<_ACEOF
4526
cat confdefs.h >>conftest.$ac_ext
4527
cat >>conftest.$ac_ext <<_ACEOF
4528
/* end confdefs.h. */
4529
#include <ac_nonexistent.h>
4531
if { (ac_try="$ac_cpp conftest.$ac_ext"
4533
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534
*) ac_try_echo=$ac_try;;
4536
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4539
grep -v '^ *+' conftest.er1 >conftest.err
4541
cat conftest.err >&5
4542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543
(exit $ac_status); } >/dev/null && {
4544
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4545
test ! -s conftest.err
4547
# Broken: success on invalid input.
4550
echo "$as_me: failed program was:" >&5
4551
sed 's/^/| /' conftest.$ac_ext >&5
4553
# Passes both tests.
4558
rm -f conftest.err conftest.$ac_ext
4561
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562
rm -f conftest.err conftest.$ac_ext
4563
if $ac_preproc_ok; then
4566
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4567
See \`config.log' for more details." >&5
4568
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4569
See \`config.log' for more details." >&2;}
4570
{ (exit 1); exit 1; }; }
4574
ac_cpp='$CXXCPP $CPPFLAGS'
4575
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4580
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4581
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4582
if test "${ac_cv_path_GREP+set}" = set; then
4583
echo $ECHO_N "(cached) $ECHO_C" >&6
4585
# Extract the first word of "grep ggrep" to use in msg output
4586
if test -z "$GREP"; then
4587
set dummy grep ggrep; ac_prog_name=$2
4588
if test "${ac_cv_path_GREP+set}" = set; then
4589
echo $ECHO_N "(cached) $ECHO_C" >&6
4591
ac_path_GREP_found=false
4592
# Loop through the user's path and test for each of PROGNAME-LIST
4593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597
test -z "$as_dir" && as_dir=.
4598
for ac_prog in grep ggrep; do
4599
for ac_exec_ext in '' $ac_executable_extensions; do
4600
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4602
# Check for GNU ac_path_GREP and select it if it is found.
4603
# Check for GNU $ac_path_GREP
4604
case `"$ac_path_GREP" --version 2>&1` in
4606
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4612
cat "conftest.in" "conftest.in" >"conftest.tmp"
4613
mv "conftest.tmp" "conftest.in"
4614
cp "conftest.in" "conftest.nl"
4615
echo 'GREP' >> "conftest.nl"
4616
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618
ac_count=`expr $ac_count + 1`
4619
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620
# Best one so far, save it but keep looking for a better one
4621
ac_cv_path_GREP="$ac_path_GREP"
4622
ac_path_GREP_max=$ac_count
4624
# 10*(2^10) chars as input seems more than enough
4625
test $ac_count -gt 10 && break
4627
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631
$ac_path_GREP_found && break 3
4641
GREP="$ac_cv_path_GREP"
4642
if test -z "$GREP"; then
4643
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4644
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4645
{ (exit 1); exit 1; }; }
4649
ac_cv_path_GREP=$GREP
4654
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4655
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4656
GREP="$ac_cv_path_GREP"
4659
{ echo "$as_me:$LINENO: checking for egrep" >&5
4660
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4661
if test "${ac_cv_path_EGREP+set}" = set; then
4662
echo $ECHO_N "(cached) $ECHO_C" >&6
4664
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4665
then ac_cv_path_EGREP="$GREP -E"
4667
# Extract the first word of "egrep" to use in msg output
4668
if test -z "$EGREP"; then
4669
set dummy egrep; ac_prog_name=$2
4670
if test "${ac_cv_path_EGREP+set}" = set; then
4671
echo $ECHO_N "(cached) $ECHO_C" >&6
4673
ac_path_EGREP_found=false
4674
# Loop through the user's path and test for each of PROGNAME-LIST
4675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4679
test -z "$as_dir" && as_dir=.
4680
for ac_prog in egrep; do
4681
for ac_exec_ext in '' $ac_executable_extensions; do
4682
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4683
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4684
# Check for GNU ac_path_EGREP and select it if it is found.
4685
# Check for GNU $ac_path_EGREP
4686
case `"$ac_path_EGREP" --version 2>&1` in
4688
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4691
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4694
cat "conftest.in" "conftest.in" >"conftest.tmp"
4695
mv "conftest.tmp" "conftest.in"
4696
cp "conftest.in" "conftest.nl"
4697
echo 'EGREP' >> "conftest.nl"
4698
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4699
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4700
ac_count=`expr $ac_count + 1`
4701
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4702
# Best one so far, save it but keep looking for a better one
4703
ac_cv_path_EGREP="$ac_path_EGREP"
4704
ac_path_EGREP_max=$ac_count
4706
# 10*(2^10) chars as input seems more than enough
4707
test $ac_count -gt 10 && break
4709
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713
$ac_path_EGREP_found && break 3
4723
EGREP="$ac_cv_path_EGREP"
4724
if test -z "$EGREP"; then
4725
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4726
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4727
{ (exit 1); exit 1; }; }
4731
ac_cv_path_EGREP=$EGREP
4737
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4738
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4739
EGREP="$ac_cv_path_EGREP"
4742
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4743
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4744
if test "${ac_cv_header_stdc+set}" = set; then
4745
echo $ECHO_N "(cached) $ECHO_C" >&6
4747
cat >conftest.$ac_ext <<_ACEOF
4750
cat confdefs.h >>conftest.$ac_ext
4751
cat >>conftest.$ac_ext <<_ACEOF
4752
/* end confdefs.h. */
4766
rm -f conftest.$ac_objext
4767
if { (ac_try="$ac_compile"
4769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770
*) ac_try_echo=$ac_try;;
4772
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773
(eval "$ac_compile") 2>conftest.er1
4775
grep -v '^ *+' conftest.er1 >conftest.err
4777
cat conftest.err >&5
4778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
(exit $ac_status); } && {
4780
test -z "$ac_cxx_werror_flag" ||
4781
test ! -s conftest.err
4782
} && test -s conftest.$ac_objext; then
4783
ac_cv_header_stdc=yes
4785
echo "$as_me: failed program was:" >&5
4786
sed 's/^/| /' conftest.$ac_ext >&5
4788
ac_cv_header_stdc=no
4791
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793
if test $ac_cv_header_stdc = yes; then
4794
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4795
cat >conftest.$ac_ext <<_ACEOF
4798
cat confdefs.h >>conftest.$ac_ext
4799
cat >>conftest.$ac_ext <<_ACEOF
4800
/* end confdefs.h. */
4804
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805
$EGREP "memchr" >/dev/null 2>&1; then
4808
ac_cv_header_stdc=no
4814
if test $ac_cv_header_stdc = yes; then
4815
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4816
cat >conftest.$ac_ext <<_ACEOF
4819
cat confdefs.h >>conftest.$ac_ext
4820
cat >>conftest.$ac_ext <<_ACEOF
4821
/* end confdefs.h. */
4825
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826
$EGREP "free" >/dev/null 2>&1; then
4829
ac_cv_header_stdc=no
4835
if test $ac_cv_header_stdc = yes; then
4836
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4837
if test "$cross_compiling" = yes; then
4840
cat >conftest.$ac_ext <<_ACEOF
4843
cat confdefs.h >>conftest.$ac_ext
4844
cat >>conftest.$ac_ext <<_ACEOF
4845
/* end confdefs.h. */
4848
#if ((' ' & 0x0FF) == 0x020)
4849
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4850
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4852
# define ISLOWER(c) \
4853
(('a' <= (c) && (c) <= 'i') \
4854
|| ('j' <= (c) && (c) <= 'r') \
4855
|| ('s' <= (c) && (c) <= 'z'))
4856
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4859
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4864
for (i = 0; i < 256; i++)
4865
if (XOR (islower (i), ISLOWER (i))
4866
|| toupper (i) != TOUPPER (i))
4871
rm -f conftest$ac_exeext
4872
if { (ac_try="$ac_link"
4874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875
*) ac_try_echo=$ac_try;;
4877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878
(eval "$ac_link") 2>&5
4880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882
{ (case "(($ac_try" in
4883
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884
*) ac_try_echo=$ac_try;;
4886
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887
(eval "$ac_try") 2>&5
4889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890
(exit $ac_status); }; }; then
4893
echo "$as_me: program exited with status $ac_status" >&5
4894
echo "$as_me: failed program was:" >&5
4895
sed 's/^/| /' conftest.$ac_ext >&5
4898
ac_cv_header_stdc=no
4900
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4906
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4907
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4908
if test $ac_cv_header_stdc = yes; then
4910
cat >>confdefs.h <<\_ACEOF
4911
#define STDC_HEADERS 1
4916
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4927
inttypes.h stdint.h unistd.h
4929
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4931
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4932
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4933
echo $ECHO_N "(cached) $ECHO_C" >&6
4935
cat >conftest.$ac_ext <<_ACEOF
4938
cat confdefs.h >>conftest.$ac_ext
4939
cat >>conftest.$ac_ext <<_ACEOF
4940
/* end confdefs.h. */
4941
$ac_includes_default
4943
#include <$ac_header>
4945
rm -f conftest.$ac_objext
4946
if { (ac_try="$ac_compile"
4948
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949
*) ac_try_echo=$ac_try;;
4951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952
(eval "$ac_compile") 2>conftest.er1
4954
grep -v '^ *+' conftest.er1 >conftest.err
4956
cat conftest.err >&5
4957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958
(exit $ac_status); } && {
4959
test -z "$ac_cxx_werror_flag" ||
4960
test ! -s conftest.err
4961
} && test -s conftest.$ac_objext; then
4962
eval "$as_ac_Header=yes"
4964
echo "$as_me: failed program was:" >&5
4965
sed 's/^/| /' conftest.$ac_ext >&5
4967
eval "$as_ac_Header=no"
4970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972
ac_res=`eval echo '${'$as_ac_Header'}'`
4973
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4974
echo "${ECHO_T}$ac_res" >&6; }
4975
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4976
cat >>confdefs.h <<_ACEOF
4977
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4985
{ echo "$as_me:$LINENO: checking for size_t" >&5
4986
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4987
if test "${ac_cv_type_size_t+set}" = set; then
4988
echo $ECHO_N "(cached) $ECHO_C" >&6
4990
cat >conftest.$ac_ext <<_ACEOF
4993
cat confdefs.h >>conftest.$ac_ext
4994
cat >>conftest.$ac_ext <<_ACEOF
4995
/* end confdefs.h. */
4996
$ac_includes_default
4997
typedef size_t ac__type_new_;
5001
if ((ac__type_new_ *) 0)
5003
if (sizeof (ac__type_new_))
5009
rm -f conftest.$ac_objext
5010
if { (ac_try="$ac_compile"
5012
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013
*) ac_try_echo=$ac_try;;
5015
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016
(eval "$ac_compile") 2>conftest.er1
5018
grep -v '^ *+' conftest.er1 >conftest.err
5020
cat conftest.err >&5
5021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022
(exit $ac_status); } && {
5023
test -z "$ac_cxx_werror_flag" ||
5024
test ! -s conftest.err
5025
} && test -s conftest.$ac_objext; then
5026
ac_cv_type_size_t=yes
5028
echo "$as_me: failed program was:" >&5
5029
sed 's/^/| /' conftest.$ac_ext >&5
5031
ac_cv_type_size_t=no
5034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5037
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5038
if test $ac_cv_type_size_t = yes; then
5042
cat >>confdefs.h <<_ACEOF
5043
#define size_t unsigned int
5049
# Test that the libtool executable is installed
5050
# Extract the first word of "libtool", so it can be a program name with args.
5051
set dummy libtool; ac_word=$2
5052
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5053
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054
if test "${ac_cv_prog_libtool_found+set}" = set; then
5055
echo $ECHO_N "(cached) $ECHO_C" >&6
5057
if test -n "$libtool_found"; then
5058
ac_cv_prog_libtool_found="$libtool_found" # Let the user override the test.
5060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064
test -z "$as_dir" && as_dir=.
5065
for ac_exec_ext in '' $ac_executable_extensions; do
5066
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067
ac_cv_prog_libtool_found="yes"
5068
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075
test -z "$ac_cv_prog_libtool_found" && ac_cv_prog_libtool_found="no"
5078
libtool_found=$ac_cv_prog_libtool_found
5079
if test -n "$libtool_found"; then
5080
{ echo "$as_me:$LINENO: result: $libtool_found" >&5
5081
echo "${ECHO_T}$libtool_found" >&6; }
5083
{ echo "$as_me:$LINENO: result: no" >&5
5084
echo "${ECHO_T}no" >&6; }
5088
if test $libtool_found = no; then
5089
echo "*** Unable to find libtool."
5090
echo "*** Perhaps you need to install the package libtool?"
5095
# Check whether --enable-shared was given.
5096
if test "${enable_shared+set}" = set; then
5097
enableval=$enable_shared; p=${PACKAGE-default}
5099
yes) enable_shared=yes ;;
5100
no) enable_shared=no ;;
5103
# Look at the argument we got. We use all the common list separators.
5104
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5105
for pkg in $enableval; do
5107
if test "X$pkg" = "X$p"; then
5119
# Check whether --enable-static was given.
5120
if test "${enable_static+set}" = set; then
5121
enableval=$enable_static; p=${PACKAGE-default}
5123
yes) enable_static=yes ;;
5124
no) enable_static=no ;;
5127
# Look at the argument we got. We use all the common list separators.
5128
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5129
for pkg in $enableval; do
5131
if test "X$pkg" = "X$p"; then
5143
# Check whether --enable-fast-install was given.
5144
if test "${enable_fast_install+set}" = set; then
5145
enableval=$enable_fast_install; p=${PACKAGE-default}
5147
yes) enable_fast_install=yes ;;
5148
no) enable_fast_install=no ;;
5150
enable_fast_install=no
5151
# Look at the argument we got. We use all the common list separators.
5152
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5153
for pkg in $enableval; do
5155
if test "X$pkg" = "X$p"; then
5156
enable_fast_install=yes
5163
enable_fast_install=yes
5167
# Make sure we can run config.sub.
5168
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5169
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5170
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5171
{ (exit 1); exit 1; }; }
5173
{ echo "$as_me:$LINENO: checking build system type" >&5
5174
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5175
if test "${ac_cv_build+set}" = set; then
5176
echo $ECHO_N "(cached) $ECHO_C" >&6
5178
ac_build_alias=$build_alias
5179
test "x$ac_build_alias" = x &&
5180
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5181
test "x$ac_build_alias" = x &&
5182
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5183
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5184
{ (exit 1); exit 1; }; }
5185
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5186
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5187
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5188
{ (exit 1); exit 1; }; }
5191
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5192
echo "${ECHO_T}$ac_cv_build" >&6; }
5193
case $ac_cv_build in
5195
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5196
echo "$as_me: error: invalid value of canonical build" >&2;}
5197
{ (exit 1); exit 1; }; };;
5200
ac_save_IFS=$IFS; IFS='-'
5206
# Remember, the first character of IFS is used to create $*,
5207
# except with old shells:
5210
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5213
{ echo "$as_me:$LINENO: checking host system type" >&5
5214
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5215
if test "${ac_cv_host+set}" = set; then
5216
echo $ECHO_N "(cached) $ECHO_C" >&6
5218
if test "x$host_alias" = x; then
5219
ac_cv_host=$ac_cv_build
5221
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5222
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5223
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5224
{ (exit 1); exit 1; }; }
5228
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5229
echo "${ECHO_T}$ac_cv_host" >&6; }
5232
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5233
echo "$as_me: error: invalid value of canonical host" >&2;}
5234
{ (exit 1); exit 1; }; };;
5237
ac_save_IFS=$IFS; IFS='-'
5243
# Remember, the first character of IFS is used to create $*,
5244
# except with old shells:
5247
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5250
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5251
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5252
if test "${lt_cv_path_SED+set}" = set; then
5253
echo $ECHO_N "(cached) $ECHO_C" >&6
5255
# Loop through the user's path and test for sed and gsed.
5256
# Then use that list of sed's as ones to test for truncation.
5257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261
test -z "$as_dir" && as_dir=.
5262
for lt_ac_prog in sed gsed; do
5263
for ac_exec_ext in '' $ac_executable_extensions; do
5264
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5265
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5272
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5273
# along with /bin/sed that truncates output.
5274
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5275
test ! -f $lt_ac_sed && continue
5276
cat /dev/null > conftest.in
5278
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5279
# Check for GNU sed and select it if it is found.
5280
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5281
lt_cv_path_SED=$lt_ac_sed
5285
cat conftest.in conftest.in >conftest.tmp
5286
mv conftest.tmp conftest.in
5287
cp conftest.in conftest.nl
5289
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5290
cmp -s conftest.out conftest.nl || break
5291
# 10000 chars as input seems more than enough
5292
test $lt_ac_count -gt 10 && break
5293
lt_ac_count=`expr $lt_ac_count + 1`
5294
if test $lt_ac_count -gt $lt_ac_max; then
5295
lt_ac_max=$lt_ac_count
5296
lt_cv_path_SED=$lt_ac_sed
5304
{ echo "$as_me:$LINENO: result: $SED" >&5
5305
echo "${ECHO_T}$SED" >&6; }
5308
# Check whether --with-gnu-ld was given.
5309
if test "${with_gnu_ld+set}" = set; then
5310
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5316
if test "$GCC" = yes; then
5317
# Check if gcc -print-prog-name=ld gives a path.
5318
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5319
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5322
# gcc leaves a trailing carriage return which upsets mingw
5323
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5325
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5328
# Accept absolute paths.
5330
re_direlt='/[^/][^/]*/\.\./'
5331
# Canonicalize the pathname of ld
5332
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5333
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5334
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5336
test -z "$LD" && LD="$ac_prog"
5339
# If it fails, then pretend we aren't using GCC.
5343
# If it is relative, then search for the first ld in PATH.
5347
elif test "$with_gnu_ld" = yes; then
5348
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
5349
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5351
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5352
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5354
if test "${lt_cv_path_LD+set}" = set; then
5355
echo $ECHO_N "(cached) $ECHO_C" >&6
5357
if test -z "$LD"; then
5358
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5359
for ac_dir in $PATH; do
5361
test -z "$ac_dir" && ac_dir=.
5362
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5363
lt_cv_path_LD="$ac_dir/$ac_prog"
5364
# Check to see if the program is GNU ld. I'd rather use --version,
5365
# but apparently some variants of GNU ld only accept -v.
5366
# Break only if it was the GNU/non-GNU ld that we prefer.
5367
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5368
*GNU* | *'with BFD'*)
5369
test "$with_gnu_ld" != no && break
5372
test "$with_gnu_ld" != yes && break
5379
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5384
if test -n "$LD"; then
5385
{ echo "$as_me:$LINENO: result: $LD" >&5
5386
echo "${ECHO_T}$LD" >&6; }
5388
{ echo "$as_me:$LINENO: result: no" >&5
5389
echo "${ECHO_T}no" >&6; }
5391
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5392
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5393
{ (exit 1); exit 1; }; }
5394
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5395
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5396
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5397
echo $ECHO_N "(cached) $ECHO_C" >&6
5399
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5400
case `$LD -v 2>&1 </dev/null` in
5401
*GNU* | *'with BFD'*)
5402
lt_cv_prog_gnu_ld=yes
5405
lt_cv_prog_gnu_ld=no
5409
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5410
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5411
with_gnu_ld=$lt_cv_prog_gnu_ld
5414
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5415
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5416
if test "${lt_cv_ld_reload_flag+set}" = set; then
5417
echo $ECHO_N "(cached) $ECHO_C" >&6
5419
lt_cv_ld_reload_flag='-r'
5421
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5422
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5423
reload_flag=$lt_cv_ld_reload_flag
5424
case $reload_flag in
5426
*) reload_flag=" $reload_flag" ;;
5428
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5431
if test "$GCC" = yes; then
5432
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5434
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5439
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5440
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5441
if test "${lt_cv_path_NM+set}" = set; then
5442
echo $ECHO_N "(cached) $ECHO_C" >&6
5444
if test -n "$NM"; then
5445
# Let the user override the test.
5448
lt_nm_to_check="${ac_tool_prefix}nm"
5449
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5450
lt_nm_to_check="$lt_nm_to_check nm"
5452
for lt_tmp_nm in $lt_nm_to_check; do
5453
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5454
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5456
test -z "$ac_dir" && ac_dir=.
5457
tmp_nm="$ac_dir/$lt_tmp_nm"
5458
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5459
# Check to see if the nm accepts a BSD-compat flag.
5460
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5461
# nm: unknown option "B" ignored
5462
# Tru64's nm complains that /dev/null is an invalid object file
5463
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5464
*/dev/null* | *'Invalid file or object type'*)
5465
lt_cv_path_NM="$tmp_nm -B"
5469
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5471
lt_cv_path_NM="$tmp_nm -p"
5475
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5476
continue # so that we can try to find one that supports BSD flags
5485
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5488
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5489
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5492
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5493
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5494
if test "${lt_cv_deplibs_check_method+set}" = set; then
5495
echo $ECHO_N "(cached) $ECHO_C" >&6
5497
lt_cv_file_magic_cmd='$MAGIC_CMD'
5498
lt_cv_file_magic_test_file=
5499
lt_cv_deplibs_check_method='unknown'
5500
# Need to set the preceding variable on all platforms that support
5501
# interlibrary dependencies.
5502
# 'none' -- dependencies not supported.
5503
# `unknown' -- same as none, but documents that we really don't know.
5504
# 'pass_all' -- all dependencies passed with no checks.
5505
# 'test_compile' -- check by making test program.
5506
# 'file_magic [[regex]]' -- check by looking for files in library path
5507
# which responds to the $file_magic_cmd with a given extended regex.
5508
# If you have `file' or equivalent on your system and you're not sure
5509
# whether `pass_all' will *always* work, you probably want this one.
5513
lt_cv_deplibs_check_method=pass_all
5517
lt_cv_deplibs_check_method=pass_all
5521
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5522
lt_cv_file_magic_cmd='/usr/bin/file -L'
5523
lt_cv_file_magic_test_file=/shlib/libc.so
5527
# func_win32_libid is a shell function defined in ltmain.sh
5528
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5529
lt_cv_file_magic_cmd='func_win32_libid'
5533
# Base MSYS/MinGW do not provide the 'file' command needed by
5534
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
5535
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5536
lt_cv_file_magic_cmd='$OBJDUMP -f'
5539
darwin* | rhapsody*)
5540
lt_cv_deplibs_check_method=pass_all
5543
freebsd* | kfreebsd*-gnu | dragonfly*)
5544
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5547
# Not sure whether the presence of OpenBSD here was a mistake.
5548
# Let's accept both of them until this is cleared up.
5549
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5550
lt_cv_file_magic_cmd=/usr/bin/file
5551
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5555
lt_cv_deplibs_check_method=pass_all
5560
lt_cv_deplibs_check_method=pass_all
5563
hpux10.20* | hpux11*)
5564
lt_cv_file_magic_cmd=/usr/bin/file
5567
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5568
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5571
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5572
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5575
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5576
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5582
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5583
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5586
irix5* | irix6* | nonstopux*)
5588
*-32|*"-32 ") libmagic=32-bit;;
5589
*-n32|*"-n32 ") libmagic=N32;;
5590
*-64|*"-64 ") libmagic=64-bit;;
5591
*) libmagic=never-match;;
5593
lt_cv_deplibs_check_method=pass_all
5596
# This must be Linux ELF.
5598
lt_cv_deplibs_check_method=pass_all
5601
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5602
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5603
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5610
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611
lt_cv_file_magic_cmd=/usr/bin/file
5612
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5616
lt_cv_deplibs_check_method=unknown
5620
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5623
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5627
osf3* | osf4* | osf5*)
5628
lt_cv_deplibs_check_method=pass_all
5632
lt_cv_deplibs_check_method=pass_all
5636
case $host_vendor in
5638
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]'
5639
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5642
lt_cv_deplibs_check_method=pass_all
5645
lt_cv_file_magic_cmd='/bin/file'
5646
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5649
lt_cv_file_magic_cmd='/bin/file'
5650
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5651
lt_cv_file_magic_test_file=/lib/libc.so
5654
lt_cv_deplibs_check_method=pass_all
5657
lt_cv_deplibs_check_method=pass_all
5662
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5663
lt_cv_deplibs_check_method=pass_all
5668
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5669
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5670
file_magic_cmd=$lt_cv_file_magic_cmd
5671
deplibs_check_method=$lt_cv_deplibs_check_method
5672
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5677
# If no C compiler was specified, use CC.
5680
# If no C compiler flags were specified, use CFLAGS.
5681
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5683
# Allow CC to be a program name with arguments.
5687
# Check whether --enable-libtool-lock was given.
5688
if test "${enable_libtool_lock+set}" = set; then
5689
enableval=$enable_libtool_lock;
5692
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5694
# Some flags need to be propagated to the compiler or linker for good
5698
# Find out which ABI we are using.
5699
echo 'int i;' > conftest.$ac_ext
5700
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701
(eval $ac_compile) 2>&5
5703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704
(exit $ac_status); }; then
5705
case `/usr/bin/file conftest.$ac_objext` in
5717
# Find out which ABI we are using.
5718
echo '#line 5718 "configure"' > conftest.$ac_ext
5719
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720
(eval $ac_compile) 2>&5
5722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723
(exit $ac_status); }; then
5724
if test "$lt_cv_prog_gnu_ld" = yes; then
5725
case `/usr/bin/file conftest.$ac_objext` in
5727
LD="${LD-ld} -melf32bsmip"
5730
LD="${LD-ld} -melf32bmipn32"
5733
LD="${LD-ld} -melf64bmip"
5737
case `/usr/bin/file conftest.$ac_objext` in
5753
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5754
# Find out which ABI we are using.
5755
echo 'int i;' > conftest.$ac_ext
5756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757
(eval $ac_compile) 2>&5
5759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760
(exit $ac_status); }; then
5761
case `/usr/bin/file conftest.o` in
5765
LD="${LD-ld} -m elf_i386"
5767
ppc64-*linux*|powerpc64-*linux*)
5768
LD="${LD-ld} -m elf32ppclinux"
5771
LD="${LD-ld} -m elf_s390"
5774
LD="${LD-ld} -m elf32_sparc"
5781
LD="${LD-ld} -m elf_x86_64"
5783
ppc*-*linux*|powerpc*-*linux*)
5784
LD="${LD-ld} -m elf64ppc"
5787
LD="${LD-ld} -m elf64_s390"
5790
LD="${LD-ld} -m elf64_sparc"
5800
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5801
SAVE_CFLAGS="$CFLAGS"
5802
CFLAGS="$CFLAGS -belf"
5803
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5804
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5805
if test "${lt_cv_cc_needs_belf+set}" = set; then
5806
echo $ECHO_N "(cached) $ECHO_C" >&6
5809
ac_cpp='$CPP $CPPFLAGS'
5810
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814
cat >conftest.$ac_ext <<_ACEOF
5817
cat confdefs.h >>conftest.$ac_ext
5818
cat >>conftest.$ac_ext <<_ACEOF
5819
/* end confdefs.h. */
5829
rm -f conftest.$ac_objext conftest$ac_exeext
5830
if { (ac_try="$ac_link"
5832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833
*) ac_try_echo=$ac_try;;
5835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836
(eval "$ac_link") 2>conftest.er1
5838
grep -v '^ *+' conftest.er1 >conftest.err
5840
cat conftest.err >&5
5841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842
(exit $ac_status); } && {
5843
test -z "$ac_c_werror_flag" ||
5844
test ! -s conftest.err
5845
} && test -s conftest$ac_exeext &&
5846
$as_test_x conftest$ac_exeext; then
5847
lt_cv_cc_needs_belf=yes
5849
echo "$as_me: failed program was:" >&5
5850
sed 's/^/| /' conftest.$ac_ext >&5
5852
lt_cv_cc_needs_belf=no
5855
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5856
conftest$ac_exeext conftest.$ac_ext
5858
ac_cpp='$CPP $CPPFLAGS'
5859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5865
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5866
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5867
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5868
CFLAGS="$SAVE_CFLAGS"
5872
# Find out which ABI we are using.
5873
echo 'int i;' > conftest.$ac_ext
5874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875
(eval $ac_compile) 2>&5
5877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
(exit $ac_status); }; then
5879
case `/usr/bin/file conftest.o` in
5881
case $lt_cv_prog_gnu_ld in
5882
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5883
*) LD="${LD-ld} -64" ;;
5894
need_locks="$enable_libtool_lock"
5898
ac_cpp='$CPP $CPPFLAGS'
5899
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5902
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5903
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5904
# On Suns, sometimes $CPP names a directory.
5905
if test -n "$CPP" && test -d "$CPP"; then
5908
if test -z "$CPP"; then
5909
if test "${ac_cv_prog_CPP+set}" = set; then
5910
echo $ECHO_N "(cached) $ECHO_C" >&6
5912
# Double quotes because CPP needs to be expanded
5913
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5916
for ac_c_preproc_warn_flag in '' yes
5918
# Use a header file that comes with gcc, so configuring glibc
5919
# with a fresh cross-compiler works.
5920
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921
# <limits.h> exists even on freestanding compilers.
5922
# On the NeXT, cc -E runs the code through the compiler's parser,
5923
# not just through cpp. "Syntax error" is here to catch this case.
5924
cat >conftest.$ac_ext <<_ACEOF
5927
cat confdefs.h >>conftest.$ac_ext
5928
cat >>conftest.$ac_ext <<_ACEOF
5929
/* end confdefs.h. */
5931
# include <limits.h>
5933
# include <assert.h>
5937
if { (ac_try="$ac_cpp conftest.$ac_ext"
5939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940
*) ac_try_echo=$ac_try;;
5942
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945
grep -v '^ *+' conftest.er1 >conftest.err
5947
cat conftest.err >&5
5948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949
(exit $ac_status); } >/dev/null && {
5950
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5951
test ! -s conftest.err
5955
echo "$as_me: failed program was:" >&5
5956
sed 's/^/| /' conftest.$ac_ext >&5
5958
# Broken: fails on valid input.
5962
rm -f conftest.err conftest.$ac_ext
5964
# OK, works on sane cases. Now check whether nonexistent headers
5965
# can be detected and how.
5966
cat >conftest.$ac_ext <<_ACEOF
5969
cat confdefs.h >>conftest.$ac_ext
5970
cat >>conftest.$ac_ext <<_ACEOF
5971
/* end confdefs.h. */
5972
#include <ac_nonexistent.h>
5974
if { (ac_try="$ac_cpp conftest.$ac_ext"
5976
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977
*) ac_try_echo=$ac_try;;
5979
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982
grep -v '^ *+' conftest.er1 >conftest.err
5984
cat conftest.err >&5
5985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986
(exit $ac_status); } >/dev/null && {
5987
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988
test ! -s conftest.err
5990
# Broken: success on invalid input.
5993
echo "$as_me: failed program was:" >&5
5994
sed 's/^/| /' conftest.$ac_ext >&5
5996
# Passes both tests.
6001
rm -f conftest.err conftest.$ac_ext
6004
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6005
rm -f conftest.err conftest.$ac_ext
6006
if $ac_preproc_ok; then
6018
{ echo "$as_me:$LINENO: result: $CPP" >&5
6019
echo "${ECHO_T}$CPP" >&6; }
6021
for ac_c_preproc_warn_flag in '' yes
6023
# Use a header file that comes with gcc, so configuring glibc
6024
# with a fresh cross-compiler works.
6025
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6026
# <limits.h> exists even on freestanding compilers.
6027
# On the NeXT, cc -E runs the code through the compiler's parser,
6028
# not just through cpp. "Syntax error" is here to catch this case.
6029
cat >conftest.$ac_ext <<_ACEOF
6032
cat confdefs.h >>conftest.$ac_ext
6033
cat >>conftest.$ac_ext <<_ACEOF
6034
/* end confdefs.h. */
6036
# include <limits.h>
6038
# include <assert.h>
6042
if { (ac_try="$ac_cpp conftest.$ac_ext"
6044
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045
*) ac_try_echo=$ac_try;;
6047
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6050
grep -v '^ *+' conftest.er1 >conftest.err
6052
cat conftest.err >&5
6053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054
(exit $ac_status); } >/dev/null && {
6055
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6056
test ! -s conftest.err
6060
echo "$as_me: failed program was:" >&5
6061
sed 's/^/| /' conftest.$ac_ext >&5
6063
# Broken: fails on valid input.
6067
rm -f conftest.err conftest.$ac_ext
6069
# OK, works on sane cases. Now check whether nonexistent headers
6070
# can be detected and how.
6071
cat >conftest.$ac_ext <<_ACEOF
6074
cat confdefs.h >>conftest.$ac_ext
6075
cat >>conftest.$ac_ext <<_ACEOF
6076
/* end confdefs.h. */
6077
#include <ac_nonexistent.h>
6079
if { (ac_try="$ac_cpp conftest.$ac_ext"
6081
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082
*) ac_try_echo=$ac_try;;
6084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6087
grep -v '^ *+' conftest.er1 >conftest.err
6089
cat conftest.err >&5
6090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091
(exit $ac_status); } >/dev/null && {
6092
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6093
test ! -s conftest.err
6095
# Broken: success on invalid input.
6098
echo "$as_me: failed program was:" >&5
6099
sed 's/^/| /' conftest.$ac_ext >&5
6101
# Passes both tests.
6106
rm -f conftest.err conftest.$ac_ext
6109
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6110
rm -f conftest.err conftest.$ac_ext
6111
if $ac_preproc_ok; then
6114
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6115
See \`config.log' for more details." >&5
6116
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6117
See \`config.log' for more details." >&2;}
6118
{ (exit 1); exit 1; }; }
6122
ac_cpp='$CPP $CPPFLAGS'
6123
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129
for ac_header in dlfcn.h
6131
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6133
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6134
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6135
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6136
echo $ECHO_N "(cached) $ECHO_C" >&6
6138
ac_res=`eval echo '${'$as_ac_Header'}'`
6139
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6140
echo "${ECHO_T}$ac_res" >&6; }
6142
# Is the header compilable?
6143
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6144
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6145
cat >conftest.$ac_ext <<_ACEOF
6148
cat confdefs.h >>conftest.$ac_ext
6149
cat >>conftest.$ac_ext <<_ACEOF
6150
/* end confdefs.h. */
6151
$ac_includes_default
6152
#include <$ac_header>
6154
rm -f conftest.$ac_objext
6155
if { (ac_try="$ac_compile"
6157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158
*) ac_try_echo=$ac_try;;
6160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161
(eval "$ac_compile") 2>conftest.er1
6163
grep -v '^ *+' conftest.er1 >conftest.err
6165
cat conftest.err >&5
6166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167
(exit $ac_status); } && {
6168
test -z "$ac_c_werror_flag" ||
6169
test ! -s conftest.err
6170
} && test -s conftest.$ac_objext; then
6171
ac_header_compiler=yes
6173
echo "$as_me: failed program was:" >&5
6174
sed 's/^/| /' conftest.$ac_ext >&5
6176
ac_header_compiler=no
6179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6181
echo "${ECHO_T}$ac_header_compiler" >&6; }
6183
# Is the header present?
6184
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6185
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6186
cat >conftest.$ac_ext <<_ACEOF
6189
cat confdefs.h >>conftest.$ac_ext
6190
cat >>conftest.$ac_ext <<_ACEOF
6191
/* end confdefs.h. */
6192
#include <$ac_header>
6194
if { (ac_try="$ac_cpp conftest.$ac_ext"
6196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197
*) ac_try_echo=$ac_try;;
6199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6202
grep -v '^ *+' conftest.er1 >conftest.err
6204
cat conftest.err >&5
6205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206
(exit $ac_status); } >/dev/null && {
6207
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6208
test ! -s conftest.err
6210
ac_header_preproc=yes
6212
echo "$as_me: failed program was:" >&5
6213
sed 's/^/| /' conftest.$ac_ext >&5
6215
ac_header_preproc=no
6218
rm -f conftest.err conftest.$ac_ext
6219
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6220
echo "${ECHO_T}$ac_header_preproc" >&6; }
6222
# So? What about this header?
6223
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6225
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6226
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6227
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6228
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6229
ac_header_preproc=yes
6232
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6233
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6234
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6235
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6236
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6237
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6238
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6239
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6240
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6241
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6242
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6243
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6245
## ---------------------------------------------- ##
6246
## Report this to http://www.fenics.org/bugzilla/ ##
6247
## ---------------------------------------------- ##
6249
) | sed "s/^/$as_me: WARNING: /" >&2
6252
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6253
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6254
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6255
echo $ECHO_N "(cached) $ECHO_C" >&6
6257
eval "$as_ac_Header=\$ac_header_preproc"
6259
ac_res=`eval echo '${'$as_ac_Header'}'`
6260
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6261
echo "${ECHO_T}$ac_res" >&6; }
6264
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6265
cat >>confdefs.h <<_ACEOF
6266
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6275
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6276
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6277
(test "X$CXX" != "Xg++"))) ; then
6279
ac_cpp='$CXXCPP $CPPFLAGS'
6280
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6283
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6284
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6285
if test -z "$CXXCPP"; then
6286
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6287
echo $ECHO_N "(cached) $ECHO_C" >&6
6289
# Double quotes because CXXCPP needs to be expanded
6290
for CXXCPP in "$CXX -E" "/lib/cpp"
6293
for ac_cxx_preproc_warn_flag in '' yes
6295
# Use a header file that comes with gcc, so configuring glibc
6296
# with a fresh cross-compiler works.
6297
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6298
# <limits.h> exists even on freestanding compilers.
6299
# On the NeXT, cc -E runs the code through the compiler's parser,
6300
# not just through cpp. "Syntax error" is here to catch this case.
6301
cat >conftest.$ac_ext <<_ACEOF
6304
cat confdefs.h >>conftest.$ac_ext
6305
cat >>conftest.$ac_ext <<_ACEOF
6306
/* end confdefs.h. */
6308
# include <limits.h>
6310
# include <assert.h>
6314
if { (ac_try="$ac_cpp conftest.$ac_ext"
6316
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317
*) ac_try_echo=$ac_try;;
6319
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6322
grep -v '^ *+' conftest.er1 >conftest.err
6324
cat conftest.err >&5
6325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326
(exit $ac_status); } >/dev/null && {
6327
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6328
test ! -s conftest.err
6332
echo "$as_me: failed program was:" >&5
6333
sed 's/^/| /' conftest.$ac_ext >&5
6335
# Broken: fails on valid input.
6339
rm -f conftest.err conftest.$ac_ext
6341
# OK, works on sane cases. Now check whether nonexistent headers
6342
# can be detected and how.
6343
cat >conftest.$ac_ext <<_ACEOF
6346
cat confdefs.h >>conftest.$ac_ext
6347
cat >>conftest.$ac_ext <<_ACEOF
6348
/* end confdefs.h. */
6349
#include <ac_nonexistent.h>
6351
if { (ac_try="$ac_cpp conftest.$ac_ext"
6353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354
*) ac_try_echo=$ac_try;;
6356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6359
grep -v '^ *+' conftest.er1 >conftest.err
6361
cat conftest.err >&5
6362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363
(exit $ac_status); } >/dev/null && {
6364
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6365
test ! -s conftest.err
6367
# Broken: success on invalid input.
6370
echo "$as_me: failed program was:" >&5
6371
sed 's/^/| /' conftest.$ac_ext >&5
6373
# Passes both tests.
6378
rm -f conftest.err conftest.$ac_ext
6381
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6382
rm -f conftest.err conftest.$ac_ext
6383
if $ac_preproc_ok; then
6388
ac_cv_prog_CXXCPP=$CXXCPP
6391
CXXCPP=$ac_cv_prog_CXXCPP
6393
ac_cv_prog_CXXCPP=$CXXCPP
6395
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6396
echo "${ECHO_T}$CXXCPP" >&6; }
6398
for ac_cxx_preproc_warn_flag in '' yes
6400
# Use a header file that comes with gcc, so configuring glibc
6401
# with a fresh cross-compiler works.
6402
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6403
# <limits.h> exists even on freestanding compilers.
6404
# On the NeXT, cc -E runs the code through the compiler's parser,
6405
# not just through cpp. "Syntax error" is here to catch this case.
6406
cat >conftest.$ac_ext <<_ACEOF
6409
cat confdefs.h >>conftest.$ac_ext
6410
cat >>conftest.$ac_ext <<_ACEOF
6411
/* end confdefs.h. */
6413
# include <limits.h>
6415
# include <assert.h>
6419
if { (ac_try="$ac_cpp conftest.$ac_ext"
6421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422
*) ac_try_echo=$ac_try;;
6424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6427
grep -v '^ *+' conftest.er1 >conftest.err
6429
cat conftest.err >&5
6430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431
(exit $ac_status); } >/dev/null && {
6432
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6433
test ! -s conftest.err
6437
echo "$as_me: failed program was:" >&5
6438
sed 's/^/| /' conftest.$ac_ext >&5
6440
# Broken: fails on valid input.
6444
rm -f conftest.err conftest.$ac_ext
6446
# OK, works on sane cases. Now check whether nonexistent headers
6447
# can be detected and how.
6448
cat >conftest.$ac_ext <<_ACEOF
6451
cat confdefs.h >>conftest.$ac_ext
6452
cat >>conftest.$ac_ext <<_ACEOF
6453
/* end confdefs.h. */
6454
#include <ac_nonexistent.h>
6456
if { (ac_try="$ac_cpp conftest.$ac_ext"
6458
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459
*) ac_try_echo=$ac_try;;
6461
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6464
grep -v '^ *+' conftest.er1 >conftest.err
6466
cat conftest.err >&5
6467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468
(exit $ac_status); } >/dev/null && {
6469
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6470
test ! -s conftest.err
6472
# Broken: success on invalid input.
6475
echo "$as_me: failed program was:" >&5
6476
sed 's/^/| /' conftest.$ac_ext >&5
6478
# Passes both tests.
6483
rm -f conftest.err conftest.$ac_ext
6486
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6487
rm -f conftest.err conftest.$ac_ext
6488
if $ac_preproc_ok; then
6491
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6492
See \`config.log' for more details." >&5
6493
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6494
See \`config.log' for more details." >&2;}
6495
{ (exit 1); exit 1; }; }
6499
ac_cpp='$CXXCPP $CPPFLAGS'
6500
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6507
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6508
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6510
if test -n "$ac_tool_prefix"; then
6511
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 pgf95 lf95 ftn
6513
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6514
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6515
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6516
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517
if test "${ac_cv_prog_F77+set}" = set; then
6518
echo $ECHO_N "(cached) $ECHO_C" >&6
6520
if test -n "$F77"; then
6521
ac_cv_prog_F77="$F77" # Let the user override the test.
6523
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527
test -z "$as_dir" && as_dir=.
6528
for ac_exec_ext in '' $ac_executable_extensions; do
6529
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6531
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541
if test -n "$F77"; then
6542
{ echo "$as_me:$LINENO: result: $F77" >&5
6543
echo "${ECHO_T}$F77" >&6; }
6545
{ echo "$as_me:$LINENO: result: no" >&5
6546
echo "${ECHO_T}no" >&6; }
6550
test -n "$F77" && break
6553
if test -z "$F77"; then
6555
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 pgf95 lf95 ftn
6557
# Extract the first word of "$ac_prog", so it can be a program name with args.
6558
set dummy $ac_prog; ac_word=$2
6559
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6560
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6562
echo $ECHO_N "(cached) $ECHO_C" >&6
6564
if test -n "$ac_ct_F77"; then
6565
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571
test -z "$as_dir" && as_dir=.
6572
for ac_exec_ext in '' $ac_executable_extensions; do
6573
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574
ac_cv_prog_ac_ct_F77="$ac_prog"
6575
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6585
if test -n "$ac_ct_F77"; then
6586
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6587
echo "${ECHO_T}$ac_ct_F77" >&6; }
6589
{ echo "$as_me:$LINENO: result: no" >&5
6590
echo "${ECHO_T}no" >&6; }
6594
test -n "$ac_ct_F77" && break
6597
if test "x$ac_ct_F77" = x; then
6600
case $cross_compiling:$ac_tool_warned in
6602
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6603
whose name does not start with the host triplet. If you think this
6604
configuration is useful to you, please write to autoconf@gnu.org." >&5
6605
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6606
whose name does not start with the host triplet. If you think this
6607
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6608
ac_tool_warned=yes ;;
6615
# Provide some information about the compiler.
6616
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6617
ac_compiler=`set X $ac_compile; echo $2`
6618
{ (ac_try="$ac_compiler --version >&5"
6620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621
*) ac_try_echo=$ac_try;;
6623
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624
(eval "$ac_compiler --version >&5") 2>&5
6626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627
(exit $ac_status); }
6628
{ (ac_try="$ac_compiler -v >&5"
6630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631
*) ac_try_echo=$ac_try;;
6633
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634
(eval "$ac_compiler -v >&5") 2>&5
6636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637
(exit $ac_status); }
6638
{ (ac_try="$ac_compiler -V >&5"
6640
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641
*) ac_try_echo=$ac_try;;
6643
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644
(eval "$ac_compiler -V >&5") 2>&5
6646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647
(exit $ac_status); }
6650
# If we don't use `.F' as extension, the preprocessor is not run on the
6651
# input file. (Note that this only needs to work for GNU compilers.)
6654
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6655
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6656
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6657
echo $ECHO_N "(cached) $ECHO_C" >&6
6659
cat >conftest.$ac_ext <<_ACEOF
6667
rm -f conftest.$ac_objext
6668
if { (ac_try="$ac_compile"
6670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671
*) ac_try_echo=$ac_try;;
6673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674
(eval "$ac_compile") 2>conftest.er1
6676
grep -v '^ *+' conftest.er1 >conftest.err
6678
cat conftest.err >&5
6679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680
(exit $ac_status); } && {
6681
test -z "$ac_f77_werror_flag" ||
6682
test ! -s conftest.err
6683
} && test -s conftest.$ac_objext; then
6686
echo "$as_me: failed program was:" >&5
6687
sed 's/^/| /' conftest.$ac_ext >&5
6692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6696
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6697
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6699
ac_test_FFLAGS=${FFLAGS+set}
6700
ac_save_FFLAGS=$FFLAGS
6702
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6703
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6704
if test "${ac_cv_prog_f77_g+set}" = set; then
6705
echo $ECHO_N "(cached) $ECHO_C" >&6
6708
cat >conftest.$ac_ext <<_ACEOF
6713
rm -f conftest.$ac_objext
6714
if { (ac_try="$ac_compile"
6716
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717
*) ac_try_echo=$ac_try;;
6719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720
(eval "$ac_compile") 2>conftest.er1
6722
grep -v '^ *+' conftest.er1 >conftest.err
6724
cat conftest.err >&5
6725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726
(exit $ac_status); } && {
6727
test -z "$ac_f77_werror_flag" ||
6728
test ! -s conftest.err
6729
} && test -s conftest.$ac_objext; then
6730
ac_cv_prog_f77_g=yes
6732
echo "$as_me: failed program was:" >&5
6733
sed 's/^/| /' conftest.$ac_ext >&5
6738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6742
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6743
if test "$ac_test_FFLAGS" = set; then
6744
FFLAGS=$ac_save_FFLAGS
6745
elif test $ac_cv_prog_f77_g = yes; then
6746
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6752
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6759
G77=`test $ac_compiler_gnu = yes && echo yes`
6761
ac_cpp='$CXXCPP $CPPFLAGS'
6762
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6768
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6770
# find the maximum length of command line arguments
6771
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6772
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6773
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6774
echo $ECHO_N "(cached) $ECHO_C" >&6
6781
# On DJGPP, this test can blow up pretty badly due to problems in libc
6782
# (any single argument exceeding 2000 bytes causes a buffer overrun
6783
# during glob expansion). Even if it were fixed, the result of this
6784
# check would be larger than it should be.
6785
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6789
# Under GNU Hurd, this test is not required because there is
6790
# no limit to the length of command line arguments.
6791
# Libtool will interpret -1 as no limit whatsoever
6792
lt_cv_sys_max_cmd_len=-1;
6796
# On Win9x/ME, this test blows up -- it succeeds, but takes
6797
# about 5 minutes as the teststring grows exponentially.
6798
# Worse, since 9x/ME are not pre-emptively multitasking,
6799
# you end up with a "frozen" computer, even though with patience
6800
# the test eventually succeeds (with a max line length of 256k).
6801
# Instead, let's just punt: use the minimum linelength reported by
6802
# all of the supported platforms: 8192 (on NT/2K/XP).
6803
lt_cv_sys_max_cmd_len=8192;
6807
# On AmigaOS with pdksh, this test takes hours, literally.
6808
# So we just punt and use a minimum line length of 8192.
6809
lt_cv_sys_max_cmd_len=8192;
6812
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6813
# This has been around since 386BSD, at least. Likely further.
6814
if test -x /sbin/sysctl; then
6815
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6816
elif test -x /usr/sbin/sysctl; then
6817
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6819
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6821
# And add a safety zone
6822
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6823
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6827
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6828
lt_cv_sys_max_cmd_len=196608
6832
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6833
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6834
# nice to cause kernel panics so lets avoid the loop below.
6835
# First set a reasonable default.
6836
lt_cv_sys_max_cmd_len=16384
6838
if test -x /sbin/sysconfig; then
6839
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6840
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6845
lt_cv_sys_max_cmd_len=102400
6847
sysv5* | sco5v6* | sysv4.2uw2*)
6848
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6849
if test -n "$kargmax"; then
6850
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6852
lt_cv_sys_max_cmd_len=32768
6856
# If test is not a shell built-in, we'll probably end up computing a
6857
# maximum length that is only half of the actual maximum length, but
6859
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6860
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6861
= "XX$teststring") >/dev/null 2>&1 &&
6862
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6863
lt_cv_sys_max_cmd_len=$new_result &&
6864
test $i != 17 # 1/2 MB should be enough
6867
teststring=$teststring$teststring
6870
# Add a significant safety factor because C++ compilers can tack on massive
6871
# amounts of additional arguments before passing them to the linker.
6872
# It appears as though 1/2 is a usable value.
6873
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6879
if test -n $lt_cv_sys_max_cmd_len ; then
6880
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6881
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6883
{ echo "$as_me:$LINENO: result: none" >&5
6884
echo "${ECHO_T}none" >&6; }
6890
# Check for command to grab the raw symbol name followed by C symbol from nm.
6891
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6892
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6893
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6894
echo $ECHO_N "(cached) $ECHO_C" >&6
6897
# These are sane defaults that work on at least a few old systems.
6898
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6900
# Character class describing NM global symbol codes.
6901
symcode='[BCDEGRST]'
6903
# Regexp to match symbols that can be accessed directly from C.
6904
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6906
# Transform an extracted symbol line into a proper C declaration
6907
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6909
# Transform an extracted symbol line into symbol name and symbol address
6910
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6912
# Define system-specific variables.
6917
cygwin* | mingw* | pw32*)
6918
symcode='[ABCDGISTW]'
6920
hpux*) # Its linker distinguishes data from code symbols
6921
if test "$host_cpu" = ia64; then
6922
symcode='[ABCDEGRST]'
6924
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6925
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6928
if test "$host_cpu" = ia64; then
6929
symcode='[ABCDGIRSTW]'
6930
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6931
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6935
symcode='[BCDEGRST]'
6938
symcode='[BCDEGQRST]'
6949
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6957
# Handle CRLF in mingw tool chain
6961
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6965
# If we're using GNU nm, then use its standard symbol codes.
6966
case `$NM -V 2>&1` in
6967
*GNU* | *'with BFD'*)
6968
symcode='[ABCDGIRSTW]' ;;
6971
# Try without a prefix undercore, then with it.
6972
for ac_symprfx in "" "_"; do
6974
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6975
symxfrm="\\1 $ac_symprfx\\2 \\2"
6977
# Write the raw and C identifiers.
6978
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6980
# Check to see that the pipe works correctly.
6984
cat > conftest.$ac_ext <<EOF
6989
void nm_test_func(){}
6993
int main(){nm_test_var='a';nm_test_func();return(0);}
6996
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997
(eval $ac_compile) 2>&5
6999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
(exit $ac_status); }; then
7001
# Now try to grab the symbols.
7003
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7004
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007
(exit $ac_status); } && test -s "$nlist"; then
7008
# Try sorting and uniquifying the output.
7009
if sort "$nlist" | uniq > "$nlist"T; then
7010
mv -f "$nlist"T "$nlist"
7015
# Make sure that we snagged all the symbols we need.
7016
if grep ' nm_test_var$' "$nlist" >/dev/null; then
7017
if grep ' nm_test_func$' "$nlist" >/dev/null; then
7018
cat <<EOF > conftest.$ac_ext
7024
# Now generate the symbol file.
7025
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7027
cat <<EOF >> conftest.$ac_ext
7028
#if defined (__STDC__) && __STDC__
7029
# define lt_ptr_t void *
7031
# define lt_ptr_t char *
7035
/* The mapping between symbol names and symbols. */
7040
lt_preloaded_symbols[] =
7043
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7044
cat <<\EOF >> conftest.$ac_ext
7052
# Now try linking the two files.
7053
mv conftest.$ac_objext conftstm.$ac_objext
7054
lt_save_LIBS="$LIBS"
7055
lt_save_CFLAGS="$CFLAGS"
7056
LIBS="conftstm.$ac_objext"
7057
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059
(eval $ac_link) 2>&5
7061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062
(exit $ac_status); } && test -s conftest${ac_exeext}; then
7065
LIBS="$lt_save_LIBS"
7066
CFLAGS="$lt_save_CFLAGS"
7068
echo "cannot find nm_test_func in $nlist" >&5
7071
echo "cannot find nm_test_var in $nlist" >&5
7074
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7077
echo "$progname: failed program was:" >&5
7078
cat conftest.$ac_ext >&5
7080
rm -f conftest* conftst*
7082
# Do not use the global_symbol_pipe unless it works.
7083
if test "$pipe_works" = yes; then
7086
lt_cv_sys_global_symbol_pipe=
7092
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7093
lt_cv_sys_global_symbol_to_cdecl=
7095
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7096
{ echo "$as_me:$LINENO: result: failed" >&5
7097
echo "${ECHO_T}failed" >&6; }
7099
{ echo "$as_me:$LINENO: result: ok" >&5
7100
echo "${ECHO_T}ok" >&6; }
7103
{ echo "$as_me:$LINENO: checking for objdir" >&5
7104
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7105
if test "${lt_cv_objdir+set}" = set; then
7106
echo $ECHO_N "(cached) $ECHO_C" >&6
7108
rm -f .libs 2>/dev/null
7109
mkdir .libs 2>/dev/null
7110
if test -d .libs; then
7113
# MS-DOS does not allow filenames that begin with a dot.
7116
rmdir .libs 2>/dev/null
7118
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7119
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7120
objdir=$lt_cv_objdir
7128
# AIX sometimes has problems with the GCC collect2 program. For some
7129
# reason, if we set the COLLECT_NAMES environment variable, the problems
7130
# vanish in a puff of smoke.
7131
if test "X${COLLECT_NAMES+set}" != Xset; then
7133
export COLLECT_NAMES
7138
# Sed substitution that helps us do robust quoting. It backslashifies
7139
# metacharacters that are still active within double-quoted strings.
7140
Xsed='sed -e 1s/^X//'
7141
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7143
# Same as above, but do not quote variable references.
7144
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7146
# Sed substitution to delay expansion of an escaped shell variable in a
7147
# double_quote_subst'ed string.
7148
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7150
# Sed substitution to avoid accidental globbing in evaled expressions
7151
no_glob_subst='s/\*/\\\*/g'
7157
default_ofile=libtool
7158
can_build_shared=yes
7160
# All known linkers require a `.a' archive for static linking (except MSVC,
7161
# which needs '.lib').
7163
ltmain="$ac_aux_dir/ltmain.sh"
7164
ofile="$default_ofile"
7165
with_gnu_ld="$lt_cv_prog_gnu_ld"
7167
if test -n "$ac_tool_prefix"; then
7168
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7169
set dummy ${ac_tool_prefix}ar; ac_word=$2
7170
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7172
if test "${ac_cv_prog_AR+set}" = set; then
7173
echo $ECHO_N "(cached) $ECHO_C" >&6
7175
if test -n "$AR"; then
7176
ac_cv_prog_AR="$AR" # Let the user override the test.
7178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182
test -z "$as_dir" && as_dir=.
7183
for ac_exec_ext in '' $ac_executable_extensions; do
7184
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185
ac_cv_prog_AR="${ac_tool_prefix}ar"
7186
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196
if test -n "$AR"; then
7197
{ echo "$as_me:$LINENO: result: $AR" >&5
7198
echo "${ECHO_T}$AR" >&6; }
7200
{ echo "$as_me:$LINENO: result: no" >&5
7201
echo "${ECHO_T}no" >&6; }
7206
if test -z "$ac_cv_prog_AR"; then
7208
# Extract the first word of "ar", so it can be a program name with args.
7209
set dummy ar; ac_word=$2
7210
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7213
echo $ECHO_N "(cached) $ECHO_C" >&6
7215
if test -n "$ac_ct_AR"; then
7216
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222
test -z "$as_dir" && as_dir=.
7223
for ac_exec_ext in '' $ac_executable_extensions; do
7224
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225
ac_cv_prog_ac_ct_AR="ar"
7226
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7236
if test -n "$ac_ct_AR"; then
7237
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7238
echo "${ECHO_T}$ac_ct_AR" >&6; }
7240
{ echo "$as_me:$LINENO: result: no" >&5
7241
echo "${ECHO_T}no" >&6; }
7244
if test "x$ac_ct_AR" = x; then
7247
case $cross_compiling:$ac_tool_warned in
7249
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7250
whose name does not start with the host triplet. If you think this
7251
configuration is useful to you, please write to autoconf@gnu.org." >&5
7252
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7253
whose name does not start with the host triplet. If you think this
7254
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7255
ac_tool_warned=yes ;;
7263
if test -n "$ac_tool_prefix"; then
7264
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7265
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7266
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7267
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268
if test "${ac_cv_prog_RANLIB+set}" = set; then
7269
echo $ECHO_N "(cached) $ECHO_C" >&6
7271
if test -n "$RANLIB"; then
7272
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278
test -z "$as_dir" && as_dir=.
7279
for ac_exec_ext in '' $ac_executable_extensions; do
7280
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7281
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7282
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291
RANLIB=$ac_cv_prog_RANLIB
7292
if test -n "$RANLIB"; then
7293
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
7294
echo "${ECHO_T}$RANLIB" >&6; }
7296
{ echo "$as_me:$LINENO: result: no" >&5
7297
echo "${ECHO_T}no" >&6; }
7302
if test -z "$ac_cv_prog_RANLIB"; then
7303
ac_ct_RANLIB=$RANLIB
7304
# Extract the first word of "ranlib", so it can be a program name with args.
7305
set dummy ranlib; ac_word=$2
7306
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7307
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7309
echo $ECHO_N "(cached) $ECHO_C" >&6
7311
if test -n "$ac_ct_RANLIB"; then
7312
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318
test -z "$as_dir" && as_dir=.
7319
for ac_exec_ext in '' $ac_executable_extensions; do
7320
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321
ac_cv_prog_ac_ct_RANLIB="ranlib"
7322
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7332
if test -n "$ac_ct_RANLIB"; then
7333
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7334
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7336
{ echo "$as_me:$LINENO: result: no" >&5
7337
echo "${ECHO_T}no" >&6; }
7340
if test "x$ac_ct_RANLIB" = x; then
7343
case $cross_compiling:$ac_tool_warned in
7345
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7346
whose name does not start with the host triplet. If you think this
7347
configuration is useful to you, please write to autoconf@gnu.org." >&5
7348
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7349
whose name does not start with the host triplet. If you think this
7350
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7351
ac_tool_warned=yes ;;
7353
RANLIB=$ac_ct_RANLIB
7356
RANLIB="$ac_cv_prog_RANLIB"
7359
if test -n "$ac_tool_prefix"; then
7360
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7361
set dummy ${ac_tool_prefix}strip; ac_word=$2
7362
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7363
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364
if test "${ac_cv_prog_STRIP+set}" = set; then
7365
echo $ECHO_N "(cached) $ECHO_C" >&6
7367
if test -n "$STRIP"; then
7368
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374
test -z "$as_dir" && as_dir=.
7375
for ac_exec_ext in '' $ac_executable_extensions; do
7376
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7378
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387
STRIP=$ac_cv_prog_STRIP
7388
if test -n "$STRIP"; then
7389
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7390
echo "${ECHO_T}$STRIP" >&6; }
7392
{ echo "$as_me:$LINENO: result: no" >&5
7393
echo "${ECHO_T}no" >&6; }
7398
if test -z "$ac_cv_prog_STRIP"; then
7400
# Extract the first word of "strip", so it can be a program name with args.
7401
set dummy strip; ac_word=$2
7402
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7403
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7405
echo $ECHO_N "(cached) $ECHO_C" >&6
7407
if test -n "$ac_ct_STRIP"; then
7408
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414
test -z "$as_dir" && as_dir=.
7415
for ac_exec_ext in '' $ac_executable_extensions; do
7416
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417
ac_cv_prog_ac_ct_STRIP="strip"
7418
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7428
if test -n "$ac_ct_STRIP"; then
7429
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7430
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7432
{ echo "$as_me:$LINENO: result: no" >&5
7433
echo "${ECHO_T}no" >&6; }
7436
if test "x$ac_ct_STRIP" = x; then
7439
case $cross_compiling:$ac_tool_warned in
7441
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7442
whose name does not start with the host triplet. If you think this
7443
configuration is useful to you, please write to autoconf@gnu.org." >&5
7444
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7445
whose name does not start with the host triplet. If you think this
7446
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7447
ac_tool_warned=yes ;;
7452
STRIP="$ac_cv_prog_STRIP"
7457
old_CFLAGS="$CFLAGS"
7459
# Set sane defaults for various variables
7460
test -z "$AR" && AR=ar
7461
test -z "$AR_FLAGS" && AR_FLAGS=cru
7462
test -z "$AS" && AS=as
7463
test -z "$CC" && CC=cc
7464
test -z "$LTCC" && LTCC=$CC
7465
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7466
test -z "$DLLTOOL" && DLLTOOL=dlltool
7467
test -z "$LD" && LD=ld
7468
test -z "$LN_S" && LN_S="ln -s"
7469
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7470
test -z "$NM" && NM=nm
7471
test -z "$SED" && SED=sed
7472
test -z "$OBJDUMP" && OBJDUMP=objdump
7473
test -z "$RANLIB" && RANLIB=:
7474
test -z "$STRIP" && STRIP=:
7475
test -z "$ac_objext" && ac_objext=o
7477
# Determine commands to create old-style static archives.
7478
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7479
old_postinstall_cmds='chmod 644 $oldlib'
7480
old_postuninstall_cmds=
7482
if test -n "$RANLIB"; then
7485
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7488
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7491
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7494
for cc_temp in $compiler""; do
7496
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7497
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7502
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7505
# Only perform the check for file, if the check method requires it
7506
case $deplibs_check_method in
7508
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7509
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7510
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7511
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7512
echo $ECHO_N "(cached) $ECHO_C" >&6
7516
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7519
lt_save_MAGIC_CMD="$MAGIC_CMD"
7520
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7521
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7522
for ac_dir in $ac_dummy; do
7524
test -z "$ac_dir" && ac_dir=.
7525
if test -f $ac_dir/${ac_tool_prefix}file; then
7526
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7527
if test -n "$file_magic_test_file"; then
7528
case $deplibs_check_method in
7530
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7531
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7532
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7533
$EGREP "$file_magic_regex" > /dev/null; then
7538
*** Warning: the command libtool uses to detect shared libraries,
7539
*** $file_magic_cmd, produces output that libtool cannot recognize.
7540
*** The result is that libtool may fail to recognize shared libraries
7541
*** as such. This will affect the creation of libtool libraries that
7542
*** depend on shared libraries, but programs linked with such libtool
7543
*** libraries will work regardless of this problem. Nevertheless, you
7544
*** may want to report the problem to your system manager and/or to
7545
*** bug-libtool@gnu.org
7555
MAGIC_CMD="$lt_save_MAGIC_CMD"
7560
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7561
if test -n "$MAGIC_CMD"; then
7562
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7563
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7565
{ echo "$as_me:$LINENO: result: no" >&5
7566
echo "${ECHO_T}no" >&6; }
7569
if test -z "$lt_cv_path_MAGIC_CMD"; then
7570
if test -n "$ac_tool_prefix"; then
7571
{ echo "$as_me:$LINENO: checking for file" >&5
7572
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7573
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7574
echo $ECHO_N "(cached) $ECHO_C" >&6
7578
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7581
lt_save_MAGIC_CMD="$MAGIC_CMD"
7582
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7583
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7584
for ac_dir in $ac_dummy; do
7586
test -z "$ac_dir" && ac_dir=.
7587
if test -f $ac_dir/file; then
7588
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7589
if test -n "$file_magic_test_file"; then
7590
case $deplibs_check_method in
7592
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7593
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7594
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7595
$EGREP "$file_magic_regex" > /dev/null; then
7600
*** Warning: the command libtool uses to detect shared libraries,
7601
*** $file_magic_cmd, produces output that libtool cannot recognize.
7602
*** The result is that libtool may fail to recognize shared libraries
7603
*** as such. This will affect the creation of libtool libraries that
7604
*** depend on shared libraries, but programs linked with such libtool
7605
*** libraries will work regardless of this problem. Nevertheless, you
7606
*** may want to report the problem to your system manager and/or to
7607
*** bug-libtool@gnu.org
7617
MAGIC_CMD="$lt_save_MAGIC_CMD"
7622
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7623
if test -n "$MAGIC_CMD"; then
7624
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7625
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7627
{ echo "$as_me:$LINENO: result: no" >&5
7628
echo "${ECHO_T}no" >&6; }
7643
# Check whether --enable-libtool-lock was given.
7644
if test "${enable_libtool_lock+set}" = set; then
7645
enableval=$enable_libtool_lock;
7648
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7651
# Check whether --with-pic was given.
7652
if test "${with_pic+set}" = set; then
7653
withval=$with_pic; pic_mode="$withval"
7658
test -z "$pic_mode" && pic_mode=default
7660
# Use C for the default configuration in the libtool script
7664
ac_cpp='$CPP $CPPFLAGS'
7665
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670
# Source file extension for C test sources.
7673
# Object file extension for compiled C test sources.
7677
# Code to be used in simple compile tests
7678
lt_simple_compile_test_code="int some_variable = 0;\n"
7680
# Code to be used in simple link tests
7681
lt_simple_link_test_code='int main(){return(0);}\n'
7684
# If no C compiler was specified, use CC.
7687
# If no C compiler flags were specified, use CFLAGS.
7688
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7690
# Allow CC to be a program name with arguments.
7694
# save warnings/boilerplate of simple test code
7695
ac_outfile=conftest.$ac_objext
7696
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7697
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7698
_lt_compiler_boilerplate=`cat conftest.err`
7701
ac_outfile=conftest.$ac_objext
7702
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7703
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7704
_lt_linker_boilerplate=`cat conftest.err`
7709
## There is no encapsulation within the following macros, do not change
7710
## the running order or otherwise move them around unless you know exactly
7711
## what you are doing...
7713
lt_prog_compiler_no_builtin_flag=
7715
if test "$GCC" = yes; then
7716
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7719
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7720
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7721
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7722
echo $ECHO_N "(cached) $ECHO_C" >&6
7724
lt_cv_prog_compiler_rtti_exceptions=no
7725
ac_outfile=conftest.$ac_objext
7726
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7727
lt_compiler_flag="-fno-rtti -fno-exceptions"
7728
# Insert the option either (1) after the last *FLAGS variable, or
7729
# (2) before a word containing "conftest.", or (3) at the end.
7730
# Note that $ac_compile itself does not contain backslashes and begins
7731
# with a dollar sign (not a hyphen), so the echo should work correctly.
7732
# The option is referenced via a variable to avoid confusing sed.
7733
lt_compile=`echo "$ac_compile" | $SED \
7734
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736
-e 's:$: $lt_compiler_flag:'`
7737
(eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
7738
(eval "$lt_compile" 2>conftest.err)
7740
cat conftest.err >&5
7741
echo "$as_me:7741: \$? = $ac_status" >&5
7742
if (exit $ac_status) && test -s "$ac_outfile"; then
7743
# The compiler can only warn and ignore the option if not recognized
7744
# So say no if there are warnings other than the usual output.
7745
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7746
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7748
lt_cv_prog_compiler_rtti_exceptions=yes
7754
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7755
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7757
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7758
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7765
lt_prog_compiler_wl=
7766
lt_prog_compiler_pic=
7767
lt_prog_compiler_static=
7769
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7770
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7772
if test "$GCC" = yes; then
7773
lt_prog_compiler_wl='-Wl,'
7774
lt_prog_compiler_static='-static'
7778
# All AIX code is PIC.
7779
if test "$host_cpu" = ia64; then
7780
# AIX 5 now supports IA64 processor
7781
lt_prog_compiler_static='-Bstatic'
7786
# FIXME: we need at least 68020 code to build shared libraries, but
7787
# adding the `-m68020' flag to GCC prevents building anything better,
7789
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7792
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7793
# PIC is the default for these OSes.
7796
mingw* | pw32* | os2*)
7797
# This hack is so that the source file can tell whether it is being
7798
# built for inclusion in a dll (and should export symbols for example).
7799
lt_prog_compiler_pic='-DDLL_EXPORT'
7802
darwin* | rhapsody*)
7803
# PIC is the default on this platform
7804
# Common symbols not allowed in MH_DYLIB files
7805
lt_prog_compiler_pic='-fno-common'
7809
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7810
# Instead, we relocate shared libraries at runtime.
7814
# Just because we use GCC doesn't mean we suddenly get shared libraries
7815
# on systems that don't support them.
7816
lt_prog_compiler_can_build_shared=no
7821
if test -d /usr/nec; then
7822
lt_prog_compiler_pic=-Kconform_pic
7827
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7834
lt_prog_compiler_pic='-fPIC'
7840
lt_prog_compiler_pic='-fPIC'
7844
# PORTME Check for flag to pass linker flags through the system compiler.
7847
lt_prog_compiler_wl='-Wl,'
7848
if test "$host_cpu" = ia64; then
7849
# AIX 5 now supports IA64 processor
7850
lt_prog_compiler_static='-Bstatic'
7852
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7856
# PIC is the default on this platform
7857
# Common symbols not allowed in MH_DYLIB files
7858
case $cc_basename in
7860
lt_prog_compiler_pic='-qnocommon'
7861
lt_prog_compiler_wl='-Wl,'
7866
mingw* | pw32* | os2*)
7867
# This hack is so that the source file can tell whether it is being
7868
# built for inclusion in a dll (and should export symbols for example).
7869
lt_prog_compiler_pic='-DDLL_EXPORT'
7872
hpux9* | hpux10* | hpux11*)
7873
lt_prog_compiler_wl='-Wl,'
7874
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7881
lt_prog_compiler_pic='+Z'
7884
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7885
lt_prog_compiler_static='${wl}-a ${wl}archive'
7888
irix5* | irix6* | nonstopux*)
7889
lt_prog_compiler_wl='-Wl,'
7890
# PIC (with -KPIC) is the default.
7891
lt_prog_compiler_static='-non_shared'
7895
lt_prog_compiler_pic='-KPIC'
7896
lt_prog_compiler_static='-Bstatic'
7900
case $cc_basename in
7902
lt_prog_compiler_wl='-Wl,'
7903
lt_prog_compiler_pic='-KPIC'
7904
lt_prog_compiler_static='-static'
7906
pgcc* | pgf77* | pgf90* | pgf95*)
7907
# Portland Group compilers (*not* the Pentium gcc compiler,
7908
# which looks to be a dead project)
7909
lt_prog_compiler_wl='-Wl,'
7910
lt_prog_compiler_pic='-fpic'
7911
lt_prog_compiler_static='-Bstatic'
7914
lt_prog_compiler_wl='-Wl,'
7915
# All Alpha code is PIC.
7916
lt_prog_compiler_static='-non_shared'
7921
osf3* | osf4* | osf5*)
7922
lt_prog_compiler_wl='-Wl,'
7923
# All OSF/1 code is PIC.
7924
lt_prog_compiler_static='-non_shared'
7928
lt_prog_compiler_pic='-KPIC'
7929
lt_prog_compiler_static='-Bstatic'
7930
case $cc_basename in
7932
lt_prog_compiler_wl='-Qoption ld ';;
7934
lt_prog_compiler_wl='-Wl,';;
7939
lt_prog_compiler_wl='-Qoption ld '
7940
lt_prog_compiler_pic='-PIC'
7941
lt_prog_compiler_static='-Bstatic'
7944
sysv4 | sysv4.2uw2* | sysv4.3*)
7945
lt_prog_compiler_wl='-Wl,'
7946
lt_prog_compiler_pic='-KPIC'
7947
lt_prog_compiler_static='-Bstatic'
7951
if test -d /usr/nec ;then
7952
lt_prog_compiler_pic='-Kconform_pic'
7953
lt_prog_compiler_static='-Bstatic'
7957
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7958
lt_prog_compiler_wl='-Wl,'
7959
lt_prog_compiler_pic='-KPIC'
7960
lt_prog_compiler_static='-Bstatic'
7964
lt_prog_compiler_wl='-Wl,'
7965
lt_prog_compiler_can_build_shared=no
7969
lt_prog_compiler_pic='-pic'
7970
lt_prog_compiler_static='-Bstatic'
7974
lt_prog_compiler_can_build_shared=no
7979
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7980
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7983
# Check to make sure the PIC flag actually works.
7985
if test -n "$lt_prog_compiler_pic"; then
7987
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7988
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7989
if test "${lt_prog_compiler_pic_works+set}" = set; then
7990
echo $ECHO_N "(cached) $ECHO_C" >&6
7992
lt_prog_compiler_pic_works=no
7993
ac_outfile=conftest.$ac_objext
7994
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7995
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7996
# Insert the option either (1) after the last *FLAGS variable, or
7997
# (2) before a word containing "conftest.", or (3) at the end.
7998
# Note that $ac_compile itself does not contain backslashes and begins
7999
# with a dollar sign (not a hyphen), so the echo should work correctly.
8000
# The option is referenced via a variable to avoid confusing sed.
8001
lt_compile=`echo "$ac_compile" | $SED \
8002
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8003
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8004
-e 's:$: $lt_compiler_flag:'`
8005
(eval echo "\"\$as_me:8005: $lt_compile\"" >&5)
8006
(eval "$lt_compile" 2>conftest.err)
8008
cat conftest.err >&5
8009
echo "$as_me:8009: \$? = $ac_status" >&5
8010
if (exit $ac_status) && test -s "$ac_outfile"; then
8011
# The compiler can only warn and ignore the option if not recognized
8012
# So say no if there are warnings other than the usual output.
8013
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8014
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8015
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8016
lt_prog_compiler_pic_works=yes
8022
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8023
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8025
if test x"$lt_prog_compiler_pic_works" = xyes; then
8026
case $lt_prog_compiler_pic in
8028
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8031
lt_prog_compiler_pic=
8032
lt_prog_compiler_can_build_shared=no
8037
# For platforms which do not support PIC, -DPIC is meaningless:
8039
lt_prog_compiler_pic=
8042
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8047
# Check to make sure the static flag actually works.
8049
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8050
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8051
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8052
if test "${lt_prog_compiler_static_works+set}" = set; then
8053
echo $ECHO_N "(cached) $ECHO_C" >&6
8055
lt_prog_compiler_static_works=no
8056
save_LDFLAGS="$LDFLAGS"
8057
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8058
printf "$lt_simple_link_test_code" > conftest.$ac_ext
8059
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8060
# The linker can only warn and ignore the option if not recognized
8061
# So say no if there are warnings
8062
if test -s conftest.err; then
8063
# Append any errors to the config.log.
8064
cat conftest.err 1>&5
8065
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8066
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8067
if diff conftest.exp conftest.er2 >/dev/null; then
8068
lt_prog_compiler_static_works=yes
8071
lt_prog_compiler_static_works=yes
8075
LDFLAGS="$save_LDFLAGS"
8078
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8079
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8081
if test x"$lt_prog_compiler_static_works" = xyes; then
8084
lt_prog_compiler_static=
8088
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8089
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8090
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8091
echo $ECHO_N "(cached) $ECHO_C" >&6
8093
lt_cv_prog_compiler_c_o=no
8094
$rm -r conftest 2>/dev/null
8098
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8100
lt_compiler_flag="-o out/conftest2.$ac_objext"
8101
# Insert the option either (1) after the last *FLAGS variable, or
8102
# (2) before a word containing "conftest.", or (3) at the end.
8103
# Note that $ac_compile itself does not contain backslashes and begins
8104
# with a dollar sign (not a hyphen), so the echo should work correctly.
8105
lt_compile=`echo "$ac_compile" | $SED \
8106
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108
-e 's:$: $lt_compiler_flag:'`
8109
(eval echo "\"\$as_me:8109: $lt_compile\"" >&5)
8110
(eval "$lt_compile" 2>out/conftest.err)
8112
cat out/conftest.err >&5
8113
echo "$as_me:8113: \$? = $ac_status" >&5
8114
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8116
# The compiler can only warn and ignore the option if not recognized
8117
# So say no if there are warnings
8118
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8119
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8120
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8121
lt_cv_prog_compiler_c_o=yes
8126
# SGI C++ compiler will create directory out/ii_files/ for
8127
# template instantiation
8128
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8129
$rm out/* && rmdir out
8135
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8136
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8139
hard_links="nottested"
8140
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8141
# do not overwrite the value of need_locks provided by the user
8142
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8143
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8146
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8148
ln conftest.a conftest.b 2>&5 || hard_links=no
8149
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8150
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8151
echo "${ECHO_T}$hard_links" >&6; }
8152
if test "$hard_links" = no; then
8153
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8154
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8161
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8162
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8165
allow_undefined_flag=
8166
enable_shared_with_static_runtimes=no
8168
archive_expsym_cmds=
8169
old_archive_From_new_cmds=
8170
old_archive_from_expsyms_cmds=
8171
export_dynamic_flag_spec=
8172
whole_archive_flag_spec=
8173
thread_safe_flag_spec=
8174
hardcode_libdir_flag_spec=
8175
hardcode_libdir_flag_spec_ld=
8176
hardcode_libdir_separator=
8179
hardcode_shlibpath_var=unsupported
8180
link_all_deplibs=unknown
8181
hardcode_automatic=no
8184
always_export_symbols=no
8185
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8186
# include_expsyms should be a list of space-separated symbols to be *always*
8187
# included in the symbol list
8189
# exclude_expsyms can be an extended regexp of symbols to exclude
8190
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8191
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8192
# as well as any symbol that contains `d'.
8193
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8194
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8195
# platforms (ab)use it in PIC code, but their linkers get confused if
8196
# the symbol is explicitly referenced. Since portable code cannot
8197
# rely on this symbol name, it's probably fine to never include it in
8198
# preloaded symbol tables.
8199
extract_expsyms_cmds=
8200
# Just being paranoid about ensuring that cc_basename is set.
8201
for cc_temp in $compiler""; do
8203
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8204
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8209
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8212
cygwin* | mingw* | pw32*)
8213
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8214
# When not using gcc, we currently assume that we are using
8215
# Microsoft Visual C++.
8216
if test "$GCC" != yes; then
8221
# we just hope/assume this is gcc and not c89 (= MSVC++)
8230
if test "$with_gnu_ld" = yes; then
8231
# If archive_cmds runs LD, not CC, wlarc should be empty
8234
# Set some defaults for GNU ld with shared library support. These
8235
# are reset later if shared libraries are not supported. Putting them
8236
# here allows them to be overridden if necessary.
8237
runpath_var=LD_RUN_PATH
8238
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8239
export_dynamic_flag_spec='${wl}--export-dynamic'
8240
# ancient GNU ld didn't support --whole-archive et. al.
8241
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8242
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8244
whole_archive_flag_spec=
8246
supports_anon_versioning=no
8247
case `$LD -v 2>/dev/null` in
8248
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8249
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8250
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8251
*\ 2.11.*) ;; # other 2.11 versions
8252
*) supports_anon_versioning=yes ;;
8255
# See if GNU ld supports shared libraries.
8257
aix3* | aix4* | aix5*)
8258
# On AIX/PPC, the GNU linker is very broken
8259
if test "$host_cpu" != ia64; then
8263
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8264
*** to be unable to reliably create shared libraries on AIX.
8265
*** Therefore, libtool is disabling shared libraries support. If you
8266
*** really care for shared libraries, you may want to modify your PATH
8267
*** so that a non-GNU linker is found, and then restart.
8274
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)'
8275
hardcode_libdir_flag_spec='-L$libdir'
8276
hardcode_minus_L=yes
8278
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8279
# that the semantics of dynamic libraries on AmigaOS, at least up
8280
# to version 4, is to share data among multiple programs linked
8281
# with the same dynamic library. Since this doesn't match the
8282
# behavior of shared libraries on other platforms, we can't use
8288
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289
allow_undefined_flag=unsupported
8290
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8291
# support --undefined. This deserves some investigation. FIXME
8292
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298
cygwin* | mingw* | pw32*)
8299
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8300
# as there is no search path for DLLs.
8301
hardcode_libdir_flag_spec='-L$libdir'
8302
allow_undefined_flag=unsupported
8303
always_export_symbols=no
8304
enable_shared_with_static_runtimes=yes
8305
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8307
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8308
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8309
# If the export-symbols file already is a .def file (1st line
8310
# is EXPORTS), use it as is; otherwise, prepend...
8311
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8312
cp $export_symbols $output_objdir/$soname.def;
8314
echo EXPORTS > $output_objdir/$soname.def;
8315
cat $export_symbols >> $output_objdir/$soname.def;
8317
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8325
hardcode_shlibpath_var=no
8326
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8327
export_dynamic_flag_spec='${wl}-E'
8328
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8329
# Instead, shared libraries are loaded at an image base (0x10000000 by
8330
# default) and relocated if they conflict, which is a slow very memory
8331
# consuming and fragmenting process. To avoid this, we pick a random,
8332
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8333
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8334
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8335
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'
8339
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8341
case $cc_basename,$host_cpu in
8342
pgcc*) # Portland Group C compiler
8343
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8344
tmp_addflag=' $pic_flag'
8346
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8347
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8348
tmp_addflag=' $pic_flag -Mnomain' ;;
8349
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8350
tmp_addflag=' -i_dynamic' ;;
8351
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8352
tmp_addflag=' -i_dynamic -nofor_main' ;;
8353
ifc* | ifort*) # Intel Fortran compiler
8354
tmp_addflag=' -nofor_main' ;;
8356
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8358
if test $supports_anon_versioning = yes; then
8359
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8360
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8361
$echo "local: *; };" >> $output_objdir/$libname.ver~
8362
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8370
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8371
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8372
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8375
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8381
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8385
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8386
*** create shared libraries on Solaris systems. Therefore, libtool
8387
*** is disabling shared libraries support. We urge you to upgrade GNU
8388
*** binutils to release 2.9.1 or newer. Another option is to modify
8389
*** your PATH or compiler configuration so that the native linker is
8390
*** used, and then restart.
8393
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8395
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8401
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8402
case `$LD -v 2>&1` in
8403
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8407
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8408
*** reliably create shared libraries on SCO systems. Therefore, libtool
8409
*** is disabling shared libraries support. We urge you to upgrade GNU
8410
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8411
*** your PATH or compiler configuration so that the native linker is
8412
*** used, and then restart.
8417
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8418
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8419
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8420
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8429
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8432
hardcode_shlibpath_var=no
8436
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8437
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8445
if test "$ld_shlibs" = no; then
8447
hardcode_libdir_flag_spec=
8448
export_dynamic_flag_spec=
8449
whole_archive_flag_spec=
8452
# PORTME fill in a description of your system's linker (not GNU ld)
8455
allow_undefined_flag=unsupported
8456
always_export_symbols=yes
8457
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'
8458
# Note: this linker hardcodes the directories in LIBPATH if there
8459
# are no directories specified by -L.
8460
hardcode_minus_L=yes
8461
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8462
# Neither direct hardcoding nor static linking is supported with a
8464
hardcode_direct=unsupported
8469
if test "$host_cpu" = ia64; then
8470
# On IA64, the linker does run time linking by default, so we don't
8471
# have to do anything special.
8472
aix_use_runtimelinking=no
8473
exp_sym_flag='-Bexport'
8476
# If we're using GNU nm, then we don't want the "-C" option.
8477
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8478
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8479
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8481
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'
8483
aix_use_runtimelinking=no
8485
# Test if we are trying to use run time linking or normal
8486
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8487
# need to do runtime linking.
8488
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8489
for ld_flag in $LDFLAGS; do
8490
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8491
aix_use_runtimelinking=yes
8498
exp_sym_flag='-bexport'
8499
no_entry_flag='-bnoentry'
8502
# When large executables or shared objects are built, AIX ld can
8503
# have problems creating the table of contents. If linking a library
8504
# or program results in "error TOC overflow" add -mminimal-toc to
8505
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8506
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8510
hardcode_libdir_separator=':'
8511
link_all_deplibs=yes
8513
if test "$GCC" = yes; then
8514
case $host_os in aix4.[012]|aix4.[012].*)
8515
# We only want to do this on AIX 4.2 and lower, the check
8516
# below for broken collect2 doesn't work under 4.3+
8517
collect2name=`${CC} -print-prog-name=collect2`
8518
if test -f "$collect2name" && \
8519
strings "$collect2name" | grep resolve_lib_name >/dev/null
8521
# We have reworked collect2
8524
# We have old collect2
8525
hardcode_direct=unsupported
8526
# It fails to find uninstalled libraries when the uninstalled
8527
# path is not listed in the libpath. Setting hardcode_minus_L
8528
# to unsupported forces relinking
8529
hardcode_minus_L=yes
8530
hardcode_libdir_flag_spec='-L$libdir'
8531
hardcode_libdir_separator=
8535
shared_flag='-shared'
8536
if test "$aix_use_runtimelinking" = yes; then
8537
shared_flag="$shared_flag "'${wl}-G'
8541
if test "$host_cpu" = ia64; then
8542
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8543
# chokes on -Wl,-G. The following line is correct:
8546
if test "$aix_use_runtimelinking" = yes; then
8547
shared_flag='${wl}-G'
8549
shared_flag='${wl}-bM:SRE'
8554
# It seems that -bexpall does not export symbols beginning with
8555
# underscore (_), so it is better to generate a list of symbols to export.
8556
always_export_symbols=yes
8557
if test "$aix_use_runtimelinking" = yes; then
8558
# Warning - without using the other runtime loading flags (-brtl),
8559
# -berok will link without error, but may produce a broken library.
8560
allow_undefined_flag='-berok'
8561
# Determine the default libpath from the value encoded in an empty executable.
8562
cat >conftest.$ac_ext <<_ACEOF
8565
cat confdefs.h >>conftest.$ac_ext
8566
cat >>conftest.$ac_ext <<_ACEOF
8567
/* end confdefs.h. */
8577
rm -f conftest.$ac_objext conftest$ac_exeext
8578
if { (ac_try="$ac_link"
8580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581
*) ac_try_echo=$ac_try;;
8583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584
(eval "$ac_link") 2>conftest.er1
8586
grep -v '^ *+' conftest.er1 >conftest.err
8588
cat conftest.err >&5
8589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590
(exit $ac_status); } && {
8591
test -z "$ac_c_werror_flag" ||
8592
test ! -s conftest.err
8593
} && test -s conftest$ac_exeext &&
8594
$as_test_x conftest$ac_exeext; then
8596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8598
# Check for a 64-bit object if we didn't find anything.
8599
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8602
echo "$as_me: failed program was:" >&5
8603
sed 's/^/| /' conftest.$ac_ext >&5
8608
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8609
conftest$ac_exeext conftest.$ac_ext
8610
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8612
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8613
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8615
if test "$host_cpu" = ia64; then
8616
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8617
allow_undefined_flag="-z nodefs"
8618
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"
8620
# Determine the default libpath from the value encoded in an empty executable.
8621
cat >conftest.$ac_ext <<_ACEOF
8624
cat confdefs.h >>conftest.$ac_ext
8625
cat >>conftest.$ac_ext <<_ACEOF
8626
/* end confdefs.h. */
8636
rm -f conftest.$ac_objext conftest$ac_exeext
8637
if { (ac_try="$ac_link"
8639
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640
*) ac_try_echo=$ac_try;;
8642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643
(eval "$ac_link") 2>conftest.er1
8645
grep -v '^ *+' conftest.er1 >conftest.err
8647
cat conftest.err >&5
8648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649
(exit $ac_status); } && {
8650
test -z "$ac_c_werror_flag" ||
8651
test ! -s conftest.err
8652
} && test -s conftest$ac_exeext &&
8653
$as_test_x conftest$ac_exeext; then
8655
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8657
# Check for a 64-bit object if we didn't find anything.
8658
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8661
echo "$as_me: failed program was:" >&5
8662
sed 's/^/| /' conftest.$ac_ext >&5
8667
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8668
conftest$ac_exeext conftest.$ac_ext
8669
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8671
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8672
# Warning - without using the other run time loading flags,
8673
# -berok will link without error, but may produce a broken library.
8674
no_undefined_flag=' ${wl}-bernotok'
8675
allow_undefined_flag=' ${wl}-berok'
8676
# Exported symbols can be pulled into shared objects from archives
8677
whole_archive_flag_spec='$convenience'
8678
archive_cmds_need_lc=yes
8679
# This is similar to how AIX traditionally builds its shared libraries.
8680
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'
8686
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)'
8687
hardcode_libdir_flag_spec='-L$libdir'
8688
hardcode_minus_L=yes
8689
# see comment about different semantics on the GNU ld section
8694
export_dynamic_flag_spec=-rdynamic
8697
cygwin* | mingw* | pw32*)
8698
# When not using gcc, we currently assume that we are using
8699
# Microsoft Visual C++.
8700
# hardcode_libdir_flag_spec is actually meaningless, as there is
8701
# no search path for DLLs.
8702
hardcode_libdir_flag_spec=' '
8703
allow_undefined_flag=unsupported
8704
# Tell ltmain to make .lib files, not .a files.
8706
# Tell ltmain to make .dll files, not .so files.
8708
# FIXME: Setting linknames here is a bad hack.
8709
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8710
# The linker will automatically build a .lib file if we build a DLL.
8711
old_archive_From_new_cmds='true'
8712
# FIXME: Should let the user specify the lib program.
8713
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8714
fix_srcfile_path='`cygpath -w "$srcfile"`'
8715
enable_shared_with_static_runtimes=yes
8718
darwin* | rhapsody*)
8720
rhapsody* | darwin1.[012])
8721
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8724
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8725
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8727
case ${MACOSX_DEPLOYMENT_TARGET} in
8729
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8732
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8738
archive_cmds_need_lc=no
8740
hardcode_automatic=yes
8741
hardcode_shlibpath_var=unsupported
8742
whole_archive_flag_spec=''
8743
link_all_deplibs=yes
8744
if test "$GCC" = yes ; then
8745
output_verbose_link_cmd='echo'
8746
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8747
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8748
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8749
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8750
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8752
case $cc_basename in
8754
output_verbose_link_cmd='echo'
8755
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8756
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8757
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8758
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8759
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8769
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770
hardcode_libdir_flag_spec='-L$libdir'
8771
hardcode_shlibpath_var=no
8778
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8779
# support. Future versions do this automatically, but an explicit c++rt0.o
8780
# does not break anything, and helps significantly (at the cost of a little
8783
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8784
hardcode_libdir_flag_spec='-R$libdir'
8786
hardcode_shlibpath_var=no
8789
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8791
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8793
hardcode_minus_L=yes
8794
hardcode_shlibpath_var=no
8797
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8798
freebsd* | dragonfly*)
8799
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8800
hardcode_libdir_flag_spec='-R$libdir'
8802
hardcode_shlibpath_var=no
8805
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
8807
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8808
hardcode_libdir_flag_spec='-R$libdir'
8810
hardcode_shlibpath_var=no
8815
if test "$GCC" = yes; then
8816
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8818
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'
8820
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821
hardcode_libdir_separator=:
8824
# hardcode_minus_L: Not really in the search PATH,
8825
# but as the default location of the library.
8826
hardcode_minus_L=yes
8827
export_dynamic_flag_spec='${wl}-E'
8831
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8832
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8834
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8836
if test "$with_gnu_ld" = no; then
8837
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838
hardcode_libdir_separator=:
8841
export_dynamic_flag_spec='${wl}-E'
8843
# hardcode_minus_L: Not really in the search PATH,
8844
# but as the default location of the library.
8845
hardcode_minus_L=yes
8850
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8853
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8856
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8859
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8865
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8868
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8871
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8875
if test "$with_gnu_ld" = no; then
8876
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8877
hardcode_libdir_separator=:
8881
hardcode_libdir_flag_spec_ld='+b $libdir'
8883
hardcode_shlibpath_var=no
8887
export_dynamic_flag_spec='${wl}-E'
8889
# hardcode_minus_L: Not really in the search PATH,
8890
# but as the default location of the library.
8891
hardcode_minus_L=yes
8897
irix5* | irix6* | nonstopux*)
8898
if test "$GCC" = yes; then
8899
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8901
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8902
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8904
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905
hardcode_libdir_separator=:
8906
link_all_deplibs=yes
8909
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8910
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8911
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8913
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8915
hardcode_libdir_flag_spec='-R$libdir'
8917
hardcode_shlibpath_var=no
8921
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8924
hardcode_libdir_separator=:
8925
hardcode_shlibpath_var=no
8930
hardcode_shlibpath_var=no
8931
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8932
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8934
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935
export_dynamic_flag_spec='${wl}-E'
8938
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8939
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940
hardcode_libdir_flag_spec='-R$libdir'
8943
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8944
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8951
hardcode_libdir_flag_spec='-L$libdir'
8952
hardcode_minus_L=yes
8953
allow_undefined_flag=unsupported
8954
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'
8955
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8959
if test "$GCC" = yes; then
8960
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8961
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8963
allow_undefined_flag=' -expect_unresolved \*'
8964
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8966
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967
hardcode_libdir_separator=:
8970
osf4* | osf5*) # as osf3* with the addition of -msym flag
8971
if test "$GCC" = yes; then
8972
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8974
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8976
allow_undefined_flag=' -expect_unresolved \*'
8977
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8978
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8979
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8981
# Both c and cxx compiler support -rpath directly
8982
hardcode_libdir_flag_spec='-rpath $libdir'
8984
hardcode_libdir_separator=:
8988
no_undefined_flag=' -z text'
8989
if test "$GCC" = yes; then
8991
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8992
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8993
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8996
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9000
hardcode_libdir_flag_spec='-R$libdir'
9001
hardcode_shlibpath_var=no
9003
solaris2.[0-5] | solaris2.[0-5].*) ;;
9005
# The compiler driver will combine linker options so we
9006
# cannot just pass the convience library names through
9007
# without $wl, iff we do not link with $LD.
9008
# Luckily, gcc supports the same syntax we need for Sun Studio.
9009
# Supported since Solaris 2.6 (maybe 2.5.1?)
9012
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9014
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9017
link_all_deplibs=yes
9021
if test "x$host_vendor" = xsequent; then
9022
# Use $CC to link under sequent, because it throws in some extra .o
9023
# files that make .init and .fini sections work.
9024
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9026
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9028
hardcode_libdir_flag_spec='-L$libdir'
9030
hardcode_minus_L=yes
9031
hardcode_shlibpath_var=no
9035
case $host_vendor in
9037
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038
hardcode_direct=yes # is this really true???
9041
## LD is ld it makes a PLAMLIB
9042
## CC just makes a GrossModule.
9043
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9044
reload_cmds='$CC -r -o $output$reload_objs'
9048
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9052
runpath_var='LD_RUN_PATH'
9053
hardcode_shlibpath_var=no
9057
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9058
hardcode_shlibpath_var=no
9059
export_dynamic_flag_spec='-Bexport'
9063
if test -d /usr/nec; then
9064
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9065
hardcode_shlibpath_var=no
9066
runpath_var=LD_RUN_PATH
9067
hardcode_runpath_var=yes
9072
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9073
no_undefined_flag='${wl}-z,text'
9074
archive_cmds_need_lc=no
9075
hardcode_shlibpath_var=no
9076
runpath_var='LD_RUN_PATH'
9078
if test "$GCC" = yes; then
9079
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9080
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9087
sysv5* | sco3.2v5* | sco5v6*)
9088
# Note: We can NOT use -z defs as we might desire, because we do not
9089
# link with -lc, and that would cause any symbols used from libc to
9090
# always be unresolved, which means just about no library would
9091
# ever link correctly. If we're not using GNU ld we use -z text
9092
# though, which does catch some bad symbols but isn't as heavy-handed
9094
no_undefined_flag='${wl}-z,text'
9095
allow_undefined_flag='${wl}-z,nodefs'
9096
archive_cmds_need_lc=no
9097
hardcode_shlibpath_var=no
9098
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9099
hardcode_libdir_separator=':'
9100
link_all_deplibs=yes
9101
export_dynamic_flag_spec='${wl}-Bexport'
9102
runpath_var='LD_RUN_PATH'
9104
if test "$GCC" = yes; then
9105
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9114
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115
hardcode_libdir_flag_spec='-L$libdir'
9116
hardcode_shlibpath_var=no
9125
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9126
echo "${ECHO_T}$ld_shlibs" >&6; }
9127
test "$ld_shlibs" = no && can_build_shared=no
9130
# Do we need to explicitly link libc?
9132
case "x$archive_cmds_need_lc" in
9134
# Assume -lc should be added
9135
archive_cmds_need_lc=yes
9137
if test "$enable_shared" = yes && test "$GCC" = yes; then
9138
case $archive_cmds in
9140
# FIXME: we may have to deal with multi-command sequences.
9143
# Test whether the compiler implicitly links with -lc since on some
9144
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9145
# to ld, don't add -lc before -lgcc.
9146
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9147
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9149
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9151
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9152
(eval $ac_compile) 2>&5
9154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155
(exit $ac_status); } 2>conftest.err; then
9158
libobjs=conftest.$ac_objext
9160
wl=$lt_prog_compiler_wl
9161
pic_flag=$lt_prog_compiler_pic
9167
lt_save_allow_undefined_flag=$allow_undefined_flag
9168
allow_undefined_flag=
9169
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9170
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173
(exit $ac_status); }
9175
archive_cmds_need_lc=no
9177
archive_cmds_need_lc=yes
9179
allow_undefined_flag=$lt_save_allow_undefined_flag
9181
cat conftest.err 1>&5
9184
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9185
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9192
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9193
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9195
libname_spec='lib$name'
9203
shlibpath_overrides_runpath=unknown
9205
dynamic_linker="$host_os ld.so"
9206
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9207
if test "$GCC" = yes; then
9208
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9209
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9210
# if the path contains ";" then we assume it to be the separator
9211
# otherwise default to the standard path separator (i.e. ":") - it is
9212
# assumed that no part of a normal pathname contains ";" but that should
9213
# okay in the real world where ";" in dirpaths is itself problematic.
9214
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9216
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9219
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9221
need_lib_prefix=unknown
9222
hardcode_into_libs=no
9224
# when you set need_version to no, make sure it does not cause -set_version
9225
# flags to be left without arguments
9226
need_version=unknown
9231
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9232
shlibpath_var=LIBPATH
9234
# AIX 3 has no versioning support, so we append a major version to the name.
9235
soname_spec='${libname}${release}${shared_ext}$major'
9242
hardcode_into_libs=yes
9243
if test "$host_cpu" = ia64; then
9244
# AIX 5 supports IA64
9245
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9246
shlibpath_var=LD_LIBRARY_PATH
9248
# With GCC up to 2.95.x, collect2 would create an import file
9249
# for dependence libraries. The import file would start with
9250
# the line `#! .'. This would cause the generated library to
9251
# depend on `.', always an invalid library. This was fixed in
9252
# development snapshots of GCC prior to 3.0.
9254
aix4 | aix4.[01] | aix4.[01].*)
9255
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9257
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9264
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9265
# soname into executable. Probably we can add versioning support to
9266
# collect2, so additional links can be useful in future.
9267
if test "$aix_use_runtimelinking" = yes; then
9268
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9269
# instead of lib<name>.a to let people know that these are not
9270
# typical AIX shared libraries.
9271
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273
# We preserve .a as extension for shared libraries through AIX4.2
9274
# and later when we are not doing run time linking.
9275
library_names_spec='${libname}${release}.a $libname.a'
9276
soname_spec='${libname}${release}${shared_ext}$major'
9278
shlibpath_var=LIBPATH
9283
library_names_spec='$libname.ixlibrary $libname.a'
9284
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9285
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
9289
library_names_spec='${libname}${shared_ext}'
9290
dynamic_linker="$host_os ld.so"
9291
shlibpath_var=LIBRARY_PATH
9297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298
soname_spec='${libname}${release}${shared_ext}$major'
9299
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9300
shlibpath_var=LD_LIBRARY_PATH
9301
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9302
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9303
# the default ld.so.conf also contains /usr/contrib/lib and
9304
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9305
# libtool to hard-code these into programs
9308
cygwin* | mingw* | pw32*)
9309
version_type=windows
9314
case $GCC,$host_os in
9315
yes,cygwin* | yes,mingw* | yes,pw32*)
9316
library_names_spec='$libname.dll.a'
9317
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9318
postinstall_cmds='base_file=`basename \${file}`~
9319
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9320
dldir=$destdir/`dirname \$dlpath`~
9321
test -d \$dldir || mkdir -p \$dldir~
9322
$install_prog $dir/$dlname \$dldir/$dlname~
9323
chmod a+x \$dldir/$dlname'
9324
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9325
dlpath=$dir/\$dldll~
9327
shlibpath_overrides_runpath=yes
9331
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9332
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9333
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9336
# MinGW DLLs use traditional 'lib' prefix
9337
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9338
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9339
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9340
# It is most probably a Windows format PATH printed by
9341
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9342
# path with ; separators, and with drive letters. We can handle the
9343
# drive letters (cygwin fileutils understands them), so leave them,
9344
# especially as we might pass files found there to a mingw objdump,
9345
# which wouldn't understand a cygwinified path. Ahh.
9346
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9348
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9352
# pw32 DLLs use 'pw' prefix rather than 'lib'
9353
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9359
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9362
dynamic_linker='Win32 ld.exe'
9363
# FIXME: first we should search . and the directory the executable is in
9367
darwin* | rhapsody*)
9368
dynamic_linker="$host_os dyld"
9372
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9373
soname_spec='${libname}${release}${major}$shared_ext'
9374
shlibpath_overrides_runpath=yes
9375
shlibpath_var=DYLD_LIBRARY_PATH
9376
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9377
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9378
if test "$GCC" = yes; then
9379
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9381
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9383
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9391
soname_spec='${libname}${release}${shared_ext}$major'
9392
shlibpath_var=LD_LIBRARY_PATH
9403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9404
soname_spec='${libname}${release}${shared_ext}$major'
9405
shlibpath_var=LD_LIBRARY_PATH
9406
shlibpath_overrides_runpath=no
9407
hardcode_into_libs=yes
9408
dynamic_linker='GNU ld.so'
9411
freebsd* | dragonfly*)
9412
# DragonFly does not have aout. When/if they implement a new
9413
# versioning mechanism, adjust this.
9414
if test -x /usr/bin/objformat; then
9415
objformat=`/usr/bin/objformat`
9418
freebsd[123]*) objformat=aout ;;
9422
version_type=freebsd-$objformat
9423
case $version_type in
9425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9430
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9434
shlibpath_var=LD_LIBRARY_PATH
9437
shlibpath_overrides_runpath=yes
9439
freebsd3.[01]* | freebsdelf3.[01]*)
9440
shlibpath_overrides_runpath=yes
9441
hardcode_into_libs=yes
9443
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9444
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9445
shlibpath_overrides_runpath=no
9446
hardcode_into_libs=yes
9448
freebsd*) # from 4.6 on
9449
shlibpath_overrides_runpath=yes
9450
hardcode_into_libs=yes
9459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9460
soname_spec='${libname}${release}${shared_ext}$major'
9461
shlibpath_var=LD_LIBRARY_PATH
9462
hardcode_into_libs=yes
9465
hpux9* | hpux10* | hpux11*)
9466
# Give a soname corresponding to the major version so that dld.sl refuses to
9467
# link against other versions.
9474
hardcode_into_libs=yes
9475
dynamic_linker="$host_os dld.so"
9476
shlibpath_var=LD_LIBRARY_PATH
9477
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479
soname_spec='${libname}${release}${shared_ext}$major'
9480
if test "X$HPUX_IA64_MODE" = X32; then
9481
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9483
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9485
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9489
hardcode_into_libs=yes
9490
dynamic_linker="$host_os dld.sl"
9491
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9492
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494
soname_spec='${libname}${release}${shared_ext}$major'
9495
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9496
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9500
dynamic_linker="$host_os dld.sl"
9501
shlibpath_var=SHLIB_PATH
9502
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504
soname_spec='${libname}${release}${shared_ext}$major'
9507
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9508
postinstall_cmds='chmod 555 $lib'
9515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516
soname_spec='${libname}${release}${shared_ext}$major'
9517
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9518
shlibpath_var=LD_LIBRARY_PATH
9519
shlibpath_overrides_runpath=no
9520
hardcode_into_libs=yes
9523
irix5* | irix6* | nonstopux*)
9525
nonstopux*) version_type=nonstopux ;;
9527
if test "$lt_cv_prog_gnu_ld" = yes; then
9535
soname_spec='${libname}${release}${shared_ext}$major'
9536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9538
irix5* | nonstopux*)
9542
case $LD in # libtool.m4 will add one of these switches to LD
9543
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9544
libsuff= shlibsuff= libmagic=32-bit;;
9545
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9546
libsuff=32 shlibsuff=N32 libmagic=N32;;
9547
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9548
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9549
*) libsuff= shlibsuff= libmagic=never-match;;
9553
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9554
shlibpath_overrides_runpath=no
9555
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9556
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9557
hardcode_into_libs=yes
9560
# No shared lib support for Linux oldld, aout, or coff.
9561
linux*oldld* | linux*aout* | linux*coff*)
9565
# This must be Linux ELF.
9570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571
soname_spec='${libname}${release}${shared_ext}$major'
9572
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9573
shlibpath_var=LD_LIBRARY_PATH
9574
shlibpath_overrides_runpath=no
9575
# This implies no fast_install, which is unacceptable.
9576
# Some rework will be needed to allow for fast_install
9577
# before this can be enabled.
9578
hardcode_into_libs=yes
9580
# Append ld.so.conf contents to the search path
9581
if test -f /etc/ld.so.conf; then
9582
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9583
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9586
# We used to test for /lib/ld.so.1 and disable shared libraries on
9587
# powerpc, because MkLinux only supported shared libraries with the
9588
# GNU dynamic linker. Since this was broken with cross compilers,
9589
# most powerpc-linux boxes support dynamic linking these days and
9590
# people can always --disable-shared, the test was removed, and we
9591
# assume the GNU/Linux dynamic linker is in use.
9592
dynamic_linker='GNU/Linux ld.so'
9599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9600
soname_spec='${libname}${release}${shared_ext}$major'
9601
shlibpath_var=LD_LIBRARY_PATH
9602
shlibpath_overrides_runpath=no
9603
hardcode_into_libs=yes
9604
dynamic_linker='NetBSD ld.elf_so'
9611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9612
soname_spec='${libname}${release}${shared_ext}$major'
9613
shlibpath_var=LD_LIBRARY_PATH
9614
shlibpath_overrides_runpath=no
9615
hardcode_into_libs=yes
9616
dynamic_linker='GNU ld.so'
9623
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9625
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9626
dynamic_linker='NetBSD (a.out) ld.so'
9628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9629
soname_spec='${libname}${release}${shared_ext}$major'
9630
dynamic_linker='NetBSD ld.elf_so'
9632
shlibpath_var=LD_LIBRARY_PATH
9633
shlibpath_overrides_runpath=yes
9634
hardcode_into_libs=yes
9639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640
shlibpath_var=LD_LIBRARY_PATH
9641
shlibpath_overrides_runpath=yes
9648
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649
soname_spec='${libname}${release}${shared_ext}$major'
9650
shlibpath_var=LD_LIBRARY_PATH
9651
shlibpath_overrides_runpath=yes
9656
sys_lib_dlsearch_path_spec="/usr/lib"
9658
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9660
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9661
*) need_version=no ;;
9663
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9665
shlibpath_var=LD_LIBRARY_PATH
9666
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9668
openbsd2.[89] | openbsd2.[89].*)
9669
shlibpath_overrides_runpath=no
9672
shlibpath_overrides_runpath=yes
9676
shlibpath_overrides_runpath=yes
9681
libname_spec='$name'
9684
library_names_spec='$libname${shared_ext} $libname.a'
9685
dynamic_linker='OS/2 ld.exe'
9686
shlibpath_var=LIBPATH
9689
osf3* | osf4* | osf5*)
9693
soname_spec='${libname}${release}${shared_ext}$major'
9694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695
shlibpath_var=LD_LIBRARY_PATH
9696
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9697
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705
soname_spec='${libname}${release}${shared_ext}$major'
9706
shlibpath_var=LD_LIBRARY_PATH
9707
shlibpath_overrides_runpath=yes
9708
hardcode_into_libs=yes
9709
# ldd complains unless libraries are executable
9710
postinstall_cmds='chmod +x $lib'
9715
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9716
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9717
shlibpath_var=LD_LIBRARY_PATH
9718
shlibpath_overrides_runpath=yes
9719
if test "$with_gnu_ld" = yes; then
9727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728
soname_spec='${libname}${release}${shared_ext}$major'
9729
shlibpath_var=LD_LIBRARY_PATH
9730
case $host_vendor in
9732
shlibpath_overrides_runpath=no
9734
export_dynamic_flag_spec='${wl}-Blargedynsym'
9735
runpath_var=LD_RUN_PATH
9743
shlibpath_overrides_runpath=no
9744
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9750
if test -d /usr/nec ;then
9752
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9753
soname_spec='$libname${shared_ext}.$major'
9754
shlibpath_var=LD_LIBRARY_PATH
9758
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9759
version_type=freebsd-elf
9762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9763
soname_spec='${libname}${release}${shared_ext}$major'
9764
shlibpath_var=LD_LIBRARY_PATH
9765
hardcode_into_libs=yes
9766
if test "$with_gnu_ld" = yes; then
9767
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9768
shlibpath_overrides_runpath=no
9770
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9771
shlibpath_overrides_runpath=yes
9774
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9778
sys_lib_dlsearch_path_spec='/usr/lib'
9783
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784
soname_spec='${libname}${release}${shared_ext}$major'
9785
shlibpath_var=LD_LIBRARY_PATH
9792
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9793
echo "${ECHO_T}$dynamic_linker" >&6; }
9794
test "$dynamic_linker" = no && can_build_shared=no
9796
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9797
if test "$GCC" = yes; then
9798
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9801
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9802
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9804
if test -n "$hardcode_libdir_flag_spec" || \
9805
test -n "$runpath_var" || \
9806
test "X$hardcode_automatic" = "Xyes" ; then
9808
# We can hardcode non-existant directories.
9809
if test "$hardcode_direct" != no &&
9810
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9811
# have to relink, otherwise we might link with an installed library
9812
# when we should be linking with a yet-to-be-installed one
9813
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9814
test "$hardcode_minus_L" != no; then
9815
# Linking always hardcodes the temporary library directory.
9816
hardcode_action=relink
9818
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9819
hardcode_action=immediate
9822
# We cannot hardcode anything, or else we can only hardcode existing
9824
hardcode_action=unsupported
9826
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9827
echo "${ECHO_T}$hardcode_action" >&6; }
9829
if test "$hardcode_action" = relink; then
9830
# Fast installation is not supported
9831
enable_fast_install=no
9832
elif test "$shlibpath_overrides_runpath" = yes ||
9833
test "$enable_shared" = no; then
9834
# Fast installation is not necessary
9835
enable_fast_install=needless
9840
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9841
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9842
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9843
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9844
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9845
{ echo "$as_me:$LINENO: result: yes" >&5
9846
echo "${ECHO_T}yes" >&6; }
9848
# FIXME - insert some real tests, host_os isn't really good enough
9851
if test -n "$STRIP" ; then
9852
striplib="$STRIP -x"
9853
{ echo "$as_me:$LINENO: result: yes" >&5
9854
echo "${ECHO_T}yes" >&6; }
9856
{ echo "$as_me:$LINENO: result: no" >&5
9857
echo "${ECHO_T}no" >&6; }
9861
{ echo "$as_me:$LINENO: result: no" >&5
9862
echo "${ECHO_T}no" >&6; }
9867
if test "x$enable_dlopen" != xyes; then
9868
enable_dlopen=unknown
9869
enable_dlopen_self=unknown
9870
enable_dlopen_self_static=unknown
9877
lt_cv_dlopen="load_add_on"
9879
lt_cv_dlopen_self=yes
9883
lt_cv_dlopen="LoadLibrary"
9888
lt_cv_dlopen="dlopen"
9893
# if libdl is installed we need to link against it
9894
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9896
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897
echo $ECHO_N "(cached) $ECHO_C" >&6
9899
ac_check_lib_save_LIBS=$LIBS
9901
cat >conftest.$ac_ext <<_ACEOF
9904
cat confdefs.h >>conftest.$ac_ext
9905
cat >>conftest.$ac_ext <<_ACEOF
9906
/* end confdefs.h. */
9908
/* Override any GCC internal prototype to avoid an error.
9909
Use char because int might match the return type of a GCC
9910
builtin and then its argument prototype would still apply. */
9923
rm -f conftest.$ac_objext conftest$ac_exeext
9924
if { (ac_try="$ac_link"
9926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927
*) ac_try_echo=$ac_try;;
9929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930
(eval "$ac_link") 2>conftest.er1
9932
grep -v '^ *+' conftest.er1 >conftest.err
9934
cat conftest.err >&5
9935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936
(exit $ac_status); } && {
9937
test -z "$ac_c_werror_flag" ||
9938
test ! -s conftest.err
9939
} && test -s conftest$ac_exeext &&
9940
$as_test_x conftest$ac_exeext; then
9941
ac_cv_lib_dl_dlopen=yes
9943
echo "$as_me: failed program was:" >&5
9944
sed 's/^/| /' conftest.$ac_ext >&5
9946
ac_cv_lib_dl_dlopen=no
9949
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950
conftest$ac_exeext conftest.$ac_ext
9951
LIBS=$ac_check_lib_save_LIBS
9953
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9954
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9955
if test $ac_cv_lib_dl_dlopen = yes; then
9956
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9961
lt_cv_dlopen_self=yes
9968
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9969
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9970
if test "${ac_cv_func_shl_load+set}" = set; then
9971
echo $ECHO_N "(cached) $ECHO_C" >&6
9973
cat >conftest.$ac_ext <<_ACEOF
9976
cat confdefs.h >>conftest.$ac_ext
9977
cat >>conftest.$ac_ext <<_ACEOF
9978
/* end confdefs.h. */
9979
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9980
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9981
#define shl_load innocuous_shl_load
9983
/* System header to define __stub macros and hopefully few prototypes,
9984
which can conflict with char shl_load (); below.
9985
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9986
<limits.h> exists even on freestanding compilers. */
9989
# include <limits.h>
9991
# include <assert.h>
9996
/* Override any GCC internal prototype to avoid an error.
9997
Use char because int might match the return type of a GCC
9998
builtin and then its argument prototype would still apply. */
10003
/* The GNU C library defines this for functions which it implements
10004
to always fail with ENOSYS. Some functions are actually named
10005
something starting with __ and the normal name is an alias. */
10006
#if defined __stub_shl_load || defined __stub___shl_load
10013
return shl_load ();
10018
rm -f conftest.$ac_objext conftest$ac_exeext
10019
if { (ac_try="$ac_link"
10020
case "(($ac_try" in
10021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022
*) ac_try_echo=$ac_try;;
10024
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025
(eval "$ac_link") 2>conftest.er1
10027
grep -v '^ *+' conftest.er1 >conftest.err
10029
cat conftest.err >&5
10030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031
(exit $ac_status); } && {
10032
test -z "$ac_c_werror_flag" ||
10033
test ! -s conftest.err
10034
} && test -s conftest$ac_exeext &&
10035
$as_test_x conftest$ac_exeext; then
10036
ac_cv_func_shl_load=yes
10038
echo "$as_me: failed program was:" >&5
10039
sed 's/^/| /' conftest.$ac_ext >&5
10041
ac_cv_func_shl_load=no
10044
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045
conftest$ac_exeext conftest.$ac_ext
10047
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10048
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10049
if test $ac_cv_func_shl_load = yes; then
10050
lt_cv_dlopen="shl_load"
10052
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10053
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10054
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10055
echo $ECHO_N "(cached) $ECHO_C" >&6
10057
ac_check_lib_save_LIBS=$LIBS
10059
cat >conftest.$ac_ext <<_ACEOF
10062
cat confdefs.h >>conftest.$ac_ext
10063
cat >>conftest.$ac_ext <<_ACEOF
10064
/* end confdefs.h. */
10066
/* Override any GCC internal prototype to avoid an error.
10067
Use char because int might match the return type of a GCC
10068
builtin and then its argument prototype would still apply. */
10076
return shl_load ();
10081
rm -f conftest.$ac_objext conftest$ac_exeext
10082
if { (ac_try="$ac_link"
10083
case "(($ac_try" in
10084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085
*) ac_try_echo=$ac_try;;
10087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088
(eval "$ac_link") 2>conftest.er1
10090
grep -v '^ *+' conftest.er1 >conftest.err
10092
cat conftest.err >&5
10093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094
(exit $ac_status); } && {
10095
test -z "$ac_c_werror_flag" ||
10096
test ! -s conftest.err
10097
} && test -s conftest$ac_exeext &&
10098
$as_test_x conftest$ac_exeext; then
10099
ac_cv_lib_dld_shl_load=yes
10101
echo "$as_me: failed program was:" >&5
10102
sed 's/^/| /' conftest.$ac_ext >&5
10104
ac_cv_lib_dld_shl_load=no
10107
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10108
conftest$ac_exeext conftest.$ac_ext
10109
LIBS=$ac_check_lib_save_LIBS
10111
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10112
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10113
if test $ac_cv_lib_dld_shl_load = yes; then
10114
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10116
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10117
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10118
if test "${ac_cv_func_dlopen+set}" = set; then
10119
echo $ECHO_N "(cached) $ECHO_C" >&6
10121
cat >conftest.$ac_ext <<_ACEOF
10124
cat confdefs.h >>conftest.$ac_ext
10125
cat >>conftest.$ac_ext <<_ACEOF
10126
/* end confdefs.h. */
10127
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10128
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10129
#define dlopen innocuous_dlopen
10131
/* System header to define __stub macros and hopefully few prototypes,
10132
which can conflict with char dlopen (); below.
10133
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10134
<limits.h> exists even on freestanding compilers. */
10137
# include <limits.h>
10139
# include <assert.h>
10144
/* Override any GCC internal prototype to avoid an error.
10145
Use char because int might match the return type of a GCC
10146
builtin and then its argument prototype would still apply. */
10151
/* The GNU C library defines this for functions which it implements
10152
to always fail with ENOSYS. Some functions are actually named
10153
something starting with __ and the normal name is an alias. */
10154
#if defined __stub_dlopen || defined __stub___dlopen
10166
rm -f conftest.$ac_objext conftest$ac_exeext
10167
if { (ac_try="$ac_link"
10168
case "(($ac_try" in
10169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170
*) ac_try_echo=$ac_try;;
10172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173
(eval "$ac_link") 2>conftest.er1
10175
grep -v '^ *+' conftest.er1 >conftest.err
10177
cat conftest.err >&5
10178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179
(exit $ac_status); } && {
10180
test -z "$ac_c_werror_flag" ||
10181
test ! -s conftest.err
10182
} && test -s conftest$ac_exeext &&
10183
$as_test_x conftest$ac_exeext; then
10184
ac_cv_func_dlopen=yes
10186
echo "$as_me: failed program was:" >&5
10187
sed 's/^/| /' conftest.$ac_ext >&5
10189
ac_cv_func_dlopen=no
10192
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193
conftest$ac_exeext conftest.$ac_ext
10195
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10196
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10197
if test $ac_cv_func_dlopen = yes; then
10198
lt_cv_dlopen="dlopen"
10200
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10202
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203
echo $ECHO_N "(cached) $ECHO_C" >&6
10205
ac_check_lib_save_LIBS=$LIBS
10207
cat >conftest.$ac_ext <<_ACEOF
10210
cat confdefs.h >>conftest.$ac_ext
10211
cat >>conftest.$ac_ext <<_ACEOF
10212
/* end confdefs.h. */
10214
/* Override any GCC internal prototype to avoid an error.
10215
Use char because int might match the return type of a GCC
10216
builtin and then its argument prototype would still apply. */
10229
rm -f conftest.$ac_objext conftest$ac_exeext
10230
if { (ac_try="$ac_link"
10231
case "(($ac_try" in
10232
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233
*) ac_try_echo=$ac_try;;
10235
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236
(eval "$ac_link") 2>conftest.er1
10238
grep -v '^ *+' conftest.er1 >conftest.err
10240
cat conftest.err >&5
10241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242
(exit $ac_status); } && {
10243
test -z "$ac_c_werror_flag" ||
10244
test ! -s conftest.err
10245
} && test -s conftest$ac_exeext &&
10246
$as_test_x conftest$ac_exeext; then
10247
ac_cv_lib_dl_dlopen=yes
10249
echo "$as_me: failed program was:" >&5
10250
sed 's/^/| /' conftest.$ac_ext >&5
10252
ac_cv_lib_dl_dlopen=no
10255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256
conftest$ac_exeext conftest.$ac_ext
10257
LIBS=$ac_check_lib_save_LIBS
10259
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10260
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10261
if test $ac_cv_lib_dl_dlopen = yes; then
10262
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10264
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10265
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10266
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10267
echo $ECHO_N "(cached) $ECHO_C" >&6
10269
ac_check_lib_save_LIBS=$LIBS
10270
LIBS="-lsvld $LIBS"
10271
cat >conftest.$ac_ext <<_ACEOF
10274
cat confdefs.h >>conftest.$ac_ext
10275
cat >>conftest.$ac_ext <<_ACEOF
10276
/* end confdefs.h. */
10278
/* Override any GCC internal prototype to avoid an error.
10279
Use char because int might match the return type of a GCC
10280
builtin and then its argument prototype would still apply. */
10293
rm -f conftest.$ac_objext conftest$ac_exeext
10294
if { (ac_try="$ac_link"
10295
case "(($ac_try" in
10296
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297
*) ac_try_echo=$ac_try;;
10299
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300
(eval "$ac_link") 2>conftest.er1
10302
grep -v '^ *+' conftest.er1 >conftest.err
10304
cat conftest.err >&5
10305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306
(exit $ac_status); } && {
10307
test -z "$ac_c_werror_flag" ||
10308
test ! -s conftest.err
10309
} && test -s conftest$ac_exeext &&
10310
$as_test_x conftest$ac_exeext; then
10311
ac_cv_lib_svld_dlopen=yes
10313
echo "$as_me: failed program was:" >&5
10314
sed 's/^/| /' conftest.$ac_ext >&5
10316
ac_cv_lib_svld_dlopen=no
10319
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10320
conftest$ac_exeext conftest.$ac_ext
10321
LIBS=$ac_check_lib_save_LIBS
10323
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10324
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10325
if test $ac_cv_lib_svld_dlopen = yes; then
10326
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10328
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10329
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10330
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10331
echo $ECHO_N "(cached) $ECHO_C" >&6
10333
ac_check_lib_save_LIBS=$LIBS
10335
cat >conftest.$ac_ext <<_ACEOF
10338
cat confdefs.h >>conftest.$ac_ext
10339
cat >>conftest.$ac_ext <<_ACEOF
10340
/* end confdefs.h. */
10342
/* Override any GCC internal prototype to avoid an error.
10343
Use char because int might match the return type of a GCC
10344
builtin and then its argument prototype would still apply. */
10352
return dld_link ();
10357
rm -f conftest.$ac_objext conftest$ac_exeext
10358
if { (ac_try="$ac_link"
10359
case "(($ac_try" in
10360
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361
*) ac_try_echo=$ac_try;;
10363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364
(eval "$ac_link") 2>conftest.er1
10366
grep -v '^ *+' conftest.er1 >conftest.err
10368
cat conftest.err >&5
10369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370
(exit $ac_status); } && {
10371
test -z "$ac_c_werror_flag" ||
10372
test ! -s conftest.err
10373
} && test -s conftest$ac_exeext &&
10374
$as_test_x conftest$ac_exeext; then
10375
ac_cv_lib_dld_dld_link=yes
10377
echo "$as_me: failed program was:" >&5
10378
sed 's/^/| /' conftest.$ac_ext >&5
10380
ac_cv_lib_dld_dld_link=no
10383
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384
conftest$ac_exeext conftest.$ac_ext
10385
LIBS=$ac_check_lib_save_LIBS
10387
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10388
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10389
if test $ac_cv_lib_dld_dld_link = yes; then
10390
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10411
if test "x$lt_cv_dlopen" != xno; then
10417
case $lt_cv_dlopen in
10419
save_CPPFLAGS="$CPPFLAGS"
10420
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10422
save_LDFLAGS="$LDFLAGS"
10423
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10426
LIBS="$lt_cv_dlopen_libs $LIBS"
10428
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10429
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10430
if test "${lt_cv_dlopen_self+set}" = set; then
10431
echo $ECHO_N "(cached) $ECHO_C" >&6
10433
if test "$cross_compiling" = yes; then :
10434
lt_cv_dlopen_self=cross
10436
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10437
lt_status=$lt_dlunknown
10438
cat > conftest.$ac_ext <<EOF
10439
#line 10439 "configure"
10440
#include "confdefs.h"
10449
# define LT_DLGLOBAL RTLD_GLOBAL
10452
# define LT_DLGLOBAL DL_GLOBAL
10454
# define LT_DLGLOBAL 0
10458
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10459
find out it does not work in some platform. */
10460
#ifndef LT_DLLAZY_OR_NOW
10462
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10465
# define LT_DLLAZY_OR_NOW DL_LAZY
10468
# define LT_DLLAZY_OR_NOW RTLD_NOW
10471
# define LT_DLLAZY_OR_NOW DL_NOW
10473
# define LT_DLLAZY_OR_NOW 0
10481
extern "C" void exit (int);
10484
void fnord() { int i=42;}
10487
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10488
int status = $lt_dlunknown;
10492
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10493
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10494
/* dlclose (self); */
10502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503
(eval $ac_link) 2>&5
10505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10507
(./conftest; exit; ) >&5 2>/dev/null
10509
case x$lt_status in
10510
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10511
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10512
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10515
# compilation failed
10516
lt_cv_dlopen_self=no
10523
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10524
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10526
if test "x$lt_cv_dlopen_self" = xyes; then
10527
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10528
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10529
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10530
if test "${lt_cv_dlopen_self_static+set}" = set; then
10531
echo $ECHO_N "(cached) $ECHO_C" >&6
10533
if test "$cross_compiling" = yes; then :
10534
lt_cv_dlopen_self_static=cross
10536
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10537
lt_status=$lt_dlunknown
10538
cat > conftest.$ac_ext <<EOF
10539
#line 10539 "configure"
10540
#include "confdefs.h"
10549
# define LT_DLGLOBAL RTLD_GLOBAL
10552
# define LT_DLGLOBAL DL_GLOBAL
10554
# define LT_DLGLOBAL 0
10558
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10559
find out it does not work in some platform. */
10560
#ifndef LT_DLLAZY_OR_NOW
10562
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10565
# define LT_DLLAZY_OR_NOW DL_LAZY
10568
# define LT_DLLAZY_OR_NOW RTLD_NOW
10571
# define LT_DLLAZY_OR_NOW DL_NOW
10573
# define LT_DLLAZY_OR_NOW 0
10581
extern "C" void exit (int);
10584
void fnord() { int i=42;}
10587
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10588
int status = $lt_dlunknown;
10592
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10593
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10594
/* dlclose (self); */
10602
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603
(eval $ac_link) 2>&5
10605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10607
(./conftest; exit; ) >&5 2>/dev/null
10609
case x$lt_status in
10610
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10611
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10612
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10615
# compilation failed
10616
lt_cv_dlopen_self_static=no
10623
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10624
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10627
CPPFLAGS="$save_CPPFLAGS"
10628
LDFLAGS="$save_LDFLAGS"
10633
case $lt_cv_dlopen_self in
10634
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10635
*) enable_dlopen_self=unknown ;;
10638
case $lt_cv_dlopen_self_static in
10639
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10640
*) enable_dlopen_self_static=unknown ;;
10645
# Report which library types will actually be built
10646
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10647
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10648
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10649
echo "${ECHO_T}$can_build_shared" >&6; }
10651
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10652
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10653
test "$can_build_shared" = "no" && enable_shared=no
10655
# On AIX, shared libraries and static libraries use the same namespace, and
10656
# are all built from PIC.
10659
test "$enable_shared" = yes && enable_static=no
10660
if test -n "$RANLIB"; then
10661
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10662
postinstall_cmds='$RANLIB $lib'
10667
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10668
test "$enable_shared" = yes && enable_static=no
10672
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10673
echo "${ECHO_T}$enable_shared" >&6; }
10675
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10676
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10677
# Make sure either enable_shared or enable_static is yes.
10678
test "$enable_shared" = yes || enable_static=yes
10679
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10680
echo "${ECHO_T}$enable_static" >&6; }
10682
# The else clause should only fire when bootstrapping the
10683
# libtool distribution, otherwise you forgot to ship ltmain.sh
10684
# with your package, and you will get complaints that there are
10685
# no rules to generate ltmain.sh.
10686
if test -f "$ltmain"; then
10687
# See if we are running on zsh, and set the options which allow our commands through
10688
# without removal of \ escapes.
10689
if test -n "${ZSH_VERSION+set}" ; then
10690
setopt NO_GLOB_SUBST
10692
# Now quote all the things that may contain metacharacters while being
10693
# careful not to overquote the AC_SUBSTed values. We take copies of the
10694
# variables and quote the copies for generation of the libtool script.
10695
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10697
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10698
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10699
deplibs_check_method reload_flag reload_cmds need_locks \
10700
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10701
lt_cv_sys_global_symbol_to_c_name_address \
10702
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10703
old_postinstall_cmds old_postuninstall_cmds \
10707
lt_prog_compiler_wl \
10708
lt_prog_compiler_pic \
10709
lt_prog_compiler_static \
10710
lt_prog_compiler_no_builtin_flag \
10711
export_dynamic_flag_spec \
10712
thread_safe_flag_spec \
10713
whole_archive_flag_spec \
10714
enable_shared_with_static_runtimes \
10716
old_archive_from_new_cmds \
10721
compiler_lib_search_path \
10723
archive_expsym_cmds \
10725
postuninstall_cmds \
10726
old_archive_from_expsyms_cmds \
10727
allow_undefined_flag \
10728
no_undefined_flag \
10729
export_symbols_cmds \
10730
hardcode_libdir_flag_spec \
10731
hardcode_libdir_flag_spec_ld \
10732
hardcode_libdir_separator \
10733
hardcode_automatic \
10735
module_expsym_cmds \
10736
lt_cv_prog_compiler_c_o \
10738
include_expsyms; do
10741
old_archive_cmds | \
10742
old_archive_from_new_cmds | \
10744
archive_expsym_cmds | \
10746
module_expsym_cmds | \
10747
old_archive_from_expsyms_cmds | \
10748
export_symbols_cmds | \
10749
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10750
postinstall_cmds | postuninstall_cmds | \
10751
old_postinstall_cmds | old_postuninstall_cmds | \
10752
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10753
# Double-quote double-evaled strings.
10754
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10757
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10763
*'\$0 --fallback-echo"')
10764
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10768
cfgfile="${ofile}T"
10769
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10771
{ echo "$as_me:$LINENO: creating $ofile" >&5
10772
echo "$as_me: creating $ofile" >&6;}
10774
cat <<__EOF__ >> "$cfgfile"
10777
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10778
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10779
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10781
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10782
# Free Software Foundation, Inc.
10784
# This file is part of GNU Libtool:
10785
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10787
# This program is free software; you can redistribute it and/or modify
10788
# it under the terms of the GNU General Public License as published by
10789
# the Free Software Foundation; either version 2 of the License, or
10790
# (at your option) any later version.
10792
# This program is distributed in the hope that it will be useful, but
10793
# WITHOUT ANY WARRANTY; without even the implied warranty of
10794
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10795
# General Public License for more details.
10797
# You should have received a copy of the GNU General Public License
10798
# along with this program; if not, write to the Free Software
10799
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10801
# As a special exception to the GNU General Public License, if you
10802
# distribute this file as part of a program that contains a
10803
# configuration script generated by Autoconf, you may include it under
10804
# the same distribution terms that you use for the rest of that program.
10806
# A sed program that does not truncate output.
10809
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10810
Xsed="$SED -e 1s/^X//"
10812
# The HP-UX ksh and POSIX shell print the target directory to stdout
10813
# if CDPATH is set.
10814
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10816
# The names of the tagged configurations supported by this script.
10819
# ### BEGIN LIBTOOL CONFIG
10821
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10823
# Shell to use when invoking shell scripts.
10826
# Whether or not to build shared libraries.
10827
build_libtool_libs=$enable_shared
10829
# Whether or not to build static libraries.
10830
build_old_libs=$enable_static
10832
# Whether or not to add -lc for building shared libraries.
10833
build_libtool_need_lc=$archive_cmds_need_lc
10835
# Whether or not to disallow shared libs when runtime libs are static
10836
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10838
# Whether or not to optimize for fast installation.
10839
fast_install=$enable_fast_install
10842
host_alias=$host_alias
10846
# The build system.
10847
build_alias=$build_alias
10851
# An echo program that does not interpret backslashes.
10856
AR_FLAGS=$lt_AR_FLAGS
10861
# LTCC compiler flags.
10862
LTCFLAGS=$lt_LTCFLAGS
10864
# A language-specific compiler.
10867
# Is the compiler the GNU C compiler?
10873
# The linker used to build libraries.
10876
# Whether we need hard or soft links.
10879
# A BSD-compatible nm program.
10882
# A symbol stripping program
10885
# Used to examine libraries when file_magic_cmd begins "file"
10886
MAGIC_CMD=$MAGIC_CMD
10888
# Used on cygwin: DLL creation program.
10891
# Used on cygwin: object dumper.
10894
# Used on cygwin: assembler.
10897
# The name of the directory that contains temporary libtool files.
10900
# How to create reloadable object files.
10901
reload_flag=$lt_reload_flag
10902
reload_cmds=$lt_reload_cmds
10904
# How to pass a linker flag through the compiler.
10905
wl=$lt_lt_prog_compiler_wl
10907
# Object file suffix (normally "o").
10908
objext="$ac_objext"
10910
# Old archive suffix (normally "a").
10913
# Shared library suffix (normally ".so").
10914
shrext_cmds='$shrext_cmds'
10916
# Executable file suffix (normally "").
10919
# Additional compiler flags for building library objects.
10920
pic_flag=$lt_lt_prog_compiler_pic
10923
# What is the maximum length of a command?
10924
max_cmd_len=$lt_cv_sys_max_cmd_len
10926
# Does compiler simultaneously support -c and -o options?
10927
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10929
# Must we lock files when doing compilation?
10930
need_locks=$lt_need_locks
10932
# Do we need the lib prefix for modules?
10933
need_lib_prefix=$need_lib_prefix
10935
# Do we need a version for libraries?
10936
need_version=$need_version
10938
# Whether dlopen is supported.
10939
dlopen_support=$enable_dlopen
10941
# Whether dlopen of programs is supported.
10942
dlopen_self=$enable_dlopen_self
10944
# Whether dlopen of statically linked programs is supported.
10945
dlopen_self_static=$enable_dlopen_self_static
10947
# Compiler flag to prevent dynamic linking.
10948
link_static_flag=$lt_lt_prog_compiler_static
10950
# Compiler flag to turn off builtin functions.
10951
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10953
# Compiler flag to allow reflexive dlopens.
10954
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10956
# Compiler flag to generate shared objects directly from archives.
10957
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10959
# Compiler flag to generate thread-safe objects.
10960
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10962
# Library versioning type.
10963
version_type=$version_type
10965
# Format of library name prefix.
10966
libname_spec=$lt_libname_spec
10968
# List of archive names. First name is the real one, the rest are links.
10969
# The last name is the one that the linker finds with -lNAME.
10970
library_names_spec=$lt_library_names_spec
10972
# The coded name of the library, if different from the real name.
10973
soname_spec=$lt_soname_spec
10975
# Commands used to build and install an old-style archive.
10977
old_archive_cmds=$lt_old_archive_cmds
10978
old_postinstall_cmds=$lt_old_postinstall_cmds
10979
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10981
# Create an old-style archive from a shared archive.
10982
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10984
# Create a temporary old-style archive to link instead of a shared archive.
10985
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10987
# Commands used to build and install a shared archive.
10988
archive_cmds=$lt_archive_cmds
10989
archive_expsym_cmds=$lt_archive_expsym_cmds
10990
postinstall_cmds=$lt_postinstall_cmds
10991
postuninstall_cmds=$lt_postuninstall_cmds
10993
# Commands used to build a loadable module (assumed same as above if empty)
10994
module_cmds=$lt_module_cmds
10995
module_expsym_cmds=$lt_module_expsym_cmds
10997
# Commands to strip libraries.
10998
old_striplib=$lt_old_striplib
10999
striplib=$lt_striplib
11001
# Dependencies to place before the objects being linked to create a
11003
predep_objects=$lt_predep_objects
11005
# Dependencies to place after the objects being linked to create a
11007
postdep_objects=$lt_postdep_objects
11009
# Dependencies to place before the objects being linked to create a
11011
predeps=$lt_predeps
11013
# Dependencies to place after the objects being linked to create a
11015
postdeps=$lt_postdeps
11017
# The library search path used internally by the compiler when linking
11018
# a shared library.
11019
compiler_lib_search_path=$lt_compiler_lib_search_path
11021
# Method to check whether dependent libraries are shared objects.
11022
deplibs_check_method=$lt_deplibs_check_method
11024
# Command to use when deplibs_check_method == file_magic.
11025
file_magic_cmd=$lt_file_magic_cmd
11027
# Flag that allows shared libraries with undefined symbols to be built.
11028
allow_undefined_flag=$lt_allow_undefined_flag
11030
# Flag that forces no undefined symbols.
11031
no_undefined_flag=$lt_no_undefined_flag
11033
# Commands used to finish a libtool library installation in a directory.
11034
finish_cmds=$lt_finish_cmds
11036
# Same as above, but a single script fragment to be evaled but not shown.
11037
finish_eval=$lt_finish_eval
11039
# Take the output of nm and produce a listing of raw symbols and C names.
11040
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11042
# Transform the output of nm in a proper C declaration
11043
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11045
# Transform the output of nm in a C name address pair
11046
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11048
# This is the shared library runtime path variable.
11049
runpath_var=$runpath_var
11051
# This is the shared library path variable.
11052
shlibpath_var=$shlibpath_var
11054
# Is shlibpath searched before the hard-coded library search path?
11055
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11057
# How to hardcode a shared library path into an executable.
11058
hardcode_action=$hardcode_action
11060
# Whether we should hardcode library paths into libraries.
11061
hardcode_into_libs=$hardcode_into_libs
11063
# Flag to hardcode \$libdir into a binary during linking.
11064
# This must work even if \$libdir does not exist.
11065
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11067
# If ld is used when linking, flag to hardcode \$libdir into
11068
# a binary during linking. This must work even if \$libdir does
11070
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11072
# Whether we need a single -rpath flag with a separated argument.
11073
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11075
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11076
# resulting binary.
11077
hardcode_direct=$hardcode_direct
11079
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11080
# resulting binary.
11081
hardcode_minus_L=$hardcode_minus_L
11083
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11084
# the resulting binary.
11085
hardcode_shlibpath_var=$hardcode_shlibpath_var
11087
# Set to yes if building a shared library automatically hardcodes DIR into the library
11088
# and all subsequent libraries and executables linked against it.
11089
hardcode_automatic=$hardcode_automatic
11091
# Variables whose values should be saved in libtool wrapper scripts and
11092
# restored at relink time.
11093
variables_saved_for_relink="$variables_saved_for_relink"
11095
# Whether libtool must link a program against all its dependency libraries.
11096
link_all_deplibs=$link_all_deplibs
11098
# Compile-time system search path for libraries
11099
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11101
# Run-time system search path for libraries
11102
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11104
# Fix the shell variable \$srcfile for the compiler.
11105
fix_srcfile_path="$fix_srcfile_path"
11107
# Set to yes if exported symbols are required.
11108
always_export_symbols=$always_export_symbols
11110
# The commands to list exported symbols.
11111
export_symbols_cmds=$lt_export_symbols_cmds
11113
# The commands to extract the exported symbol list from a shared archive.
11114
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11116
# Symbols that should not be listed in the preloaded symbols.
11117
exclude_expsyms=$lt_exclude_expsyms
11119
# Symbols that must always be exported.
11120
include_expsyms=$lt_include_expsyms
11122
# ### END LIBTOOL CONFIG
11129
cat <<\EOF >> "$cfgfile"
11131
# AIX sometimes has problems with the GCC collect2 program. For some
11132
# reason, if we set the COLLECT_NAMES environment variable, the problems
11133
# vanish in a puff of smoke.
11134
if test "X${COLLECT_NAMES+set}" != Xset; then
11136
export COLLECT_NAMES
11142
# We use sed instead of cat because bash on DJGPP gets confused if
11143
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11144
# text mode, it properly converts lines to CR/LF. This bash problem
11145
# is reportedly fixed, but why not run on old versions too?
11146
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11148
mv -f "$cfgfile" "$ofile" || \
11149
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11153
# If there is no Makefile yet, we rely on a make rule to execute
11154
# `config.status --recheck' to rerun these tests and create the
11155
# libtool script then.
11156
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11157
if test -f "$ltmain_in"; then
11158
test -f Makefile && make "$ltmain"
11164
ac_cpp='$CXXCPP $CPPFLAGS'
11165
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11172
# Check whether --with-tags was given.
11173
if test "${with_tags+set}" = set; then
11174
withval=$with_tags; tagnames="$withval"
11178
if test -f "$ltmain" && test -n "$tagnames"; then
11179
if test ! -f "${ofile}"; then
11180
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11181
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11184
if test -z "$LTCC"; then
11185
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11186
if test -z "$LTCC"; then
11187
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11188
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11190
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11191
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11194
if test -z "$LTCFLAGS"; then
11195
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11198
# Extract list of available tagged configurations in $ofile.
11199
# Note that this assumes the entire list is on one line.
11200
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11202
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11203
for tagname in $tagnames; do
11205
# Check whether tagname contains only valid characters
11206
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11208
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11209
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11210
{ (exit 1); exit 1; }; }
11214
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11216
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11217
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11218
{ (exit 1); exit 1; }; }
11221
# Update the list of available tags.
11222
if test -n "$tagname"; then
11223
echo appending configuration tag \"$tagname\" to $ofile
11227
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11228
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11229
(test "X$CXX" != "Xg++"))) ; then
11231
ac_cpp='$CXXCPP $CPPFLAGS'
11232
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11233
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11234
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11239
archive_cmds_need_lc_CXX=no
11240
allow_undefined_flag_CXX=
11241
always_export_symbols_CXX=no
11242
archive_expsym_cmds_CXX=
11243
export_dynamic_flag_spec_CXX=
11244
hardcode_direct_CXX=no
11245
hardcode_libdir_flag_spec_CXX=
11246
hardcode_libdir_flag_spec_ld_CXX=
11247
hardcode_libdir_separator_CXX=
11248
hardcode_minus_L_CXX=no
11249
hardcode_shlibpath_var_CXX=unsupported
11250
hardcode_automatic_CXX=no
11252
module_expsym_cmds_CXX=
11253
link_all_deplibs_CXX=unknown
11254
old_archive_cmds_CXX=$old_archive_cmds
11255
no_undefined_flag_CXX=
11256
whole_archive_flag_spec_CXX=
11257
enable_shared_with_static_runtimes_CXX=no
11259
# Dependencies to place before and after the object being linked:
11260
predep_objects_CXX=
11261
postdep_objects_CXX=
11264
compiler_lib_search_path_CXX=
11266
# Source file extension for C++ test sources.
11269
# Object file extension for compiled C++ test sources.
11273
# Code to be used in simple compile tests
11274
lt_simple_compile_test_code="int some_variable = 0;\n"
11276
# Code to be used in simple link tests
11277
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11279
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11281
# If no C compiler was specified, use CC.
11284
# If no C compiler flags were specified, use CFLAGS.
11285
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11287
# Allow CC to be a program name with arguments.
11291
# save warnings/boilerplate of simple test code
11292
ac_outfile=conftest.$ac_objext
11293
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11294
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11295
_lt_compiler_boilerplate=`cat conftest.err`
11298
ac_outfile=conftest.$ac_objext
11299
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11300
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11301
_lt_linker_boilerplate=`cat conftest.err`
11305
# Allow CC to be a program name with arguments.
11310
lt_save_with_gnu_ld=$with_gnu_ld
11311
lt_save_path_LD=$lt_cv_path_LD
11312
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11313
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11315
$as_unset lt_cv_prog_gnu_ld
11317
if test -n "${lt_cv_path_LDCXX+set}"; then
11318
lt_cv_path_LD=$lt_cv_path_LDCXX
11320
$as_unset lt_cv_path_LD
11322
test -z "${LDCXX+set}" || LD=$LDCXX
11326
for cc_temp in $compiler""; do
11328
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11329
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11334
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11337
# We don't want -fno-exception wen compiling C++ code, so set the
11338
# no_builtin_flag separately
11339
if test "$GXX" = yes; then
11340
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11342
lt_prog_compiler_no_builtin_flag_CXX=
11345
if test "$GXX" = yes; then
11346
# Set up default GNU C++ configuration
11349
# Check whether --with-gnu-ld was given.
11350
if test "${with_gnu_ld+set}" = set; then
11351
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11357
if test "$GCC" = yes; then
11358
# Check if gcc -print-prog-name=ld gives a path.
11359
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11360
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11363
# gcc leaves a trailing carriage return which upsets mingw
11364
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11366
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11369
# Accept absolute paths.
11371
re_direlt='/[^/][^/]*/\.\./'
11372
# Canonicalize the pathname of ld
11373
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11374
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11375
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11377
test -z "$LD" && LD="$ac_prog"
11380
# If it fails, then pretend we aren't using GCC.
11384
# If it is relative, then search for the first ld in PATH.
11385
with_gnu_ld=unknown
11388
elif test "$with_gnu_ld" = yes; then
11389
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11390
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11392
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11393
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11395
if test "${lt_cv_path_LD+set}" = set; then
11396
echo $ECHO_N "(cached) $ECHO_C" >&6
11398
if test -z "$LD"; then
11399
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11400
for ac_dir in $PATH; do
11402
test -z "$ac_dir" && ac_dir=.
11403
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11404
lt_cv_path_LD="$ac_dir/$ac_prog"
11405
# Check to see if the program is GNU ld. I'd rather use --version,
11406
# but apparently some variants of GNU ld only accept -v.
11407
# Break only if it was the GNU/non-GNU ld that we prefer.
11408
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11409
*GNU* | *'with BFD'*)
11410
test "$with_gnu_ld" != no && break
11413
test "$with_gnu_ld" != yes && break
11420
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11424
LD="$lt_cv_path_LD"
11425
if test -n "$LD"; then
11426
{ echo "$as_me:$LINENO: result: $LD" >&5
11427
echo "${ECHO_T}$LD" >&6; }
11429
{ echo "$as_me:$LINENO: result: no" >&5
11430
echo "${ECHO_T}no" >&6; }
11432
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11433
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11434
{ (exit 1); exit 1; }; }
11435
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11436
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11437
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11438
echo $ECHO_N "(cached) $ECHO_C" >&6
11440
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11441
case `$LD -v 2>&1 </dev/null` in
11442
*GNU* | *'with BFD'*)
11443
lt_cv_prog_gnu_ld=yes
11446
lt_cv_prog_gnu_ld=no
11450
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11451
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11452
with_gnu_ld=$lt_cv_prog_gnu_ld
11456
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11457
# archiving commands below assume that GNU ld is being used.
11458
if test "$with_gnu_ld" = yes; then
11459
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11460
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11462
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11463
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11465
# If archive_cmds runs LD, not CC, wlarc should be empty
11466
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11467
# investigate it a little bit more. (MM)
11470
# ancient GNU ld didn't support --whole-archive et. al.
11471
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11472
grep 'no-whole-archive' > /dev/null; then
11473
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11475
whole_archive_flag_spec_CXX=
11481
# A generic and very simple default shared library creation
11482
# command for GNU C++ for the case where it uses the native
11483
# linker, instead of GNU ld. If possible, this setting should
11484
# overridden to take advantage of the native linker features on
11485
# the platform it is being used on.
11486
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11489
# Commands to make compiler produce verbose output that lists
11490
# what "hidden" libraries, object files and flags are used when
11491
# linking a shared library.
11492
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11500
# PORTME: fill in a description of your system's C++ link characteristics
11501
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11502
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11506
# FIXME: insert proper C++ library support
11510
if test "$host_cpu" = ia64; then
11511
# On IA64, the linker does run time linking by default, so we don't
11512
# have to do anything special.
11513
aix_use_runtimelinking=no
11514
exp_sym_flag='-Bexport'
11517
aix_use_runtimelinking=no
11519
# Test if we are trying to use run time linking or normal
11520
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11521
# need to do runtime linking.
11522
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11523
for ld_flag in $LDFLAGS; do
11526
aix_use_runtimelinking=yes
11534
exp_sym_flag='-bexport'
11535
no_entry_flag='-bnoentry'
11538
# When large executables or shared objects are built, AIX ld can
11539
# have problems creating the table of contents. If linking a library
11540
# or program results in "error TOC overflow" add -mminimal-toc to
11541
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11542
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11544
archive_cmds_CXX=''
11545
hardcode_direct_CXX=yes
11546
hardcode_libdir_separator_CXX=':'
11547
link_all_deplibs_CXX=yes
11549
if test "$GXX" = yes; then
11550
case $host_os in aix4.[012]|aix4.[012].*)
11551
# We only want to do this on AIX 4.2 and lower, the check
11552
# below for broken collect2 doesn't work under 4.3+
11553
collect2name=`${CC} -print-prog-name=collect2`
11554
if test -f "$collect2name" && \
11555
strings "$collect2name" | grep resolve_lib_name >/dev/null
11557
# We have reworked collect2
11558
hardcode_direct_CXX=yes
11560
# We have old collect2
11561
hardcode_direct_CXX=unsupported
11562
# It fails to find uninstalled libraries when the uninstalled
11563
# path is not listed in the libpath. Setting hardcode_minus_L
11564
# to unsupported forces relinking
11565
hardcode_minus_L_CXX=yes
11566
hardcode_libdir_flag_spec_CXX='-L$libdir'
11567
hardcode_libdir_separator_CXX=
11571
shared_flag='-shared'
11572
if test "$aix_use_runtimelinking" = yes; then
11573
shared_flag="$shared_flag "'${wl}-G'
11577
if test "$host_cpu" = ia64; then
11578
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11579
# chokes on -Wl,-G. The following line is correct:
11582
if test "$aix_use_runtimelinking" = yes; then
11583
shared_flag='${wl}-G'
11585
shared_flag='${wl}-bM:SRE'
11590
# It seems that -bexpall does not export symbols beginning with
11591
# underscore (_), so it is better to generate a list of symbols to export.
11592
always_export_symbols_CXX=yes
11593
if test "$aix_use_runtimelinking" = yes; then
11594
# Warning - without using the other runtime loading flags (-brtl),
11595
# -berok will link without error, but may produce a broken library.
11596
allow_undefined_flag_CXX='-berok'
11597
# Determine the default libpath from the value encoded in an empty executable.
11598
cat >conftest.$ac_ext <<_ACEOF
11601
cat confdefs.h >>conftest.$ac_ext
11602
cat >>conftest.$ac_ext <<_ACEOF
11603
/* end confdefs.h. */
11613
rm -f conftest.$ac_objext conftest$ac_exeext
11614
if { (ac_try="$ac_link"
11615
case "(($ac_try" in
11616
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617
*) ac_try_echo=$ac_try;;
11619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620
(eval "$ac_link") 2>conftest.er1
11622
grep -v '^ *+' conftest.er1 >conftest.err
11624
cat conftest.err >&5
11625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626
(exit $ac_status); } && {
11627
test -z "$ac_cxx_werror_flag" ||
11628
test ! -s conftest.err
11629
} && test -s conftest$ac_exeext &&
11630
$as_test_x conftest$ac_exeext; then
11632
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11634
# Check for a 64-bit object if we didn't find anything.
11635
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11638
echo "$as_me: failed program was:" >&5
11639
sed 's/^/| /' conftest.$ac_ext >&5
11644
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11645
conftest$ac_exeext conftest.$ac_ext
11646
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11648
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11650
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11652
if test "$host_cpu" = ia64; then
11653
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11654
allow_undefined_flag_CXX="-z nodefs"
11655
archive_expsym_cmds_CXX="\$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"
11657
# Determine the default libpath from the value encoded in an empty executable.
11658
cat >conftest.$ac_ext <<_ACEOF
11661
cat confdefs.h >>conftest.$ac_ext
11662
cat >>conftest.$ac_ext <<_ACEOF
11663
/* end confdefs.h. */
11673
rm -f conftest.$ac_objext conftest$ac_exeext
11674
if { (ac_try="$ac_link"
11675
case "(($ac_try" in
11676
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677
*) ac_try_echo=$ac_try;;
11679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680
(eval "$ac_link") 2>conftest.er1
11682
grep -v '^ *+' conftest.er1 >conftest.err
11684
cat conftest.err >&5
11685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686
(exit $ac_status); } && {
11687
test -z "$ac_cxx_werror_flag" ||
11688
test ! -s conftest.err
11689
} && test -s conftest$ac_exeext &&
11690
$as_test_x conftest$ac_exeext; then
11692
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11694
# Check for a 64-bit object if we didn't find anything.
11695
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11698
echo "$as_me: failed program was:" >&5
11699
sed 's/^/| /' conftest.$ac_ext >&5
11704
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11705
conftest$ac_exeext conftest.$ac_ext
11706
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11708
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11709
# Warning - without using the other run time loading flags,
11710
# -berok will link without error, but may produce a broken library.
11711
no_undefined_flag_CXX=' ${wl}-bernotok'
11712
allow_undefined_flag_CXX=' ${wl}-berok'
11713
# Exported symbols can be pulled into shared objects from archives
11714
whole_archive_flag_spec_CXX='$convenience'
11715
archive_cmds_need_lc_CXX=yes
11716
# This is similar to how AIX traditionally builds its shared libraries.
11717
archive_expsym_cmds_CXX="\$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'
11723
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11724
allow_undefined_flag_CXX=unsupported
11725
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11726
# support --undefined. This deserves some investigation. FIXME
11727
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11734
case $cc_basename in
11736
# FIXME: insert proper C++ library support
11742
cygwin* | mingw* | pw32*)
11743
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11744
# as there is no search path for DLLs.
11745
hardcode_libdir_flag_spec_CXX='-L$libdir'
11746
allow_undefined_flag_CXX=unsupported
11747
always_export_symbols_CXX=no
11748
enable_shared_with_static_runtimes_CXX=yes
11750
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11751
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11752
# If the export-symbols file already is a .def file (1st line
11753
# is EXPORTS), use it as is; otherwise, prepend...
11754
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11755
cp $export_symbols $output_objdir/$soname.def;
11757
echo EXPORTS > $output_objdir/$soname.def;
11758
cat $export_symbols >> $output_objdir/$soname.def;
11760
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11765
darwin* | rhapsody*)
11767
rhapsody* | darwin1.[012])
11768
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11771
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11772
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11774
case ${MACOSX_DEPLOYMENT_TARGET} in
11776
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11779
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11785
archive_cmds_need_lc_CXX=no
11786
hardcode_direct_CXX=no
11787
hardcode_automatic_CXX=yes
11788
hardcode_shlibpath_var_CXX=unsupported
11789
whole_archive_flag_spec_CXX=''
11790
link_all_deplibs_CXX=yes
11792
if test "$GXX" = yes ; then
11793
lt_int_apple_cc_single_mod=no
11794
output_verbose_link_cmd='echo'
11795
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11796
lt_int_apple_cc_single_mod=yes
11798
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11799
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11801
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11803
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11804
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11805
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11806
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11808
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11810
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11812
case $cc_basename in
11814
output_verbose_link_cmd='echo'
11815
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11816
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11817
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11818
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11819
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11829
case $cc_basename in
11831
# FIXME: insert proper C++ library support
11835
# Green Hills C++ Compiler
11836
# FIXME: insert proper C++ library support
11840
# FIXME: insert proper C++ library support
11846
# C++ shared libraries reported to be fairly broken before switch to ELF
11850
archive_cmds_need_lc_CXX=no
11852
freebsd* | kfreebsd*-gnu | dragonfly*)
11853
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11860
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11861
hardcode_libdir_separator_CXX=:
11862
export_dynamic_flag_spec_CXX='${wl}-E'
11863
hardcode_direct_CXX=yes
11864
hardcode_minus_L_CXX=yes # Not in the search PATH,
11865
# but as the default
11866
# location of the library.
11868
case $cc_basename in
11870
# FIXME: insert proper C++ library support
11874
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11875
# Commands to make compiler produce verbose output that lists
11876
# what "hidden" libraries, object files and flags are used when
11877
# linking a shared library.
11879
# There doesn't appear to be a way to prevent this compiler from
11880
# explicitly linking system object files so we need to strip them
11881
# from the output so that they don't get included in the library
11883
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11886
if test "$GXX" = yes; then
11887
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11889
# FIXME: insert proper C++ library support
11896
if test $with_gnu_ld = no; then
11897
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11898
hardcode_libdir_separator_CXX=:
11902
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11905
export_dynamic_flag_spec_CXX='${wl}-E'
11911
hardcode_direct_CXX=no
11912
hardcode_shlibpath_var_CXX=no
11915
hardcode_direct_CXX=yes
11916
hardcode_minus_L_CXX=yes # Not in the search PATH,
11917
# but as the default
11918
# location of the library.
11922
case $cc_basename in
11924
# FIXME: insert proper C++ library support
11930
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11933
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11936
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11939
# Commands to make compiler produce verbose output that lists
11940
# what "hidden" libraries, object files and flags are used when
11941
# linking a shared library.
11943
# There doesn't appear to be a way to prevent this compiler from
11944
# explicitly linking system object files so we need to strip them
11945
# from the output so that they don't get included in the library
11947
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11950
if test "$GXX" = yes; then
11951
if test $with_gnu_ld = no; then
11954
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11957
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11960
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11965
# FIXME: insert proper C++ library support
11972
hardcode_direct_CXX=no
11973
hardcode_shlibpath_var_CXX=no
11974
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11975
export_dynamic_flag_spec_CXX='${wl}-E'
11976
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11977
# Instead, shared libraries are loaded at an image base (0x10000000 by
11978
# default) and relocated if they conflict, which is a slow very memory
11979
# consuming and fragmenting process. To avoid this, we pick a random,
11980
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11981
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11982
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11983
archive_expsym_cmds_CXX='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'
11986
case $cc_basename in
11989
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11991
# Archives containing C++ object files must be created using
11992
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11993
# necessary to make sure instantiated templates are included
11995
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11998
if test "$GXX" = yes; then
11999
if test "$with_gnu_ld" = no; then
12000
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12002
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12005
link_all_deplibs_CXX=yes
12008
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009
hardcode_libdir_separator_CXX=:
12012
case $cc_basename in
12014
# Kuck and Associates, Inc. (KAI) C++ Compiler
12016
# KCC will only create a shared library if the output file
12017
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12018
# to its proper name (with version) after linking.
12019
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12020
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12021
# Commands to make compiler produce verbose output that lists
12022
# what "hidden" libraries, object files and flags are used when
12023
# linking a shared library.
12025
# There doesn't appear to be a way to prevent this compiler from
12026
# explicitly linking system object files so we need to strip them
12027
# from the output so that they don't get included in the library
12029
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12031
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12032
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12034
# Archives containing C++ object files must be created using
12035
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12036
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12041
# version 8.0 and above of icpc choke on multiply defined symbols
12042
# if we add $predep_objects and $postdep_objects, however 7.1 and
12043
# earlier do not add the objects themselves.
12044
case `$CC -V 2>&1` in
12046
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12049
*) # Version 8.0 or newer
12052
ia64*) tmp_idyn=' -i_dynamic';;
12054
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12058
archive_cmds_need_lc_CXX=no
12059
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12060
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12061
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12064
# Portland Group C++ compiler
12065
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12066
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12068
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12069
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12070
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12074
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12077
runpath_var=LD_RUN_PATH
12078
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12079
hardcode_libdir_separator_CXX=:
12081
# Commands to make compiler produce verbose output that lists
12082
# what "hidden" libraries, object files and flags are used when
12083
# linking a shared library.
12085
# There doesn't appear to be a way to prevent this compiler from
12086
# explicitly linking system object files so we need to strip them
12087
# from the output so that they don't get included in the library
12089
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12094
# FIXME: insert proper C++ library support
12098
# FIXME: insert proper C++ library support
12102
case $cc_basename in
12104
# FIXME: insert proper C++ library support
12108
# FIXME: insert proper C++ library support
12113
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12114
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12115
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12117
hardcode_libdir_flag_spec_CXX='-R$libdir'
12118
hardcode_direct_CXX=yes
12119
hardcode_shlibpath_var_CXX=no
12121
# Workaround some broken pre-1.5 toolchains
12122
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12125
# C++ shared libraries are fairly broken
12129
hardcode_direct_CXX=yes
12130
hardcode_shlibpath_var_CXX=no
12131
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12132
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12133
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12134
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12135
export_dynamic_flag_spec_CXX='${wl}-E'
12136
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12138
output_verbose_link_cmd='echo'
12141
case $cc_basename in
12143
# Kuck and Associates, Inc. (KAI) C++ Compiler
12145
# KCC will only create a shared library if the output file
12146
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12147
# to its proper name (with version) after linking.
12148
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12150
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12151
hardcode_libdir_separator_CXX=:
12153
# Archives containing C++ object files must be created using
12154
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12155
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12159
# Rational C++ 2.4.1
12160
# FIXME: insert proper C++ library support
12164
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12165
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12167
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12168
hardcode_libdir_separator_CXX=:
12170
# Commands to make compiler produce verbose output that lists
12171
# what "hidden" libraries, object files and flags are used when
12172
# linking a shared library.
12174
# There doesn't appear to be a way to prevent this compiler from
12175
# explicitly linking system object files so we need to strip them
12176
# from the output so that they don't get included in the library
12178
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12181
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12182
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12183
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12185
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12186
hardcode_libdir_separator_CXX=:
12188
# Commands to make compiler produce verbose output that lists
12189
# what "hidden" libraries, object files and flags are used when
12190
# linking a shared library.
12191
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12194
# FIXME: insert proper C++ library support
12201
case $cc_basename in
12203
# Kuck and Associates, Inc. (KAI) C++ Compiler
12205
# KCC will only create a shared library if the output file
12206
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12207
# to its proper name (with version) after linking.
12208
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12210
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12211
hardcode_libdir_separator_CXX=:
12213
# Archives containing C++ object files must be created using
12214
# the KAI C++ compiler.
12215
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12218
# Rational C++ 2.4.1
12219
# FIXME: insert proper C++ library support
12223
allow_undefined_flag_CXX=' -expect_unresolved \*'
12224
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12225
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12226
echo "-hidden">> $lib.exp~
12227
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12230
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12231
hardcode_libdir_separator_CXX=:
12233
# Commands to make compiler produce verbose output that lists
12234
# what "hidden" libraries, object files and flags are used when
12235
# linking a shared library.
12237
# There doesn't appear to be a way to prevent this compiler from
12238
# explicitly linking system object files so we need to strip them
12239
# from the output so that they don't get included in the library
12241
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12244
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12245
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12246
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12248
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12249
hardcode_libdir_separator_CXX=:
12251
# Commands to make compiler produce verbose output that lists
12252
# what "hidden" libraries, object files and flags are used when
12253
# linking a shared library.
12254
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12257
# FIXME: insert proper C++ library support
12264
# FIXME: insert proper C++ library support
12268
case $cc_basename in
12271
# FIXME: insert proper C++ library support
12276
# FIXME: insert proper C++ library support
12280
# FIXME: insert proper C++ library support
12286
case $cc_basename in
12288
# Sun C++ 4.2, 5.x and Centerline C++
12289
archive_cmds_need_lc_CXX=yes
12290
no_undefined_flag_CXX=' -zdefs'
12291
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12292
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12293
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12295
hardcode_libdir_flag_spec_CXX='-R$libdir'
12296
hardcode_shlibpath_var_CXX=no
12298
solaris2.[0-5] | solaris2.[0-5].*) ;;
12300
# The C++ compiler is used as linker so we must use $wl
12301
# flag to pass the commands to the underlying system
12302
# linker. We must also pass each convience library through
12303
# to the system linker between allextract/defaultextract.
12304
# The C++ compiler will combine linker options so we
12305
# cannot just pass the convience library names through
12307
# Supported since Solaris 2.6 (maybe 2.5.1?)
12308
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12311
link_all_deplibs_CXX=yes
12313
output_verbose_link_cmd='echo'
12315
# Archives containing C++ object files must be created using
12316
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12317
# necessary to make sure instantiated templates are included
12319
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12322
# Green Hills C++ Compiler
12323
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12325
# The C++ compiler must be used to create the archive.
12326
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12329
# GNU C++ compiler with Solaris linker
12330
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12331
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12332
if $CC --version | grep -v '^2\.7' > /dev/null; then
12333
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12334
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12335
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12337
# Commands to make compiler produce verbose output that lists
12338
# what "hidden" libraries, object files and flags are used when
12339
# linking a shared library.
12340
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12342
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12344
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12345
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12346
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12348
# Commands to make compiler produce verbose output that lists
12349
# what "hidden" libraries, object files and flags are used when
12350
# linking a shared library.
12351
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12354
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12359
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12360
no_undefined_flag_CXX='${wl}-z,text'
12361
archive_cmds_need_lc_CXX=no
12362
hardcode_shlibpath_var_CXX=no
12363
runpath_var='LD_RUN_PATH'
12365
case $cc_basename in
12367
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12368
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12371
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12372
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12376
sysv5* | sco3.2v5* | sco5v6*)
12377
# Note: We can NOT use -z defs as we might desire, because we do not
12378
# link with -lc, and that would cause any symbols used from libc to
12379
# always be unresolved, which means just about no library would
12380
# ever link correctly. If we're not using GNU ld we use -z text
12381
# though, which does catch some bad symbols but isn't as heavy-handed
12383
# For security reasons, it is highly recommended that you always
12384
# use absolute paths for naming shared libraries, and exclude the
12385
# DT_RUNPATH tag from executables and libraries. But doing so
12386
# requires that you compile everything twice, which is a pain.
12387
# So that behaviour is only enabled if SCOABSPATH is set to a
12388
# non-empty value in the environment. Most likely only useful for
12389
# creating official distributions of packages.
12390
# This is a hack until libtool officially supports absolute path
12391
# names for shared libraries.
12392
no_undefined_flag_CXX='${wl}-z,text'
12393
allow_undefined_flag_CXX='${wl}-z,nodefs'
12394
archive_cmds_need_lc_CXX=no
12395
hardcode_shlibpath_var_CXX=no
12396
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12397
hardcode_libdir_separator_CXX=':'
12398
link_all_deplibs_CXX=yes
12399
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12400
runpath_var='LD_RUN_PATH'
12402
case $cc_basename in
12404
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12405
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12408
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12409
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12414
case $cc_basename in
12416
# NonStop-UX NCC 3.20
12417
# FIXME: insert proper C++ library support
12421
# FIXME: insert proper C++ library support
12427
# FIXME: insert proper C++ library support
12431
# FIXME: insert proper C++ library support
12435
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12436
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12437
test "$ld_shlibs_CXX" = no && can_build_shared=no
12443
## There is no encapsulation within the following macros, do not change
12444
## the running order or otherwise move them around unless you know exactly
12445
## what you are doing...
12447
cat > conftest.$ac_ext <<EOF
12451
Foo (void) { a = 0; }
12457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458
(eval $ac_compile) 2>&5
12460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461
(exit $ac_status); }; then
12462
# Parse the compiler output and extract the necessary
12463
# objects, libraries and library flags.
12465
# Sentinel used to keep track of whether or not we are before
12466
# the conftest object file.
12467
pre_test_object_deps_done=no
12469
# The `*' in the case matches for architectures that use `case' in
12470
# $output_verbose_cmd can trigger glob expansion during the loop
12471
# eval without this substitution.
12472
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12474
for p in `eval $output_verbose_link_cmd`; do
12478
# Some compilers place space between "-{L,R}" and the path.
12479
# Remove the space.
12480
if test $p = "-L" \
12481
|| test $p = "-R"; then
12488
if test "$pre_test_object_deps_done" = no; then
12491
# Internal compiler library paths should come after those
12492
# provided the user. The postdeps already come after the
12493
# user supplied libs so there is no need to process them.
12494
if test -z "$compiler_lib_search_path_CXX"; then
12495
compiler_lib_search_path_CXX="${prev}${p}"
12497
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12500
# The "-l" case would never come before the object being
12501
# linked, so don't bother handling this case.
12504
if test -z "$postdeps_CXX"; then
12505
postdeps_CXX="${prev}${p}"
12507
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12513
# This assumes that the test object file only shows up
12514
# once in the compiler output.
12515
if test "$p" = "conftest.$objext"; then
12516
pre_test_object_deps_done=yes
12520
if test "$pre_test_object_deps_done" = no; then
12521
if test -z "$predep_objects_CXX"; then
12522
predep_objects_CXX="$p"
12524
predep_objects_CXX="$predep_objects_CXX $p"
12527
if test -z "$postdep_objects_CXX"; then
12528
postdep_objects_CXX="$p"
12530
postdep_objects_CXX="$postdep_objects_CXX $p"
12535
*) ;; # Ignore the rest.
12543
echo "libtool.m4: error: problem compiling CXX test program"
12546
$rm -f confest.$objext
12548
# PORTME: override above test on systems where it is broken
12551
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12552
# hack all around it, let's just trust "g++" to DTRT.
12553
predep_objects_CXX=
12554
postdep_objects_CXX=
12559
case $cc_basename in
12561
# Adding this requires a known-good setup of shared libraries for
12562
# Sun compiler versions before 5.6, else PIC objects from an old
12563
# archive will be linked into the output, leading to subtle bugs.
12564
postdeps_CXX='-lCstd -lCrun'
12571
case " $postdeps_CXX " in
12572
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12575
lt_prog_compiler_wl_CXX=
12576
lt_prog_compiler_pic_CXX=
12577
lt_prog_compiler_static_CXX=
12579
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12580
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12582
# C++ specific cases for pic, static, wl, etc.
12583
if test "$GXX" = yes; then
12584
lt_prog_compiler_wl_CXX='-Wl,'
12585
lt_prog_compiler_static_CXX='-static'
12589
# All AIX code is PIC.
12590
if test "$host_cpu" = ia64; then
12591
# AIX 5 now supports IA64 processor
12592
lt_prog_compiler_static_CXX='-Bstatic'
12596
# FIXME: we need at least 68020 code to build shared libraries, but
12597
# adding the `-m68020' flag to GCC prevents building anything better,
12599
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12601
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12602
# PIC is the default for these OSes.
12604
mingw* | os2* | pw32*)
12605
# This hack is so that the source file can tell whether it is being
12606
# built for inclusion in a dll (and should export symbols for example).
12607
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12609
darwin* | rhapsody*)
12610
# PIC is the default on this platform
12611
# Common symbols not allowed in MH_DYLIB files
12612
lt_prog_compiler_pic_CXX='-fno-common'
12615
# DJGPP does not support shared libraries at all
12616
lt_prog_compiler_pic_CXX=
12619
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12620
# Instead, we relocate shared libraries at runtime.
12623
if test -d /usr/nec; then
12624
lt_prog_compiler_pic_CXX=-Kconform_pic
12628
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12629
# not for PA HP-UX.
12634
lt_prog_compiler_pic_CXX='-fPIC'
12639
lt_prog_compiler_pic_CXX='-fPIC'
12645
# All AIX code is PIC.
12646
if test "$host_cpu" = ia64; then
12647
# AIX 5 now supports IA64 processor
12648
lt_prog_compiler_static_CXX='-Bstatic'
12650
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12654
case $cc_basename in
12656
# Green Hills C++ Compiler
12657
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12662
# PIC is the default on this platform
12663
# Common symbols not allowed in MH_DYLIB files
12664
case $cc_basename in
12666
lt_prog_compiler_pic_CXX='-qnocommon'
12667
lt_prog_compiler_wl_CXX='-Wl,'
12672
case $cc_basename in
12674
lt_prog_compiler_pic_CXX='-KPIC'
12677
# Green Hills C++ Compiler
12678
lt_prog_compiler_pic_CXX='-pic'
12684
freebsd* | kfreebsd*-gnu | dragonfly*)
12685
# FreeBSD uses GNU C++
12687
hpux9* | hpux10* | hpux11*)
12688
case $cc_basename in
12690
lt_prog_compiler_wl_CXX='-Wl,'
12691
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12692
if test "$host_cpu" != ia64; then
12693
lt_prog_compiler_pic_CXX='+Z'
12697
lt_prog_compiler_wl_CXX='-Wl,'
12698
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12704
lt_prog_compiler_pic_CXX='+Z'
12713
# This is c89, which is MS Visual C++ (no shared libs)
12714
# Anyone wants to do a port?
12716
irix5* | irix6* | nonstopux*)
12717
case $cc_basename in
12719
lt_prog_compiler_wl_CXX='-Wl,'
12720
lt_prog_compiler_static_CXX='-non_shared'
12721
# CC pic flag -KPIC is the default.
12728
case $cc_basename in
12731
lt_prog_compiler_wl_CXX='--backend -Wl,'
12732
lt_prog_compiler_pic_CXX='-fPIC'
12736
lt_prog_compiler_wl_CXX='-Wl,'
12737
lt_prog_compiler_pic_CXX='-KPIC'
12738
lt_prog_compiler_static_CXX='-static'
12741
# Portland Group C++ compiler.
12742
lt_prog_compiler_wl_CXX='-Wl,'
12743
lt_prog_compiler_pic_CXX='-fpic'
12744
lt_prog_compiler_static_CXX='-Bstatic'
12748
# Make sure the PIC flag is empty. It appears that all Alpha
12749
# Linux and Compaq Tru64 Unix objects are PIC.
12750
lt_prog_compiler_pic_CXX=
12751
lt_prog_compiler_static_CXX='-non_shared'
12762
case $cc_basename in
12764
lt_prog_compiler_pic_CXX='-W c,exportall'
12770
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12772
osf3* | osf4* | osf5*)
12773
case $cc_basename in
12775
lt_prog_compiler_wl_CXX='--backend -Wl,'
12778
# Rational C++ 2.4.1
12779
lt_prog_compiler_pic_CXX='-pic'
12782
# Digital/Compaq C++
12783
lt_prog_compiler_wl_CXX='-Wl,'
12784
# Make sure the PIC flag is empty. It appears that all Alpha
12785
# Linux and Compaq Tru64 Unix objects are PIC.
12786
lt_prog_compiler_pic_CXX=
12787
lt_prog_compiler_static_CXX='-non_shared'
12796
case $cc_basename in
12798
# Sun C++ 4.2, 5.x and Centerline C++
12799
lt_prog_compiler_pic_CXX='-KPIC'
12800
lt_prog_compiler_static_CXX='-Bstatic'
12801
lt_prog_compiler_wl_CXX='-Qoption ld '
12804
# Green Hills C++ Compiler
12805
lt_prog_compiler_pic_CXX='-PIC'
12812
case $cc_basename in
12815
lt_prog_compiler_pic_CXX='-pic'
12816
lt_prog_compiler_static_CXX='-Bstatic'
12820
lt_prog_compiler_pic_CXX='-pic'
12827
case $cc_basename in
12829
# NonStop-UX NCC 3.20
12830
lt_prog_compiler_pic_CXX='-KPIC'
12836
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12837
case $cc_basename in
12839
lt_prog_compiler_wl_CXX='-Wl,'
12840
lt_prog_compiler_pic_CXX='-KPIC'
12841
lt_prog_compiler_static_CXX='-Bstatic'
12848
lt_prog_compiler_can_build_shared_CXX=no
12853
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12854
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12857
# Check to make sure the PIC flag actually works.
12859
if test -n "$lt_prog_compiler_pic_CXX"; then
12861
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12862
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12863
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12864
echo $ECHO_N "(cached) $ECHO_C" >&6
12866
lt_prog_compiler_pic_works_CXX=no
12867
ac_outfile=conftest.$ac_objext
12868
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12869
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12870
# Insert the option either (1) after the last *FLAGS variable, or
12871
# (2) before a word containing "conftest.", or (3) at the end.
12872
# Note that $ac_compile itself does not contain backslashes and begins
12873
# with a dollar sign (not a hyphen), so the echo should work correctly.
12874
# The option is referenced via a variable to avoid confusing sed.
12875
lt_compile=`echo "$ac_compile" | $SED \
12876
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12877
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12878
-e 's:$: $lt_compiler_flag:'`
12879
(eval echo "\"\$as_me:12879: $lt_compile\"" >&5)
12880
(eval "$lt_compile" 2>conftest.err)
12882
cat conftest.err >&5
12883
echo "$as_me:12883: \$? = $ac_status" >&5
12884
if (exit $ac_status) && test -s "$ac_outfile"; then
12885
# The compiler can only warn and ignore the option if not recognized
12886
# So say no if there are warnings other than the usual output.
12887
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12888
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12889
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12890
lt_prog_compiler_pic_works_CXX=yes
12896
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12897
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12899
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12900
case $lt_prog_compiler_pic_CXX in
12902
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12905
lt_prog_compiler_pic_CXX=
12906
lt_prog_compiler_can_build_shared_CXX=no
12911
# For platforms which do not support PIC, -DPIC is meaningless:
12913
lt_prog_compiler_pic_CXX=
12916
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12921
# Check to make sure the static flag actually works.
12923
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12924
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12925
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12926
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12927
echo $ECHO_N "(cached) $ECHO_C" >&6
12929
lt_prog_compiler_static_works_CXX=no
12930
save_LDFLAGS="$LDFLAGS"
12931
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12932
printf "$lt_simple_link_test_code" > conftest.$ac_ext
12933
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12934
# The linker can only warn and ignore the option if not recognized
12935
# So say no if there are warnings
12936
if test -s conftest.err; then
12937
# Append any errors to the config.log.
12938
cat conftest.err 1>&5
12939
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12940
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12941
if diff conftest.exp conftest.er2 >/dev/null; then
12942
lt_prog_compiler_static_works_CXX=yes
12945
lt_prog_compiler_static_works_CXX=yes
12949
LDFLAGS="$save_LDFLAGS"
12952
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12953
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12955
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12958
lt_prog_compiler_static_CXX=
12962
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12963
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12964
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12965
echo $ECHO_N "(cached) $ECHO_C" >&6
12967
lt_cv_prog_compiler_c_o_CXX=no
12968
$rm -r conftest 2>/dev/null
12972
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12974
lt_compiler_flag="-o out/conftest2.$ac_objext"
12975
# Insert the option either (1) after the last *FLAGS variable, or
12976
# (2) before a word containing "conftest.", or (3) at the end.
12977
# Note that $ac_compile itself does not contain backslashes and begins
12978
# with a dollar sign (not a hyphen), so the echo should work correctly.
12979
lt_compile=`echo "$ac_compile" | $SED \
12980
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12981
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12982
-e 's:$: $lt_compiler_flag:'`
12983
(eval echo "\"\$as_me:12983: $lt_compile\"" >&5)
12984
(eval "$lt_compile" 2>out/conftest.err)
12986
cat out/conftest.err >&5
12987
echo "$as_me:12987: \$? = $ac_status" >&5
12988
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12990
# The compiler can only warn and ignore the option if not recognized
12991
# So say no if there are warnings
12992
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12993
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12994
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12995
lt_cv_prog_compiler_c_o_CXX=yes
13000
# SGI C++ compiler will create directory out/ii_files/ for
13001
# template instantiation
13002
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13003
$rm out/* && rmdir out
13009
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13010
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13013
hard_links="nottested"
13014
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13015
# do not overwrite the value of need_locks provided by the user
13016
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13017
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13020
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13022
ln conftest.a conftest.b 2>&5 || hard_links=no
13023
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13024
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13025
echo "${ECHO_T}$hard_links" >&6; }
13026
if test "$hard_links" = no; then
13027
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13028
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13035
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13036
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13038
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13041
# If we're using GNU nm, then we don't want the "-C" option.
13042
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13043
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13044
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13046
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13050
export_symbols_cmds_CXX="$ltdll_cmds"
13053
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13056
link_all_deplibs_CXX=no
13059
link_all_deplibs_CXX=no
13062
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13066
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13067
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13068
test "$ld_shlibs_CXX" = no && can_build_shared=no
13071
# Do we need to explicitly link libc?
13073
case "x$archive_cmds_need_lc_CXX" in
13075
# Assume -lc should be added
13076
archive_cmds_need_lc_CXX=yes
13078
if test "$enable_shared" = yes && test "$GCC" = yes; then
13079
case $archive_cmds_CXX in
13081
# FIXME: we may have to deal with multi-command sequences.
13084
# Test whether the compiler implicitly links with -lc since on some
13085
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13086
# to ld, don't add -lc before -lgcc.
13087
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13088
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13090
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13092
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093
(eval $ac_compile) 2>&5
13095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096
(exit $ac_status); } 2>conftest.err; then
13099
libobjs=conftest.$ac_objext
13101
wl=$lt_prog_compiler_wl_CXX
13102
pic_flag=$lt_prog_compiler_pic_CXX
13108
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13109
allow_undefined_flag_CXX=
13110
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13111
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114
(exit $ac_status); }
13116
archive_cmds_need_lc_CXX=no
13118
archive_cmds_need_lc_CXX=yes
13120
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13122
cat conftest.err 1>&5
13125
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13126
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13133
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13134
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13135
library_names_spec=
13136
libname_spec='lib$name'
13140
postuninstall_cmds=
13144
shlibpath_overrides_runpath=unknown
13146
dynamic_linker="$host_os ld.so"
13147
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13148
if test "$GCC" = yes; then
13149
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13150
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13151
# if the path contains ";" then we assume it to be the separator
13152
# otherwise default to the standard path separator (i.e. ":") - it is
13153
# assumed that no part of a normal pathname contains ";" but that should
13154
# okay in the real world where ";" in dirpaths is itself problematic.
13155
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13157
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13160
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13162
need_lib_prefix=unknown
13163
hardcode_into_libs=no
13165
# when you set need_version to no, make sure it does not cause -set_version
13166
# flags to be left without arguments
13167
need_version=unknown
13172
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13173
shlibpath_var=LIBPATH
13175
# AIX 3 has no versioning support, so we append a major version to the name.
13176
soname_spec='${libname}${release}${shared_ext}$major'
13183
hardcode_into_libs=yes
13184
if test "$host_cpu" = ia64; then
13185
# AIX 5 supports IA64
13186
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13187
shlibpath_var=LD_LIBRARY_PATH
13189
# With GCC up to 2.95.x, collect2 would create an import file
13190
# for dependence libraries. The import file would start with
13191
# the line `#! .'. This would cause the generated library to
13192
# depend on `.', always an invalid library. This was fixed in
13193
# development snapshots of GCC prior to 3.0.
13195
aix4 | aix4.[01] | aix4.[01].*)
13196
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13198
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13201
can_build_shared=no
13205
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13206
# soname into executable. Probably we can add versioning support to
13207
# collect2, so additional links can be useful in future.
13208
if test "$aix_use_runtimelinking" = yes; then
13209
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13210
# instead of lib<name>.a to let people know that these are not
13211
# typical AIX shared libraries.
13212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214
# We preserve .a as extension for shared libraries through AIX4.2
13215
# and later when we are not doing run time linking.
13216
library_names_spec='${libname}${release}.a $libname.a'
13217
soname_spec='${libname}${release}${shared_ext}$major'
13219
shlibpath_var=LIBPATH
13224
library_names_spec='$libname.ixlibrary $libname.a'
13225
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13226
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
13230
library_names_spec='${libname}${shared_ext}'
13231
dynamic_linker="$host_os ld.so"
13232
shlibpath_var=LIBRARY_PATH
13238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239
soname_spec='${libname}${release}${shared_ext}$major'
13240
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13241
shlibpath_var=LD_LIBRARY_PATH
13242
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13243
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13244
# the default ld.so.conf also contains /usr/contrib/lib and
13245
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13246
# libtool to hard-code these into programs
13249
cygwin* | mingw* | pw32*)
13250
version_type=windows
13255
case $GCC,$host_os in
13256
yes,cygwin* | yes,mingw* | yes,pw32*)
13257
library_names_spec='$libname.dll.a'
13258
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13259
postinstall_cmds='base_file=`basename \${file}`~
13260
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13261
dldir=$destdir/`dirname \$dlpath`~
13262
test -d \$dldir || mkdir -p \$dldir~
13263
$install_prog $dir/$dlname \$dldir/$dlname~
13264
chmod a+x \$dldir/$dlname'
13265
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13266
dlpath=$dir/\$dldll~
13268
shlibpath_overrides_runpath=yes
13272
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13273
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13274
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13277
# MinGW DLLs use traditional 'lib' prefix
13278
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13279
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13280
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13281
# It is most probably a Windows format PATH printed by
13282
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13283
# path with ; separators, and with drive letters. We can handle the
13284
# drive letters (cygwin fileutils understands them), so leave them,
13285
# especially as we might pass files found there to a mingw objdump,
13286
# which wouldn't understand a cygwinified path. Ahh.
13287
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13289
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13293
# pw32 DLLs use 'pw' prefix rather than 'lib'
13294
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13300
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13303
dynamic_linker='Win32 ld.exe'
13304
# FIXME: first we should search . and the directory the executable is in
13308
darwin* | rhapsody*)
13309
dynamic_linker="$host_os dyld"
13310
version_type=darwin
13313
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13314
soname_spec='${libname}${release}${major}$shared_ext'
13315
shlibpath_overrides_runpath=yes
13316
shlibpath_var=DYLD_LIBRARY_PATH
13317
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13318
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13319
if test "$GCC" = yes; then
13320
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13322
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13324
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13332
soname_spec='${libname}${release}${shared_ext}$major'
13333
shlibpath_var=LD_LIBRARY_PATH
13344
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13345
soname_spec='${libname}${release}${shared_ext}$major'
13346
shlibpath_var=LD_LIBRARY_PATH
13347
shlibpath_overrides_runpath=no
13348
hardcode_into_libs=yes
13349
dynamic_linker='GNU ld.so'
13352
freebsd* | dragonfly*)
13353
# DragonFly does not have aout. When/if they implement a new
13354
# versioning mechanism, adjust this.
13355
if test -x /usr/bin/objformat; then
13356
objformat=`/usr/bin/objformat`
13359
freebsd[123]*) objformat=aout ;;
13360
*) objformat=elf ;;
13363
version_type=freebsd-$objformat
13364
case $version_type in
13366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13371
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13375
shlibpath_var=LD_LIBRARY_PATH
13378
shlibpath_overrides_runpath=yes
13380
freebsd3.[01]* | freebsdelf3.[01]*)
13381
shlibpath_overrides_runpath=yes
13382
hardcode_into_libs=yes
13384
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13385
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13386
shlibpath_overrides_runpath=no
13387
hardcode_into_libs=yes
13389
freebsd*) # from 4.6 on
13390
shlibpath_overrides_runpath=yes
13391
hardcode_into_libs=yes
13400
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13401
soname_spec='${libname}${release}${shared_ext}$major'
13402
shlibpath_var=LD_LIBRARY_PATH
13403
hardcode_into_libs=yes
13406
hpux9* | hpux10* | hpux11*)
13407
# Give a soname corresponding to the major version so that dld.sl refuses to
13408
# link against other versions.
13415
hardcode_into_libs=yes
13416
dynamic_linker="$host_os dld.so"
13417
shlibpath_var=LD_LIBRARY_PATH
13418
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420
soname_spec='${libname}${release}${shared_ext}$major'
13421
if test "X$HPUX_IA64_MODE" = X32; then
13422
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13424
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13426
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13430
hardcode_into_libs=yes
13431
dynamic_linker="$host_os dld.sl"
13432
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13433
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13434
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435
soname_spec='${libname}${release}${shared_ext}$major'
13436
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13437
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13441
dynamic_linker="$host_os dld.sl"
13442
shlibpath_var=SHLIB_PATH
13443
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445
soname_spec='${libname}${release}${shared_ext}$major'
13448
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13449
postinstall_cmds='chmod 555 $lib'
13456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13457
soname_spec='${libname}${release}${shared_ext}$major'
13458
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13459
shlibpath_var=LD_LIBRARY_PATH
13460
shlibpath_overrides_runpath=no
13461
hardcode_into_libs=yes
13464
irix5* | irix6* | nonstopux*)
13466
nonstopux*) version_type=nonstopux ;;
13468
if test "$lt_cv_prog_gnu_ld" = yes; then
13476
soname_spec='${libname}${release}${shared_ext}$major'
13477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13479
irix5* | nonstopux*)
13480
libsuff= shlibsuff=
13483
case $LD in # libtool.m4 will add one of these switches to LD
13484
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13485
libsuff= shlibsuff= libmagic=32-bit;;
13486
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13487
libsuff=32 shlibsuff=N32 libmagic=N32;;
13488
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13489
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13490
*) libsuff= shlibsuff= libmagic=never-match;;
13494
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13495
shlibpath_overrides_runpath=no
13496
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13497
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13498
hardcode_into_libs=yes
13501
# No shared lib support for Linux oldld, aout, or coff.
13502
linux*oldld* | linux*aout* | linux*coff*)
13506
# This must be Linux ELF.
13511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512
soname_spec='${libname}${release}${shared_ext}$major'
13513
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13514
shlibpath_var=LD_LIBRARY_PATH
13515
shlibpath_overrides_runpath=no
13516
# This implies no fast_install, which is unacceptable.
13517
# Some rework will be needed to allow for fast_install
13518
# before this can be enabled.
13519
hardcode_into_libs=yes
13521
# Append ld.so.conf contents to the search path
13522
if test -f /etc/ld.so.conf; then
13523
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13524
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13527
# We used to test for /lib/ld.so.1 and disable shared libraries on
13528
# powerpc, because MkLinux only supported shared libraries with the
13529
# GNU dynamic linker. Since this was broken with cross compilers,
13530
# most powerpc-linux boxes support dynamic linking these days and
13531
# people can always --disable-shared, the test was removed, and we
13532
# assume the GNU/Linux dynamic linker is in use.
13533
dynamic_linker='GNU/Linux ld.so'
13540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13541
soname_spec='${libname}${release}${shared_ext}$major'
13542
shlibpath_var=LD_LIBRARY_PATH
13543
shlibpath_overrides_runpath=no
13544
hardcode_into_libs=yes
13545
dynamic_linker='NetBSD ld.elf_so'
13552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13553
soname_spec='${libname}${release}${shared_ext}$major'
13554
shlibpath_var=LD_LIBRARY_PATH
13555
shlibpath_overrides_runpath=no
13556
hardcode_into_libs=yes
13557
dynamic_linker='GNU ld.so'
13564
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13566
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13567
dynamic_linker='NetBSD (a.out) ld.so'
13569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13570
soname_spec='${libname}${release}${shared_ext}$major'
13571
dynamic_linker='NetBSD ld.elf_so'
13573
shlibpath_var=LD_LIBRARY_PATH
13574
shlibpath_overrides_runpath=yes
13575
hardcode_into_libs=yes
13580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13581
shlibpath_var=LD_LIBRARY_PATH
13582
shlibpath_overrides_runpath=yes
13589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13590
soname_spec='${libname}${release}${shared_ext}$major'
13591
shlibpath_var=LD_LIBRARY_PATH
13592
shlibpath_overrides_runpath=yes
13597
sys_lib_dlsearch_path_spec="/usr/lib"
13599
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13601
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13602
*) need_version=no ;;
13604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13605
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13606
shlibpath_var=LD_LIBRARY_PATH
13607
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13609
openbsd2.[89] | openbsd2.[89].*)
13610
shlibpath_overrides_runpath=no
13613
shlibpath_overrides_runpath=yes
13617
shlibpath_overrides_runpath=yes
13622
libname_spec='$name'
13625
library_names_spec='$libname${shared_ext} $libname.a'
13626
dynamic_linker='OS/2 ld.exe'
13627
shlibpath_var=LIBPATH
13630
osf3* | osf4* | osf5*)
13634
soname_spec='${libname}${release}${shared_ext}$major'
13635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636
shlibpath_var=LD_LIBRARY_PATH
13637
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13638
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13646
soname_spec='${libname}${release}${shared_ext}$major'
13647
shlibpath_var=LD_LIBRARY_PATH
13648
shlibpath_overrides_runpath=yes
13649
hardcode_into_libs=yes
13650
# ldd complains unless libraries are executable
13651
postinstall_cmds='chmod +x $lib'
13656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13657
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13658
shlibpath_var=LD_LIBRARY_PATH
13659
shlibpath_overrides_runpath=yes
13660
if test "$with_gnu_ld" = yes; then
13668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669
soname_spec='${libname}${release}${shared_ext}$major'
13670
shlibpath_var=LD_LIBRARY_PATH
13671
case $host_vendor in
13673
shlibpath_overrides_runpath=no
13675
export_dynamic_flag_spec='${wl}-Blargedynsym'
13676
runpath_var=LD_RUN_PATH
13684
shlibpath_overrides_runpath=no
13685
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13691
if test -d /usr/nec ;then
13693
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13694
soname_spec='$libname${shared_ext}.$major'
13695
shlibpath_var=LD_LIBRARY_PATH
13699
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13700
version_type=freebsd-elf
13703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13704
soname_spec='${libname}${release}${shared_ext}$major'
13705
shlibpath_var=LD_LIBRARY_PATH
13706
hardcode_into_libs=yes
13707
if test "$with_gnu_ld" = yes; then
13708
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13709
shlibpath_overrides_runpath=no
13711
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13712
shlibpath_overrides_runpath=yes
13715
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13719
sys_lib_dlsearch_path_spec='/usr/lib'
13724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725
soname_spec='${libname}${release}${shared_ext}$major'
13726
shlibpath_var=LD_LIBRARY_PATH
13733
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13734
echo "${ECHO_T}$dynamic_linker" >&6; }
13735
test "$dynamic_linker" = no && can_build_shared=no
13737
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13738
if test "$GCC" = yes; then
13739
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13742
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13743
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13744
hardcode_action_CXX=
13745
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13746
test -n "$runpath_var_CXX" || \
13747
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13749
# We can hardcode non-existant directories.
13750
if test "$hardcode_direct_CXX" != no &&
13751
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13752
# have to relink, otherwise we might link with an installed library
13753
# when we should be linking with a yet-to-be-installed one
13754
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13755
test "$hardcode_minus_L_CXX" != no; then
13756
# Linking always hardcodes the temporary library directory.
13757
hardcode_action_CXX=relink
13759
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13760
hardcode_action_CXX=immediate
13763
# We cannot hardcode anything, or else we can only hardcode existing
13765
hardcode_action_CXX=unsupported
13767
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13768
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13770
if test "$hardcode_action_CXX" = relink; then
13771
# Fast installation is not supported
13772
enable_fast_install=no
13773
elif test "$shlibpath_overrides_runpath" = yes ||
13774
test "$enable_shared" = no; then
13775
# Fast installation is not necessary
13776
enable_fast_install=needless
13780
# The else clause should only fire when bootstrapping the
13781
# libtool distribution, otherwise you forgot to ship ltmain.sh
13782
# with your package, and you will get complaints that there are
13783
# no rules to generate ltmain.sh.
13784
if test -f "$ltmain"; then
13785
# See if we are running on zsh, and set the options which allow our commands through
13786
# without removal of \ escapes.
13787
if test -n "${ZSH_VERSION+set}" ; then
13788
setopt NO_GLOB_SUBST
13790
# Now quote all the things that may contain metacharacters while being
13791
# careful not to overquote the AC_SUBSTed values. We take copies of the
13792
# variables and quote the copies for generation of the libtool script.
13793
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13795
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13796
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13797
deplibs_check_method reload_flag reload_cmds need_locks \
13798
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13799
lt_cv_sys_global_symbol_to_c_name_address \
13800
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13801
old_postinstall_cmds old_postuninstall_cmds \
13805
lt_prog_compiler_wl_CXX \
13806
lt_prog_compiler_pic_CXX \
13807
lt_prog_compiler_static_CXX \
13808
lt_prog_compiler_no_builtin_flag_CXX \
13809
export_dynamic_flag_spec_CXX \
13810
thread_safe_flag_spec_CXX \
13811
whole_archive_flag_spec_CXX \
13812
enable_shared_with_static_runtimes_CXX \
13813
old_archive_cmds_CXX \
13814
old_archive_from_new_cmds_CXX \
13815
predep_objects_CXX \
13816
postdep_objects_CXX \
13819
compiler_lib_search_path_CXX \
13821
archive_expsym_cmds_CXX \
13822
postinstall_cmds_CXX \
13823
postuninstall_cmds_CXX \
13824
old_archive_from_expsyms_cmds_CXX \
13825
allow_undefined_flag_CXX \
13826
no_undefined_flag_CXX \
13827
export_symbols_cmds_CXX \
13828
hardcode_libdir_flag_spec_CXX \
13829
hardcode_libdir_flag_spec_ld_CXX \
13830
hardcode_libdir_separator_CXX \
13831
hardcode_automatic_CXX \
13833
module_expsym_cmds_CXX \
13834
lt_cv_prog_compiler_c_o_CXX \
13835
exclude_expsyms_CXX \
13836
include_expsyms_CXX; do
13839
old_archive_cmds_CXX | \
13840
old_archive_from_new_cmds_CXX | \
13841
archive_cmds_CXX | \
13842
archive_expsym_cmds_CXX | \
13843
module_cmds_CXX | \
13844
module_expsym_cmds_CXX | \
13845
old_archive_from_expsyms_cmds_CXX | \
13846
export_symbols_cmds_CXX | \
13847
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13848
postinstall_cmds | postuninstall_cmds | \
13849
old_postinstall_cmds | old_postuninstall_cmds | \
13850
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13851
# Double-quote double-evaled strings.
13852
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13855
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13861
*'\$0 --fallback-echo"')
13862
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13868
cat <<__EOF__ >> "$cfgfile"
13869
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13871
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13873
# Shell to use when invoking shell scripts.
13876
# Whether or not to build shared libraries.
13877
build_libtool_libs=$enable_shared
13879
# Whether or not to build static libraries.
13880
build_old_libs=$enable_static
13882
# Whether or not to add -lc for building shared libraries.
13883
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13885
# Whether or not to disallow shared libs when runtime libs are static
13886
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13888
# Whether or not to optimize for fast installation.
13889
fast_install=$enable_fast_install
13892
host_alias=$host_alias
13896
# The build system.
13897
build_alias=$build_alias
13901
# An echo program that does not interpret backslashes.
13906
AR_FLAGS=$lt_AR_FLAGS
13911
# LTCC compiler flags.
13912
LTCFLAGS=$lt_LTCFLAGS
13914
# A language-specific compiler.
13915
CC=$lt_compiler_CXX
13917
# Is the compiler the GNU C compiler?
13923
# The linker used to build libraries.
13926
# Whether we need hard or soft links.
13929
# A BSD-compatible nm program.
13932
# A symbol stripping program
13935
# Used to examine libraries when file_magic_cmd begins "file"
13936
MAGIC_CMD=$MAGIC_CMD
13938
# Used on cygwin: DLL creation program.
13941
# Used on cygwin: object dumper.
13944
# Used on cygwin: assembler.
13947
# The name of the directory that contains temporary libtool files.
13950
# How to create reloadable object files.
13951
reload_flag=$lt_reload_flag
13952
reload_cmds=$lt_reload_cmds
13954
# How to pass a linker flag through the compiler.
13955
wl=$lt_lt_prog_compiler_wl_CXX
13957
# Object file suffix (normally "o").
13958
objext="$ac_objext"
13960
# Old archive suffix (normally "a").
13963
# Shared library suffix (normally ".so").
13964
shrext_cmds='$shrext_cmds'
13966
# Executable file suffix (normally "").
13969
# Additional compiler flags for building library objects.
13970
pic_flag=$lt_lt_prog_compiler_pic_CXX
13973
# What is the maximum length of a command?
13974
max_cmd_len=$lt_cv_sys_max_cmd_len
13976
# Does compiler simultaneously support -c and -o options?
13977
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13979
# Must we lock files when doing compilation?
13980
need_locks=$lt_need_locks
13982
# Do we need the lib prefix for modules?
13983
need_lib_prefix=$need_lib_prefix
13985
# Do we need a version for libraries?
13986
need_version=$need_version
13988
# Whether dlopen is supported.
13989
dlopen_support=$enable_dlopen
13991
# Whether dlopen of programs is supported.
13992
dlopen_self=$enable_dlopen_self
13994
# Whether dlopen of statically linked programs is supported.
13995
dlopen_self_static=$enable_dlopen_self_static
13997
# Compiler flag to prevent dynamic linking.
13998
link_static_flag=$lt_lt_prog_compiler_static_CXX
14000
# Compiler flag to turn off builtin functions.
14001
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14003
# Compiler flag to allow reflexive dlopens.
14004
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14006
# Compiler flag to generate shared objects directly from archives.
14007
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14009
# Compiler flag to generate thread-safe objects.
14010
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14012
# Library versioning type.
14013
version_type=$version_type
14015
# Format of library name prefix.
14016
libname_spec=$lt_libname_spec
14018
# List of archive names. First name is the real one, the rest are links.
14019
# The last name is the one that the linker finds with -lNAME.
14020
library_names_spec=$lt_library_names_spec
14022
# The coded name of the library, if different from the real name.
14023
soname_spec=$lt_soname_spec
14025
# Commands used to build and install an old-style archive.
14027
old_archive_cmds=$lt_old_archive_cmds_CXX
14028
old_postinstall_cmds=$lt_old_postinstall_cmds
14029
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14031
# Create an old-style archive from a shared archive.
14032
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14034
# Create a temporary old-style archive to link instead of a shared archive.
14035
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14037
# Commands used to build and install a shared archive.
14038
archive_cmds=$lt_archive_cmds_CXX
14039
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14040
postinstall_cmds=$lt_postinstall_cmds
14041
postuninstall_cmds=$lt_postuninstall_cmds
14043
# Commands used to build a loadable module (assumed same as above if empty)
14044
module_cmds=$lt_module_cmds_CXX
14045
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14047
# Commands to strip libraries.
14048
old_striplib=$lt_old_striplib
14049
striplib=$lt_striplib
14051
# Dependencies to place before the objects being linked to create a
14053
predep_objects=$lt_predep_objects_CXX
14055
# Dependencies to place after the objects being linked to create a
14057
postdep_objects=$lt_postdep_objects_CXX
14059
# Dependencies to place before the objects being linked to create a
14061
predeps=$lt_predeps_CXX
14063
# Dependencies to place after the objects being linked to create a
14065
postdeps=$lt_postdeps_CXX
14067
# The library search path used internally by the compiler when linking
14068
# a shared library.
14069
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14071
# Method to check whether dependent libraries are shared objects.
14072
deplibs_check_method=$lt_deplibs_check_method
14074
# Command to use when deplibs_check_method == file_magic.
14075
file_magic_cmd=$lt_file_magic_cmd
14077
# Flag that allows shared libraries with undefined symbols to be built.
14078
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14080
# Flag that forces no undefined symbols.
14081
no_undefined_flag=$lt_no_undefined_flag_CXX
14083
# Commands used to finish a libtool library installation in a directory.
14084
finish_cmds=$lt_finish_cmds
14086
# Same as above, but a single script fragment to be evaled but not shown.
14087
finish_eval=$lt_finish_eval
14089
# Take the output of nm and produce a listing of raw symbols and C names.
14090
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14092
# Transform the output of nm in a proper C declaration
14093
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14095
# Transform the output of nm in a C name address pair
14096
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14098
# This is the shared library runtime path variable.
14099
runpath_var=$runpath_var
14101
# This is the shared library path variable.
14102
shlibpath_var=$shlibpath_var
14104
# Is shlibpath searched before the hard-coded library search path?
14105
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14107
# How to hardcode a shared library path into an executable.
14108
hardcode_action=$hardcode_action_CXX
14110
# Whether we should hardcode library paths into libraries.
14111
hardcode_into_libs=$hardcode_into_libs
14113
# Flag to hardcode \$libdir into a binary during linking.
14114
# This must work even if \$libdir does not exist.
14115
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14117
# If ld is used when linking, flag to hardcode \$libdir into
14118
# a binary during linking. This must work even if \$libdir does
14120
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14122
# Whether we need a single -rpath flag with a separated argument.
14123
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14125
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14126
# resulting binary.
14127
hardcode_direct=$hardcode_direct_CXX
14129
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14130
# resulting binary.
14131
hardcode_minus_L=$hardcode_minus_L_CXX
14133
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14134
# the resulting binary.
14135
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14137
# Set to yes if building a shared library automatically hardcodes DIR into the library
14138
# and all subsequent libraries and executables linked against it.
14139
hardcode_automatic=$hardcode_automatic_CXX
14141
# Variables whose values should be saved in libtool wrapper scripts and
14142
# restored at relink time.
14143
variables_saved_for_relink="$variables_saved_for_relink"
14145
# Whether libtool must link a program against all its dependency libraries.
14146
link_all_deplibs=$link_all_deplibs_CXX
14148
# Compile-time system search path for libraries
14149
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14151
# Run-time system search path for libraries
14152
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14154
# Fix the shell variable \$srcfile for the compiler.
14155
fix_srcfile_path="$fix_srcfile_path_CXX"
14157
# Set to yes if exported symbols are required.
14158
always_export_symbols=$always_export_symbols_CXX
14160
# The commands to list exported symbols.
14161
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14163
# The commands to extract the exported symbol list from a shared archive.
14164
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14166
# Symbols that should not be listed in the preloaded symbols.
14167
exclude_expsyms=$lt_exclude_expsyms_CXX
14169
# Symbols that must always be exported.
14170
include_expsyms=$lt_include_expsyms_CXX
14172
# ### END LIBTOOL TAG CONFIG: $tagname
14178
# If there is no Makefile yet, we rely on a make rule to execute
14179
# `config.status --recheck' to rerun these tests and create the
14180
# libtool script then.
14181
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14182
if test -f "$ltmain_in"; then
14183
test -f Makefile && make "$ltmain"
14189
ac_cpp='$CXXCPP $CPPFLAGS'
14190
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14191
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14192
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14198
with_gnu_ldcxx=$with_gnu_ld
14199
with_gnu_ld=$lt_save_with_gnu_ld
14200
lt_cv_path_LDCXX=$lt_cv_path_LD
14201
lt_cv_path_LD=$lt_save_path_LD
14202
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14203
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14211
if test -n "$F77" && test "X$F77" != "Xno"; then
14214
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14215
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14216
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14219
archive_cmds_need_lc_F77=no
14220
allow_undefined_flag_F77=
14221
always_export_symbols_F77=no
14222
archive_expsym_cmds_F77=
14223
export_dynamic_flag_spec_F77=
14224
hardcode_direct_F77=no
14225
hardcode_libdir_flag_spec_F77=
14226
hardcode_libdir_flag_spec_ld_F77=
14227
hardcode_libdir_separator_F77=
14228
hardcode_minus_L_F77=no
14229
hardcode_automatic_F77=no
14231
module_expsym_cmds_F77=
14232
link_all_deplibs_F77=unknown
14233
old_archive_cmds_F77=$old_archive_cmds
14234
no_undefined_flag_F77=
14235
whole_archive_flag_spec_F77=
14236
enable_shared_with_static_runtimes_F77=no
14238
# Source file extension for f77 test sources.
14241
# Object file extension for compiled f77 test sources.
14245
# Code to be used in simple compile tests
14246
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14248
# Code to be used in simple link tests
14249
lt_simple_link_test_code=" program t\n end\n"
14251
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14253
# If no C compiler was specified, use CC.
14256
# If no C compiler flags were specified, use CFLAGS.
14257
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14259
# Allow CC to be a program name with arguments.
14263
# save warnings/boilerplate of simple test code
14264
ac_outfile=conftest.$ac_objext
14265
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14266
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14267
_lt_compiler_boilerplate=`cat conftest.err`
14270
ac_outfile=conftest.$ac_objext
14271
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14272
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14273
_lt_linker_boilerplate=`cat conftest.err`
14277
# Allow CC to be a program name with arguments.
14282
for cc_temp in $compiler""; do
14284
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14285
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14290
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14293
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14294
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14295
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14296
echo "${ECHO_T}$can_build_shared" >&6; }
14298
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14299
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14300
test "$can_build_shared" = "no" && enable_shared=no
14302
# On AIX, shared libraries and static libraries use the same namespace, and
14303
# are all built from PIC.
14306
test "$enable_shared" = yes && enable_static=no
14307
if test -n "$RANLIB"; then
14308
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14309
postinstall_cmds='$RANLIB $lib'
14313
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14314
test "$enable_shared" = yes && enable_static=no
14318
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14319
echo "${ECHO_T}$enable_shared" >&6; }
14321
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14322
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14323
# Make sure either enable_shared or enable_static is yes.
14324
test "$enable_shared" = yes || enable_static=yes
14325
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14326
echo "${ECHO_T}$enable_static" >&6; }
14331
lt_prog_compiler_wl_F77=
14332
lt_prog_compiler_pic_F77=
14333
lt_prog_compiler_static_F77=
14335
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14336
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14338
if test "$GCC" = yes; then
14339
lt_prog_compiler_wl_F77='-Wl,'
14340
lt_prog_compiler_static_F77='-static'
14344
# All AIX code is PIC.
14345
if test "$host_cpu" = ia64; then
14346
# AIX 5 now supports IA64 processor
14347
lt_prog_compiler_static_F77='-Bstatic'
14352
# FIXME: we need at least 68020 code to build shared libraries, but
14353
# adding the `-m68020' flag to GCC prevents building anything better,
14355
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14358
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14359
# PIC is the default for these OSes.
14362
mingw* | pw32* | os2*)
14363
# This hack is so that the source file can tell whether it is being
14364
# built for inclusion in a dll (and should export symbols for example).
14365
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14368
darwin* | rhapsody*)
14369
# PIC is the default on this platform
14370
# Common symbols not allowed in MH_DYLIB files
14371
lt_prog_compiler_pic_F77='-fno-common'
14375
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14376
# Instead, we relocate shared libraries at runtime.
14380
# Just because we use GCC doesn't mean we suddenly get shared libraries
14381
# on systems that don't support them.
14382
lt_prog_compiler_can_build_shared_F77=no
14387
if test -d /usr/nec; then
14388
lt_prog_compiler_pic_F77=-Kconform_pic
14393
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14394
# not for PA HP-UX.
14400
lt_prog_compiler_pic_F77='-fPIC'
14406
lt_prog_compiler_pic_F77='-fPIC'
14410
# PORTME Check for flag to pass linker flags through the system compiler.
14413
lt_prog_compiler_wl_F77='-Wl,'
14414
if test "$host_cpu" = ia64; then
14415
# AIX 5 now supports IA64 processor
14416
lt_prog_compiler_static_F77='-Bstatic'
14418
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14422
# PIC is the default on this platform
14423
# Common symbols not allowed in MH_DYLIB files
14424
case $cc_basename in
14426
lt_prog_compiler_pic_F77='-qnocommon'
14427
lt_prog_compiler_wl_F77='-Wl,'
14432
mingw* | pw32* | os2*)
14433
# This hack is so that the source file can tell whether it is being
14434
# built for inclusion in a dll (and should export symbols for example).
14435
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14438
hpux9* | hpux10* | hpux11*)
14439
lt_prog_compiler_wl_F77='-Wl,'
14440
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14441
# not for PA HP-UX.
14447
lt_prog_compiler_pic_F77='+Z'
14450
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14451
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14454
irix5* | irix6* | nonstopux*)
14455
lt_prog_compiler_wl_F77='-Wl,'
14456
# PIC (with -KPIC) is the default.
14457
lt_prog_compiler_static_F77='-non_shared'
14461
lt_prog_compiler_pic_F77='-KPIC'
14462
lt_prog_compiler_static_F77='-Bstatic'
14466
case $cc_basename in
14468
lt_prog_compiler_wl_F77='-Wl,'
14469
lt_prog_compiler_pic_F77='-KPIC'
14470
lt_prog_compiler_static_F77='-static'
14472
pgcc* | pgf77* | pgf90* | pgf95*)
14473
# Portland Group compilers (*not* the Pentium gcc compiler,
14474
# which looks to be a dead project)
14475
lt_prog_compiler_wl_F77='-Wl,'
14476
lt_prog_compiler_pic_F77='-fpic'
14477
lt_prog_compiler_static_F77='-Bstatic'
14480
lt_prog_compiler_wl_F77='-Wl,'
14481
# All Alpha code is PIC.
14482
lt_prog_compiler_static_F77='-non_shared'
14487
osf3* | osf4* | osf5*)
14488
lt_prog_compiler_wl_F77='-Wl,'
14489
# All OSF/1 code is PIC.
14490
lt_prog_compiler_static_F77='-non_shared'
14494
lt_prog_compiler_pic_F77='-KPIC'
14495
lt_prog_compiler_static_F77='-Bstatic'
14496
case $cc_basename in
14497
f77* | f90* | f95*)
14498
lt_prog_compiler_wl_F77='-Qoption ld ';;
14500
lt_prog_compiler_wl_F77='-Wl,';;
14505
lt_prog_compiler_wl_F77='-Qoption ld '
14506
lt_prog_compiler_pic_F77='-PIC'
14507
lt_prog_compiler_static_F77='-Bstatic'
14510
sysv4 | sysv4.2uw2* | sysv4.3*)
14511
lt_prog_compiler_wl_F77='-Wl,'
14512
lt_prog_compiler_pic_F77='-KPIC'
14513
lt_prog_compiler_static_F77='-Bstatic'
14517
if test -d /usr/nec ;then
14518
lt_prog_compiler_pic_F77='-Kconform_pic'
14519
lt_prog_compiler_static_F77='-Bstatic'
14523
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14524
lt_prog_compiler_wl_F77='-Wl,'
14525
lt_prog_compiler_pic_F77='-KPIC'
14526
lt_prog_compiler_static_F77='-Bstatic'
14530
lt_prog_compiler_wl_F77='-Wl,'
14531
lt_prog_compiler_can_build_shared_F77=no
14535
lt_prog_compiler_pic_F77='-pic'
14536
lt_prog_compiler_static_F77='-Bstatic'
14540
lt_prog_compiler_can_build_shared_F77=no
14545
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14546
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14549
# Check to make sure the PIC flag actually works.
14551
if test -n "$lt_prog_compiler_pic_F77"; then
14553
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14554
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14555
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14556
echo $ECHO_N "(cached) $ECHO_C" >&6
14558
lt_prog_compiler_pic_works_F77=no
14559
ac_outfile=conftest.$ac_objext
14560
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14561
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14562
# Insert the option either (1) after the last *FLAGS variable, or
14563
# (2) before a word containing "conftest.", or (3) at the end.
14564
# Note that $ac_compile itself does not contain backslashes and begins
14565
# with a dollar sign (not a hyphen), so the echo should work correctly.
14566
# The option is referenced via a variable to avoid confusing sed.
14567
lt_compile=`echo "$ac_compile" | $SED \
14568
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14569
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14570
-e 's:$: $lt_compiler_flag:'`
14571
(eval echo "\"\$as_me:14571: $lt_compile\"" >&5)
14572
(eval "$lt_compile" 2>conftest.err)
14574
cat conftest.err >&5
14575
echo "$as_me:14575: \$? = $ac_status" >&5
14576
if (exit $ac_status) && test -s "$ac_outfile"; then
14577
# The compiler can only warn and ignore the option if not recognized
14578
# So say no if there are warnings other than the usual output.
14579
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14580
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14581
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14582
lt_prog_compiler_pic_works_F77=yes
14588
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14589
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14591
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14592
case $lt_prog_compiler_pic_F77 in
14594
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14597
lt_prog_compiler_pic_F77=
14598
lt_prog_compiler_can_build_shared_F77=no
14603
# For platforms which do not support PIC, -DPIC is meaningless:
14605
lt_prog_compiler_pic_F77=
14608
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14613
# Check to make sure the static flag actually works.
14615
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14616
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14617
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14618
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14619
echo $ECHO_N "(cached) $ECHO_C" >&6
14621
lt_prog_compiler_static_works_F77=no
14622
save_LDFLAGS="$LDFLAGS"
14623
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14624
printf "$lt_simple_link_test_code" > conftest.$ac_ext
14625
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14626
# The linker can only warn and ignore the option if not recognized
14627
# So say no if there are warnings
14628
if test -s conftest.err; then
14629
# Append any errors to the config.log.
14630
cat conftest.err 1>&5
14631
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14632
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14633
if diff conftest.exp conftest.er2 >/dev/null; then
14634
lt_prog_compiler_static_works_F77=yes
14637
lt_prog_compiler_static_works_F77=yes
14641
LDFLAGS="$save_LDFLAGS"
14644
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14645
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14647
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14650
lt_prog_compiler_static_F77=
14654
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14655
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14656
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14657
echo $ECHO_N "(cached) $ECHO_C" >&6
14659
lt_cv_prog_compiler_c_o_F77=no
14660
$rm -r conftest 2>/dev/null
14664
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14666
lt_compiler_flag="-o out/conftest2.$ac_objext"
14667
# Insert the option either (1) after the last *FLAGS variable, or
14668
# (2) before a word containing "conftest.", or (3) at the end.
14669
# Note that $ac_compile itself does not contain backslashes and begins
14670
# with a dollar sign (not a hyphen), so the echo should work correctly.
14671
lt_compile=`echo "$ac_compile" | $SED \
14672
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14673
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674
-e 's:$: $lt_compiler_flag:'`
14675
(eval echo "\"\$as_me:14675: $lt_compile\"" >&5)
14676
(eval "$lt_compile" 2>out/conftest.err)
14678
cat out/conftest.err >&5
14679
echo "$as_me:14679: \$? = $ac_status" >&5
14680
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14682
# The compiler can only warn and ignore the option if not recognized
14683
# So say no if there are warnings
14684
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14685
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14686
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14687
lt_cv_prog_compiler_c_o_F77=yes
14692
# SGI C++ compiler will create directory out/ii_files/ for
14693
# template instantiation
14694
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14695
$rm out/* && rmdir out
14701
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14702
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14705
hard_links="nottested"
14706
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14707
# do not overwrite the value of need_locks provided by the user
14708
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14709
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14712
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14714
ln conftest.a conftest.b 2>&5 || hard_links=no
14715
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14716
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14717
echo "${ECHO_T}$hard_links" >&6; }
14718
if test "$hard_links" = no; then
14719
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14720
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14727
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14728
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14731
allow_undefined_flag_F77=
14732
enable_shared_with_static_runtimes_F77=no
14734
archive_expsym_cmds_F77=
14735
old_archive_From_new_cmds_F77=
14736
old_archive_from_expsyms_cmds_F77=
14737
export_dynamic_flag_spec_F77=
14738
whole_archive_flag_spec_F77=
14739
thread_safe_flag_spec_F77=
14740
hardcode_libdir_flag_spec_F77=
14741
hardcode_libdir_flag_spec_ld_F77=
14742
hardcode_libdir_separator_F77=
14743
hardcode_direct_F77=no
14744
hardcode_minus_L_F77=no
14745
hardcode_shlibpath_var_F77=unsupported
14746
link_all_deplibs_F77=unknown
14747
hardcode_automatic_F77=no
14749
module_expsym_cmds_F77=
14750
always_export_symbols_F77=no
14751
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14752
# include_expsyms should be a list of space-separated symbols to be *always*
14753
# included in the symbol list
14754
include_expsyms_F77=
14755
# exclude_expsyms can be an extended regexp of symbols to exclude
14756
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14757
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14758
# as well as any symbol that contains `d'.
14759
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14760
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14761
# platforms (ab)use it in PIC code, but their linkers get confused if
14762
# the symbol is explicitly referenced. Since portable code cannot
14763
# rely on this symbol name, it's probably fine to never include it in
14764
# preloaded symbol tables.
14765
extract_expsyms_cmds=
14766
# Just being paranoid about ensuring that cc_basename is set.
14767
for cc_temp in $compiler""; do
14769
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14770
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14775
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14778
cygwin* | mingw* | pw32*)
14779
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14780
# When not using gcc, we currently assume that we are using
14781
# Microsoft Visual C++.
14782
if test "$GCC" != yes; then
14787
# we just hope/assume this is gcc and not c89 (= MSVC++)
14796
if test "$with_gnu_ld" = yes; then
14797
# If archive_cmds runs LD, not CC, wlarc should be empty
14800
# Set some defaults for GNU ld with shared library support. These
14801
# are reset later if shared libraries are not supported. Putting them
14802
# here allows them to be overridden if necessary.
14803
runpath_var=LD_RUN_PATH
14804
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14805
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14806
# ancient GNU ld didn't support --whole-archive et. al.
14807
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14808
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14810
whole_archive_flag_spec_F77=
14812
supports_anon_versioning=no
14813
case `$LD -v 2>/dev/null` in
14814
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14815
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14816
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14817
*\ 2.11.*) ;; # other 2.11 versions
14818
*) supports_anon_versioning=yes ;;
14821
# See if GNU ld supports shared libraries.
14823
aix3* | aix4* | aix5*)
14824
# On AIX/PPC, the GNU linker is very broken
14825
if test "$host_cpu" != ia64; then
14829
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14830
*** to be unable to reliably create shared libraries on AIX.
14831
*** Therefore, libtool is disabling shared libraries support. If you
14832
*** really care for shared libraries, you may want to modify your PATH
14833
*** so that a non-GNU linker is found, and then restart.
14840
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)'
14841
hardcode_libdir_flag_spec_F77='-L$libdir'
14842
hardcode_minus_L_F77=yes
14844
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14845
# that the semantics of dynamic libraries on AmigaOS, at least up
14846
# to version 4, is to share data among multiple programs linked
14847
# with the same dynamic library. Since this doesn't match the
14848
# behavior of shared libraries on other platforms, we can't use
14854
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855
allow_undefined_flag_F77=unsupported
14856
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14857
# support --undefined. This deserves some investigation. FIXME
14858
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864
cygwin* | mingw* | pw32*)
14865
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14866
# as there is no search path for DLLs.
14867
hardcode_libdir_flag_spec_F77='-L$libdir'
14868
allow_undefined_flag_F77=unsupported
14869
always_export_symbols_F77=no
14870
enable_shared_with_static_runtimes_F77=yes
14871
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14873
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14874
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14875
# If the export-symbols file already is a .def file (1st line
14876
# is EXPORTS), use it as is; otherwise, prepend...
14877
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14878
cp $export_symbols $output_objdir/$soname.def;
14880
echo EXPORTS > $output_objdir/$soname.def;
14881
cat $export_symbols >> $output_objdir/$soname.def;
14883
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14890
hardcode_direct_F77=no
14891
hardcode_shlibpath_var_F77=no
14892
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14893
export_dynamic_flag_spec_F77='${wl}-E'
14894
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14895
# Instead, shared libraries are loaded at an image base (0x10000000 by
14896
# default) and relocated if they conflict, which is a slow very memory
14897
# consuming and fragmenting process. To avoid this, we pick a random,
14898
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14899
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14900
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'
14901
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'
14905
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14907
case $cc_basename,$host_cpu in
14908
pgcc*) # Portland Group C compiler
14909
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14910
tmp_addflag=' $pic_flag'
14912
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14913
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14914
tmp_addflag=' $pic_flag -Mnomain' ;;
14915
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14916
tmp_addflag=' -i_dynamic' ;;
14917
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14918
tmp_addflag=' -i_dynamic -nofor_main' ;;
14919
ifc* | ifort*) # Intel Fortran compiler
14920
tmp_addflag=' -nofor_main' ;;
14922
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14924
if test $supports_anon_versioning = yes; then
14925
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14926
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14927
$echo "local: *; };" >> $output_objdir/$libname.ver~
14928
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14930
link_all_deplibs_F77=no
14936
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14937
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14938
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14941
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14947
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14951
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14952
*** create shared libraries on Solaris systems. Therefore, libtool
14953
*** is disabling shared libraries support. We urge you to upgrade GNU
14954
*** binutils to release 2.9.1 or newer. Another option is to modify
14955
*** your PATH or compiler configuration so that the native linker is
14956
*** used, and then restart.
14959
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14967
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14968
case `$LD -v 2>&1` in
14969
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14973
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14974
*** reliably create shared libraries on SCO systems. Therefore, libtool
14975
*** is disabling shared libraries support. We urge you to upgrade GNU
14976
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14977
*** your PATH or compiler configuration so that the native linker is
14978
*** used, and then restart.
14983
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14984
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14985
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14986
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14995
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14997
hardcode_direct_F77=yes
14998
hardcode_shlibpath_var_F77=no
15002
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15011
if test "$ld_shlibs_F77" = no; then
15013
hardcode_libdir_flag_spec_F77=
15014
export_dynamic_flag_spec_F77=
15015
whole_archive_flag_spec_F77=
15018
# PORTME fill in a description of your system's linker (not GNU ld)
15021
allow_undefined_flag_F77=unsupported
15022
always_export_symbols_F77=yes
15023
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'
15024
# Note: this linker hardcodes the directories in LIBPATH if there
15025
# are no directories specified by -L.
15026
hardcode_minus_L_F77=yes
15027
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15028
# Neither direct hardcoding nor static linking is supported with a
15030
hardcode_direct_F77=unsupported
15035
if test "$host_cpu" = ia64; then
15036
# On IA64, the linker does run time linking by default, so we don't
15037
# have to do anything special.
15038
aix_use_runtimelinking=no
15039
exp_sym_flag='-Bexport'
15042
# If we're using GNU nm, then we don't want the "-C" option.
15043
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15044
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15045
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15047
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'
15049
aix_use_runtimelinking=no
15051
# Test if we are trying to use run time linking or normal
15052
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15053
# need to do runtime linking.
15054
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15055
for ld_flag in $LDFLAGS; do
15056
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15057
aix_use_runtimelinking=yes
15064
exp_sym_flag='-bexport'
15065
no_entry_flag='-bnoentry'
15068
# When large executables or shared objects are built, AIX ld can
15069
# have problems creating the table of contents. If linking a library
15070
# or program results in "error TOC overflow" add -mminimal-toc to
15071
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15072
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15074
archive_cmds_F77=''
15075
hardcode_direct_F77=yes
15076
hardcode_libdir_separator_F77=':'
15077
link_all_deplibs_F77=yes
15079
if test "$GCC" = yes; then
15080
case $host_os in aix4.[012]|aix4.[012].*)
15081
# We only want to do this on AIX 4.2 and lower, the check
15082
# below for broken collect2 doesn't work under 4.3+
15083
collect2name=`${CC} -print-prog-name=collect2`
15084
if test -f "$collect2name" && \
15085
strings "$collect2name" | grep resolve_lib_name >/dev/null
15087
# We have reworked collect2
15088
hardcode_direct_F77=yes
15090
# We have old collect2
15091
hardcode_direct_F77=unsupported
15092
# It fails to find uninstalled libraries when the uninstalled
15093
# path is not listed in the libpath. Setting hardcode_minus_L
15094
# to unsupported forces relinking
15095
hardcode_minus_L_F77=yes
15096
hardcode_libdir_flag_spec_F77='-L$libdir'
15097
hardcode_libdir_separator_F77=
15101
shared_flag='-shared'
15102
if test "$aix_use_runtimelinking" = yes; then
15103
shared_flag="$shared_flag "'${wl}-G'
15107
if test "$host_cpu" = ia64; then
15108
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15109
# chokes on -Wl,-G. The following line is correct:
15112
if test "$aix_use_runtimelinking" = yes; then
15113
shared_flag='${wl}-G'
15115
shared_flag='${wl}-bM:SRE'
15120
# It seems that -bexpall does not export symbols beginning with
15121
# underscore (_), so it is better to generate a list of symbols to export.
15122
always_export_symbols_F77=yes
15123
if test "$aix_use_runtimelinking" = yes; then
15124
# Warning - without using the other runtime loading flags (-brtl),
15125
# -berok will link without error, but may produce a broken library.
15126
allow_undefined_flag_F77='-berok'
15127
# Determine the default libpath from the value encoded in an empty executable.
15128
cat >conftest.$ac_ext <<_ACEOF
15133
rm -f conftest.$ac_objext conftest$ac_exeext
15134
if { (ac_try="$ac_link"
15135
case "(($ac_try" in
15136
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137
*) ac_try_echo=$ac_try;;
15139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140
(eval "$ac_link") 2>conftest.er1
15142
grep -v '^ *+' conftest.er1 >conftest.err
15144
cat conftest.err >&5
15145
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146
(exit $ac_status); } && {
15147
test -z "$ac_f77_werror_flag" ||
15148
test ! -s conftest.err
15149
} && test -s conftest$ac_exeext &&
15150
$as_test_x conftest$ac_exeext; then
15152
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15154
# Check for a 64-bit object if we didn't find anything.
15155
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15158
echo "$as_me: failed program was:" >&5
15159
sed 's/^/| /' conftest.$ac_ext >&5
15164
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165
conftest$ac_exeext conftest.$ac_ext
15166
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15168
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15169
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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15171
if test "$host_cpu" = ia64; then
15172
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15173
allow_undefined_flag_F77="-z nodefs"
15174
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"
15176
# Determine the default libpath from the value encoded in an empty executable.
15177
cat >conftest.$ac_ext <<_ACEOF
15182
rm -f conftest.$ac_objext conftest$ac_exeext
15183
if { (ac_try="$ac_link"
15184
case "(($ac_try" in
15185
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186
*) ac_try_echo=$ac_try;;
15188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189
(eval "$ac_link") 2>conftest.er1
15191
grep -v '^ *+' conftest.er1 >conftest.err
15193
cat conftest.err >&5
15194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195
(exit $ac_status); } && {
15196
test -z "$ac_f77_werror_flag" ||
15197
test ! -s conftest.err
15198
} && test -s conftest$ac_exeext &&
15199
$as_test_x conftest$ac_exeext; then
15201
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15203
# Check for a 64-bit object if we didn't find anything.
15204
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15207
echo "$as_me: failed program was:" >&5
15208
sed 's/^/| /' conftest.$ac_ext >&5
15213
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15214
conftest$ac_exeext conftest.$ac_ext
15215
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15217
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15218
# Warning - without using the other run time loading flags,
15219
# -berok will link without error, but may produce a broken library.
15220
no_undefined_flag_F77=' ${wl}-bernotok'
15221
allow_undefined_flag_F77=' ${wl}-berok'
15222
# Exported symbols can be pulled into shared objects from archives
15223
whole_archive_flag_spec_F77='$convenience'
15224
archive_cmds_need_lc_F77=yes
15225
# This is similar to how AIX traditionally builds its shared libraries.
15226
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'
15232
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)'
15233
hardcode_libdir_flag_spec_F77='-L$libdir'
15234
hardcode_minus_L_F77=yes
15235
# see comment about different semantics on the GNU ld section
15240
export_dynamic_flag_spec_F77=-rdynamic
15243
cygwin* | mingw* | pw32*)
15244
# When not using gcc, we currently assume that we are using
15245
# Microsoft Visual C++.
15246
# hardcode_libdir_flag_spec is actually meaningless, as there is
15247
# no search path for DLLs.
15248
hardcode_libdir_flag_spec_F77=' '
15249
allow_undefined_flag_F77=unsupported
15250
# Tell ltmain to make .lib files, not .a files.
15252
# Tell ltmain to make .dll files, not .so files.
15254
# FIXME: Setting linknames here is a bad hack.
15255
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15256
# The linker will automatically build a .lib file if we build a DLL.
15257
old_archive_From_new_cmds_F77='true'
15258
# FIXME: Should let the user specify the lib program.
15259
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15260
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15261
enable_shared_with_static_runtimes_F77=yes
15264
darwin* | rhapsody*)
15266
rhapsody* | darwin1.[012])
15267
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15270
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15271
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15273
case ${MACOSX_DEPLOYMENT_TARGET} in
15275
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15278
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15284
archive_cmds_need_lc_F77=no
15285
hardcode_direct_F77=no
15286
hardcode_automatic_F77=yes
15287
hardcode_shlibpath_var_F77=unsupported
15288
whole_archive_flag_spec_F77=''
15289
link_all_deplibs_F77=yes
15290
if test "$GCC" = yes ; then
15291
output_verbose_link_cmd='echo'
15292
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15293
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15294
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15295
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15296
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15298
case $cc_basename in
15300
output_verbose_link_cmd='echo'
15301
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15302
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15303
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15304
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15305
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15315
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15316
hardcode_libdir_flag_spec_F77='-L$libdir'
15317
hardcode_shlibpath_var_F77=no
15324
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15325
# support. Future versions do this automatically, but an explicit c++rt0.o
15326
# does not break anything, and helps significantly (at the cost of a little
15329
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15330
hardcode_libdir_flag_spec_F77='-R$libdir'
15331
hardcode_direct_F77=yes
15332
hardcode_shlibpath_var_F77=no
15335
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15337
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15338
hardcode_direct_F77=yes
15339
hardcode_minus_L_F77=yes
15340
hardcode_shlibpath_var_F77=no
15343
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15344
freebsd* | dragonfly*)
15345
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15346
hardcode_libdir_flag_spec_F77='-R$libdir'
15347
hardcode_direct_F77=yes
15348
hardcode_shlibpath_var_F77=no
15351
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
15353
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15354
hardcode_libdir_flag_spec_F77='-R$libdir'
15355
hardcode_direct_F77=yes
15356
hardcode_shlibpath_var_F77=no
15357
link_all_deplibs_F77=no
15361
if test "$GCC" = yes; then
15362
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15364
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'
15366
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15367
hardcode_libdir_separator_F77=:
15368
hardcode_direct_F77=yes
15370
# hardcode_minus_L: Not really in the search PATH,
15371
# but as the default location of the library.
15372
hardcode_minus_L_F77=yes
15373
export_dynamic_flag_spec_F77='${wl}-E'
15377
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15378
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15380
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15382
if test "$with_gnu_ld" = no; then
15383
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15384
hardcode_libdir_separator_F77=:
15386
hardcode_direct_F77=yes
15387
export_dynamic_flag_spec_F77='${wl}-E'
15389
# hardcode_minus_L: Not really in the search PATH,
15390
# but as the default location of the library.
15391
hardcode_minus_L_F77=yes
15396
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15399
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15402
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15405
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15411
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15414
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15417
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15421
if test "$with_gnu_ld" = no; then
15422
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15423
hardcode_libdir_separator_F77=:
15427
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15428
hardcode_direct_F77=no
15429
hardcode_shlibpath_var_F77=no
15432
hardcode_direct_F77=yes
15433
export_dynamic_flag_spec_F77='${wl}-E'
15435
# hardcode_minus_L: Not really in the search PATH,
15436
# but as the default location of the library.
15437
hardcode_minus_L_F77=yes
15443
irix5* | irix6* | nonstopux*)
15444
if test "$GCC" = yes; then
15445
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15447
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15448
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15450
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15451
hardcode_libdir_separator_F77=:
15452
link_all_deplibs_F77=yes
15455
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15456
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15457
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15459
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15461
hardcode_libdir_flag_spec_F77='-R$libdir'
15462
hardcode_direct_F77=yes
15463
hardcode_shlibpath_var_F77=no
15467
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15468
hardcode_direct_F77=yes
15469
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15470
hardcode_libdir_separator_F77=:
15471
hardcode_shlibpath_var_F77=no
15475
hardcode_direct_F77=yes
15476
hardcode_shlibpath_var_F77=no
15477
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15478
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15479
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15480
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15481
export_dynamic_flag_spec_F77='${wl}-E'
15484
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15485
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15486
hardcode_libdir_flag_spec_F77='-R$libdir'
15489
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15490
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15497
hardcode_libdir_flag_spec_F77='-L$libdir'
15498
hardcode_minus_L_F77=yes
15499
allow_undefined_flag_F77=unsupported
15500
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'
15501
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15505
if test "$GCC" = yes; then
15506
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15507
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15509
allow_undefined_flag_F77=' -expect_unresolved \*'
15510
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15512
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15513
hardcode_libdir_separator_F77=:
15516
osf4* | osf5*) # as osf3* with the addition of -msym flag
15517
if test "$GCC" = yes; then
15518
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15519
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15520
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15522
allow_undefined_flag_F77=' -expect_unresolved \*'
15523
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15524
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15525
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15527
# Both c and cxx compiler support -rpath directly
15528
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15530
hardcode_libdir_separator_F77=:
15534
no_undefined_flag_F77=' -z text'
15535
if test "$GCC" = yes; then
15537
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15538
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15539
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15542
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15544
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15546
hardcode_libdir_flag_spec_F77='-R$libdir'
15547
hardcode_shlibpath_var_F77=no
15549
solaris2.[0-5] | solaris2.[0-5].*) ;;
15551
# The compiler driver will combine linker options so we
15552
# cannot just pass the convience library names through
15553
# without $wl, iff we do not link with $LD.
15554
# Luckily, gcc supports the same syntax we need for Sun Studio.
15555
# Supported since Solaris 2.6 (maybe 2.5.1?)
15558
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15560
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15563
link_all_deplibs_F77=yes
15567
if test "x$host_vendor" = xsequent; then
15568
# Use $CC to link under sequent, because it throws in some extra .o
15569
# files that make .init and .fini sections work.
15570
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15572
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15574
hardcode_libdir_flag_spec_F77='-L$libdir'
15575
hardcode_direct_F77=yes
15576
hardcode_minus_L_F77=yes
15577
hardcode_shlibpath_var_F77=no
15581
case $host_vendor in
15583
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15584
hardcode_direct_F77=yes # is this really true???
15587
## LD is ld it makes a PLAMLIB
15588
## CC just makes a GrossModule.
15589
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15590
reload_cmds_F77='$CC -r -o $output$reload_objs'
15591
hardcode_direct_F77=no
15594
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15598
runpath_var='LD_RUN_PATH'
15599
hardcode_shlibpath_var_F77=no
15603
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15604
hardcode_shlibpath_var_F77=no
15605
export_dynamic_flag_spec_F77='-Bexport'
15609
if test -d /usr/nec; then
15610
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611
hardcode_shlibpath_var_F77=no
15612
runpath_var=LD_RUN_PATH
15613
hardcode_runpath_var=yes
15618
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15619
no_undefined_flag_F77='${wl}-z,text'
15620
archive_cmds_need_lc_F77=no
15621
hardcode_shlibpath_var_F77=no
15622
runpath_var='LD_RUN_PATH'
15624
if test "$GCC" = yes; then
15625
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15626
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15628
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15629
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633
sysv5* | sco3.2v5* | sco5v6*)
15634
# Note: We can NOT use -z defs as we might desire, because we do not
15635
# link with -lc, and that would cause any symbols used from libc to
15636
# always be unresolved, which means just about no library would
15637
# ever link correctly. If we're not using GNU ld we use -z text
15638
# though, which does catch some bad symbols but isn't as heavy-handed
15640
no_undefined_flag_F77='${wl}-z,text'
15641
allow_undefined_flag_F77='${wl}-z,nodefs'
15642
archive_cmds_need_lc_F77=no
15643
hardcode_shlibpath_var_F77=no
15644
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15645
hardcode_libdir_separator_F77=':'
15646
link_all_deplibs_F77=yes
15647
export_dynamic_flag_spec_F77='${wl}-Bexport'
15648
runpath_var='LD_RUN_PATH'
15650
if test "$GCC" = yes; then
15651
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15652
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15654
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15655
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15660
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661
hardcode_libdir_flag_spec_F77='-L$libdir'
15662
hardcode_shlibpath_var_F77=no
15671
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15672
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15673
test "$ld_shlibs_F77" = no && can_build_shared=no
15676
# Do we need to explicitly link libc?
15678
case "x$archive_cmds_need_lc_F77" in
15680
# Assume -lc should be added
15681
archive_cmds_need_lc_F77=yes
15683
if test "$enable_shared" = yes && test "$GCC" = yes; then
15684
case $archive_cmds_F77 in
15686
# FIXME: we may have to deal with multi-command sequences.
15689
# Test whether the compiler implicitly links with -lc since on some
15690
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15691
# to ld, don't add -lc before -lgcc.
15692
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15693
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15695
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15697
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698
(eval $ac_compile) 2>&5
15700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701
(exit $ac_status); } 2>conftest.err; then
15704
libobjs=conftest.$ac_objext
15706
wl=$lt_prog_compiler_wl_F77
15707
pic_flag=$lt_prog_compiler_pic_F77
15713
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15714
allow_undefined_flag_F77=
15715
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15716
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719
(exit $ac_status); }
15721
archive_cmds_need_lc_F77=no
15723
archive_cmds_need_lc_F77=yes
15725
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15727
cat conftest.err 1>&5
15730
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15731
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15738
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15739
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15740
library_names_spec=
15741
libname_spec='lib$name'
15745
postuninstall_cmds=
15749
shlibpath_overrides_runpath=unknown
15751
dynamic_linker="$host_os ld.so"
15752
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15753
if test "$GCC" = yes; then
15754
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15755
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15756
# if the path contains ";" then we assume it to be the separator
15757
# otherwise default to the standard path separator (i.e. ":") - it is
15758
# assumed that no part of a normal pathname contains ";" but that should
15759
# okay in the real world where ";" in dirpaths is itself problematic.
15760
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15762
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15765
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15767
need_lib_prefix=unknown
15768
hardcode_into_libs=no
15770
# when you set need_version to no, make sure it does not cause -set_version
15771
# flags to be left without arguments
15772
need_version=unknown
15777
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15778
shlibpath_var=LIBPATH
15780
# AIX 3 has no versioning support, so we append a major version to the name.
15781
soname_spec='${libname}${release}${shared_ext}$major'
15788
hardcode_into_libs=yes
15789
if test "$host_cpu" = ia64; then
15790
# AIX 5 supports IA64
15791
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15792
shlibpath_var=LD_LIBRARY_PATH
15794
# With GCC up to 2.95.x, collect2 would create an import file
15795
# for dependence libraries. The import file would start with
15796
# the line `#! .'. This would cause the generated library to
15797
# depend on `.', always an invalid library. This was fixed in
15798
# development snapshots of GCC prior to 3.0.
15800
aix4 | aix4.[01] | aix4.[01].*)
15801
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15803
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15806
can_build_shared=no
15810
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15811
# soname into executable. Probably we can add versioning support to
15812
# collect2, so additional links can be useful in future.
15813
if test "$aix_use_runtimelinking" = yes; then
15814
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15815
# instead of lib<name>.a to let people know that these are not
15816
# typical AIX shared libraries.
15817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819
# We preserve .a as extension for shared libraries through AIX4.2
15820
# and later when we are not doing run time linking.
15821
library_names_spec='${libname}${release}.a $libname.a'
15822
soname_spec='${libname}${release}${shared_ext}$major'
15824
shlibpath_var=LIBPATH
15829
library_names_spec='$libname.ixlibrary $libname.a'
15830
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15831
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
15835
library_names_spec='${libname}${shared_ext}'
15836
dynamic_linker="$host_os ld.so"
15837
shlibpath_var=LIBRARY_PATH
15843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844
soname_spec='${libname}${release}${shared_ext}$major'
15845
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15846
shlibpath_var=LD_LIBRARY_PATH
15847
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15848
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15849
# the default ld.so.conf also contains /usr/contrib/lib and
15850
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15851
# libtool to hard-code these into programs
15854
cygwin* | mingw* | pw32*)
15855
version_type=windows
15860
case $GCC,$host_os in
15861
yes,cygwin* | yes,mingw* | yes,pw32*)
15862
library_names_spec='$libname.dll.a'
15863
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15864
postinstall_cmds='base_file=`basename \${file}`~
15865
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15866
dldir=$destdir/`dirname \$dlpath`~
15867
test -d \$dldir || mkdir -p \$dldir~
15868
$install_prog $dir/$dlname \$dldir/$dlname~
15869
chmod a+x \$dldir/$dlname'
15870
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15871
dlpath=$dir/\$dldll~
15873
shlibpath_overrides_runpath=yes
15877
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15878
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15879
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15882
# MinGW DLLs use traditional 'lib' prefix
15883
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15884
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15885
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15886
# It is most probably a Windows format PATH printed by
15887
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15888
# path with ; separators, and with drive letters. We can handle the
15889
# drive letters (cygwin fileutils understands them), so leave them,
15890
# especially as we might pass files found there to a mingw objdump,
15891
# which wouldn't understand a cygwinified path. Ahh.
15892
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15894
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15898
# pw32 DLLs use 'pw' prefix rather than 'lib'
15899
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15905
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15908
dynamic_linker='Win32 ld.exe'
15909
# FIXME: first we should search . and the directory the executable is in
15913
darwin* | rhapsody*)
15914
dynamic_linker="$host_os dyld"
15915
version_type=darwin
15918
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15919
soname_spec='${libname}${release}${major}$shared_ext'
15920
shlibpath_overrides_runpath=yes
15921
shlibpath_var=DYLD_LIBRARY_PATH
15922
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15923
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15924
if test "$GCC" = yes; then
15925
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15927
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15929
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15936
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15937
soname_spec='${libname}${release}${shared_ext}$major'
15938
shlibpath_var=LD_LIBRARY_PATH
15949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15950
soname_spec='${libname}${release}${shared_ext}$major'
15951
shlibpath_var=LD_LIBRARY_PATH
15952
shlibpath_overrides_runpath=no
15953
hardcode_into_libs=yes
15954
dynamic_linker='GNU ld.so'
15957
freebsd* | dragonfly*)
15958
# DragonFly does not have aout. When/if they implement a new
15959
# versioning mechanism, adjust this.
15960
if test -x /usr/bin/objformat; then
15961
objformat=`/usr/bin/objformat`
15964
freebsd[123]*) objformat=aout ;;
15965
*) objformat=elf ;;
15968
version_type=freebsd-$objformat
15969
case $version_type in
15971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15976
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15980
shlibpath_var=LD_LIBRARY_PATH
15983
shlibpath_overrides_runpath=yes
15985
freebsd3.[01]* | freebsdelf3.[01]*)
15986
shlibpath_overrides_runpath=yes
15987
hardcode_into_libs=yes
15989
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15990
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15991
shlibpath_overrides_runpath=no
15992
hardcode_into_libs=yes
15994
freebsd*) # from 4.6 on
15995
shlibpath_overrides_runpath=yes
15996
hardcode_into_libs=yes
16005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16006
soname_spec='${libname}${release}${shared_ext}$major'
16007
shlibpath_var=LD_LIBRARY_PATH
16008
hardcode_into_libs=yes
16011
hpux9* | hpux10* | hpux11*)
16012
# Give a soname corresponding to the major version so that dld.sl refuses to
16013
# link against other versions.
16020
hardcode_into_libs=yes
16021
dynamic_linker="$host_os dld.so"
16022
shlibpath_var=LD_LIBRARY_PATH
16023
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025
soname_spec='${libname}${release}${shared_ext}$major'
16026
if test "X$HPUX_IA64_MODE" = X32; then
16027
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16029
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16031
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16035
hardcode_into_libs=yes
16036
dynamic_linker="$host_os dld.sl"
16037
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16038
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040
soname_spec='${libname}${release}${shared_ext}$major'
16041
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16042
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16046
dynamic_linker="$host_os dld.sl"
16047
shlibpath_var=SHLIB_PATH
16048
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050
soname_spec='${libname}${release}${shared_ext}$major'
16053
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16054
postinstall_cmds='chmod 555 $lib'
16061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16062
soname_spec='${libname}${release}${shared_ext}$major'
16063
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16064
shlibpath_var=LD_LIBRARY_PATH
16065
shlibpath_overrides_runpath=no
16066
hardcode_into_libs=yes
16069
irix5* | irix6* | nonstopux*)
16071
nonstopux*) version_type=nonstopux ;;
16073
if test "$lt_cv_prog_gnu_ld" = yes; then
16081
soname_spec='${libname}${release}${shared_ext}$major'
16082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16084
irix5* | nonstopux*)
16085
libsuff= shlibsuff=
16088
case $LD in # libtool.m4 will add one of these switches to LD
16089
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090
libsuff= shlibsuff= libmagic=32-bit;;
16091
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092
libsuff=32 shlibsuff=N32 libmagic=N32;;
16093
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095
*) libsuff= shlibsuff= libmagic=never-match;;
16099
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100
shlibpath_overrides_runpath=no
16101
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16102
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103
hardcode_into_libs=yes
16106
# No shared lib support for Linux oldld, aout, or coff.
16107
linux*oldld* | linux*aout* | linux*coff*)
16111
# This must be Linux ELF.
16116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117
soname_spec='${libname}${release}${shared_ext}$major'
16118
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119
shlibpath_var=LD_LIBRARY_PATH
16120
shlibpath_overrides_runpath=no
16121
# This implies no fast_install, which is unacceptable.
16122
# Some rework will be needed to allow for fast_install
16123
# before this can be enabled.
16124
hardcode_into_libs=yes
16126
# Append ld.so.conf contents to the search path
16127
if test -f /etc/ld.so.conf; then
16128
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16129
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16132
# We used to test for /lib/ld.so.1 and disable shared libraries on
16133
# powerpc, because MkLinux only supported shared libraries with the
16134
# GNU dynamic linker. Since this was broken with cross compilers,
16135
# most powerpc-linux boxes support dynamic linking these days and
16136
# people can always --disable-shared, the test was removed, and we
16137
# assume the GNU/Linux dynamic linker is in use.
16138
dynamic_linker='GNU/Linux ld.so'
16145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16146
soname_spec='${libname}${release}${shared_ext}$major'
16147
shlibpath_var=LD_LIBRARY_PATH
16148
shlibpath_overrides_runpath=no
16149
hardcode_into_libs=yes
16150
dynamic_linker='NetBSD ld.elf_so'
16157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16158
soname_spec='${libname}${release}${shared_ext}$major'
16159
shlibpath_var=LD_LIBRARY_PATH
16160
shlibpath_overrides_runpath=no
16161
hardcode_into_libs=yes
16162
dynamic_linker='GNU ld.so'
16169
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16171
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16172
dynamic_linker='NetBSD (a.out) ld.so'
16174
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16175
soname_spec='${libname}${release}${shared_ext}$major'
16176
dynamic_linker='NetBSD ld.elf_so'
16178
shlibpath_var=LD_LIBRARY_PATH
16179
shlibpath_overrides_runpath=yes
16180
hardcode_into_libs=yes
16185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186
shlibpath_var=LD_LIBRARY_PATH
16187
shlibpath_overrides_runpath=yes
16194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195
soname_spec='${libname}${release}${shared_ext}$major'
16196
shlibpath_var=LD_LIBRARY_PATH
16197
shlibpath_overrides_runpath=yes
16202
sys_lib_dlsearch_path_spec="/usr/lib"
16204
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16206
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16207
*) need_version=no ;;
16209
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16210
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16211
shlibpath_var=LD_LIBRARY_PATH
16212
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16214
openbsd2.[89] | openbsd2.[89].*)
16215
shlibpath_overrides_runpath=no
16218
shlibpath_overrides_runpath=yes
16222
shlibpath_overrides_runpath=yes
16227
libname_spec='$name'
16230
library_names_spec='$libname${shared_ext} $libname.a'
16231
dynamic_linker='OS/2 ld.exe'
16232
shlibpath_var=LIBPATH
16235
osf3* | osf4* | osf5*)
16239
soname_spec='${libname}${release}${shared_ext}$major'
16240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241
shlibpath_var=LD_LIBRARY_PATH
16242
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16243
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16250
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251
soname_spec='${libname}${release}${shared_ext}$major'
16252
shlibpath_var=LD_LIBRARY_PATH
16253
shlibpath_overrides_runpath=yes
16254
hardcode_into_libs=yes
16255
# ldd complains unless libraries are executable
16256
postinstall_cmds='chmod +x $lib'
16261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16262
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16263
shlibpath_var=LD_LIBRARY_PATH
16264
shlibpath_overrides_runpath=yes
16265
if test "$with_gnu_ld" = yes; then
16273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274
soname_spec='${libname}${release}${shared_ext}$major'
16275
shlibpath_var=LD_LIBRARY_PATH
16276
case $host_vendor in
16278
shlibpath_overrides_runpath=no
16280
export_dynamic_flag_spec='${wl}-Blargedynsym'
16281
runpath_var=LD_RUN_PATH
16289
shlibpath_overrides_runpath=no
16290
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16296
if test -d /usr/nec ;then
16298
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16299
soname_spec='$libname${shared_ext}.$major'
16300
shlibpath_var=LD_LIBRARY_PATH
16304
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16305
version_type=freebsd-elf
16308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16309
soname_spec='${libname}${release}${shared_ext}$major'
16310
shlibpath_var=LD_LIBRARY_PATH
16311
hardcode_into_libs=yes
16312
if test "$with_gnu_ld" = yes; then
16313
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16314
shlibpath_overrides_runpath=no
16316
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16317
shlibpath_overrides_runpath=yes
16320
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16324
sys_lib_dlsearch_path_spec='/usr/lib'
16329
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330
soname_spec='${libname}${release}${shared_ext}$major'
16331
shlibpath_var=LD_LIBRARY_PATH
16338
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16339
echo "${ECHO_T}$dynamic_linker" >&6; }
16340
test "$dynamic_linker" = no && can_build_shared=no
16342
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16343
if test "$GCC" = yes; then
16344
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16347
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16348
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16349
hardcode_action_F77=
16350
if test -n "$hardcode_libdir_flag_spec_F77" || \
16351
test -n "$runpath_var_F77" || \
16352
test "X$hardcode_automatic_F77" = "Xyes" ; then
16354
# We can hardcode non-existant directories.
16355
if test "$hardcode_direct_F77" != no &&
16356
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16357
# have to relink, otherwise we might link with an installed library
16358
# when we should be linking with a yet-to-be-installed one
16359
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16360
test "$hardcode_minus_L_F77" != no; then
16361
# Linking always hardcodes the temporary library directory.
16362
hardcode_action_F77=relink
16364
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16365
hardcode_action_F77=immediate
16368
# We cannot hardcode anything, or else we can only hardcode existing
16370
hardcode_action_F77=unsupported
16372
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16373
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16375
if test "$hardcode_action_F77" = relink; then
16376
# Fast installation is not supported
16377
enable_fast_install=no
16378
elif test "$shlibpath_overrides_runpath" = yes ||
16379
test "$enable_shared" = no; then
16380
# Fast installation is not necessary
16381
enable_fast_install=needless
16385
# The else clause should only fire when bootstrapping the
16386
# libtool distribution, otherwise you forgot to ship ltmain.sh
16387
# with your package, and you will get complaints that there are
16388
# no rules to generate ltmain.sh.
16389
if test -f "$ltmain"; then
16390
# See if we are running on zsh, and set the options which allow our commands through
16391
# without removal of \ escapes.
16392
if test -n "${ZSH_VERSION+set}" ; then
16393
setopt NO_GLOB_SUBST
16395
# Now quote all the things that may contain metacharacters while being
16396
# careful not to overquote the AC_SUBSTed values. We take copies of the
16397
# variables and quote the copies for generation of the libtool script.
16398
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16400
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16401
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16402
deplibs_check_method reload_flag reload_cmds need_locks \
16403
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16404
lt_cv_sys_global_symbol_to_c_name_address \
16405
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16406
old_postinstall_cmds old_postuninstall_cmds \
16410
lt_prog_compiler_wl_F77 \
16411
lt_prog_compiler_pic_F77 \
16412
lt_prog_compiler_static_F77 \
16413
lt_prog_compiler_no_builtin_flag_F77 \
16414
export_dynamic_flag_spec_F77 \
16415
thread_safe_flag_spec_F77 \
16416
whole_archive_flag_spec_F77 \
16417
enable_shared_with_static_runtimes_F77 \
16418
old_archive_cmds_F77 \
16419
old_archive_from_new_cmds_F77 \
16420
predep_objects_F77 \
16421
postdep_objects_F77 \
16424
compiler_lib_search_path_F77 \
16426
archive_expsym_cmds_F77 \
16427
postinstall_cmds_F77 \
16428
postuninstall_cmds_F77 \
16429
old_archive_from_expsyms_cmds_F77 \
16430
allow_undefined_flag_F77 \
16431
no_undefined_flag_F77 \
16432
export_symbols_cmds_F77 \
16433
hardcode_libdir_flag_spec_F77 \
16434
hardcode_libdir_flag_spec_ld_F77 \
16435
hardcode_libdir_separator_F77 \
16436
hardcode_automatic_F77 \
16438
module_expsym_cmds_F77 \
16439
lt_cv_prog_compiler_c_o_F77 \
16440
exclude_expsyms_F77 \
16441
include_expsyms_F77; do
16444
old_archive_cmds_F77 | \
16445
old_archive_from_new_cmds_F77 | \
16446
archive_cmds_F77 | \
16447
archive_expsym_cmds_F77 | \
16448
module_cmds_F77 | \
16449
module_expsym_cmds_F77 | \
16450
old_archive_from_expsyms_cmds_F77 | \
16451
export_symbols_cmds_F77 | \
16452
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16453
postinstall_cmds | postuninstall_cmds | \
16454
old_postinstall_cmds | old_postuninstall_cmds | \
16455
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16456
# Double-quote double-evaled strings.
16457
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16460
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16466
*'\$0 --fallback-echo"')
16467
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16473
cat <<__EOF__ >> "$cfgfile"
16474
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16476
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16478
# Shell to use when invoking shell scripts.
16481
# Whether or not to build shared libraries.
16482
build_libtool_libs=$enable_shared
16484
# Whether or not to build static libraries.
16485
build_old_libs=$enable_static
16487
# Whether or not to add -lc for building shared libraries.
16488
build_libtool_need_lc=$archive_cmds_need_lc_F77
16490
# Whether or not to disallow shared libs when runtime libs are static
16491
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16493
# Whether or not to optimize for fast installation.
16494
fast_install=$enable_fast_install
16497
host_alias=$host_alias
16501
# The build system.
16502
build_alias=$build_alias
16506
# An echo program that does not interpret backslashes.
16511
AR_FLAGS=$lt_AR_FLAGS
16516
# LTCC compiler flags.
16517
LTCFLAGS=$lt_LTCFLAGS
16519
# A language-specific compiler.
16520
CC=$lt_compiler_F77
16522
# Is the compiler the GNU C compiler?
16528
# The linker used to build libraries.
16531
# Whether we need hard or soft links.
16534
# A BSD-compatible nm program.
16537
# A symbol stripping program
16540
# Used to examine libraries when file_magic_cmd begins "file"
16541
MAGIC_CMD=$MAGIC_CMD
16543
# Used on cygwin: DLL creation program.
16546
# Used on cygwin: object dumper.
16549
# Used on cygwin: assembler.
16552
# The name of the directory that contains temporary libtool files.
16555
# How to create reloadable object files.
16556
reload_flag=$lt_reload_flag
16557
reload_cmds=$lt_reload_cmds
16559
# How to pass a linker flag through the compiler.
16560
wl=$lt_lt_prog_compiler_wl_F77
16562
# Object file suffix (normally "o").
16563
objext="$ac_objext"
16565
# Old archive suffix (normally "a").
16568
# Shared library suffix (normally ".so").
16569
shrext_cmds='$shrext_cmds'
16571
# Executable file suffix (normally "").
16574
# Additional compiler flags for building library objects.
16575
pic_flag=$lt_lt_prog_compiler_pic_F77
16578
# What is the maximum length of a command?
16579
max_cmd_len=$lt_cv_sys_max_cmd_len
16581
# Does compiler simultaneously support -c and -o options?
16582
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16584
# Must we lock files when doing compilation?
16585
need_locks=$lt_need_locks
16587
# Do we need the lib prefix for modules?
16588
need_lib_prefix=$need_lib_prefix
16590
# Do we need a version for libraries?
16591
need_version=$need_version
16593
# Whether dlopen is supported.
16594
dlopen_support=$enable_dlopen
16596
# Whether dlopen of programs is supported.
16597
dlopen_self=$enable_dlopen_self
16599
# Whether dlopen of statically linked programs is supported.
16600
dlopen_self_static=$enable_dlopen_self_static
16602
# Compiler flag to prevent dynamic linking.
16603
link_static_flag=$lt_lt_prog_compiler_static_F77
16605
# Compiler flag to turn off builtin functions.
16606
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16608
# Compiler flag to allow reflexive dlopens.
16609
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16611
# Compiler flag to generate shared objects directly from archives.
16612
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16614
# Compiler flag to generate thread-safe objects.
16615
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16617
# Library versioning type.
16618
version_type=$version_type
16620
# Format of library name prefix.
16621
libname_spec=$lt_libname_spec
16623
# List of archive names. First name is the real one, the rest are links.
16624
# The last name is the one that the linker finds with -lNAME.
16625
library_names_spec=$lt_library_names_spec
16627
# The coded name of the library, if different from the real name.
16628
soname_spec=$lt_soname_spec
16630
# Commands used to build and install an old-style archive.
16632
old_archive_cmds=$lt_old_archive_cmds_F77
16633
old_postinstall_cmds=$lt_old_postinstall_cmds
16634
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16636
# Create an old-style archive from a shared archive.
16637
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16639
# Create a temporary old-style archive to link instead of a shared archive.
16640
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16642
# Commands used to build and install a shared archive.
16643
archive_cmds=$lt_archive_cmds_F77
16644
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16645
postinstall_cmds=$lt_postinstall_cmds
16646
postuninstall_cmds=$lt_postuninstall_cmds
16648
# Commands used to build a loadable module (assumed same as above if empty)
16649
module_cmds=$lt_module_cmds_F77
16650
module_expsym_cmds=$lt_module_expsym_cmds_F77
16652
# Commands to strip libraries.
16653
old_striplib=$lt_old_striplib
16654
striplib=$lt_striplib
16656
# Dependencies to place before the objects being linked to create a
16658
predep_objects=$lt_predep_objects_F77
16660
# Dependencies to place after the objects being linked to create a
16662
postdep_objects=$lt_postdep_objects_F77
16664
# Dependencies to place before the objects being linked to create a
16666
predeps=$lt_predeps_F77
16668
# Dependencies to place after the objects being linked to create a
16670
postdeps=$lt_postdeps_F77
16672
# The library search path used internally by the compiler when linking
16673
# a shared library.
16674
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16676
# Method to check whether dependent libraries are shared objects.
16677
deplibs_check_method=$lt_deplibs_check_method
16679
# Command to use when deplibs_check_method == file_magic.
16680
file_magic_cmd=$lt_file_magic_cmd
16682
# Flag that allows shared libraries with undefined symbols to be built.
16683
allow_undefined_flag=$lt_allow_undefined_flag_F77
16685
# Flag that forces no undefined symbols.
16686
no_undefined_flag=$lt_no_undefined_flag_F77
16688
# Commands used to finish a libtool library installation in a directory.
16689
finish_cmds=$lt_finish_cmds
16691
# Same as above, but a single script fragment to be evaled but not shown.
16692
finish_eval=$lt_finish_eval
16694
# Take the output of nm and produce a listing of raw symbols and C names.
16695
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16697
# Transform the output of nm in a proper C declaration
16698
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16700
# Transform the output of nm in a C name address pair
16701
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16703
# This is the shared library runtime path variable.
16704
runpath_var=$runpath_var
16706
# This is the shared library path variable.
16707
shlibpath_var=$shlibpath_var
16709
# Is shlibpath searched before the hard-coded library search path?
16710
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16712
# How to hardcode a shared library path into an executable.
16713
hardcode_action=$hardcode_action_F77
16715
# Whether we should hardcode library paths into libraries.
16716
hardcode_into_libs=$hardcode_into_libs
16718
# Flag to hardcode \$libdir into a binary during linking.
16719
# This must work even if \$libdir does not exist.
16720
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16722
# If ld is used when linking, flag to hardcode \$libdir into
16723
# a binary during linking. This must work even if \$libdir does
16725
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16727
# Whether we need a single -rpath flag with a separated argument.
16728
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16730
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16731
# resulting binary.
16732
hardcode_direct=$hardcode_direct_F77
16734
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16735
# resulting binary.
16736
hardcode_minus_L=$hardcode_minus_L_F77
16738
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16739
# the resulting binary.
16740
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16742
# Set to yes if building a shared library automatically hardcodes DIR into the library
16743
# and all subsequent libraries and executables linked against it.
16744
hardcode_automatic=$hardcode_automatic_F77
16746
# Variables whose values should be saved in libtool wrapper scripts and
16747
# restored at relink time.
16748
variables_saved_for_relink="$variables_saved_for_relink"
16750
# Whether libtool must link a program against all its dependency libraries.
16751
link_all_deplibs=$link_all_deplibs_F77
16753
# Compile-time system search path for libraries
16754
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16756
# Run-time system search path for libraries
16757
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16759
# Fix the shell variable \$srcfile for the compiler.
16760
fix_srcfile_path="$fix_srcfile_path_F77"
16762
# Set to yes if exported symbols are required.
16763
always_export_symbols=$always_export_symbols_F77
16765
# The commands to list exported symbols.
16766
export_symbols_cmds=$lt_export_symbols_cmds_F77
16768
# The commands to extract the exported symbol list from a shared archive.
16769
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16771
# Symbols that should not be listed in the preloaded symbols.
16772
exclude_expsyms=$lt_exclude_expsyms_F77
16774
# Symbols that must always be exported.
16775
include_expsyms=$lt_include_expsyms_F77
16777
# ### END LIBTOOL TAG CONFIG: $tagname
16783
# If there is no Makefile yet, we rely on a make rule to execute
16784
# `config.status --recheck' to rerun these tests and create the
16785
# libtool script then.
16786
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16787
if test -f "$ltmain_in"; then
16788
test -f Makefile && make "$ltmain"
16794
ac_cpp='$CXXCPP $CPPFLAGS'
16795
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16796
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16797
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16807
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16810
# Source file extension for Java test sources.
16813
# Object file extension for compiled Java test sources.
16817
# Code to be used in simple compile tests
16818
lt_simple_compile_test_code="class foo {}\n"
16820
# Code to be used in simple link tests
16821
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16823
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16825
# If no C compiler was specified, use CC.
16828
# If no C compiler flags were specified, use CFLAGS.
16829
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16831
# Allow CC to be a program name with arguments.
16835
# save warnings/boilerplate of simple test code
16836
ac_outfile=conftest.$ac_objext
16837
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16838
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16839
_lt_compiler_boilerplate=`cat conftest.err`
16842
ac_outfile=conftest.$ac_objext
16843
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16844
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16845
_lt_linker_boilerplate=`cat conftest.err`
16849
# Allow CC to be a program name with arguments.
16854
for cc_temp in $compiler""; do
16856
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16857
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16862
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16865
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16866
archive_cmds_need_lc_GCJ=no
16868
old_archive_cmds_GCJ=$old_archive_cmds
16871
## There is no encapsulation within the following macros, do not change
16872
## the running order or otherwise move them around unless you know exactly
16873
## what you are doing...
16875
lt_prog_compiler_no_builtin_flag_GCJ=
16877
if test "$GCC" = yes; then
16878
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16881
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16882
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16883
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16884
echo $ECHO_N "(cached) $ECHO_C" >&6
16886
lt_cv_prog_compiler_rtti_exceptions=no
16887
ac_outfile=conftest.$ac_objext
16888
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16889
lt_compiler_flag="-fno-rtti -fno-exceptions"
16890
# Insert the option either (1) after the last *FLAGS variable, or
16891
# (2) before a word containing "conftest.", or (3) at the end.
16892
# Note that $ac_compile itself does not contain backslashes and begins
16893
# with a dollar sign (not a hyphen), so the echo should work correctly.
16894
# The option is referenced via a variable to avoid confusing sed.
16895
lt_compile=`echo "$ac_compile" | $SED \
16896
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16897
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16898
-e 's:$: $lt_compiler_flag:'`
16899
(eval echo "\"\$as_me:16899: $lt_compile\"" >&5)
16900
(eval "$lt_compile" 2>conftest.err)
16902
cat conftest.err >&5
16903
echo "$as_me:16903: \$? = $ac_status" >&5
16904
if (exit $ac_status) && test -s "$ac_outfile"; then
16905
# The compiler can only warn and ignore the option if not recognized
16906
# So say no if there are warnings other than the usual output.
16907
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16908
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16909
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16910
lt_cv_prog_compiler_rtti_exceptions=yes
16916
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16917
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16919
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16920
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16927
lt_prog_compiler_wl_GCJ=
16928
lt_prog_compiler_pic_GCJ=
16929
lt_prog_compiler_static_GCJ=
16931
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16932
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16934
if test "$GCC" = yes; then
16935
lt_prog_compiler_wl_GCJ='-Wl,'
16936
lt_prog_compiler_static_GCJ='-static'
16940
# All AIX code is PIC.
16941
if test "$host_cpu" = ia64; then
16942
# AIX 5 now supports IA64 processor
16943
lt_prog_compiler_static_GCJ='-Bstatic'
16948
# FIXME: we need at least 68020 code to build shared libraries, but
16949
# adding the `-m68020' flag to GCC prevents building anything better,
16951
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16954
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16955
# PIC is the default for these OSes.
16958
mingw* | pw32* | os2*)
16959
# This hack is so that the source file can tell whether it is being
16960
# built for inclusion in a dll (and should export symbols for example).
16961
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16964
darwin* | rhapsody*)
16965
# PIC is the default on this platform
16966
# Common symbols not allowed in MH_DYLIB files
16967
lt_prog_compiler_pic_GCJ='-fno-common'
16971
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16972
# Instead, we relocate shared libraries at runtime.
16976
# Just because we use GCC doesn't mean we suddenly get shared libraries
16977
# on systems that don't support them.
16978
lt_prog_compiler_can_build_shared_GCJ=no
16983
if test -d /usr/nec; then
16984
lt_prog_compiler_pic_GCJ=-Kconform_pic
16989
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16990
# not for PA HP-UX.
16996
lt_prog_compiler_pic_GCJ='-fPIC'
17002
lt_prog_compiler_pic_GCJ='-fPIC'
17006
# PORTME Check for flag to pass linker flags through the system compiler.
17009
lt_prog_compiler_wl_GCJ='-Wl,'
17010
if test "$host_cpu" = ia64; then
17011
# AIX 5 now supports IA64 processor
17012
lt_prog_compiler_static_GCJ='-Bstatic'
17014
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17018
# PIC is the default on this platform
17019
# Common symbols not allowed in MH_DYLIB files
17020
case $cc_basename in
17022
lt_prog_compiler_pic_GCJ='-qnocommon'
17023
lt_prog_compiler_wl_GCJ='-Wl,'
17028
mingw* | pw32* | os2*)
17029
# This hack is so that the source file can tell whether it is being
17030
# built for inclusion in a dll (and should export symbols for example).
17031
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17034
hpux9* | hpux10* | hpux11*)
17035
lt_prog_compiler_wl_GCJ='-Wl,'
17036
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17037
# not for PA HP-UX.
17043
lt_prog_compiler_pic_GCJ='+Z'
17046
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17047
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17050
irix5* | irix6* | nonstopux*)
17051
lt_prog_compiler_wl_GCJ='-Wl,'
17052
# PIC (with -KPIC) is the default.
17053
lt_prog_compiler_static_GCJ='-non_shared'
17057
lt_prog_compiler_pic_GCJ='-KPIC'
17058
lt_prog_compiler_static_GCJ='-Bstatic'
17062
case $cc_basename in
17064
lt_prog_compiler_wl_GCJ='-Wl,'
17065
lt_prog_compiler_pic_GCJ='-KPIC'
17066
lt_prog_compiler_static_GCJ='-static'
17068
pgcc* | pgf77* | pgf90* | pgf95*)
17069
# Portland Group compilers (*not* the Pentium gcc compiler,
17070
# which looks to be a dead project)
17071
lt_prog_compiler_wl_GCJ='-Wl,'
17072
lt_prog_compiler_pic_GCJ='-fpic'
17073
lt_prog_compiler_static_GCJ='-Bstatic'
17076
lt_prog_compiler_wl_GCJ='-Wl,'
17077
# All Alpha code is PIC.
17078
lt_prog_compiler_static_GCJ='-non_shared'
17083
osf3* | osf4* | osf5*)
17084
lt_prog_compiler_wl_GCJ='-Wl,'
17085
# All OSF/1 code is PIC.
17086
lt_prog_compiler_static_GCJ='-non_shared'
17090
lt_prog_compiler_pic_GCJ='-KPIC'
17091
lt_prog_compiler_static_GCJ='-Bstatic'
17092
case $cc_basename in
17093
f77* | f90* | f95*)
17094
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17096
lt_prog_compiler_wl_GCJ='-Wl,';;
17101
lt_prog_compiler_wl_GCJ='-Qoption ld '
17102
lt_prog_compiler_pic_GCJ='-PIC'
17103
lt_prog_compiler_static_GCJ='-Bstatic'
17106
sysv4 | sysv4.2uw2* | sysv4.3*)
17107
lt_prog_compiler_wl_GCJ='-Wl,'
17108
lt_prog_compiler_pic_GCJ='-KPIC'
17109
lt_prog_compiler_static_GCJ='-Bstatic'
17113
if test -d /usr/nec ;then
17114
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17115
lt_prog_compiler_static_GCJ='-Bstatic'
17119
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17120
lt_prog_compiler_wl_GCJ='-Wl,'
17121
lt_prog_compiler_pic_GCJ='-KPIC'
17122
lt_prog_compiler_static_GCJ='-Bstatic'
17126
lt_prog_compiler_wl_GCJ='-Wl,'
17127
lt_prog_compiler_can_build_shared_GCJ=no
17131
lt_prog_compiler_pic_GCJ='-pic'
17132
lt_prog_compiler_static_GCJ='-Bstatic'
17136
lt_prog_compiler_can_build_shared_GCJ=no
17141
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17142
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17145
# Check to make sure the PIC flag actually works.
17147
if test -n "$lt_prog_compiler_pic_GCJ"; then
17149
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17150
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17151
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17152
echo $ECHO_N "(cached) $ECHO_C" >&6
17154
lt_prog_compiler_pic_works_GCJ=no
17155
ac_outfile=conftest.$ac_objext
17156
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17157
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17158
# Insert the option either (1) after the last *FLAGS variable, or
17159
# (2) before a word containing "conftest.", or (3) at the end.
17160
# Note that $ac_compile itself does not contain backslashes and begins
17161
# with a dollar sign (not a hyphen), so the echo should work correctly.
17162
# The option is referenced via a variable to avoid confusing sed.
17163
lt_compile=`echo "$ac_compile" | $SED \
17164
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17165
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17166
-e 's:$: $lt_compiler_flag:'`
17167
(eval echo "\"\$as_me:17167: $lt_compile\"" >&5)
17168
(eval "$lt_compile" 2>conftest.err)
17170
cat conftest.err >&5
17171
echo "$as_me:17171: \$? = $ac_status" >&5
17172
if (exit $ac_status) && test -s "$ac_outfile"; then
17173
# The compiler can only warn and ignore the option if not recognized
17174
# So say no if there are warnings other than the usual output.
17175
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17176
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17177
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17178
lt_prog_compiler_pic_works_GCJ=yes
17184
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17185
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17187
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17188
case $lt_prog_compiler_pic_GCJ in
17190
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17193
lt_prog_compiler_pic_GCJ=
17194
lt_prog_compiler_can_build_shared_GCJ=no
17199
# For platforms which do not support PIC, -DPIC is meaningless:
17201
lt_prog_compiler_pic_GCJ=
17204
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17209
# Check to make sure the static flag actually works.
17211
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17212
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17213
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17214
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17215
echo $ECHO_N "(cached) $ECHO_C" >&6
17217
lt_prog_compiler_static_works_GCJ=no
17218
save_LDFLAGS="$LDFLAGS"
17219
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17220
printf "$lt_simple_link_test_code" > conftest.$ac_ext
17221
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17222
# The linker can only warn and ignore the option if not recognized
17223
# So say no if there are warnings
17224
if test -s conftest.err; then
17225
# Append any errors to the config.log.
17226
cat conftest.err 1>&5
17227
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17228
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17229
if diff conftest.exp conftest.er2 >/dev/null; then
17230
lt_prog_compiler_static_works_GCJ=yes
17233
lt_prog_compiler_static_works_GCJ=yes
17237
LDFLAGS="$save_LDFLAGS"
17240
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17241
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17243
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17246
lt_prog_compiler_static_GCJ=
17250
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17251
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17252
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17253
echo $ECHO_N "(cached) $ECHO_C" >&6
17255
lt_cv_prog_compiler_c_o_GCJ=no
17256
$rm -r conftest 2>/dev/null
17260
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17262
lt_compiler_flag="-o out/conftest2.$ac_objext"
17263
# Insert the option either (1) after the last *FLAGS variable, or
17264
# (2) before a word containing "conftest.", or (3) at the end.
17265
# Note that $ac_compile itself does not contain backslashes and begins
17266
# with a dollar sign (not a hyphen), so the echo should work correctly.
17267
lt_compile=`echo "$ac_compile" | $SED \
17268
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17269
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17270
-e 's:$: $lt_compiler_flag:'`
17271
(eval echo "\"\$as_me:17271: $lt_compile\"" >&5)
17272
(eval "$lt_compile" 2>out/conftest.err)
17274
cat out/conftest.err >&5
17275
echo "$as_me:17275: \$? = $ac_status" >&5
17276
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17278
# The compiler can only warn and ignore the option if not recognized
17279
# So say no if there are warnings
17280
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17281
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17282
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17283
lt_cv_prog_compiler_c_o_GCJ=yes
17288
# SGI C++ compiler will create directory out/ii_files/ for
17289
# template instantiation
17290
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17291
$rm out/* && rmdir out
17297
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17298
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17301
hard_links="nottested"
17302
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17303
# do not overwrite the value of need_locks provided by the user
17304
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17305
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17308
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17310
ln conftest.a conftest.b 2>&5 || hard_links=no
17311
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17312
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17313
echo "${ECHO_T}$hard_links" >&6; }
17314
if test "$hard_links" = no; then
17315
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17316
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17323
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17324
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17327
allow_undefined_flag_GCJ=
17328
enable_shared_with_static_runtimes_GCJ=no
17330
archive_expsym_cmds_GCJ=
17331
old_archive_From_new_cmds_GCJ=
17332
old_archive_from_expsyms_cmds_GCJ=
17333
export_dynamic_flag_spec_GCJ=
17334
whole_archive_flag_spec_GCJ=
17335
thread_safe_flag_spec_GCJ=
17336
hardcode_libdir_flag_spec_GCJ=
17337
hardcode_libdir_flag_spec_ld_GCJ=
17338
hardcode_libdir_separator_GCJ=
17339
hardcode_direct_GCJ=no
17340
hardcode_minus_L_GCJ=no
17341
hardcode_shlibpath_var_GCJ=unsupported
17342
link_all_deplibs_GCJ=unknown
17343
hardcode_automatic_GCJ=no
17345
module_expsym_cmds_GCJ=
17346
always_export_symbols_GCJ=no
17347
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17348
# include_expsyms should be a list of space-separated symbols to be *always*
17349
# included in the symbol list
17350
include_expsyms_GCJ=
17351
# exclude_expsyms can be an extended regexp of symbols to exclude
17352
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17353
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17354
# as well as any symbol that contains `d'.
17355
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17356
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17357
# platforms (ab)use it in PIC code, but their linkers get confused if
17358
# the symbol is explicitly referenced. Since portable code cannot
17359
# rely on this symbol name, it's probably fine to never include it in
17360
# preloaded symbol tables.
17361
extract_expsyms_cmds=
17362
# Just being paranoid about ensuring that cc_basename is set.
17363
for cc_temp in $compiler""; do
17365
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17366
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17371
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17374
cygwin* | mingw* | pw32*)
17375
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17376
# When not using gcc, we currently assume that we are using
17377
# Microsoft Visual C++.
17378
if test "$GCC" != yes; then
17383
# we just hope/assume this is gcc and not c89 (= MSVC++)
17392
if test "$with_gnu_ld" = yes; then
17393
# If archive_cmds runs LD, not CC, wlarc should be empty
17396
# Set some defaults for GNU ld with shared library support. These
17397
# are reset later if shared libraries are not supported. Putting them
17398
# here allows them to be overridden if necessary.
17399
runpath_var=LD_RUN_PATH
17400
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17401
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17402
# ancient GNU ld didn't support --whole-archive et. al.
17403
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17404
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17406
whole_archive_flag_spec_GCJ=
17408
supports_anon_versioning=no
17409
case `$LD -v 2>/dev/null` in
17410
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17411
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17412
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17413
*\ 2.11.*) ;; # other 2.11 versions
17414
*) supports_anon_versioning=yes ;;
17417
# See if GNU ld supports shared libraries.
17419
aix3* | aix4* | aix5*)
17420
# On AIX/PPC, the GNU linker is very broken
17421
if test "$host_cpu" != ia64; then
17425
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17426
*** to be unable to reliably create shared libraries on AIX.
17427
*** Therefore, libtool is disabling shared libraries support. If you
17428
*** really care for shared libraries, you may want to modify your PATH
17429
*** so that a non-GNU linker is found, and then restart.
17436
archive_cmds_GCJ='$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)'
17437
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17438
hardcode_minus_L_GCJ=yes
17440
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17441
# that the semantics of dynamic libraries on AmigaOS, at least up
17442
# to version 4, is to share data among multiple programs linked
17443
# with the same dynamic library. Since this doesn't match the
17444
# behavior of shared libraries on other platforms, we can't use
17450
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17451
allow_undefined_flag_GCJ=unsupported
17452
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17453
# support --undefined. This deserves some investigation. FIXME
17454
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17460
cygwin* | mingw* | pw32*)
17461
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17462
# as there is no search path for DLLs.
17463
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17464
allow_undefined_flag_GCJ=unsupported
17465
always_export_symbols_GCJ=no
17466
enable_shared_with_static_runtimes_GCJ=yes
17467
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17469
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17470
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17471
# If the export-symbols file already is a .def file (1st line
17472
# is EXPORTS), use it as is; otherwise, prepend...
17473
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17474
cp $export_symbols $output_objdir/$soname.def;
17476
echo EXPORTS > $output_objdir/$soname.def;
17477
cat $export_symbols >> $output_objdir/$soname.def;
17479
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17486
hardcode_direct_GCJ=no
17487
hardcode_shlibpath_var_GCJ=no
17488
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17489
export_dynamic_flag_spec_GCJ='${wl}-E'
17490
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17491
# Instead, shared libraries are loaded at an image base (0x10000000 by
17492
# default) and relocated if they conflict, which is a slow very memory
17493
# consuming and fragmenting process. To avoid this, we pick a random,
17494
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17495
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17496
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17497
archive_expsym_cmds_GCJ='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'
17501
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17503
case $cc_basename,$host_cpu in
17504
pgcc*) # Portland Group C compiler
17505
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17506
tmp_addflag=' $pic_flag'
17508
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17509
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17510
tmp_addflag=' $pic_flag -Mnomain' ;;
17511
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17512
tmp_addflag=' -i_dynamic' ;;
17513
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17514
tmp_addflag=' -i_dynamic -nofor_main' ;;
17515
ifc* | ifort*) # Intel Fortran compiler
17516
tmp_addflag=' -nofor_main' ;;
17518
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17520
if test $supports_anon_versioning = yes; then
17521
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17522
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17523
$echo "local: *; };" >> $output_objdir/$libname.ver~
17524
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17526
link_all_deplibs_GCJ=no
17532
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17533
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17534
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17537
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17538
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17543
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17547
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17548
*** create shared libraries on Solaris systems. Therefore, libtool
17549
*** is disabling shared libraries support. We urge you to upgrade GNU
17550
*** binutils to release 2.9.1 or newer. Another option is to modify
17551
*** your PATH or compiler configuration so that the native linker is
17552
*** used, and then restart.
17555
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17556
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17563
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17564
case `$LD -v 2>&1` in
17565
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17569
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17570
*** reliably create shared libraries on SCO systems. Therefore, libtool
17571
*** is disabling shared libraries support. We urge you to upgrade GNU
17572
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17573
*** your PATH or compiler configuration so that the native linker is
17574
*** used, and then restart.
17579
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17580
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17581
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17582
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17591
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17593
hardcode_direct_GCJ=yes
17594
hardcode_shlibpath_var_GCJ=no
17598
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17599
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17600
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17607
if test "$ld_shlibs_GCJ" = no; then
17609
hardcode_libdir_flag_spec_GCJ=
17610
export_dynamic_flag_spec_GCJ=
17611
whole_archive_flag_spec_GCJ=
17614
# PORTME fill in a description of your system's linker (not GNU ld)
17617
allow_undefined_flag_GCJ=unsupported
17618
always_export_symbols_GCJ=yes
17619
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17620
# Note: this linker hardcodes the directories in LIBPATH if there
17621
# are no directories specified by -L.
17622
hardcode_minus_L_GCJ=yes
17623
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17624
# Neither direct hardcoding nor static linking is supported with a
17626
hardcode_direct_GCJ=unsupported
17631
if test "$host_cpu" = ia64; then
17632
# On IA64, the linker does run time linking by default, so we don't
17633
# have to do anything special.
17634
aix_use_runtimelinking=no
17635
exp_sym_flag='-Bexport'
17638
# If we're using GNU nm, then we don't want the "-C" option.
17639
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17640
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17641
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17643
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17645
aix_use_runtimelinking=no
17647
# Test if we are trying to use run time linking or normal
17648
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17649
# need to do runtime linking.
17650
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17651
for ld_flag in $LDFLAGS; do
17652
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17653
aix_use_runtimelinking=yes
17660
exp_sym_flag='-bexport'
17661
no_entry_flag='-bnoentry'
17664
# When large executables or shared objects are built, AIX ld can
17665
# have problems creating the table of contents. If linking a library
17666
# or program results in "error TOC overflow" add -mminimal-toc to
17667
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17668
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17670
archive_cmds_GCJ=''
17671
hardcode_direct_GCJ=yes
17672
hardcode_libdir_separator_GCJ=':'
17673
link_all_deplibs_GCJ=yes
17675
if test "$GCC" = yes; then
17676
case $host_os in aix4.[012]|aix4.[012].*)
17677
# We only want to do this on AIX 4.2 and lower, the check
17678
# below for broken collect2 doesn't work under 4.3+
17679
collect2name=`${CC} -print-prog-name=collect2`
17680
if test -f "$collect2name" && \
17681
strings "$collect2name" | grep resolve_lib_name >/dev/null
17683
# We have reworked collect2
17684
hardcode_direct_GCJ=yes
17686
# We have old collect2
17687
hardcode_direct_GCJ=unsupported
17688
# It fails to find uninstalled libraries when the uninstalled
17689
# path is not listed in the libpath. Setting hardcode_minus_L
17690
# to unsupported forces relinking
17691
hardcode_minus_L_GCJ=yes
17692
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17693
hardcode_libdir_separator_GCJ=
17697
shared_flag='-shared'
17698
if test "$aix_use_runtimelinking" = yes; then
17699
shared_flag="$shared_flag "'${wl}-G'
17703
if test "$host_cpu" = ia64; then
17704
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17705
# chokes on -Wl,-G. The following line is correct:
17708
if test "$aix_use_runtimelinking" = yes; then
17709
shared_flag='${wl}-G'
17711
shared_flag='${wl}-bM:SRE'
17716
# It seems that -bexpall does not export symbols beginning with
17717
# underscore (_), so it is better to generate a list of symbols to export.
17718
always_export_symbols_GCJ=yes
17719
if test "$aix_use_runtimelinking" = yes; then
17720
# Warning - without using the other runtime loading flags (-brtl),
17721
# -berok will link without error, but may produce a broken library.
17722
allow_undefined_flag_GCJ='-berok'
17723
# Determine the default libpath from the value encoded in an empty executable.
17724
cat >conftest.$ac_ext <<_ACEOF
17727
cat confdefs.h >>conftest.$ac_ext
17728
cat >>conftest.$ac_ext <<_ACEOF
17729
/* end confdefs.h. */
17739
rm -f conftest.$ac_objext conftest$ac_exeext
17740
if { (ac_try="$ac_link"
17741
case "(($ac_try" in
17742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743
*) ac_try_echo=$ac_try;;
17745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746
(eval "$ac_link") 2>conftest.er1
17748
grep -v '^ *+' conftest.er1 >conftest.err
17750
cat conftest.err >&5
17751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752
(exit $ac_status); } && {
17753
test -z "$ac_cxx_werror_flag" ||
17754
test ! -s conftest.err
17755
} && test -s conftest$ac_exeext &&
17756
$as_test_x conftest$ac_exeext; then
17758
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17760
# Check for a 64-bit object if we didn't find anything.
17761
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17764
echo "$as_me: failed program was:" >&5
17765
sed 's/^/| /' conftest.$ac_ext >&5
17770
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17771
conftest$ac_exeext conftest.$ac_ext
17772
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17774
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17775
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17777
if test "$host_cpu" = ia64; then
17778
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17779
allow_undefined_flag_GCJ="-z nodefs"
17780
archive_expsym_cmds_GCJ="\$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"
17782
# Determine the default libpath from the value encoded in an empty executable.
17783
cat >conftest.$ac_ext <<_ACEOF
17786
cat confdefs.h >>conftest.$ac_ext
17787
cat >>conftest.$ac_ext <<_ACEOF
17788
/* end confdefs.h. */
17798
rm -f conftest.$ac_objext conftest$ac_exeext
17799
if { (ac_try="$ac_link"
17800
case "(($ac_try" in
17801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802
*) ac_try_echo=$ac_try;;
17804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805
(eval "$ac_link") 2>conftest.er1
17807
grep -v '^ *+' conftest.er1 >conftest.err
17809
cat conftest.err >&5
17810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811
(exit $ac_status); } && {
17812
test -z "$ac_cxx_werror_flag" ||
17813
test ! -s conftest.err
17814
} && test -s conftest$ac_exeext &&
17815
$as_test_x conftest$ac_exeext; then
17817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17819
# Check for a 64-bit object if we didn't find anything.
17820
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17823
echo "$as_me: failed program was:" >&5
17824
sed 's/^/| /' conftest.$ac_ext >&5
17829
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17830
conftest$ac_exeext conftest.$ac_ext
17831
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17833
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17834
# Warning - without using the other run time loading flags,
17835
# -berok will link without error, but may produce a broken library.
17836
no_undefined_flag_GCJ=' ${wl}-bernotok'
17837
allow_undefined_flag_GCJ=' ${wl}-berok'
17838
# Exported symbols can be pulled into shared objects from archives
17839
whole_archive_flag_spec_GCJ='$convenience'
17840
archive_cmds_need_lc_GCJ=yes
17841
# This is similar to how AIX traditionally builds its shared libraries.
17842
archive_expsym_cmds_GCJ="\$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'
17848
archive_cmds_GCJ='$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)'
17849
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17850
hardcode_minus_L_GCJ=yes
17851
# see comment about different semantics on the GNU ld section
17856
export_dynamic_flag_spec_GCJ=-rdynamic
17859
cygwin* | mingw* | pw32*)
17860
# When not using gcc, we currently assume that we are using
17861
# Microsoft Visual C++.
17862
# hardcode_libdir_flag_spec is actually meaningless, as there is
17863
# no search path for DLLs.
17864
hardcode_libdir_flag_spec_GCJ=' '
17865
allow_undefined_flag_GCJ=unsupported
17866
# Tell ltmain to make .lib files, not .a files.
17868
# Tell ltmain to make .dll files, not .so files.
17870
# FIXME: Setting linknames here is a bad hack.
17871
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17872
# The linker will automatically build a .lib file if we build a DLL.
17873
old_archive_From_new_cmds_GCJ='true'
17874
# FIXME: Should let the user specify the lib program.
17875
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17876
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17877
enable_shared_with_static_runtimes_GCJ=yes
17880
darwin* | rhapsody*)
17882
rhapsody* | darwin1.[012])
17883
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17886
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17887
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17889
case ${MACOSX_DEPLOYMENT_TARGET} in
17891
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17894
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17900
archive_cmds_need_lc_GCJ=no
17901
hardcode_direct_GCJ=no
17902
hardcode_automatic_GCJ=yes
17903
hardcode_shlibpath_var_GCJ=unsupported
17904
whole_archive_flag_spec_GCJ=''
17905
link_all_deplibs_GCJ=yes
17906
if test "$GCC" = yes ; then
17907
output_verbose_link_cmd='echo'
17908
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17909
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17910
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17911
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17912
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17914
case $cc_basename in
17916
output_verbose_link_cmd='echo'
17917
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17918
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17919
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17920
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17921
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17931
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17932
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17933
hardcode_shlibpath_var_GCJ=no
17940
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17941
# support. Future versions do this automatically, but an explicit c++rt0.o
17942
# does not break anything, and helps significantly (at the cost of a little
17945
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17946
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17947
hardcode_direct_GCJ=yes
17948
hardcode_shlibpath_var_GCJ=no
17951
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17953
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17954
hardcode_direct_GCJ=yes
17955
hardcode_minus_L_GCJ=yes
17956
hardcode_shlibpath_var_GCJ=no
17959
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17960
freebsd* | dragonfly*)
17961
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17962
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17963
hardcode_direct_GCJ=yes
17964
hardcode_shlibpath_var_GCJ=no
17967
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
17969
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17970
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17971
hardcode_direct_GCJ=yes
17972
hardcode_shlibpath_var_GCJ=no
17973
link_all_deplibs_GCJ=no
17977
if test "$GCC" = yes; then
17978
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17980
archive_cmds_GCJ='$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'
17982
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17983
hardcode_libdir_separator_GCJ=:
17984
hardcode_direct_GCJ=yes
17986
# hardcode_minus_L: Not really in the search PATH,
17987
# but as the default location of the library.
17988
hardcode_minus_L_GCJ=yes
17989
export_dynamic_flag_spec_GCJ='${wl}-E'
17993
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17994
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17996
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17998
if test "$with_gnu_ld" = no; then
17999
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18000
hardcode_libdir_separator_GCJ=:
18002
hardcode_direct_GCJ=yes
18003
export_dynamic_flag_spec_GCJ='${wl}-E'
18005
# hardcode_minus_L: Not really in the search PATH,
18006
# but as the default location of the library.
18007
hardcode_minus_L_GCJ=yes
18012
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18015
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18018
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18021
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18027
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18030
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18033
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18037
if test "$with_gnu_ld" = no; then
18038
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18039
hardcode_libdir_separator_GCJ=:
18043
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18044
hardcode_direct_GCJ=no
18045
hardcode_shlibpath_var_GCJ=no
18048
hardcode_direct_GCJ=yes
18049
export_dynamic_flag_spec_GCJ='${wl}-E'
18051
# hardcode_minus_L: Not really in the search PATH,
18052
# but as the default location of the library.
18053
hardcode_minus_L_GCJ=yes
18059
irix5* | irix6* | nonstopux*)
18060
if test "$GCC" = yes; then
18061
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18063
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18064
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18066
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18067
hardcode_libdir_separator_GCJ=:
18068
link_all_deplibs_GCJ=yes
18071
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18072
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18073
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18075
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18077
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18078
hardcode_direct_GCJ=yes
18079
hardcode_shlibpath_var_GCJ=no
18083
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084
hardcode_direct_GCJ=yes
18085
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18086
hardcode_libdir_separator_GCJ=:
18087
hardcode_shlibpath_var_GCJ=no
18091
hardcode_direct_GCJ=yes
18092
hardcode_shlibpath_var_GCJ=no
18093
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18094
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18095
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18096
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18097
export_dynamic_flag_spec_GCJ='${wl}-E'
18100
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18101
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18102
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18105
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18106
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18113
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18114
hardcode_minus_L_GCJ=yes
18115
allow_undefined_flag_GCJ=unsupported
18116
archive_cmds_GCJ='$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'
18117
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18121
if test "$GCC" = yes; then
18122
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18123
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18125
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18126
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18128
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18129
hardcode_libdir_separator_GCJ=:
18132
osf4* | osf5*) # as osf3* with the addition of -msym flag
18133
if test "$GCC" = yes; then
18134
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18135
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18136
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18138
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18139
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18140
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18141
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18143
# Both c and cxx compiler support -rpath directly
18144
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18146
hardcode_libdir_separator_GCJ=:
18150
no_undefined_flag_GCJ=' -z text'
18151
if test "$GCC" = yes; then
18153
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18154
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18155
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18158
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18159
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18160
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18162
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18163
hardcode_shlibpath_var_GCJ=no
18165
solaris2.[0-5] | solaris2.[0-5].*) ;;
18167
# The compiler driver will combine linker options so we
18168
# cannot just pass the convience library names through
18169
# without $wl, iff we do not link with $LD.
18170
# Luckily, gcc supports the same syntax we need for Sun Studio.
18171
# Supported since Solaris 2.6 (maybe 2.5.1?)
18174
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18176
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18179
link_all_deplibs_GCJ=yes
18183
if test "x$host_vendor" = xsequent; then
18184
# Use $CC to link under sequent, because it throws in some extra .o
18185
# files that make .init and .fini sections work.
18186
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18188
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18190
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18191
hardcode_direct_GCJ=yes
18192
hardcode_minus_L_GCJ=yes
18193
hardcode_shlibpath_var_GCJ=no
18197
case $host_vendor in
18199
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18200
hardcode_direct_GCJ=yes # is this really true???
18203
## LD is ld it makes a PLAMLIB
18204
## CC just makes a GrossModule.
18205
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18206
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18207
hardcode_direct_GCJ=no
18210
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18211
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18214
runpath_var='LD_RUN_PATH'
18215
hardcode_shlibpath_var_GCJ=no
18219
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220
hardcode_shlibpath_var_GCJ=no
18221
export_dynamic_flag_spec_GCJ='-Bexport'
18225
if test -d /usr/nec; then
18226
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18227
hardcode_shlibpath_var_GCJ=no
18228
runpath_var=LD_RUN_PATH
18229
hardcode_runpath_var=yes
18234
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18235
no_undefined_flag_GCJ='${wl}-z,text'
18236
archive_cmds_need_lc_GCJ=no
18237
hardcode_shlibpath_var_GCJ=no
18238
runpath_var='LD_RUN_PATH'
18240
if test "$GCC" = yes; then
18241
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18242
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18244
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18245
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18249
sysv5* | sco3.2v5* | sco5v6*)
18250
# Note: We can NOT use -z defs as we might desire, because we do not
18251
# link with -lc, and that would cause any symbols used from libc to
18252
# always be unresolved, which means just about no library would
18253
# ever link correctly. If we're not using GNU ld we use -z text
18254
# though, which does catch some bad symbols but isn't as heavy-handed
18256
no_undefined_flag_GCJ='${wl}-z,text'
18257
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18258
archive_cmds_need_lc_GCJ=no
18259
hardcode_shlibpath_var_GCJ=no
18260
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18261
hardcode_libdir_separator_GCJ=':'
18262
link_all_deplibs_GCJ=yes
18263
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18264
runpath_var='LD_RUN_PATH'
18266
if test "$GCC" = yes; then
18267
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18268
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18271
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18276
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18277
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18278
hardcode_shlibpath_var_GCJ=no
18287
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18288
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18289
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18292
# Do we need to explicitly link libc?
18294
case "x$archive_cmds_need_lc_GCJ" in
18296
# Assume -lc should be added
18297
archive_cmds_need_lc_GCJ=yes
18299
if test "$enable_shared" = yes && test "$GCC" = yes; then
18300
case $archive_cmds_GCJ in
18302
# FIXME: we may have to deal with multi-command sequences.
18305
# Test whether the compiler implicitly links with -lc since on some
18306
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18307
# to ld, don't add -lc before -lgcc.
18308
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18309
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18311
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18314
(eval $ac_compile) 2>&5
18316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317
(exit $ac_status); } 2>conftest.err; then
18320
libobjs=conftest.$ac_objext
18322
wl=$lt_prog_compiler_wl_GCJ
18323
pic_flag=$lt_prog_compiler_pic_GCJ
18329
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18330
allow_undefined_flag_GCJ=
18331
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18332
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335
(exit $ac_status); }
18337
archive_cmds_need_lc_GCJ=no
18339
archive_cmds_need_lc_GCJ=yes
18341
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18343
cat conftest.err 1>&5
18346
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18347
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18354
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18355
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18356
library_names_spec=
18357
libname_spec='lib$name'
18361
postuninstall_cmds=
18365
shlibpath_overrides_runpath=unknown
18367
dynamic_linker="$host_os ld.so"
18368
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18369
if test "$GCC" = yes; then
18370
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18371
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18372
# if the path contains ";" then we assume it to be the separator
18373
# otherwise default to the standard path separator (i.e. ":") - it is
18374
# assumed that no part of a normal pathname contains ";" but that should
18375
# okay in the real world where ";" in dirpaths is itself problematic.
18376
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18378
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18381
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18383
need_lib_prefix=unknown
18384
hardcode_into_libs=no
18386
# when you set need_version to no, make sure it does not cause -set_version
18387
# flags to be left without arguments
18388
need_version=unknown
18393
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18394
shlibpath_var=LIBPATH
18396
# AIX 3 has no versioning support, so we append a major version to the name.
18397
soname_spec='${libname}${release}${shared_ext}$major'
18404
hardcode_into_libs=yes
18405
if test "$host_cpu" = ia64; then
18406
# AIX 5 supports IA64
18407
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18408
shlibpath_var=LD_LIBRARY_PATH
18410
# With GCC up to 2.95.x, collect2 would create an import file
18411
# for dependence libraries. The import file would start with
18412
# the line `#! .'. This would cause the generated library to
18413
# depend on `.', always an invalid library. This was fixed in
18414
# development snapshots of GCC prior to 3.0.
18416
aix4 | aix4.[01] | aix4.[01].*)
18417
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18419
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18422
can_build_shared=no
18426
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18427
# soname into executable. Probably we can add versioning support to
18428
# collect2, so additional links can be useful in future.
18429
if test "$aix_use_runtimelinking" = yes; then
18430
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18431
# instead of lib<name>.a to let people know that these are not
18432
# typical AIX shared libraries.
18433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435
# We preserve .a as extension for shared libraries through AIX4.2
18436
# and later when we are not doing run time linking.
18437
library_names_spec='${libname}${release}.a $libname.a'
18438
soname_spec='${libname}${release}${shared_ext}$major'
18440
shlibpath_var=LIBPATH
18445
library_names_spec='$libname.ixlibrary $libname.a'
18446
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18447
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
18451
library_names_spec='${libname}${shared_ext}'
18452
dynamic_linker="$host_os ld.so"
18453
shlibpath_var=LIBRARY_PATH
18459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18460
soname_spec='${libname}${release}${shared_ext}$major'
18461
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18462
shlibpath_var=LD_LIBRARY_PATH
18463
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18464
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18465
# the default ld.so.conf also contains /usr/contrib/lib and
18466
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18467
# libtool to hard-code these into programs
18470
cygwin* | mingw* | pw32*)
18471
version_type=windows
18476
case $GCC,$host_os in
18477
yes,cygwin* | yes,mingw* | yes,pw32*)
18478
library_names_spec='$libname.dll.a'
18479
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18480
postinstall_cmds='base_file=`basename \${file}`~
18481
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18482
dldir=$destdir/`dirname \$dlpath`~
18483
test -d \$dldir || mkdir -p \$dldir~
18484
$install_prog $dir/$dlname \$dldir/$dlname~
18485
chmod a+x \$dldir/$dlname'
18486
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18487
dlpath=$dir/\$dldll~
18489
shlibpath_overrides_runpath=yes
18493
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18494
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18495
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18498
# MinGW DLLs use traditional 'lib' prefix
18499
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18500
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18501
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18502
# It is most probably a Windows format PATH printed by
18503
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18504
# path with ; separators, and with drive letters. We can handle the
18505
# drive letters (cygwin fileutils understands them), so leave them,
18506
# especially as we might pass files found there to a mingw objdump,
18507
# which wouldn't understand a cygwinified path. Ahh.
18508
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18510
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18514
# pw32 DLLs use 'pw' prefix rather than 'lib'
18515
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18521
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18524
dynamic_linker='Win32 ld.exe'
18525
# FIXME: first we should search . and the directory the executable is in
18529
darwin* | rhapsody*)
18530
dynamic_linker="$host_os dyld"
18531
version_type=darwin
18534
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18535
soname_spec='${libname}${release}${major}$shared_ext'
18536
shlibpath_overrides_runpath=yes
18537
shlibpath_var=DYLD_LIBRARY_PATH
18538
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18539
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18540
if test "$GCC" = yes; then
18541
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18543
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18545
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18553
soname_spec='${libname}${release}${shared_ext}$major'
18554
shlibpath_var=LD_LIBRARY_PATH
18565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18566
soname_spec='${libname}${release}${shared_ext}$major'
18567
shlibpath_var=LD_LIBRARY_PATH
18568
shlibpath_overrides_runpath=no
18569
hardcode_into_libs=yes
18570
dynamic_linker='GNU ld.so'
18573
freebsd* | dragonfly*)
18574
# DragonFly does not have aout. When/if they implement a new
18575
# versioning mechanism, adjust this.
18576
if test -x /usr/bin/objformat; then
18577
objformat=`/usr/bin/objformat`
18580
freebsd[123]*) objformat=aout ;;
18581
*) objformat=elf ;;
18584
version_type=freebsd-$objformat
18585
case $version_type in
18587
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18592
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18596
shlibpath_var=LD_LIBRARY_PATH
18599
shlibpath_overrides_runpath=yes
18601
freebsd3.[01]* | freebsdelf3.[01]*)
18602
shlibpath_overrides_runpath=yes
18603
hardcode_into_libs=yes
18605
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18606
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18607
shlibpath_overrides_runpath=no
18608
hardcode_into_libs=yes
18610
freebsd*) # from 4.6 on
18611
shlibpath_overrides_runpath=yes
18612
hardcode_into_libs=yes
18621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18622
soname_spec='${libname}${release}${shared_ext}$major'
18623
shlibpath_var=LD_LIBRARY_PATH
18624
hardcode_into_libs=yes
18627
hpux9* | hpux10* | hpux11*)
18628
# Give a soname corresponding to the major version so that dld.sl refuses to
18629
# link against other versions.
18636
hardcode_into_libs=yes
18637
dynamic_linker="$host_os dld.so"
18638
shlibpath_var=LD_LIBRARY_PATH
18639
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18641
soname_spec='${libname}${release}${shared_ext}$major'
18642
if test "X$HPUX_IA64_MODE" = X32; then
18643
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18645
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18647
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18651
hardcode_into_libs=yes
18652
dynamic_linker="$host_os dld.sl"
18653
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18654
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656
soname_spec='${libname}${release}${shared_ext}$major'
18657
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18658
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18662
dynamic_linker="$host_os dld.sl"
18663
shlibpath_var=SHLIB_PATH
18664
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18666
soname_spec='${libname}${release}${shared_ext}$major'
18669
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18670
postinstall_cmds='chmod 555 $lib'
18677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18678
soname_spec='${libname}${release}${shared_ext}$major'
18679
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18680
shlibpath_var=LD_LIBRARY_PATH
18681
shlibpath_overrides_runpath=no
18682
hardcode_into_libs=yes
18685
irix5* | irix6* | nonstopux*)
18687
nonstopux*) version_type=nonstopux ;;
18689
if test "$lt_cv_prog_gnu_ld" = yes; then
18697
soname_spec='${libname}${release}${shared_ext}$major'
18698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18700
irix5* | nonstopux*)
18701
libsuff= shlibsuff=
18704
case $LD in # libtool.m4 will add one of these switches to LD
18705
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18706
libsuff= shlibsuff= libmagic=32-bit;;
18707
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18708
libsuff=32 shlibsuff=N32 libmagic=N32;;
18709
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18710
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18711
*) libsuff= shlibsuff= libmagic=never-match;;
18715
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18716
shlibpath_overrides_runpath=no
18717
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18718
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18719
hardcode_into_libs=yes
18722
# No shared lib support for Linux oldld, aout, or coff.
18723
linux*oldld* | linux*aout* | linux*coff*)
18727
# This must be Linux ELF.
18732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18733
soname_spec='${libname}${release}${shared_ext}$major'
18734
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18735
shlibpath_var=LD_LIBRARY_PATH
18736
shlibpath_overrides_runpath=no
18737
# This implies no fast_install, which is unacceptable.
18738
# Some rework will be needed to allow for fast_install
18739
# before this can be enabled.
18740
hardcode_into_libs=yes
18742
# Append ld.so.conf contents to the search path
18743
if test -f /etc/ld.so.conf; then
18744
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18745
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18748
# We used to test for /lib/ld.so.1 and disable shared libraries on
18749
# powerpc, because MkLinux only supported shared libraries with the
18750
# GNU dynamic linker. Since this was broken with cross compilers,
18751
# most powerpc-linux boxes support dynamic linking these days and
18752
# people can always --disable-shared, the test was removed, and we
18753
# assume the GNU/Linux dynamic linker is in use.
18754
dynamic_linker='GNU/Linux ld.so'
18761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18762
soname_spec='${libname}${release}${shared_ext}$major'
18763
shlibpath_var=LD_LIBRARY_PATH
18764
shlibpath_overrides_runpath=no
18765
hardcode_into_libs=yes
18766
dynamic_linker='NetBSD ld.elf_so'
18773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18774
soname_spec='${libname}${release}${shared_ext}$major'
18775
shlibpath_var=LD_LIBRARY_PATH
18776
shlibpath_overrides_runpath=no
18777
hardcode_into_libs=yes
18778
dynamic_linker='GNU ld.so'
18785
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18787
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18788
dynamic_linker='NetBSD (a.out) ld.so'
18790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18791
soname_spec='${libname}${release}${shared_ext}$major'
18792
dynamic_linker='NetBSD ld.elf_so'
18794
shlibpath_var=LD_LIBRARY_PATH
18795
shlibpath_overrides_runpath=yes
18796
hardcode_into_libs=yes
18801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802
shlibpath_var=LD_LIBRARY_PATH
18803
shlibpath_overrides_runpath=yes
18810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18811
soname_spec='${libname}${release}${shared_ext}$major'
18812
shlibpath_var=LD_LIBRARY_PATH
18813
shlibpath_overrides_runpath=yes
18818
sys_lib_dlsearch_path_spec="/usr/lib"
18820
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18822
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18823
*) need_version=no ;;
18825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18826
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18827
shlibpath_var=LD_LIBRARY_PATH
18828
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18830
openbsd2.[89] | openbsd2.[89].*)
18831
shlibpath_overrides_runpath=no
18834
shlibpath_overrides_runpath=yes
18838
shlibpath_overrides_runpath=yes
18843
libname_spec='$name'
18846
library_names_spec='$libname${shared_ext} $libname.a'
18847
dynamic_linker='OS/2 ld.exe'
18848
shlibpath_var=LIBPATH
18851
osf3* | osf4* | osf5*)
18855
soname_spec='${libname}${release}${shared_ext}$major'
18856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857
shlibpath_var=LD_LIBRARY_PATH
18858
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18859
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867
soname_spec='${libname}${release}${shared_ext}$major'
18868
shlibpath_var=LD_LIBRARY_PATH
18869
shlibpath_overrides_runpath=yes
18870
hardcode_into_libs=yes
18871
# ldd complains unless libraries are executable
18872
postinstall_cmds='chmod +x $lib'
18877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18878
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18879
shlibpath_var=LD_LIBRARY_PATH
18880
shlibpath_overrides_runpath=yes
18881
if test "$with_gnu_ld" = yes; then
18889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890
soname_spec='${libname}${release}${shared_ext}$major'
18891
shlibpath_var=LD_LIBRARY_PATH
18892
case $host_vendor in
18894
shlibpath_overrides_runpath=no
18896
export_dynamic_flag_spec='${wl}-Blargedynsym'
18897
runpath_var=LD_RUN_PATH
18905
shlibpath_overrides_runpath=no
18906
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18912
if test -d /usr/nec ;then
18914
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18915
soname_spec='$libname${shared_ext}.$major'
18916
shlibpath_var=LD_LIBRARY_PATH
18920
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18921
version_type=freebsd-elf
18924
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18925
soname_spec='${libname}${release}${shared_ext}$major'
18926
shlibpath_var=LD_LIBRARY_PATH
18927
hardcode_into_libs=yes
18928
if test "$with_gnu_ld" = yes; then
18929
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18930
shlibpath_overrides_runpath=no
18932
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18933
shlibpath_overrides_runpath=yes
18936
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18940
sys_lib_dlsearch_path_spec='/usr/lib'
18945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18946
soname_spec='${libname}${release}${shared_ext}$major'
18947
shlibpath_var=LD_LIBRARY_PATH
18954
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18955
echo "${ECHO_T}$dynamic_linker" >&6; }
18956
test "$dynamic_linker" = no && can_build_shared=no
18958
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18959
if test "$GCC" = yes; then
18960
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18963
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18964
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18965
hardcode_action_GCJ=
18966
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18967
test -n "$runpath_var_GCJ" || \
18968
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18970
# We can hardcode non-existant directories.
18971
if test "$hardcode_direct_GCJ" != no &&
18972
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18973
# have to relink, otherwise we might link with an installed library
18974
# when we should be linking with a yet-to-be-installed one
18975
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18976
test "$hardcode_minus_L_GCJ" != no; then
18977
# Linking always hardcodes the temporary library directory.
18978
hardcode_action_GCJ=relink
18980
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18981
hardcode_action_GCJ=immediate
18984
# We cannot hardcode anything, or else we can only hardcode existing
18986
hardcode_action_GCJ=unsupported
18988
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18989
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18991
if test "$hardcode_action_GCJ" = relink; then
18992
# Fast installation is not supported
18993
enable_fast_install=no
18994
elif test "$shlibpath_overrides_runpath" = yes ||
18995
test "$enable_shared" = no; then
18996
# Fast installation is not necessary
18997
enable_fast_install=needless
19001
# The else clause should only fire when bootstrapping the
19002
# libtool distribution, otherwise you forgot to ship ltmain.sh
19003
# with your package, and you will get complaints that there are
19004
# no rules to generate ltmain.sh.
19005
if test -f "$ltmain"; then
19006
# See if we are running on zsh, and set the options which allow our commands through
19007
# without removal of \ escapes.
19008
if test -n "${ZSH_VERSION+set}" ; then
19009
setopt NO_GLOB_SUBST
19011
# Now quote all the things that may contain metacharacters while being
19012
# careful not to overquote the AC_SUBSTed values. We take copies of the
19013
# variables and quote the copies for generation of the libtool script.
19014
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19016
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19017
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19018
deplibs_check_method reload_flag reload_cmds need_locks \
19019
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19020
lt_cv_sys_global_symbol_to_c_name_address \
19021
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19022
old_postinstall_cmds old_postuninstall_cmds \
19026
lt_prog_compiler_wl_GCJ \
19027
lt_prog_compiler_pic_GCJ \
19028
lt_prog_compiler_static_GCJ \
19029
lt_prog_compiler_no_builtin_flag_GCJ \
19030
export_dynamic_flag_spec_GCJ \
19031
thread_safe_flag_spec_GCJ \
19032
whole_archive_flag_spec_GCJ \
19033
enable_shared_with_static_runtimes_GCJ \
19034
old_archive_cmds_GCJ \
19035
old_archive_from_new_cmds_GCJ \
19036
predep_objects_GCJ \
19037
postdep_objects_GCJ \
19040
compiler_lib_search_path_GCJ \
19042
archive_expsym_cmds_GCJ \
19043
postinstall_cmds_GCJ \
19044
postuninstall_cmds_GCJ \
19045
old_archive_from_expsyms_cmds_GCJ \
19046
allow_undefined_flag_GCJ \
19047
no_undefined_flag_GCJ \
19048
export_symbols_cmds_GCJ \
19049
hardcode_libdir_flag_spec_GCJ \
19050
hardcode_libdir_flag_spec_ld_GCJ \
19051
hardcode_libdir_separator_GCJ \
19052
hardcode_automatic_GCJ \
19054
module_expsym_cmds_GCJ \
19055
lt_cv_prog_compiler_c_o_GCJ \
19056
exclude_expsyms_GCJ \
19057
include_expsyms_GCJ; do
19060
old_archive_cmds_GCJ | \
19061
old_archive_from_new_cmds_GCJ | \
19062
archive_cmds_GCJ | \
19063
archive_expsym_cmds_GCJ | \
19064
module_cmds_GCJ | \
19065
module_expsym_cmds_GCJ | \
19066
old_archive_from_expsyms_cmds_GCJ | \
19067
export_symbols_cmds_GCJ | \
19068
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19069
postinstall_cmds | postuninstall_cmds | \
19070
old_postinstall_cmds | old_postuninstall_cmds | \
19071
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19072
# Double-quote double-evaled strings.
19073
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19076
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19082
*'\$0 --fallback-echo"')
19083
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19089
cat <<__EOF__ >> "$cfgfile"
19090
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19092
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19094
# Shell to use when invoking shell scripts.
19097
# Whether or not to build shared libraries.
19098
build_libtool_libs=$enable_shared
19100
# Whether or not to build static libraries.
19101
build_old_libs=$enable_static
19103
# Whether or not to add -lc for building shared libraries.
19104
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19106
# Whether or not to disallow shared libs when runtime libs are static
19107
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19109
# Whether or not to optimize for fast installation.
19110
fast_install=$enable_fast_install
19113
host_alias=$host_alias
19117
# The build system.
19118
build_alias=$build_alias
19122
# An echo program that does not interpret backslashes.
19127
AR_FLAGS=$lt_AR_FLAGS
19132
# LTCC compiler flags.
19133
LTCFLAGS=$lt_LTCFLAGS
19135
# A language-specific compiler.
19136
CC=$lt_compiler_GCJ
19138
# Is the compiler the GNU C compiler?
19144
# The linker used to build libraries.
19147
# Whether we need hard or soft links.
19150
# A BSD-compatible nm program.
19153
# A symbol stripping program
19156
# Used to examine libraries when file_magic_cmd begins "file"
19157
MAGIC_CMD=$MAGIC_CMD
19159
# Used on cygwin: DLL creation program.
19162
# Used on cygwin: object dumper.
19165
# Used on cygwin: assembler.
19168
# The name of the directory that contains temporary libtool files.
19171
# How to create reloadable object files.
19172
reload_flag=$lt_reload_flag
19173
reload_cmds=$lt_reload_cmds
19175
# How to pass a linker flag through the compiler.
19176
wl=$lt_lt_prog_compiler_wl_GCJ
19178
# Object file suffix (normally "o").
19179
objext="$ac_objext"
19181
# Old archive suffix (normally "a").
19184
# Shared library suffix (normally ".so").
19185
shrext_cmds='$shrext_cmds'
19187
# Executable file suffix (normally "").
19190
# Additional compiler flags for building library objects.
19191
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19194
# What is the maximum length of a command?
19195
max_cmd_len=$lt_cv_sys_max_cmd_len
19197
# Does compiler simultaneously support -c and -o options?
19198
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19200
# Must we lock files when doing compilation?
19201
need_locks=$lt_need_locks
19203
# Do we need the lib prefix for modules?
19204
need_lib_prefix=$need_lib_prefix
19206
# Do we need a version for libraries?
19207
need_version=$need_version
19209
# Whether dlopen is supported.
19210
dlopen_support=$enable_dlopen
19212
# Whether dlopen of programs is supported.
19213
dlopen_self=$enable_dlopen_self
19215
# Whether dlopen of statically linked programs is supported.
19216
dlopen_self_static=$enable_dlopen_self_static
19218
# Compiler flag to prevent dynamic linking.
19219
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19221
# Compiler flag to turn off builtin functions.
19222
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19224
# Compiler flag to allow reflexive dlopens.
19225
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19227
# Compiler flag to generate shared objects directly from archives.
19228
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19230
# Compiler flag to generate thread-safe objects.
19231
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19233
# Library versioning type.
19234
version_type=$version_type
19236
# Format of library name prefix.
19237
libname_spec=$lt_libname_spec
19239
# List of archive names. First name is the real one, the rest are links.
19240
# The last name is the one that the linker finds with -lNAME.
19241
library_names_spec=$lt_library_names_spec
19243
# The coded name of the library, if different from the real name.
19244
soname_spec=$lt_soname_spec
19246
# Commands used to build and install an old-style archive.
19248
old_archive_cmds=$lt_old_archive_cmds_GCJ
19249
old_postinstall_cmds=$lt_old_postinstall_cmds
19250
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19252
# Create an old-style archive from a shared archive.
19253
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19255
# Create a temporary old-style archive to link instead of a shared archive.
19256
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19258
# Commands used to build and install a shared archive.
19259
archive_cmds=$lt_archive_cmds_GCJ
19260
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19261
postinstall_cmds=$lt_postinstall_cmds
19262
postuninstall_cmds=$lt_postuninstall_cmds
19264
# Commands used to build a loadable module (assumed same as above if empty)
19265
module_cmds=$lt_module_cmds_GCJ
19266
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19268
# Commands to strip libraries.
19269
old_striplib=$lt_old_striplib
19270
striplib=$lt_striplib
19272
# Dependencies to place before the objects being linked to create a
19274
predep_objects=$lt_predep_objects_GCJ
19276
# Dependencies to place after the objects being linked to create a
19278
postdep_objects=$lt_postdep_objects_GCJ
19280
# Dependencies to place before the objects being linked to create a
19282
predeps=$lt_predeps_GCJ
19284
# Dependencies to place after the objects being linked to create a
19286
postdeps=$lt_postdeps_GCJ
19288
# The library search path used internally by the compiler when linking
19289
# a shared library.
19290
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19292
# Method to check whether dependent libraries are shared objects.
19293
deplibs_check_method=$lt_deplibs_check_method
19295
# Command to use when deplibs_check_method == file_magic.
19296
file_magic_cmd=$lt_file_magic_cmd
19298
# Flag that allows shared libraries with undefined symbols to be built.
19299
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19301
# Flag that forces no undefined symbols.
19302
no_undefined_flag=$lt_no_undefined_flag_GCJ
19304
# Commands used to finish a libtool library installation in a directory.
19305
finish_cmds=$lt_finish_cmds
19307
# Same as above, but a single script fragment to be evaled but not shown.
19308
finish_eval=$lt_finish_eval
19310
# Take the output of nm and produce a listing of raw symbols and C names.
19311
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19313
# Transform the output of nm in a proper C declaration
19314
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19316
# Transform the output of nm in a C name address pair
19317
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19319
# This is the shared library runtime path variable.
19320
runpath_var=$runpath_var
19322
# This is the shared library path variable.
19323
shlibpath_var=$shlibpath_var
19325
# Is shlibpath searched before the hard-coded library search path?
19326
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19328
# How to hardcode a shared library path into an executable.
19329
hardcode_action=$hardcode_action_GCJ
19331
# Whether we should hardcode library paths into libraries.
19332
hardcode_into_libs=$hardcode_into_libs
19334
# Flag to hardcode \$libdir into a binary during linking.
19335
# This must work even if \$libdir does not exist.
19336
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19338
# If ld is used when linking, flag to hardcode \$libdir into
19339
# a binary during linking. This must work even if \$libdir does
19341
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19343
# Whether we need a single -rpath flag with a separated argument.
19344
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19346
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19347
# resulting binary.
19348
hardcode_direct=$hardcode_direct_GCJ
19350
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19351
# resulting binary.
19352
hardcode_minus_L=$hardcode_minus_L_GCJ
19354
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19355
# the resulting binary.
19356
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19358
# Set to yes if building a shared library automatically hardcodes DIR into the library
19359
# and all subsequent libraries and executables linked against it.
19360
hardcode_automatic=$hardcode_automatic_GCJ
19362
# Variables whose values should be saved in libtool wrapper scripts and
19363
# restored at relink time.
19364
variables_saved_for_relink="$variables_saved_for_relink"
19366
# Whether libtool must link a program against all its dependency libraries.
19367
link_all_deplibs=$link_all_deplibs_GCJ
19369
# Compile-time system search path for libraries
19370
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19372
# Run-time system search path for libraries
19373
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19375
# Fix the shell variable \$srcfile for the compiler.
19376
fix_srcfile_path="$fix_srcfile_path_GCJ"
19378
# Set to yes if exported symbols are required.
19379
always_export_symbols=$always_export_symbols_GCJ
19381
# The commands to list exported symbols.
19382
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19384
# The commands to extract the exported symbol list from a shared archive.
19385
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19387
# Symbols that should not be listed in the preloaded symbols.
19388
exclude_expsyms=$lt_exclude_expsyms_GCJ
19390
# Symbols that must always be exported.
19391
include_expsyms=$lt_include_expsyms_GCJ
19393
# ### END LIBTOOL TAG CONFIG: $tagname
19399
# If there is no Makefile yet, we rely on a make rule to execute
19400
# `config.status --recheck' to rerun these tests and create the
19401
# libtool script then.
19402
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19403
if test -f "$ltmain_in"; then
19404
test -f Makefile && make "$ltmain"
19410
ac_cpp='$CXXCPP $CPPFLAGS'
19411
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19425
# Source file extension for RC test sources.
19428
# Object file extension for compiled RC test sources.
19432
# Code to be used in simple compile tests
19433
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19435
# Code to be used in simple link tests
19436
lt_simple_link_test_code="$lt_simple_compile_test_code"
19438
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19440
# If no C compiler was specified, use CC.
19443
# If no C compiler flags were specified, use CFLAGS.
19444
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19446
# Allow CC to be a program name with arguments.
19450
# save warnings/boilerplate of simple test code
19451
ac_outfile=conftest.$ac_objext
19452
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19453
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19454
_lt_compiler_boilerplate=`cat conftest.err`
19457
ac_outfile=conftest.$ac_objext
19458
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19459
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19460
_lt_linker_boilerplate=`cat conftest.err`
19464
# Allow CC to be a program name with arguments.
19469
for cc_temp in $compiler""; do
19471
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19472
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19477
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19479
lt_cv_prog_compiler_c_o_RC=yes
19481
# The else clause should only fire when bootstrapping the
19482
# libtool distribution, otherwise you forgot to ship ltmain.sh
19483
# with your package, and you will get complaints that there are
19484
# no rules to generate ltmain.sh.
19485
if test -f "$ltmain"; then
19486
# See if we are running on zsh, and set the options which allow our commands through
19487
# without removal of \ escapes.
19488
if test -n "${ZSH_VERSION+set}" ; then
19489
setopt NO_GLOB_SUBST
19491
# Now quote all the things that may contain metacharacters while being
19492
# careful not to overquote the AC_SUBSTed values. We take copies of the
19493
# variables and quote the copies for generation of the libtool script.
19494
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19496
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19497
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19498
deplibs_check_method reload_flag reload_cmds need_locks \
19499
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19500
lt_cv_sys_global_symbol_to_c_name_address \
19501
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19502
old_postinstall_cmds old_postuninstall_cmds \
19506
lt_prog_compiler_wl_RC \
19507
lt_prog_compiler_pic_RC \
19508
lt_prog_compiler_static_RC \
19509
lt_prog_compiler_no_builtin_flag_RC \
19510
export_dynamic_flag_spec_RC \
19511
thread_safe_flag_spec_RC \
19512
whole_archive_flag_spec_RC \
19513
enable_shared_with_static_runtimes_RC \
19514
old_archive_cmds_RC \
19515
old_archive_from_new_cmds_RC \
19516
predep_objects_RC \
19517
postdep_objects_RC \
19520
compiler_lib_search_path_RC \
19522
archive_expsym_cmds_RC \
19523
postinstall_cmds_RC \
19524
postuninstall_cmds_RC \
19525
old_archive_from_expsyms_cmds_RC \
19526
allow_undefined_flag_RC \
19527
no_undefined_flag_RC \
19528
export_symbols_cmds_RC \
19529
hardcode_libdir_flag_spec_RC \
19530
hardcode_libdir_flag_spec_ld_RC \
19531
hardcode_libdir_separator_RC \
19532
hardcode_automatic_RC \
19534
module_expsym_cmds_RC \
19535
lt_cv_prog_compiler_c_o_RC \
19536
exclude_expsyms_RC \
19537
include_expsyms_RC; do
19540
old_archive_cmds_RC | \
19541
old_archive_from_new_cmds_RC | \
19542
archive_cmds_RC | \
19543
archive_expsym_cmds_RC | \
19545
module_expsym_cmds_RC | \
19546
old_archive_from_expsyms_cmds_RC | \
19547
export_symbols_cmds_RC | \
19548
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19549
postinstall_cmds | postuninstall_cmds | \
19550
old_postinstall_cmds | old_postuninstall_cmds | \
19551
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19552
# Double-quote double-evaled strings.
19553
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19556
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19562
*'\$0 --fallback-echo"')
19563
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19569
cat <<__EOF__ >> "$cfgfile"
19570
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19572
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19574
# Shell to use when invoking shell scripts.
19577
# Whether or not to build shared libraries.
19578
build_libtool_libs=$enable_shared
19580
# Whether or not to build static libraries.
19581
build_old_libs=$enable_static
19583
# Whether or not to add -lc for building shared libraries.
19584
build_libtool_need_lc=$archive_cmds_need_lc_RC
19586
# Whether or not to disallow shared libs when runtime libs are static
19587
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19589
# Whether or not to optimize for fast installation.
19590
fast_install=$enable_fast_install
19593
host_alias=$host_alias
19597
# The build system.
19598
build_alias=$build_alias
19602
# An echo program that does not interpret backslashes.
19607
AR_FLAGS=$lt_AR_FLAGS
19612
# LTCC compiler flags.
19613
LTCFLAGS=$lt_LTCFLAGS
19615
# A language-specific compiler.
19618
# Is the compiler the GNU C compiler?
19624
# The linker used to build libraries.
19627
# Whether we need hard or soft links.
19630
# A BSD-compatible nm program.
19633
# A symbol stripping program
19636
# Used to examine libraries when file_magic_cmd begins "file"
19637
MAGIC_CMD=$MAGIC_CMD
19639
# Used on cygwin: DLL creation program.
19642
# Used on cygwin: object dumper.
19645
# Used on cygwin: assembler.
19648
# The name of the directory that contains temporary libtool files.
19651
# How to create reloadable object files.
19652
reload_flag=$lt_reload_flag
19653
reload_cmds=$lt_reload_cmds
19655
# How to pass a linker flag through the compiler.
19656
wl=$lt_lt_prog_compiler_wl_RC
19658
# Object file suffix (normally "o").
19659
objext="$ac_objext"
19661
# Old archive suffix (normally "a").
19664
# Shared library suffix (normally ".so").
19665
shrext_cmds='$shrext_cmds'
19667
# Executable file suffix (normally "").
19670
# Additional compiler flags for building library objects.
19671
pic_flag=$lt_lt_prog_compiler_pic_RC
19674
# What is the maximum length of a command?
19675
max_cmd_len=$lt_cv_sys_max_cmd_len
19677
# Does compiler simultaneously support -c and -o options?
19678
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19680
# Must we lock files when doing compilation?
19681
need_locks=$lt_need_locks
19683
# Do we need the lib prefix for modules?
19684
need_lib_prefix=$need_lib_prefix
19686
# Do we need a version for libraries?
19687
need_version=$need_version
19689
# Whether dlopen is supported.
19690
dlopen_support=$enable_dlopen
19692
# Whether dlopen of programs is supported.
19693
dlopen_self=$enable_dlopen_self
19695
# Whether dlopen of statically linked programs is supported.
19696
dlopen_self_static=$enable_dlopen_self_static
19698
# Compiler flag to prevent dynamic linking.
19699
link_static_flag=$lt_lt_prog_compiler_static_RC
19701
# Compiler flag to turn off builtin functions.
19702
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19704
# Compiler flag to allow reflexive dlopens.
19705
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19707
# Compiler flag to generate shared objects directly from archives.
19708
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19710
# Compiler flag to generate thread-safe objects.
19711
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19713
# Library versioning type.
19714
version_type=$version_type
19716
# Format of library name prefix.
19717
libname_spec=$lt_libname_spec
19719
# List of archive names. First name is the real one, the rest are links.
19720
# The last name is the one that the linker finds with -lNAME.
19721
library_names_spec=$lt_library_names_spec
19723
# The coded name of the library, if different from the real name.
19724
soname_spec=$lt_soname_spec
19726
# Commands used to build and install an old-style archive.
19728
old_archive_cmds=$lt_old_archive_cmds_RC
19729
old_postinstall_cmds=$lt_old_postinstall_cmds
19730
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19732
# Create an old-style archive from a shared archive.
19733
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19735
# Create a temporary old-style archive to link instead of a shared archive.
19736
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19738
# Commands used to build and install a shared archive.
19739
archive_cmds=$lt_archive_cmds_RC
19740
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19741
postinstall_cmds=$lt_postinstall_cmds
19742
postuninstall_cmds=$lt_postuninstall_cmds
19744
# Commands used to build a loadable module (assumed same as above if empty)
19745
module_cmds=$lt_module_cmds_RC
19746
module_expsym_cmds=$lt_module_expsym_cmds_RC
19748
# Commands to strip libraries.
19749
old_striplib=$lt_old_striplib
19750
striplib=$lt_striplib
19752
# Dependencies to place before the objects being linked to create a
19754
predep_objects=$lt_predep_objects_RC
19756
# Dependencies to place after the objects being linked to create a
19758
postdep_objects=$lt_postdep_objects_RC
19760
# Dependencies to place before the objects being linked to create a
19762
predeps=$lt_predeps_RC
19764
# Dependencies to place after the objects being linked to create a
19766
postdeps=$lt_postdeps_RC
19768
# The library search path used internally by the compiler when linking
19769
# a shared library.
19770
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19772
# Method to check whether dependent libraries are shared objects.
19773
deplibs_check_method=$lt_deplibs_check_method
19775
# Command to use when deplibs_check_method == file_magic.
19776
file_magic_cmd=$lt_file_magic_cmd
19778
# Flag that allows shared libraries with undefined symbols to be built.
19779
allow_undefined_flag=$lt_allow_undefined_flag_RC
19781
# Flag that forces no undefined symbols.
19782
no_undefined_flag=$lt_no_undefined_flag_RC
19784
# Commands used to finish a libtool library installation in a directory.
19785
finish_cmds=$lt_finish_cmds
19787
# Same as above, but a single script fragment to be evaled but not shown.
19788
finish_eval=$lt_finish_eval
19790
# Take the output of nm and produce a listing of raw symbols and C names.
19791
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19793
# Transform the output of nm in a proper C declaration
19794
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19796
# Transform the output of nm in a C name address pair
19797
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19799
# This is the shared library runtime path variable.
19800
runpath_var=$runpath_var
19802
# This is the shared library path variable.
19803
shlibpath_var=$shlibpath_var
19805
# Is shlibpath searched before the hard-coded library search path?
19806
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19808
# How to hardcode a shared library path into an executable.
19809
hardcode_action=$hardcode_action_RC
19811
# Whether we should hardcode library paths into libraries.
19812
hardcode_into_libs=$hardcode_into_libs
19814
# Flag to hardcode \$libdir into a binary during linking.
19815
# This must work even if \$libdir does not exist.
19816
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19818
# If ld is used when linking, flag to hardcode \$libdir into
19819
# a binary during linking. This must work even if \$libdir does
19821
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19823
# Whether we need a single -rpath flag with a separated argument.
19824
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19826
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19827
# resulting binary.
19828
hardcode_direct=$hardcode_direct_RC
19830
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19831
# resulting binary.
19832
hardcode_minus_L=$hardcode_minus_L_RC
19834
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19835
# the resulting binary.
19836
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19838
# Set to yes if building a shared library automatically hardcodes DIR into the library
19839
# and all subsequent libraries and executables linked against it.
19840
hardcode_automatic=$hardcode_automatic_RC
19842
# Variables whose values should be saved in libtool wrapper scripts and
19843
# restored at relink time.
19844
variables_saved_for_relink="$variables_saved_for_relink"
19846
# Whether libtool must link a program against all its dependency libraries.
19847
link_all_deplibs=$link_all_deplibs_RC
19849
# Compile-time system search path for libraries
19850
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19852
# Run-time system search path for libraries
19853
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19855
# Fix the shell variable \$srcfile for the compiler.
19856
fix_srcfile_path="$fix_srcfile_path_RC"
19858
# Set to yes if exported symbols are required.
19859
always_export_symbols=$always_export_symbols_RC
19861
# The commands to list exported symbols.
19862
export_symbols_cmds=$lt_export_symbols_cmds_RC
19864
# The commands to extract the exported symbol list from a shared archive.
19865
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19867
# Symbols that should not be listed in the preloaded symbols.
19868
exclude_expsyms=$lt_exclude_expsyms_RC
19870
# Symbols that must always be exported.
19871
include_expsyms=$lt_include_expsyms_RC
19873
# ### END LIBTOOL TAG CONFIG: $tagname
19879
# If there is no Makefile yet, we rely on a make rule to execute
19880
# `config.status --recheck' to rerun these tests and create the
19881
# libtool script then.
19882
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19883
if test -f "$ltmain_in"; then
19884
test -f Makefile && make "$ltmain"
19890
ac_cpp='$CXXCPP $CPPFLAGS'
19891
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19892
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19893
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19900
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19901
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19902
{ (exit 1); exit 1; }; }
19906
# Append the new tag name to the list of available tags.
19907
if test -n "$tagname" ; then
19908
available_tags="$available_tags $tagname"
19914
# Now substitute the updated list of available tags.
19915
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19916
mv "${ofile}T" "$ofile"
19920
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19921
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19922
{ (exit 1); exit 1; }; }
19928
# This can be used to rebuild libtool when needed
19929
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19931
# Always use our own libtool.
19932
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19934
# Prevent multiple expansion
19956
# Check for libxml2
19959
# Check whether --with-xml-prefix was given.
19960
if test "${with_xml_prefix+set}" = set; then
19961
withval=$with_xml_prefix; xml_config_prefix="$withval"
19963
xml_config_prefix=""
19967
# Check whether --with-xml-exec-prefix was given.
19968
if test "${with_xml_exec_prefix+set}" = set; then
19969
withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
19971
xml_config_exec_prefix=""
19974
# Check whether --enable-xmltest was given.
19975
if test "${enable_xmltest+set}" = set; then
19976
enableval=$enable_xmltest;
19982
if test x$xml_config_exec_prefix != x ; then
19983
xml_config_args="$xml_config_args"
19984
if test x${XML2_CONFIG+set} != xset ; then
19985
XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
19988
if test x$xml_config_prefix != x ; then
19989
xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
19990
if test x${XML2_CONFIG+set} != xset ; then
19991
XML2_CONFIG=$xml_config_prefix/bin/xml2-config
19995
# Extract the first word of "xml2-config", so it can be a program name with args.
19996
set dummy xml2-config; ac_word=$2
19997
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19998
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19999
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
20000
echo $ECHO_N "(cached) $ECHO_C" >&6
20002
case $XML2_CONFIG in
20004
ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
20007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20008
for as_dir in $PATH
20011
test -z "$as_dir" && as_dir=.
20012
for ac_exec_ext in '' $ac_executable_extensions; do
20013
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20014
ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20015
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20022
test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
20026
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
20027
if test -n "$XML2_CONFIG"; then
20028
{ echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
20029
echo "${ECHO_T}$XML2_CONFIG" >&6; }
20031
{ echo "$as_me:$LINENO: result: no" >&5
20032
echo "${ECHO_T}no" >&6; }
20036
min_xml_version=2.0.0
20037
{ echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
20038
echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
20040
if test "$XML2_CONFIG" = "no" ; then
20043
XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
20044
XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
20045
xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
20046
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20047
xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
20048
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20049
xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
20050
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20051
if test "x$enable_xmltest" = "xyes" ; then
20052
ac_save_CPPFLAGS="$CPPFLAGS"
20053
ac_save_LIBS="$LIBS"
20054
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
20055
LIBS="$XML_LIBS $LIBS"
20057
if test "$cross_compiling" = yes; then
20058
echo $ac_n "cross compiling; assumed OK... $ac_c"
20060
cat >conftest.$ac_ext <<_ACEOF
20063
cat confdefs.h >>conftest.$ac_ext
20064
cat >>conftest.$ac_ext <<_ACEOF
20065
/* end confdefs.h. */
20067
#include <stdlib.h>
20069
#include <string.h>
20070
#include <libxml/xmlversion.h>
20075
int xml_major_version, xml_minor_version, xml_micro_version;
20076
int major, minor, micro;
20079
system("touch conf.xmltest");
20081
/* Capture xml2-config output via autoconf/configure variables */
20082
/* HP/UX 9 (%@#!) writes to sscanf strings */
20083
tmp_version = (char *)strdup("$min_xml_version");
20084
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20085
printf("%s, bad version string from xml2-config\n", "$min_xml_version");
20090
/* Capture the version information from the header files */
20091
tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
20092
if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
20093
printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
20098
/* Compare xml2-config output to the libxml headers */
20099
if ((xml_major_version != $xml_config_major_version) ||
20100
(xml_minor_version != $xml_config_minor_version) ||
20101
(xml_micro_version != $xml_config_micro_version))
20103
printf("*** libxml header files (version %d.%d.%d) do not match\n",
20104
xml_major_version, xml_minor_version, xml_micro_version);
20105
printf("*** xml2-config (version %d.%d.%d)\n",
20106
$xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
20109
/* Compare the headers to the library to make sure we match */
20110
/* Less than ideal -- doesn't provide us with return value feedback,
20111
* only exits if there's a serious mismatch between header and library.
20113
LIBXML_TEST_VERSION;
20115
/* Test that the library is greater than our minimum version */
20116
if ((xml_major_version > major) ||
20117
((xml_major_version == major) && (xml_minor_version > minor)) ||
20118
((xml_major_version == major) && (xml_minor_version == minor) &&
20119
(xml_micro_version >= micro)))
20125
printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
20126
xml_major_version, xml_minor_version, xml_micro_version);
20127
printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
20128
major, minor, micro);
20129
printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
20131
printf("*** If you have already installed a sufficiently new version, this error\n");
20132
printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
20133
printf("*** being found. The easiest way to fix this is to remove the old version\n");
20134
printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
20135
printf("*** correct copy of xml2-config. (In this case, you will have to\n");
20136
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20137
printf("*** so that the correct libraries are found at run-time))\n");
20143
rm -f conftest$ac_exeext
20144
if { (ac_try="$ac_link"
20145
case "(($ac_try" in
20146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147
*) ac_try_echo=$ac_try;;
20149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150
(eval "$ac_link") 2>&5
20152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154
{ (case "(($ac_try" in
20155
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156
*) ac_try_echo=$ac_try;;
20158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159
(eval "$ac_try") 2>&5
20161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162
(exit $ac_status); }; }; then
20165
echo "$as_me: program exited with status $ac_status" >&5
20166
echo "$as_me: failed program was:" >&5
20167
sed 's/^/| /' conftest.$ac_ext >&5
20169
( exit $ac_status )
20172
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20176
CPPFLAGS="$ac_save_CPPFLAGS"
20177
LIBS="$ac_save_LIBS"
20181
if test "x$no_xml" = x ; then
20182
{ echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
20183
echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
20186
{ echo "$as_me:$LINENO: result: no" >&5
20187
echo "${ECHO_T}no" >&6; }
20188
if test "$XML2_CONFIG" = "no" ; then
20189
echo "*** The xml2-config script installed by LIBXML could not be found"
20190
echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
20191
echo "*** your path, or set the XML2_CONFIG environment variable to the"
20192
echo "*** full path to xml2-config."
20194
if test -f conf.xmltest ; then
20197
echo "*** Could not run libxml test program, checking why..."
20198
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
20199
LIBS="$LIBS $XML_LIBS"
20200
cat >conftest.$ac_ext <<_ACEOF
20203
cat confdefs.h >>conftest.$ac_ext
20204
cat >>conftest.$ac_ext <<_ACEOF
20205
/* end confdefs.h. */
20207
#include <libxml/xmlversion.h>
20213
LIBXML_TEST_VERSION; return 0;
20218
rm -f conftest.$ac_objext conftest$ac_exeext
20219
if { (ac_try="$ac_link"
20220
case "(($ac_try" in
20221
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222
*) ac_try_echo=$ac_try;;
20224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225
(eval "$ac_link") 2>conftest.er1
20227
grep -v '^ *+' conftest.er1 >conftest.err
20229
cat conftest.err >&5
20230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231
(exit $ac_status); } && {
20232
test -z "$ac_cxx_werror_flag" ||
20233
test ! -s conftest.err
20234
} && test -s conftest$ac_exeext &&
20235
$as_test_x conftest$ac_exeext; then
20236
echo "*** The test program compiled, but did not run. This usually means"
20237
echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
20238
echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
20239
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20240
echo "*** to the installed location Also, make sure you have run ldconfig if that"
20241
echo "*** is required on your system"
20243
echo "*** If you have an old version installed, it is best to remove it, although"
20244
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20246
echo "$as_me: failed program was:" >&5
20247
sed 's/^/| /' conftest.$ac_ext >&5
20249
echo "*** The test program failed to compile or link. See the file config.log for the"
20250
echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
20251
echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
20252
echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
20255
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20256
conftest$ac_exeext conftest.$ac_ext
20257
CPPFLAGS="$ac_save_CPPFLAGS"
20258
LIBS="$ac_save_LIBS"
20270
if test $libxml2_found = no; then
20271
echo "*** Unable to find libxml2 development files on your system."
20272
echo "*** Perhaps you need to install the packages libxml2 and libxml2-dev?"
20279
# Check whether --with-boost was given.
20280
if test "${with_boost+set}" = set; then
20281
withval=$with_boost;
20282
if test "$withval" = "no"; then
20284
elif test "$withval" = "yes"; then
20289
ac_boost_path="$withval"
20297
if test "x$want_boost" = "xyes"; then
20298
boost_lib_version_req=1.33
20299
boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
20300
boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
20301
boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
20302
boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20303
if test "x$boost_lib_version_req_sub_minor" = "x" ; then
20304
boost_lib_version_req_sub_minor="0"
20306
WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
20307
{ echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
20308
echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
20311
if test "$ac_boost_path" != ""; then
20312
BOOST_LDFLAGS="-L$ac_boost_path/lib"
20313
BOOST_CPPFLAGS="-I$ac_boost_path/include"
20315
for ac_boost_path_tmp in /usr /usr/local /opt ; do
20316
if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
20317
BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
20318
BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
20324
CPPFLAGS_SAVED="$CPPFLAGS"
20325
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20328
LDFLAGS_SAVED="$LDFLAGS"
20329
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20333
ac_cpp='$CXXCPP $CPPFLAGS'
20334
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20338
cat >conftest.$ac_ext <<_ACEOF
20341
cat confdefs.h >>conftest.$ac_ext
20342
cat >>conftest.$ac_ext <<_ACEOF
20343
/* end confdefs.h. */
20345
#include <boost/version.hpp>
20351
#if BOOST_VERSION >= $WANT_BOOST_VERSION
20352
// Everything is okay
20354
# error Boost version is too old
20361
rm -f conftest.$ac_objext
20362
if { (ac_try="$ac_compile"
20363
case "(($ac_try" in
20364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365
*) ac_try_echo=$ac_try;;
20367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368
(eval "$ac_compile") 2>conftest.er1
20370
grep -v '^ *+' conftest.er1 >conftest.err
20372
cat conftest.err >&5
20373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374
(exit $ac_status); } && {
20375
test -z "$ac_cxx_werror_flag" ||
20376
test ! -s conftest.err
20377
} && test -s conftest.$ac_objext; then
20379
{ echo "$as_me:$LINENO: result: yes" >&5
20380
echo "${ECHO_T}yes" >&6; }
20385
echo "$as_me: failed program was:" >&5
20386
sed 's/^/| /' conftest.$ac_ext >&5
20392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20394
ac_cpp='$CXXCPP $CPPFLAGS'
20395
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20396
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20397
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20402
if test "x$succeeded" != "xyes"; then
20404
if test "$ac_boost_path" != ""; then
20405
BOOST_LDFLAGS="-L$ac_boost_path/lib"
20406
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20407
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20408
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20409
V_CHECK=`expr $_version_tmp \> $_version`
20410
if test "$V_CHECK" = "1" ; then
20411
_version=$_version_tmp
20413
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20414
BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
20418
for ac_boost_path in /usr /usr/local /opt ; do
20419
if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20420
for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20421
_version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20422
V_CHECK=`expr $_version_tmp \> $_version`
20423
if test "$V_CHECK" = "1" ; then
20424
_version=$_version_tmp
20425
best_path=$ac_boost_path
20431
VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20432
BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
20433
BOOST_LDFLAGS="-L$best_path/lib"
20435
if test "x$BOOST_ROOT" != "x"; then
20436
if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
20437
version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
20438
stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
20439
stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
20440
V_CHECK=`expr $stage_version_shorten \>\= $_version`
20441
if test "$V_CHECK" = "1" ; then
20442
{ echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
20443
echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
20444
BOOST_CPPFLAGS="-I$BOOST_ROOT"
20445
BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
20451
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20453
LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20457
ac_cpp='$CXXCPP $CPPFLAGS'
20458
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20459
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20460
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20462
cat >conftest.$ac_ext <<_ACEOF
20465
cat confdefs.h >>conftest.$ac_ext
20466
cat >>conftest.$ac_ext <<_ACEOF
20467
/* end confdefs.h. */
20469
#include <boost/version.hpp>
20475
#if BOOST_VERSION >= $WANT_BOOST_VERSION
20476
// Everything is okay
20478
# error Boost version is too old
20485
rm -f conftest.$ac_objext
20486
if { (ac_try="$ac_compile"
20487
case "(($ac_try" in
20488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489
*) ac_try_echo=$ac_try;;
20491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492
(eval "$ac_compile") 2>conftest.er1
20494
grep -v '^ *+' conftest.er1 >conftest.err
20496
cat conftest.err >&5
20497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498
(exit $ac_status); } && {
20499
test -z "$ac_cxx_werror_flag" ||
20500
test ! -s conftest.err
20501
} && test -s conftest.$ac_objext; then
20503
{ echo "$as_me:$LINENO: result: yes" >&5
20504
echo "${ECHO_T}yes" >&6; }
20509
echo "$as_me: failed program was:" >&5
20510
sed 's/^/| /' conftest.$ac_ext >&5
20516
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518
ac_cpp='$CXXCPP $CPPFLAGS'
20519
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20525
if test "$succeeded" != "yes" ; then
20526
if test "$_version" = "0" ; then
20527
{ { echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
20528
echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
20529
{ (exit 1); exit 1; }; }
20531
{ echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
20532
echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
20538
cat >>confdefs.h <<\_ACEOF
20544
CPPFLAGS="$CPPFLAGS_SAVED"
20545
LDFLAGS="$LDFLAGS_SAVED"
20553
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20554
if test -n "$ac_tool_prefix"; then
20555
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20556
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20557
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20558
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20559
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20560
echo $ECHO_N "(cached) $ECHO_C" >&6
20562
case $PKG_CONFIG in
20564
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20568
for as_dir in $PATH
20571
test -z "$as_dir" && as_dir=.
20572
for ac_exec_ext in '' $ac_executable_extensions; do
20573
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20574
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20575
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20585
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20586
if test -n "$PKG_CONFIG"; then
20587
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20588
echo "${ECHO_T}$PKG_CONFIG" >&6; }
20590
{ echo "$as_me:$LINENO: result: no" >&5
20591
echo "${ECHO_T}no" >&6; }
20596
if test -z "$ac_cv_path_PKG_CONFIG"; then
20597
ac_pt_PKG_CONFIG=$PKG_CONFIG
20598
# Extract the first word of "pkg-config", so it can be a program name with args.
20599
set dummy pkg-config; ac_word=$2
20600
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20602
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20603
echo $ECHO_N "(cached) $ECHO_C" >&6
20605
case $ac_pt_PKG_CONFIG in
20607
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20611
for as_dir in $PATH
20614
test -z "$as_dir" && as_dir=.
20615
for ac_exec_ext in '' $ac_executable_extensions; do
20616
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20617
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20618
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20628
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20629
if test -n "$ac_pt_PKG_CONFIG"; then
20630
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20631
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20633
{ echo "$as_me:$LINENO: result: no" >&5
20634
echo "${ECHO_T}no" >&6; }
20637
if test "x$ac_pt_PKG_CONFIG" = x; then
20640
case $cross_compiling:$ac_tool_warned in
20642
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20643
whose name does not start with the host triplet. If you think this
20644
configuration is useful to you, please write to autoconf@gnu.org." >&5
20645
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20646
whose name does not start with the host triplet. If you think this
20647
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20648
ac_tool_warned=yes ;;
20650
PKG_CONFIG=$ac_pt_PKG_CONFIG
20653
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20657
if test -n "$PKG_CONFIG"; then
20658
_pkg_min_version=0.9.0
20659
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20660
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20661
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20662
{ echo "$as_me:$LINENO: result: yes" >&5
20663
echo "${ECHO_T}yes" >&6; }
20665
{ echo "$as_me:$LINENO: result: no" >&5
20666
echo "${ECHO_T}no" >&6; }
20673
{ echo "$as_me:$LINENO: checking for GLIB" >&5
20674
echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
20676
if test -n "$PKG_CONFIG"; then
20677
if test -n "$GLIB_CFLAGS"; then
20678
pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20680
if test -n "$PKG_CONFIG" && \
20681
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
20682
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
20684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685
(exit $ac_status); }; then
20686
pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
20694
if test -n "$PKG_CONFIG"; then
20695
if test -n "$GLIB_LIBS"; then
20696
pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20698
if test -n "$PKG_CONFIG" && \
20699
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
20700
($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
20702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703
(exit $ac_status); }; then
20704
pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
20715
if test $pkg_failed = yes; then
20717
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20718
_pkg_short_errors_supported=yes
20720
_pkg_short_errors_supported=no
20722
if test $_pkg_short_errors_supported = yes; then
20723
GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
20725
GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
20727
# Put the nasty error message in config.log where it belongs
20728
echo "$GLIB_PKG_ERRORS" >&5
20730
{ echo "$as_me:$LINENO: result: no" >&5
20731
echo "${ECHO_T}no" >&6; }
20733
elif test $pkg_failed = untried; then
20736
GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20737
GLIB_LIBS=$pkg_cv_GLIB_LIBS
20738
{ echo "$as_me:$LINENO: result: yes" >&5
20739
echo "${ECHO_T}yes" >&6; }
20746
{ echo "$as_me:$LINENO: checking for GTS" >&5
20747
echo $ECHO_N "checking for GTS... $ECHO_C" >&6; }
20749
if test -n "$PKG_CONFIG"; then
20750
if test -n "$GTS_CFLAGS"; then
20751
pkg_cv_GTS_CFLAGS="$GTS_CFLAGS"
20753
if test -n "$PKG_CONFIG" && \
20754
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gts\"") >&5
20755
($PKG_CONFIG --exists --print-errors "gts") 2>&5
20757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758
(exit $ac_status); }; then
20759
pkg_cv_GTS_CFLAGS=`$PKG_CONFIG --cflags "gts" 2>/dev/null`
20767
if test -n "$PKG_CONFIG"; then
20768
if test -n "$GTS_LIBS"; then
20769
pkg_cv_GTS_LIBS="$GTS_LIBS"
20771
if test -n "$PKG_CONFIG" && \
20772
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gts\"") >&5
20773
($PKG_CONFIG --exists --print-errors "gts") 2>&5
20775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776
(exit $ac_status); }; then
20777
pkg_cv_GTS_LIBS=`$PKG_CONFIG --libs "gts" 2>/dev/null`
20788
if test $pkg_failed = yes; then
20790
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20791
_pkg_short_errors_supported=yes
20793
_pkg_short_errors_supported=no
20795
if test $_pkg_short_errors_supported = yes; then
20796
GTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gts"`
20798
GTS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gts"`
20800
# Put the nasty error message in config.log where it belongs
20801
echo "$GTS_PKG_ERRORS" >&5
20803
{ echo "$as_me:$LINENO: result: no" >&5
20804
echo "${ECHO_T}no" >&6; }
20806
elif test $pkg_failed = untried; then
20809
GTS_CFLAGS=$pkg_cv_GTS_CFLAGS
20810
GTS_LIBS=$pkg_cv_GTS_LIBS
20811
{ echo "$as_me:$LINENO: result: yes" >&5
20812
echo "${ECHO_T}yes" >&6; }
20815
if test $have_gts = yes && test $have_glib = yes; then
20816
GTS_CFLAGS="$GTS_CFLAGS -DHAVE_GTS_H=1"
20824
{ echo "$as_me:$LINENO: checking for UFC" >&5
20825
echo $ECHO_N "checking for UFC... $ECHO_C" >&6; }
20827
if test -n "$PKG_CONFIG"; then
20828
if test -n "$UFC_CFLAGS"; then
20829
pkg_cv_UFC_CFLAGS="$UFC_CFLAGS"
20831
if test -n "$PKG_CONFIG" && \
20832
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ufc-1\"") >&5
20833
($PKG_CONFIG --exists --print-errors "ufc-1") 2>&5
20835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836
(exit $ac_status); }; then
20837
pkg_cv_UFC_CFLAGS=`$PKG_CONFIG --cflags "ufc-1" 2>/dev/null`
20845
if test -n "$PKG_CONFIG"; then
20846
if test -n "$UFC_LIBS"; then
20847
pkg_cv_UFC_LIBS="$UFC_LIBS"
20849
if test -n "$PKG_CONFIG" && \
20850
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ufc-1\"") >&5
20851
($PKG_CONFIG --exists --print-errors "ufc-1") 2>&5
20853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854
(exit $ac_status); }; then
20855
pkg_cv_UFC_LIBS=`$PKG_CONFIG --libs "ufc-1" 2>/dev/null`
20866
if test $pkg_failed = yes; then
20868
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20869
_pkg_short_errors_supported=yes
20871
_pkg_short_errors_supported=no
20873
if test $_pkg_short_errors_supported = yes; then
20874
UFC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ufc-1"`
20876
UFC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ufc-1"`
20878
# Put the nasty error message in config.log where it belongs
20879
echo "$UFC_PKG_ERRORS" >&5
20881
{ { echo "$as_me:$LINENO: error: Package requirements (ufc-1) were not met:
20885
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20886
installed software in a non-standard prefix.
20888
Alternatively, you may set the environment variables UFC_CFLAGS
20889
and UFC_LIBS to avoid the need to call pkg-config.
20890
See the pkg-config man page for more details.
20892
echo "$as_me: error: Package requirements (ufc-1) were not met:
20896
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20897
installed software in a non-standard prefix.
20899
Alternatively, you may set the environment variables UFC_CFLAGS
20900
and UFC_LIBS to avoid the need to call pkg-config.
20901
See the pkg-config man page for more details.
20903
{ (exit 1); exit 1; }; }
20904
elif test $pkg_failed = untried; then
20905
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20906
is in your PATH or set the PKG_CONFIG environment variable to the full
20907
path to pkg-config.
20909
Alternatively, you may set the environment variables UFC_CFLAGS
20910
and UFC_LIBS to avoid the need to call pkg-config.
20911
See the pkg-config man page for more details.
20913
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20914
See \`config.log' for more details." >&5
20915
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20916
is in your PATH or set the PKG_CONFIG environment variable to the full
20917
path to pkg-config.
20919
Alternatively, you may set the environment variables UFC_CFLAGS
20920
and UFC_LIBS to avoid the need to call pkg-config.
20921
See the pkg-config man page for more details.
20923
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20924
See \`config.log' for more details." >&2;}
20925
{ (exit 1); exit 1; }; }
20927
UFC_CFLAGS=$pkg_cv_UFC_CFLAGS
20928
UFC_LIBS=$pkg_cv_UFC_LIBS
20929
{ echo "$as_me:$LINENO: result: yes" >&5
20930
echo "${ECHO_T}yes" >&6; }
20934
# Prepare for AMD and UMFPACK tests
20935
have_umfpack_header=no
20937
have_umfpack_and_amd_lib=no
20939
# Check for amd library
20940
if test x$AMD_LIB_DIR != x; then
20941
UMFPACK_LIBS="-L$AMD_LIB_DIR -lamd"
20944
{ echo "$as_me:$LINENO: checking for amd_info in -lamd" >&5
20945
echo $ECHO_N "checking for amd_info in -lamd... $ECHO_C" >&6; }
20946
if test "${ac_cv_lib_amd_amd_info+set}" = set; then
20947
echo $ECHO_N "(cached) $ECHO_C" >&6
20949
ac_check_lib_save_LIBS=$LIBS
20951
cat >conftest.$ac_ext <<_ACEOF
20954
cat confdefs.h >>conftest.$ac_ext
20955
cat >>conftest.$ac_ext <<_ACEOF
20956
/* end confdefs.h. */
20958
/* Override any GCC internal prototype to avoid an error.
20959
Use char because int might match the return type of a GCC
20960
builtin and then its argument prototype would still apply. */
20968
return amd_info ();
20973
rm -f conftest.$ac_objext conftest$ac_exeext
20974
if { (ac_try="$ac_link"
20975
case "(($ac_try" in
20976
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977
*) ac_try_echo=$ac_try;;
20979
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980
(eval "$ac_link") 2>conftest.er1
20982
grep -v '^ *+' conftest.er1 >conftest.err
20984
cat conftest.err >&5
20985
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986
(exit $ac_status); } && {
20987
test -z "$ac_cxx_werror_flag" ||
20988
test ! -s conftest.err
20989
} && test -s conftest$ac_exeext &&
20990
$as_test_x conftest$ac_exeext; then
20991
ac_cv_lib_amd_amd_info=yes
20993
echo "$as_me: failed program was:" >&5
20994
sed 's/^/| /' conftest.$ac_ext >&5
20996
ac_cv_lib_amd_amd_info=no
20999
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21000
conftest$ac_exeext conftest.$ac_ext
21001
LIBS=$ac_check_lib_save_LIBS
21003
{ echo "$as_me:$LINENO: result: $ac_cv_lib_amd_amd_info" >&5
21004
echo "${ECHO_T}$ac_cv_lib_amd_amd_info" >&6; }
21005
if test $ac_cv_lib_amd_amd_info = yes; then
21006
UMFPACK_LIBS="-lamd" have_amd_lib=yes
21009
if test $have_amd_lib != yes; then
21010
echo "Cannot find amd library (part of umfpack). Umfpack will be disabled"
21014
# Check for umfpack library if amd library has been found
21015
#if test $have_amd_lib = yes; then
21016
# if test x$UMFPACK_LIB_DIR != x; then
21017
# UMFPACK_LIBS="$UMFPACK_LIBS -L$UMFPACK_LIB_DIR -lumfpack"
21018
# have_umfpack_and_amd_lib=yes
21020
# AC_CHECK_LIB(umfpack, umfpack_dl_solve, UMFPACK_LIBS="$UMFPACK_LIBS -lumfpack" have_umfpack_and_amd_lib=yes,,$UMFPACK_LIBS)
21021
# if test $have_umfpack_and_amd_lib != yes; then
21022
# echo "Cannot find umfpack library. Umfpack will be disabled"
21027
# Check for umfpack header files if umfpack and amd libraries have been found
21028
#if test $have_umfpack_and_amd_lib = yes; then
21029
if test $have_amd_lib = yes; then
21030
if test x$UMFPACK_INCLUDE_DIR != x; then
21031
UMFPACK_CFLAGS="-I$UMFPACK_INCLUDE_DIR"
21032
cat >>confdefs.h <<\_ACEOF
21033
#define HAVE_UMFPACK_H 1
21036
have_umfpack_header=yes
21038
# Check various default locations
21039
if test "${ac_cv_header_umfpack_h+set}" = set; then
21040
{ echo "$as_me:$LINENO: checking for umfpack.h" >&5
21041
echo $ECHO_N "checking for umfpack.h... $ECHO_C" >&6; }
21042
if test "${ac_cv_header_umfpack_h+set}" = set; then
21043
echo $ECHO_N "(cached) $ECHO_C" >&6
21045
{ echo "$as_me:$LINENO: result: $ac_cv_header_umfpack_h" >&5
21046
echo "${ECHO_T}$ac_cv_header_umfpack_h" >&6; }
21048
# Is the header compilable?
21049
{ echo "$as_me:$LINENO: checking umfpack.h usability" >&5
21050
echo $ECHO_N "checking umfpack.h usability... $ECHO_C" >&6; }
21051
cat >conftest.$ac_ext <<_ACEOF
21054
cat confdefs.h >>conftest.$ac_ext
21055
cat >>conftest.$ac_ext <<_ACEOF
21056
/* end confdefs.h. */
21057
$ac_includes_default
21058
#include <umfpack.h>
21060
rm -f conftest.$ac_objext
21061
if { (ac_try="$ac_compile"
21062
case "(($ac_try" in
21063
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064
*) ac_try_echo=$ac_try;;
21066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067
(eval "$ac_compile") 2>conftest.er1
21069
grep -v '^ *+' conftest.er1 >conftest.err
21071
cat conftest.err >&5
21072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073
(exit $ac_status); } && {
21074
test -z "$ac_cxx_werror_flag" ||
21075
test ! -s conftest.err
21076
} && test -s conftest.$ac_objext; then
21077
ac_header_compiler=yes
21079
echo "$as_me: failed program was:" >&5
21080
sed 's/^/| /' conftest.$ac_ext >&5
21082
ac_header_compiler=no
21085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21087
echo "${ECHO_T}$ac_header_compiler" >&6; }
21089
# Is the header present?
21090
{ echo "$as_me:$LINENO: checking umfpack.h presence" >&5
21091
echo $ECHO_N "checking umfpack.h presence... $ECHO_C" >&6; }
21092
cat >conftest.$ac_ext <<_ACEOF
21095
cat confdefs.h >>conftest.$ac_ext
21096
cat >>conftest.$ac_ext <<_ACEOF
21097
/* end confdefs.h. */
21098
#include <umfpack.h>
21100
if { (ac_try="$ac_cpp conftest.$ac_ext"
21101
case "(($ac_try" in
21102
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103
*) ac_try_echo=$ac_try;;
21105
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21108
grep -v '^ *+' conftest.er1 >conftest.err
21110
cat conftest.err >&5
21111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112
(exit $ac_status); } >/dev/null && {
21113
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21114
test ! -s conftest.err
21116
ac_header_preproc=yes
21118
echo "$as_me: failed program was:" >&5
21119
sed 's/^/| /' conftest.$ac_ext >&5
21121
ac_header_preproc=no
21124
rm -f conftest.err conftest.$ac_ext
21125
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126
echo "${ECHO_T}$ac_header_preproc" >&6; }
21128
# So? What about this header?
21129
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21131
{ echo "$as_me:$LINENO: WARNING: umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21132
echo "$as_me: WARNING: umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133
{ echo "$as_me:$LINENO: WARNING: umfpack.h: proceeding with the compiler's result" >&5
21134
echo "$as_me: WARNING: umfpack.h: proceeding with the compiler's result" >&2;}
21135
ac_header_preproc=yes
21138
{ echo "$as_me:$LINENO: WARNING: umfpack.h: present but cannot be compiled" >&5
21139
echo "$as_me: WARNING: umfpack.h: present but cannot be compiled" >&2;}
21140
{ echo "$as_me:$LINENO: WARNING: umfpack.h: check for missing prerequisite headers?" >&5
21141
echo "$as_me: WARNING: umfpack.h: check for missing prerequisite headers?" >&2;}
21142
{ echo "$as_me:$LINENO: WARNING: umfpack.h: see the Autoconf documentation" >&5
21143
echo "$as_me: WARNING: umfpack.h: see the Autoconf documentation" >&2;}
21144
{ echo "$as_me:$LINENO: WARNING: umfpack.h: section \"Present But Cannot Be Compiled\"" >&5
21145
echo "$as_me: WARNING: umfpack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21146
{ echo "$as_me:$LINENO: WARNING: umfpack.h: proceeding with the preprocessor's result" >&5
21147
echo "$as_me: WARNING: umfpack.h: proceeding with the preprocessor's result" >&2;}
21148
{ echo "$as_me:$LINENO: WARNING: umfpack.h: in the future, the compiler will take precedence" >&5
21149
echo "$as_me: WARNING: umfpack.h: in the future, the compiler will take precedence" >&2;}
21151
## ---------------------------------------------- ##
21152
## Report this to http://www.fenics.org/bugzilla/ ##
21153
## ---------------------------------------------- ##
21155
) | sed "s/^/$as_me: WARNING: /" >&2
21158
{ echo "$as_me:$LINENO: checking for umfpack.h" >&5
21159
echo $ECHO_N "checking for umfpack.h... $ECHO_C" >&6; }
21160
if test "${ac_cv_header_umfpack_h+set}" = set; then
21161
echo $ECHO_N "(cached) $ECHO_C" >&6
21163
ac_cv_header_umfpack_h=$ac_header_preproc
21165
{ echo "$as_me:$LINENO: result: $ac_cv_header_umfpack_h" >&5
21166
echo "${ECHO_T}$ac_cv_header_umfpack_h" >&6; }
21169
if test $ac_cv_header_umfpack_h = yes; then
21170
have_umfpack_header=yes
21172
have_umfpack_header=no
21176
if test $have_umfpack_header = yes; then
21177
cat >>confdefs.h <<\_ACEOF
21178
#define HAVE_UMFPACK_H 1
21182
if test "${ac_cv_header_umfpack_umfpack_h+set}" = set; then
21183
{ echo "$as_me:$LINENO: checking for umfpack/umfpack.h" >&5
21184
echo $ECHO_N "checking for umfpack/umfpack.h... $ECHO_C" >&6; }
21185
if test "${ac_cv_header_umfpack_umfpack_h+set}" = set; then
21186
echo $ECHO_N "(cached) $ECHO_C" >&6
21188
{ echo "$as_me:$LINENO: result: $ac_cv_header_umfpack_umfpack_h" >&5
21189
echo "${ECHO_T}$ac_cv_header_umfpack_umfpack_h" >&6; }
21191
# Is the header compilable?
21192
{ echo "$as_me:$LINENO: checking umfpack/umfpack.h usability" >&5
21193
echo $ECHO_N "checking umfpack/umfpack.h usability... $ECHO_C" >&6; }
21194
cat >conftest.$ac_ext <<_ACEOF
21197
cat confdefs.h >>conftest.$ac_ext
21198
cat >>conftest.$ac_ext <<_ACEOF
21199
/* end confdefs.h. */
21200
$ac_includes_default
21201
#include <umfpack/umfpack.h>
21203
rm -f conftest.$ac_objext
21204
if { (ac_try="$ac_compile"
21205
case "(($ac_try" in
21206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207
*) ac_try_echo=$ac_try;;
21209
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210
(eval "$ac_compile") 2>conftest.er1
21212
grep -v '^ *+' conftest.er1 >conftest.err
21214
cat conftest.err >&5
21215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216
(exit $ac_status); } && {
21217
test -z "$ac_cxx_werror_flag" ||
21218
test ! -s conftest.err
21219
} && test -s conftest.$ac_objext; then
21220
ac_header_compiler=yes
21222
echo "$as_me: failed program was:" >&5
21223
sed 's/^/| /' conftest.$ac_ext >&5
21225
ac_header_compiler=no
21228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21230
echo "${ECHO_T}$ac_header_compiler" >&6; }
21232
# Is the header present?
21233
{ echo "$as_me:$LINENO: checking umfpack/umfpack.h presence" >&5
21234
echo $ECHO_N "checking umfpack/umfpack.h presence... $ECHO_C" >&6; }
21235
cat >conftest.$ac_ext <<_ACEOF
21238
cat confdefs.h >>conftest.$ac_ext
21239
cat >>conftest.$ac_ext <<_ACEOF
21240
/* end confdefs.h. */
21241
#include <umfpack/umfpack.h>
21243
if { (ac_try="$ac_cpp conftest.$ac_ext"
21244
case "(($ac_try" in
21245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246
*) ac_try_echo=$ac_try;;
21248
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21251
grep -v '^ *+' conftest.er1 >conftest.err
21253
cat conftest.err >&5
21254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255
(exit $ac_status); } >/dev/null && {
21256
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21257
test ! -s conftest.err
21259
ac_header_preproc=yes
21261
echo "$as_me: failed program was:" >&5
21262
sed 's/^/| /' conftest.$ac_ext >&5
21264
ac_header_preproc=no
21267
rm -f conftest.err conftest.$ac_ext
21268
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21269
echo "${ECHO_T}$ac_header_preproc" >&6; }
21271
# So? What about this header?
21272
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21274
{ echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21275
echo "$as_me: WARNING: umfpack/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21276
{ echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: proceeding with the compiler's result" >&5
21277
echo "$as_me: WARNING: umfpack/umfpack.h: proceeding with the compiler's result" >&2;}
21278
ac_header_preproc=yes
21281
{ echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: present but cannot be compiled" >&5
21282
echo "$as_me: WARNING: umfpack/umfpack.h: present but cannot be compiled" >&2;}
21283
{ echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: check for missing prerequisite headers?" >&5
21284
echo "$as_me: WARNING: umfpack/umfpack.h: check for missing prerequisite headers?" >&2;}
21285
{ echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: see the Autoconf documentation" >&5
21286
echo "$as_me: WARNING: umfpack/umfpack.h: see the Autoconf documentation" >&2;}
21287
{ echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: section \"Present But Cannot Be Compiled\"" >&5
21288
echo "$as_me: WARNING: umfpack/umfpack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21289
{ echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: proceeding with the preprocessor's result" >&5
21290
echo "$as_me: WARNING: umfpack/umfpack.h: proceeding with the preprocessor's result" >&2;}
21291
{ echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: in the future, the compiler will take precedence" >&5
21292
echo "$as_me: WARNING: umfpack/umfpack.h: in the future, the compiler will take precedence" >&2;}
21294
## ---------------------------------------------- ##
21295
## Report this to http://www.fenics.org/bugzilla/ ##
21296
## ---------------------------------------------- ##
21298
) | sed "s/^/$as_me: WARNING: /" >&2
21301
{ echo "$as_me:$LINENO: checking for umfpack/umfpack.h" >&5
21302
echo $ECHO_N "checking for umfpack/umfpack.h... $ECHO_C" >&6; }
21303
if test "${ac_cv_header_umfpack_umfpack_h+set}" = set; then
21304
echo $ECHO_N "(cached) $ECHO_C" >&6
21306
ac_cv_header_umfpack_umfpack_h=$ac_header_preproc
21308
{ echo "$as_me:$LINENO: result: $ac_cv_header_umfpack_umfpack_h" >&5
21309
echo "${ECHO_T}$ac_cv_header_umfpack_umfpack_h" >&6; }
21312
if test $ac_cv_header_umfpack_umfpack_h = yes; then
21313
have_umfpack_header=yes
21315
have_umfpack_header=no
21319
if test $have_umfpack_header = yes; then
21320
cat >>confdefs.h <<\_ACEOF
21321
#define HAVE_UMFPACK_UMFPACK_H 1
21325
if test "${ac_cv_header_ufsparse_umfpack_h+set}" = set; then
21326
{ echo "$as_me:$LINENO: checking for ufsparse/umfpack.h" >&5
21327
echo $ECHO_N "checking for ufsparse/umfpack.h... $ECHO_C" >&6; }
21328
if test "${ac_cv_header_ufsparse_umfpack_h+set}" = set; then
21329
echo $ECHO_N "(cached) $ECHO_C" >&6
21331
{ echo "$as_me:$LINENO: result: $ac_cv_header_ufsparse_umfpack_h" >&5
21332
echo "${ECHO_T}$ac_cv_header_ufsparse_umfpack_h" >&6; }
21334
# Is the header compilable?
21335
{ echo "$as_me:$LINENO: checking ufsparse/umfpack.h usability" >&5
21336
echo $ECHO_N "checking ufsparse/umfpack.h usability... $ECHO_C" >&6; }
21337
cat >conftest.$ac_ext <<_ACEOF
21340
cat confdefs.h >>conftest.$ac_ext
21341
cat >>conftest.$ac_ext <<_ACEOF
21342
/* end confdefs.h. */
21343
$ac_includes_default
21344
#include <ufsparse/umfpack.h>
21346
rm -f conftest.$ac_objext
21347
if { (ac_try="$ac_compile"
21348
case "(($ac_try" in
21349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350
*) ac_try_echo=$ac_try;;
21352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353
(eval "$ac_compile") 2>conftest.er1
21355
grep -v '^ *+' conftest.er1 >conftest.err
21357
cat conftest.err >&5
21358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359
(exit $ac_status); } && {
21360
test -z "$ac_cxx_werror_flag" ||
21361
test ! -s conftest.err
21362
} && test -s conftest.$ac_objext; then
21363
ac_header_compiler=yes
21365
echo "$as_me: failed program was:" >&5
21366
sed 's/^/| /' conftest.$ac_ext >&5
21368
ac_header_compiler=no
21371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21372
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21373
echo "${ECHO_T}$ac_header_compiler" >&6; }
21375
# Is the header present?
21376
{ echo "$as_me:$LINENO: checking ufsparse/umfpack.h presence" >&5
21377
echo $ECHO_N "checking ufsparse/umfpack.h presence... $ECHO_C" >&6; }
21378
cat >conftest.$ac_ext <<_ACEOF
21381
cat confdefs.h >>conftest.$ac_ext
21382
cat >>conftest.$ac_ext <<_ACEOF
21383
/* end confdefs.h. */
21384
#include <ufsparse/umfpack.h>
21386
if { (ac_try="$ac_cpp conftest.$ac_ext"
21387
case "(($ac_try" in
21388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389
*) ac_try_echo=$ac_try;;
21391
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21394
grep -v '^ *+' conftest.er1 >conftest.err
21396
cat conftest.err >&5
21397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398
(exit $ac_status); } >/dev/null && {
21399
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21400
test ! -s conftest.err
21402
ac_header_preproc=yes
21404
echo "$as_me: failed program was:" >&5
21405
sed 's/^/| /' conftest.$ac_ext >&5
21407
ac_header_preproc=no
21410
rm -f conftest.err conftest.$ac_ext
21411
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21412
echo "${ECHO_T}$ac_header_preproc" >&6; }
21414
# So? What about this header?
21415
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21417
{ echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21418
echo "$as_me: WARNING: ufsparse/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21419
{ echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: proceeding with the compiler's result" >&5
21420
echo "$as_me: WARNING: ufsparse/umfpack.h: proceeding with the compiler's result" >&2;}
21421
ac_header_preproc=yes
21424
{ echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: present but cannot be compiled" >&5
21425
echo "$as_me: WARNING: ufsparse/umfpack.h: present but cannot be compiled" >&2;}
21426
{ echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: check for missing prerequisite headers?" >&5
21427
echo "$as_me: WARNING: ufsparse/umfpack.h: check for missing prerequisite headers?" >&2;}
21428
{ echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: see the Autoconf documentation" >&5
21429
echo "$as_me: WARNING: ufsparse/umfpack.h: see the Autoconf documentation" >&2;}
21430
{ echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: section \"Present But Cannot Be Compiled\"" >&5
21431
echo "$as_me: WARNING: ufsparse/umfpack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21432
{ echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: proceeding with the preprocessor's result" >&5
21433
echo "$as_me: WARNING: ufsparse/umfpack.h: proceeding with the preprocessor's result" >&2;}
21434
{ echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: in the future, the compiler will take precedence" >&5
21435
echo "$as_me: WARNING: ufsparse/umfpack.h: in the future, the compiler will take precedence" >&2;}
21437
## ---------------------------------------------- ##
21438
## Report this to http://www.fenics.org/bugzilla/ ##
21439
## ---------------------------------------------- ##
21441
) | sed "s/^/$as_me: WARNING: /" >&2
21444
{ echo "$as_me:$LINENO: checking for ufsparse/umfpack.h" >&5
21445
echo $ECHO_N "checking for ufsparse/umfpack.h... $ECHO_C" >&6; }
21446
if test "${ac_cv_header_ufsparse_umfpack_h+set}" = set; then
21447
echo $ECHO_N "(cached) $ECHO_C" >&6
21449
ac_cv_header_ufsparse_umfpack_h=$ac_header_preproc
21451
{ echo "$as_me:$LINENO: result: $ac_cv_header_ufsparse_umfpack_h" >&5
21452
echo "${ECHO_T}$ac_cv_header_ufsparse_umfpack_h" >&6; }
21455
if test $ac_cv_header_ufsparse_umfpack_h = yes; then
21456
have_umfpack_header=yes
21458
have_umfpack_header=no
21462
if test $have_umfpack_header = yes; then
21463
cat >>confdefs.h <<\_ACEOF
21464
#define HAVE_UFSPARSE_UMFPACK_H 1
21468
if test "${ac_cv_header_suitesparse_umfpack_h+set}" = set; then
21469
{ echo "$as_me:$LINENO: checking for suitesparse/umfpack.h" >&5
21470
echo $ECHO_N "checking for suitesparse/umfpack.h... $ECHO_C" >&6; }
21471
if test "${ac_cv_header_suitesparse_umfpack_h+set}" = set; then
21472
echo $ECHO_N "(cached) $ECHO_C" >&6
21474
{ echo "$as_me:$LINENO: result: $ac_cv_header_suitesparse_umfpack_h" >&5
21475
echo "${ECHO_T}$ac_cv_header_suitesparse_umfpack_h" >&6; }
21477
# Is the header compilable?
21478
{ echo "$as_me:$LINENO: checking suitesparse/umfpack.h usability" >&5
21479
echo $ECHO_N "checking suitesparse/umfpack.h usability... $ECHO_C" >&6; }
21480
cat >conftest.$ac_ext <<_ACEOF
21483
cat confdefs.h >>conftest.$ac_ext
21484
cat >>conftest.$ac_ext <<_ACEOF
21485
/* end confdefs.h. */
21486
$ac_includes_default
21487
#include <suitesparse/umfpack.h>
21489
rm -f conftest.$ac_objext
21490
if { (ac_try="$ac_compile"
21491
case "(($ac_try" in
21492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493
*) ac_try_echo=$ac_try;;
21495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496
(eval "$ac_compile") 2>conftest.er1
21498
grep -v '^ *+' conftest.er1 >conftest.err
21500
cat conftest.err >&5
21501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502
(exit $ac_status); } && {
21503
test -z "$ac_cxx_werror_flag" ||
21504
test ! -s conftest.err
21505
} && test -s conftest.$ac_objext; then
21506
ac_header_compiler=yes
21508
echo "$as_me: failed program was:" >&5
21509
sed 's/^/| /' conftest.$ac_ext >&5
21511
ac_header_compiler=no
21514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21516
echo "${ECHO_T}$ac_header_compiler" >&6; }
21518
# Is the header present?
21519
{ echo "$as_me:$LINENO: checking suitesparse/umfpack.h presence" >&5
21520
echo $ECHO_N "checking suitesparse/umfpack.h presence... $ECHO_C" >&6; }
21521
cat >conftest.$ac_ext <<_ACEOF
21524
cat confdefs.h >>conftest.$ac_ext
21525
cat >>conftest.$ac_ext <<_ACEOF
21526
/* end confdefs.h. */
21527
#include <suitesparse/umfpack.h>
21529
if { (ac_try="$ac_cpp conftest.$ac_ext"
21530
case "(($ac_try" in
21531
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532
*) ac_try_echo=$ac_try;;
21534
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21537
grep -v '^ *+' conftest.er1 >conftest.err
21539
cat conftest.err >&5
21540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541
(exit $ac_status); } >/dev/null && {
21542
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21543
test ! -s conftest.err
21545
ac_header_preproc=yes
21547
echo "$as_me: failed program was:" >&5
21548
sed 's/^/| /' conftest.$ac_ext >&5
21550
ac_header_preproc=no
21553
rm -f conftest.err conftest.$ac_ext
21554
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21555
echo "${ECHO_T}$ac_header_preproc" >&6; }
21557
# So? What about this header?
21558
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21560
{ echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21561
echo "$as_me: WARNING: suitesparse/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21562
{ echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: proceeding with the compiler's result" >&5
21563
echo "$as_me: WARNING: suitesparse/umfpack.h: proceeding with the compiler's result" >&2;}
21564
ac_header_preproc=yes
21567
{ echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: present but cannot be compiled" >&5
21568
echo "$as_me: WARNING: suitesparse/umfpack.h: present but cannot be compiled" >&2;}
21569
{ echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: check for missing prerequisite headers?" >&5
21570
echo "$as_me: WARNING: suitesparse/umfpack.h: check for missing prerequisite headers?" >&2;}
21571
{ echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: see the Autoconf documentation" >&5
21572
echo "$as_me: WARNING: suitesparse/umfpack.h: see the Autoconf documentation" >&2;}
21573
{ echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: section \"Present But Cannot Be Compiled\"" >&5
21574
echo "$as_me: WARNING: suitesparse/umfpack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21575
{ echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: proceeding with the preprocessor's result" >&5
21576
echo "$as_me: WARNING: suitesparse/umfpack.h: proceeding with the preprocessor's result" >&2;}
21577
{ echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: in the future, the compiler will take precedence" >&5
21578
echo "$as_me: WARNING: suitesparse/umfpack.h: in the future, the compiler will take precedence" >&2;}
21580
## ---------------------------------------------- ##
21581
## Report this to http://www.fenics.org/bugzilla/ ##
21582
## ---------------------------------------------- ##
21584
) | sed "s/^/$as_me: WARNING: /" >&2
21587
{ echo "$as_me:$LINENO: checking for suitesparse/umfpack.h" >&5
21588
echo $ECHO_N "checking for suitesparse/umfpack.h... $ECHO_C" >&6; }
21589
if test "${ac_cv_header_suitesparse_umfpack_h+set}" = set; then
21590
echo $ECHO_N "(cached) $ECHO_C" >&6
21592
ac_cv_header_suitesparse_umfpack_h=$ac_header_preproc
21594
{ echo "$as_me:$LINENO: result: $ac_cv_header_suitesparse_umfpack_h" >&5
21595
echo "${ECHO_T}$ac_cv_header_suitesparse_umfpack_h" >&6; }
21598
if test $ac_cv_header_suitesparse_umfpack_h = yes; then
21599
have_umfpack_header=yes
21601
have_umfpack_header=no
21605
if test $have_umfpack_header = yes; then
21606
cat >>confdefs.h <<\_ACEOF
21607
#define HAVE_SUITESPARSE_UMFPACK_H 1
21611
echo "Cannot find umfpack header files. Umfpack will be disabled"
21619
# This is a temporary fix to support both libumfpack4 and libufsparse.
21620
# In libufsparse, -lblas is missing, so we skip the test for the library
21621
# above, only check for the header, and add the flag here.
21622
if test $have_umfpack_header = yes; then
21623
if test x$UMFPACK_LIB_DIR != x; then
21624
UMFPACK_LIBS="$UMFPACK_LIBS -L$UMFPACK_LIB_DIR -lumfpack -lblas"
21626
UMFPACK_LIBS="$UMFPACK_LIBS -lumfpack -lblas"
21630
# Test for PyDOLFIN
21631
if test x$enable_pydolfin = xyes; then
21636
if test -n "$PYTHON"; then
21637
# If the user set $PYTHON, use it and don't search something else.
21638
{ echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
21639
echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
21640
prog="import sys, string
21641
# split strings by '.' and convert to numeric. Append some zeros
21642
# because we need at least 4 digits for the hex conversion.
21643
minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
21645
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
21646
sys.exit(sys.hexversion < minverhex)"
21647
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21648
($PYTHON -c "$prog") >&5 2>&5
21650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651
(exit $ac_status); }; then
21652
{ echo "$as_me:$LINENO: result: yes" >&5
21653
echo "${ECHO_T}yes" >&6; }
21655
{ { echo "$as_me:$LINENO: error: too old" >&5
21656
echo "$as_me: error: too old" >&2;}
21657
{ (exit 1); exit 1; }; }
21660
am_display_PYTHON=$PYTHON
21662
# Otherwise, try each interpreter until we find one that satisfies
21664
{ echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
21665
echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
21666
if test "${am_cv_pathless_PYTHON+set}" = set; then
21667
echo $ECHO_N "(cached) $ECHO_C" >&6
21670
for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
21671
test "$am_cv_pathless_PYTHON" = none && break
21672
prog="import sys, string
21673
# split strings by '.' and convert to numeric. Append some zeros
21674
# because we need at least 4 digits for the hex conversion.
21675
minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
21677
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
21678
sys.exit(sys.hexversion < minverhex)"
21679
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21680
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683
(exit $ac_status); }; then
21689
{ echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
21690
echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
21691
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21692
if test "$am_cv_pathless_PYTHON" = none; then
21695
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21696
set dummy $am_cv_pathless_PYTHON; ac_word=$2
21697
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21698
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21699
if test "${ac_cv_path_PYTHON+set}" = set; then
21700
echo $ECHO_N "(cached) $ECHO_C" >&6
21704
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21708
for as_dir in $PATH
21711
test -z "$as_dir" && as_dir=.
21712
for ac_exec_ext in '' $ac_executable_extensions; do
21713
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21714
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21715
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21725
PYTHON=$ac_cv_path_PYTHON
21726
if test -n "$PYTHON"; then
21727
{ echo "$as_me:$LINENO: result: $PYTHON" >&5
21728
echo "${ECHO_T}$PYTHON" >&6; }
21730
{ echo "$as_me:$LINENO: result: no" >&5
21731
echo "${ECHO_T}no" >&6; }
21736
am_display_PYTHON=$am_cv_pathless_PYTHON
21740
if test "$PYTHON" = :; then
21741
{ { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21742
echo "$as_me: error: no suitable Python interpreter found" >&2;}
21743
{ (exit 1); exit 1; }; }
21747
{ echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21748
echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21749
if test "${am_cv_python_version+set}" = set; then
21750
echo $ECHO_N "(cached) $ECHO_C" >&6
21752
am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21754
{ echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21755
echo "${ECHO_T}$am_cv_python_version" >&6; }
21756
PYTHON_VERSION=$am_cv_python_version
21760
PYTHON_PREFIX='${prefix}'
21762
PYTHON_EXEC_PREFIX='${exec_prefix}'
21766
{ echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
21767
echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
21768
if test "${am_cv_python_platform+set}" = set; then
21769
echo $ECHO_N "(cached) $ECHO_C" >&6
21771
am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
21773
{ echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
21774
echo "${ECHO_T}$am_cv_python_platform" >&6; }
21775
PYTHON_PLATFORM=$am_cv_python_platform
21780
{ echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
21781
echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
21782
if test "${am_cv_python_pythondir+set}" = set; then
21783
echo $ECHO_N "(cached) $ECHO_C" >&6
21785
am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
21786
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
21788
{ echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
21789
echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
21790
pythondir=$am_cv_python_pythondir
21794
pkgpythondir=\${pythondir}/$PACKAGE
21797
{ echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
21798
echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
21799
if test "${am_cv_python_pyexecdir+set}" = set; then
21800
echo $ECHO_N "(cached) $ECHO_C" >&6
21802
am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
21803
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
21805
{ echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
21806
echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
21807
pyexecdir=$am_cv_python_pyexecdir
21811
pkgpyexecdir=\${pyexecdir}/$PACKAGE
21820
# should allow for checking of python version here...
21824
# Check for Python include path
21825
{ echo "$as_me:$LINENO: checking for Python include path" >&5
21826
echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
21827
python_path=`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_python_inc();'`
21828
f_python_path=`find $python_path -type f -name Python.h -print | sed "1q"`
21829
if test -n "$f_python_path" ; then
21830
python_path=`dirname $f_python_path`
21832
{ echo "$as_me:$LINENO: result: $python_path" >&5
21833
echo "${ECHO_T}$python_path" >&6; }
21834
if test -z "$python_path" ; then
21835
{ { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
21836
echo "$as_me: error: cannot find Python include path" >&2;}
21837
{ (exit 1); exit 1; }; }
21839
PYTHON_CPPFLAGS=-I$python_path
21842
# Check for Python library path - python exec_prefix changed above, need to
21844
{ echo "$as_me:$LINENO: checking for Python library path" >&5
21845
echo $ECHO_N "checking for Python library path... $ECHO_C" >&6; }
21846
python_path=`$PYTHON -c 'import sys; print sys.exec_prefix;'`
21847
for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
21848
python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
21849
if test -n "$python_path" ; then
21853
python_path=`echo $python_path | sed "s,/libpython.*$,,"`
21854
{ echo "$as_me:$LINENO: result: $python_path" >&5
21855
echo "${ECHO_T}$python_path" >&6; }
21856
if test -z "$python_path" ; then
21857
{ { echo "$as_me:$LINENO: error: cannot find Python library path" >&5
21858
echo "$as_me: error: cannot find Python library path" >&2;}
21859
{ (exit 1); exit 1; }; }
21861
PYTHON_LDFLAGS="-L$python_path"
21864
python_site=`echo $python_path | sed "s/config/site-packages/"`
21865
PYTHON_SITE_PKG=$python_site
21868
# libraries which must be linked in when embedding
21870
{ echo "$as_me:$LINENO: checking python extra libraries" >&5
21871
echo $ECHO_N "checking python extra libraries... $ECHO_C" >&6; }
21872
PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21873
conf = distutils.sysconfig.get_config_var; \
21874
print conf('LOCALMODLIBS')+' '+conf('LIBS')"
21875
{ echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LIBS" >&5
21876
echo "${ECHO_T}$PYTHON_EXTRA_LIBS" >&6; }`
21879
CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
21880
LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS"
21881
if test "${ac_cv_header_Python_h+set}" = set; then
21882
{ echo "$as_me:$LINENO: checking for Python.h" >&5
21883
echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
21884
if test "${ac_cv_header_Python_h+set}" = set; then
21885
echo $ECHO_N "(cached) $ECHO_C" >&6
21887
{ echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
21888
echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
21890
# Is the header compilable?
21891
{ echo "$as_me:$LINENO: checking Python.h usability" >&5
21892
echo $ECHO_N "checking Python.h usability... $ECHO_C" >&6; }
21893
cat >conftest.$ac_ext <<_ACEOF
21896
cat confdefs.h >>conftest.$ac_ext
21897
cat >>conftest.$ac_ext <<_ACEOF
21898
/* end confdefs.h. */
21899
$ac_includes_default
21900
#include <Python.h>
21902
rm -f conftest.$ac_objext
21903
if { (ac_try="$ac_compile"
21904
case "(($ac_try" in
21905
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906
*) ac_try_echo=$ac_try;;
21908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909
(eval "$ac_compile") 2>conftest.er1
21911
grep -v '^ *+' conftest.er1 >conftest.err
21913
cat conftest.err >&5
21914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915
(exit $ac_status); } && {
21916
test -z "$ac_cxx_werror_flag" ||
21917
test ! -s conftest.err
21918
} && test -s conftest.$ac_objext; then
21919
ac_header_compiler=yes
21921
echo "$as_me: failed program was:" >&5
21922
sed 's/^/| /' conftest.$ac_ext >&5
21924
ac_header_compiler=no
21927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21929
echo "${ECHO_T}$ac_header_compiler" >&6; }
21931
# Is the header present?
21932
{ echo "$as_me:$LINENO: checking Python.h presence" >&5
21933
echo $ECHO_N "checking Python.h presence... $ECHO_C" >&6; }
21934
cat >conftest.$ac_ext <<_ACEOF
21937
cat confdefs.h >>conftest.$ac_ext
21938
cat >>conftest.$ac_ext <<_ACEOF
21939
/* end confdefs.h. */
21940
#include <Python.h>
21942
if { (ac_try="$ac_cpp conftest.$ac_ext"
21943
case "(($ac_try" in
21944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945
*) ac_try_echo=$ac_try;;
21947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21950
grep -v '^ *+' conftest.er1 >conftest.err
21952
cat conftest.err >&5
21953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954
(exit $ac_status); } >/dev/null && {
21955
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21956
test ! -s conftest.err
21958
ac_header_preproc=yes
21960
echo "$as_me: failed program was:" >&5
21961
sed 's/^/| /' conftest.$ac_ext >&5
21963
ac_header_preproc=no
21966
rm -f conftest.err conftest.$ac_ext
21967
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21968
echo "${ECHO_T}$ac_header_preproc" >&6; }
21970
# So? What about this header?
21971
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21973
{ echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
21974
echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21975
{ echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
21976
echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
21977
ac_header_preproc=yes
21980
{ echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
21981
echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
21982
{ echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
21983
echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
21984
{ echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
21985
echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
21986
{ echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
21987
echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
21988
{ echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
21989
echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
21990
{ echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
21991
echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
21993
## ---------------------------------------------- ##
21994
## Report this to http://www.fenics.org/bugzilla/ ##
21995
## ---------------------------------------------- ##
21997
) | sed "s/^/$as_me: WARNING: /" >&2
22000
{ echo "$as_me:$LINENO: checking for Python.h" >&5
22001
echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
22002
if test "${ac_cv_header_Python_h+set}" = set; then
22003
echo $ECHO_N "(cached) $ECHO_C" >&6
22005
ac_cv_header_Python_h=$ac_header_preproc
22007
{ echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
22008
echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
22011
if test $ac_cv_header_Python_h = yes; then
22012
have_python_dev=yes
22018
if test $have_python_dev = no; then
22019
echo "*** Cannot find Python development files on your system."
22020
echo "*** Perhaps you need to install the package python$PYTHON_VERSION-dev?"
22024
# Extract the first word of "swig", so it can be a program name with args.
22025
set dummy swig; ac_word=$2
22026
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22027
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22028
if test "${ac_cv_prog_swig_found+set}" = set; then
22029
echo $ECHO_N "(cached) $ECHO_C" >&6
22031
if test -n "$swig_found"; then
22032
ac_cv_prog_swig_found="$swig_found" # Let the user override the test.
22034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22035
for as_dir in $PATH
22038
test -z "$as_dir" && as_dir=.
22039
for ac_exec_ext in '' $ac_executable_extensions; do
22040
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22041
ac_cv_prog_swig_found="yes"
22042
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22049
test -z "$ac_cv_prog_swig_found" && ac_cv_prog_swig_found="no"
22052
swig_found=$ac_cv_prog_swig_found
22053
if test -n "$swig_found"; then
22054
{ echo "$as_me:$LINENO: result: $swig_found" >&5
22055
echo "${ECHO_T}$swig_found" >&6; }
22057
{ echo "$as_me:$LINENO: result: no" >&5
22058
echo "${ECHO_T}no" >&6; }
22062
if test $swig_found = no; then
22063
echo "*** Unable to find SWIG."
22064
echo "*** Install SWIG or disable PyDOLFIN with --disable-pydolfin"
22069
# Extract the first word of "swig", so it can be a program name with args.
22070
set dummy swig; ac_word=$2
22071
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22072
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22073
if test "${ac_cv_path_SWIG+set}" = set; then
22074
echo $ECHO_N "(cached) $ECHO_C" >&6
22078
ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22082
for as_dir in $PATH
22085
test -z "$as_dir" && as_dir=.
22086
for ac_exec_ext in '' $ac_executable_extensions; do
22087
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22088
ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22089
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22099
SWIG=$ac_cv_path_SWIG
22100
if test -n "$SWIG"; then
22101
{ echo "$as_me:$LINENO: result: $SWIG" >&5
22102
echo "${ECHO_T}$SWIG" >&6; }
22104
{ echo "$as_me:$LINENO: result: no" >&5
22105
echo "${ECHO_T}no" >&6; }
22109
if test -z "$SWIG" ; then
22110
{ echo "$as_me:$LINENO: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
22111
echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
22112
SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22113
elif test -n "1.3.25" ; then
22114
{ echo "$as_me:$LINENO: checking for SWIG version" >&5
22115
echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22116
swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
22117
{ echo "$as_me:$LINENO: result: $swig_version" >&5
22118
echo "${ECHO_T}$swig_version" >&6; }
22119
if test -n "$swig_version" ; then
22120
# Calculate the required version number components
22122
required_major=`echo $required | sed 's/[^0-9].*//'`
22123
if test -z "$required_major" ; then
22126
required=`echo $required | sed 's/[0-9]*[^0-9]//'`
22127
required_minor=`echo $required | sed 's/[^0-9].*//'`
22128
if test -z "$required_minor" ; then
22131
required=`echo $required | sed 's/[0-9]*[^0-9]//'`
22132
required_patch=`echo $required | sed 's/[^0-9].*//'`
22133
if test -z "$required_patch" ; then
22136
# Calculate the available version number components
22137
available=$swig_version
22138
available_major=`echo $available | sed 's/[^0-9].*//'`
22139
if test -z "$available_major" ; then
22142
available=`echo $available | sed 's/[0-9]*[^0-9]//'`
22143
available_minor=`echo $available | sed 's/[^0-9].*//'`
22144
if test -z "$available_minor" ; then
22147
available=`echo $available | sed 's/[0-9]*[^0-9]//'`
22148
available_patch=`echo $available | sed 's/[^0-9].*//'`
22149
if test -z "$available_patch" ; then
22152
if test $available_major -ne $required_major \
22153
-o $available_minor -ne $required_minor \
22154
-o $available_patch -lt $required_patch ; then
22155
{ echo "$as_me:$LINENO: WARNING: SWIG version >= 1.3.25 is required. You have $swig_version. You should look at http://www.swig.org" >&5
22156
echo "$as_me: WARNING: SWIG version >= 1.3.25 is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
22157
SWIG='echo "Error: SWIG version >= 1.3.25 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
22159
{ echo "$as_me:$LINENO: SWIG executable is '$SWIG'" >&5
22160
echo "$as_me: SWIG executable is '$SWIG'" >&6;}
22161
SWIG_LIB=`$SWIG -swiglib`
22162
{ echo "$as_me:$LINENO: SWIG library directory is '$SWIG_LIB'" >&5
22163
echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
22166
{ echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
22167
echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
22168
SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
22182
test "x" != "xno" || swig_shadow=" -noproxy"
22183
SWIG_PYTHON_OPT=-python$swig_shadow
22185
SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
22192
if test x$enable_pydolfin = xyes; then
22193
echo "checking for NumPy..."
22194
NUMPY_CFLAGS=`$PYTHON numpy.conf`
22195
if test $NUMPY_CFLAGS == none; then
22196
echo "*** Cannot find NumPy on your system."
22197
echo "*** Perhaps you need to install the package python-numpy?"
22200
CPPFLAGS="$CPPFLAGS -I$NUMPY_CFLAGS"
22203
# Make debug option default so developers don't forget it
22204
#echo "turning on debugging and warnings (use --enable-optimization to avoid this)."
22205
#enable_debug="yes"
22207
# Disable Boost debug mode for configure without debug/optimize options
22208
CXXFLAGS="$CXXFLAGS -DNDEBUG"
22210
# Handle option --enable-debug
22211
if test x$enable_debug = xyes; then
22212
echo "enabling debugging compiler flags"
22213
if test x$enable_debug_ublas = xyes; then
22214
echo "enabling extra uBlas debugging compiler flags"
22215
CXXFLAGS="-DDEBUG -g -O2 -Wall -Werror"
22217
CXXFLAGS="-DDEBUG -g -O2 -Wall -Werror -DNDEBUG"
22221
# Handle option --enable-optimization
22222
if test x$enable_optimization = xyes; then
22223
echo "enabling optimizing compiler flags"
22224
CXXFLAGS="-O3 -Wall -ansi -DNDEBUG"
22227
# Handle option --enable-debug-ublas
22228
# FIXME: Not handled
22230
# Add compiler/platform specific flags
22231
case "${ax_cv_cxx_compiler_vendor}" in
22233
# Add '-Wno-uninitialized' due to a Cygwin gcc 3.4 bug and don't use -ansi.
22234
# At least on Darwin, -o is not an allowed option!
22235
if ! test `uname -s` = Darwin && test `uname -o` = Cygwin; then
22236
echo "adding compiler flags for cygwin"
22237
CXXFLAGS="$CXXFLAGS -Wno-uninitialized"
22239
CXXFLAGS="$CXXFLAGS -pedantic -ansi -Wno-long-long -std=c++98"
22243
echo 'WARNING: Intel C++ compiler versions <= 9.0 are incompatible with'
22244
echo 'header files gcc version <= 4.0. You can specify the version of'
22245
echo 'gcc header files to be used by setting the compiler option'
22246
echo '-gcc-name=<name> through the environment variables'
22247
echo 'e.g. export INTEL_CXXFLAGS="-gcc-name=gcc-3.4"'
22248
CXXFLAGS="$CXXFLAGS -ansi -wd111 -wd383 -wd654 -wd810 -wd869 -wd981 -wd1125 -wd1418 -wd1419 -wd1572 -wd1599 $INTEL_CXXFLAGS"
22252
# Add '-fPIC' for AMD 64 bit system
22253
if test `uname -m` = x86_64; then
22254
echo "adding -fPIC to compiler flags"
22255
CXXFLAGS="$CXXFLAGS -fPIC"
22258
# Handle option --enable-pydolfin
22259
if test x$enable_pydolfin = xyes; then
22260
COMPILE_PYDOLFIN_TRUE=
22261
COMPILE_PYDOLFIN_FALSE='#'
22263
COMPILE_PYDOLFIN_TRUE='#'
22264
COMPILE_PYDOLFIN_FALSE=
22267
if test x$enable_pydolfin = xyes; then
22268
echo "enabling compilation of PyDOLFIN"
22270
echo "disabling compilation of PyDOLFIN"
22274
# Handle option --disable-petsc
22275
if test x$enable_petsc = xyes; then
22277
# Handle option --with-petsc-dir=<path>
22278
if test x$PETSC_DIR = x; then
22279
PETSC_DIR="/usr/local/lib/petsc/"
22280
echo "assuming path to PETSc is $PETSC_DIR"
22282
echo "using PETSC_DIR=$PETSC_DIR"
22286
MKFILE=$PETSC_DIR/bmake/common/base
22287
if test -f $MKFILE; then
22288
# Extract PETSc variables
22289
PETSC_CFLAGS=`make -sf petsc.conf get_petsc_include PETSC_DIR=$PETSC_DIR`
22290
PETSC_LIBS=`make -sf petsc.conf get_petsc_libs PETSC_DIR=$PETSC_DIR`
22292
echo "*** Unable to find PETSc on your system."
22293
echo "*** Use --with-petsc-dir=<path> to specify the correct path for PETSc,"
22294
echo "*** or set the environment variable PETSC_DIR to the correct path."
22295
echo "*** PETSc is available at http://www-unix.mcs.anl.gov/petsc/petsc-2/"
22299
# Found PETSc, so set HAVE_PETSC_H
22300
CXXFLAGS="-DHAVE_PETSC_H=1 $CXXFLAGS"
22302
# Check for eigenvalue solver extension SLEPc. Variable SLEPC_DIR must be set.
22303
as_ac_Header=`echo "ac_cv_header_$SLEPC_DIR/include/slepcversion.h" | $as_tr_sh`
22304
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22305
{ echo "$as_me:$LINENO: checking for $SLEPC_DIR/include/slepcversion.h" >&5
22306
echo $ECHO_N "checking for $SLEPC_DIR/include/slepcversion.h... $ECHO_C" >&6; }
22307
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22308
echo $ECHO_N "(cached) $ECHO_C" >&6
22310
ac_res=`eval echo '${'$as_ac_Header'}'`
22311
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22312
echo "${ECHO_T}$ac_res" >&6; }
22314
# Is the header compilable?
22315
{ echo "$as_me:$LINENO: checking $SLEPC_DIR/include/slepcversion.h usability" >&5
22316
echo $ECHO_N "checking $SLEPC_DIR/include/slepcversion.h usability... $ECHO_C" >&6; }
22317
cat >conftest.$ac_ext <<_ACEOF
22320
cat confdefs.h >>conftest.$ac_ext
22321
cat >>conftest.$ac_ext <<_ACEOF
22322
/* end confdefs.h. */
22323
$ac_includes_default
22324
#include <$SLEPC_DIR/include/slepcversion.h>
22326
rm -f conftest.$ac_objext
22327
if { (ac_try="$ac_compile"
22328
case "(($ac_try" in
22329
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330
*) ac_try_echo=$ac_try;;
22332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22333
(eval "$ac_compile") 2>conftest.er1
22335
grep -v '^ *+' conftest.er1 >conftest.err
22337
cat conftest.err >&5
22338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339
(exit $ac_status); } && {
22340
test -z "$ac_cxx_werror_flag" ||
22341
test ! -s conftest.err
22342
} && test -s conftest.$ac_objext; then
22343
ac_header_compiler=yes
22345
echo "$as_me: failed program was:" >&5
22346
sed 's/^/| /' conftest.$ac_ext >&5
22348
ac_header_compiler=no
22351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22353
echo "${ECHO_T}$ac_header_compiler" >&6; }
22355
# Is the header present?
22356
{ echo "$as_me:$LINENO: checking $SLEPC_DIR/include/slepcversion.h presence" >&5
22357
echo $ECHO_N "checking $SLEPC_DIR/include/slepcversion.h presence... $ECHO_C" >&6; }
22358
cat >conftest.$ac_ext <<_ACEOF
22361
cat confdefs.h >>conftest.$ac_ext
22362
cat >>conftest.$ac_ext <<_ACEOF
22363
/* end confdefs.h. */
22364
#include <$SLEPC_DIR/include/slepcversion.h>
22366
if { (ac_try="$ac_cpp conftest.$ac_ext"
22367
case "(($ac_try" in
22368
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369
*) ac_try_echo=$ac_try;;
22371
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22374
grep -v '^ *+' conftest.er1 >conftest.err
22376
cat conftest.err >&5
22377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378
(exit $ac_status); } >/dev/null && {
22379
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22380
test ! -s conftest.err
22382
ac_header_preproc=yes
22384
echo "$as_me: failed program was:" >&5
22385
sed 's/^/| /' conftest.$ac_ext >&5
22387
ac_header_preproc=no
22390
rm -f conftest.err conftest.$ac_ext
22391
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22392
echo "${ECHO_T}$ac_header_preproc" >&6; }
22394
# So? What about this header?
22395
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22397
{ echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: accepted by the compiler, rejected by the preprocessor!" >&5
22398
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22399
{ echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: proceeding with the compiler's result" >&5
22400
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: proceeding with the compiler's result" >&2;}
22401
ac_header_preproc=yes
22404
{ echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: present but cannot be compiled" >&5
22405
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: present but cannot be compiled" >&2;}
22406
{ echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: check for missing prerequisite headers?" >&5
22407
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: check for missing prerequisite headers?" >&2;}
22408
{ echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: see the Autoconf documentation" >&5
22409
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: see the Autoconf documentation" >&2;}
22410
{ echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: section \"Present But Cannot Be Compiled\"" >&5
22411
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: section \"Present But Cannot Be Compiled\"" >&2;}
22412
{ echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: proceeding with the preprocessor's result" >&5
22413
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: proceeding with the preprocessor's result" >&2;}
22414
{ echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: in the future, the compiler will take precedence" >&5
22415
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: in the future, the compiler will take precedence" >&2;}
22417
## ---------------------------------------------- ##
22418
## Report this to http://www.fenics.org/bugzilla/ ##
22419
## ---------------------------------------------- ##
22421
) | sed "s/^/$as_me: WARNING: /" >&2
22424
{ echo "$as_me:$LINENO: checking for $SLEPC_DIR/include/slepcversion.h" >&5
22425
echo $ECHO_N "checking for $SLEPC_DIR/include/slepcversion.h... $ECHO_C" >&6; }
22426
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22427
echo $ECHO_N "(cached) $ECHO_C" >&6
22429
eval "$as_ac_Header=\$ac_header_preproc"
22431
ac_res=`eval echo '${'$as_ac_Header'}'`
22432
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22433
echo "${ECHO_T}$ac_res" >&6; }
22436
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22444
if test $have_slepc = yes; then
22445
# Extract SLEPc variables
22446
SLEPC_CFLAGS=`make -f slepc.conf get_slepc_include SLEPC_DIR=$SLEPC_DIR`
22447
SLEPC_LIBS=`make -f slepc.conf get_slepc_libs SLEPC_DIR=$SLEPC_DIR`
22448
CXXFLAGS="-DHAVE_SLEPC_H=1 $CXXFLAGS"
22450
echo "SLEPc not found on your system."
22451
echo " SLEPc is a PETSc extension that provides eigenvalue solvers."
22452
echo " It is available at http://www.grycap.upv.es/slepc."
22455
# Compile without PETSc
22456
echo "disabling PETSc (some demos may not compile)"
22460
# Handle option --disable-mpi
22461
if test x$enable_mpi = xyes; then
22463
# Check for MPI and print message if not found
22464
# Extract the first word of "mpirun", so it can be a program name with args.
22465
set dummy mpirun; ac_word=$2
22466
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22467
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22468
if test "${ac_cv_prog_mpi_found+set}" = set; then
22469
echo $ECHO_N "(cached) $ECHO_C" >&6
22471
if test -n "$mpi_found"; then
22472
ac_cv_prog_mpi_found="$mpi_found" # Let the user override the test.
22474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22475
for as_dir in $PATH
22478
test -z "$as_dir" && as_dir=.
22479
for ac_exec_ext in '' $ac_executable_extensions; do
22480
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22481
ac_cv_prog_mpi_found="yes"
22482
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22489
test -z "$ac_cv_prog_mpi_found" && ac_cv_prog_mpi_found="no"
22492
mpi_found=$ac_cv_prog_mpi_found
22493
if test -n "$mpi_found"; then
22494
{ echo "$as_me:$LINENO: result: $mpi_found" >&5
22495
echo "${ECHO_T}$mpi_found" >&6; }
22497
{ echo "$as_me:$LINENO: result: no" >&5
22498
echo "${ECHO_T}no" >&6; }
22502
if test $mpi_found = no; then
22503
echo "MPI not found (might not work if PETSc uses MPI)."
22505
# Found MPI, so set HAVE_MPI_H and IGNORE_CXX_SEEK (mpich2 bug)
22506
CXXFLAGS="-DHAVE_MPI_H=1 -DMPICH_IGNORE_CXX_SEEK $CXXFLAGS"
22511
# Handle option --disable-scotch
22512
if test x$enable_scotch = xyes; then
22514
if test "${ac_cv_header_scotch_h+set}" = set; then
22515
{ echo "$as_me:$LINENO: checking for scotch.h" >&5
22516
echo $ECHO_N "checking for scotch.h... $ECHO_C" >&6; }
22517
if test "${ac_cv_header_scotch_h+set}" = set; then
22518
echo $ECHO_N "(cached) $ECHO_C" >&6
22520
{ echo "$as_me:$LINENO: result: $ac_cv_header_scotch_h" >&5
22521
echo "${ECHO_T}$ac_cv_header_scotch_h" >&6; }
22523
# Is the header compilable?
22524
{ echo "$as_me:$LINENO: checking scotch.h usability" >&5
22525
echo $ECHO_N "checking scotch.h usability... $ECHO_C" >&6; }
22526
cat >conftest.$ac_ext <<_ACEOF
22529
cat confdefs.h >>conftest.$ac_ext
22530
cat >>conftest.$ac_ext <<_ACEOF
22531
/* end confdefs.h. */
22532
$ac_includes_default
22533
#include <scotch.h>
22535
rm -f conftest.$ac_objext
22536
if { (ac_try="$ac_compile"
22537
case "(($ac_try" in
22538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539
*) ac_try_echo=$ac_try;;
22541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542
(eval "$ac_compile") 2>conftest.er1
22544
grep -v '^ *+' conftest.er1 >conftest.err
22546
cat conftest.err >&5
22547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548
(exit $ac_status); } && {
22549
test -z "$ac_cxx_werror_flag" ||
22550
test ! -s conftest.err
22551
} && test -s conftest.$ac_objext; then
22552
ac_header_compiler=yes
22554
echo "$as_me: failed program was:" >&5
22555
sed 's/^/| /' conftest.$ac_ext >&5
22557
ac_header_compiler=no
22560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22562
echo "${ECHO_T}$ac_header_compiler" >&6; }
22564
# Is the header present?
22565
{ echo "$as_me:$LINENO: checking scotch.h presence" >&5
22566
echo $ECHO_N "checking scotch.h presence... $ECHO_C" >&6; }
22567
cat >conftest.$ac_ext <<_ACEOF
22570
cat confdefs.h >>conftest.$ac_ext
22571
cat >>conftest.$ac_ext <<_ACEOF
22572
/* end confdefs.h. */
22573
#include <scotch.h>
22575
if { (ac_try="$ac_cpp conftest.$ac_ext"
22576
case "(($ac_try" in
22577
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578
*) ac_try_echo=$ac_try;;
22580
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22583
grep -v '^ *+' conftest.er1 >conftest.err
22585
cat conftest.err >&5
22586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587
(exit $ac_status); } >/dev/null && {
22588
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22589
test ! -s conftest.err
22591
ac_header_preproc=yes
22593
echo "$as_me: failed program was:" >&5
22594
sed 's/^/| /' conftest.$ac_ext >&5
22596
ac_header_preproc=no
22599
rm -f conftest.err conftest.$ac_ext
22600
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22601
echo "${ECHO_T}$ac_header_preproc" >&6; }
22603
# So? What about this header?
22604
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22606
{ echo "$as_me:$LINENO: WARNING: scotch.h: accepted by the compiler, rejected by the preprocessor!" >&5
22607
echo "$as_me: WARNING: scotch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22608
{ echo "$as_me:$LINENO: WARNING: scotch.h: proceeding with the compiler's result" >&5
22609
echo "$as_me: WARNING: scotch.h: proceeding with the compiler's result" >&2;}
22610
ac_header_preproc=yes
22613
{ echo "$as_me:$LINENO: WARNING: scotch.h: present but cannot be compiled" >&5
22614
echo "$as_me: WARNING: scotch.h: present but cannot be compiled" >&2;}
22615
{ echo "$as_me:$LINENO: WARNING: scotch.h: check for missing prerequisite headers?" >&5
22616
echo "$as_me: WARNING: scotch.h: check for missing prerequisite headers?" >&2;}
22617
{ echo "$as_me:$LINENO: WARNING: scotch.h: see the Autoconf documentation" >&5
22618
echo "$as_me: WARNING: scotch.h: see the Autoconf documentation" >&2;}
22619
{ echo "$as_me:$LINENO: WARNING: scotch.h: section \"Present But Cannot Be Compiled\"" >&5
22620
echo "$as_me: WARNING: scotch.h: section \"Present But Cannot Be Compiled\"" >&2;}
22621
{ echo "$as_me:$LINENO: WARNING: scotch.h: proceeding with the preprocessor's result" >&5
22622
echo "$as_me: WARNING: scotch.h: proceeding with the preprocessor's result" >&2;}
22623
{ echo "$as_me:$LINENO: WARNING: scotch.h: in the future, the compiler will take precedence" >&5
22624
echo "$as_me: WARNING: scotch.h: in the future, the compiler will take precedence" >&2;}
22626
## ---------------------------------------------- ##
22627
## Report this to http://www.fenics.org/bugzilla/ ##
22628
## ---------------------------------------------- ##
22630
) | sed "s/^/$as_me: WARNING: /" >&2
22633
{ echo "$as_me:$LINENO: checking for scotch.h" >&5
22634
echo $ECHO_N "checking for scotch.h... $ECHO_C" >&6; }
22635
if test "${ac_cv_header_scotch_h+set}" = set; then
22636
echo $ECHO_N "(cached) $ECHO_C" >&6
22638
ac_cv_header_scotch_h=$ac_header_preproc
22640
{ echo "$as_me:$LINENO: result: $ac_cv_header_scotch_h" >&5
22641
echo "${ECHO_T}$ac_cv_header_scotch_h" >&6; }
22644
if test $ac_cv_header_scotch_h = yes; then
22645
have_scotch_header=yes
22647
have_scotch_header=no
22651
if test $have_scotch_header = yes; then
22652
cat >>confdefs.h <<\_ACEOF
22653
#define HAVE_SCOTCH_H 1
22656
SCOTCH_CFLAGS="-DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME"
22657
SCOTCH_LIBS="-lscotch -lscotcherr -lm"
22659
echo "*** Unable to find SCOTCH on your system."
22660
echo "*** This is experimental. You need put place SCOTCH include and"
22661
echo "*** library files in the system path."
22662
echo "*** SCOTCH is available at http://www.labri.fr/perso/pelegrin/scotch/"
22666
# Found SCOTCH, so set HAVE_SCOTCH_H
22667
CXXFLAGS="-DHAVE_SCOTCH_H=1 $CXXFLAGS"
22670
# Compile without SCOTCH
22671
echo "disabling SCOTCH (mesh/graph partitioning will not work)"
22675
# List of DOLFIN kernel libraries
22676
DOLFIN_KERNEL="common elements fem function graph io la main math mesh mf nls ode pde quadrature parameter log plot"
22678
# Generate include path for external libraries
22679
EXTERNAL_CFLAGS="$PETSC_CFLAGS $SLEPC_CFLAGS $BOOST_CPPFLAGS $MPI_CFLAGS $XML_CPPFLAGS $UMFPACK_CFLAGS $GLIB_CFLAGS $GTS_CFLAGS $UFC_CFLAGS $SCOTCH_CFLAGS"
22683
for f in $DOLFIN_KERNEL; do
22684
KERNEL_INCLUDE="$KERNEL_INCLUDE -I\$(top_builddir)/src/kernel/$f"
22688
# Generate flags for kernel
22689
KERNEL_CFLAGS="$KERNEL_INCLUDE $EXTERNAL_CFLAGS"
22692
# Generate include path for main
22693
DOLFIN_CFLAGS="$KERNEL_INCLUDE $EXTERNAL_CFLAGS"
22696
# Extract compiler definitions
22697
DOLFIN_DEFINITIONS=""
22698
for i in $CXXFLAGS; do
22699
if test $(echo $i | sed 's/^\(..\).*/\1/') == "-D"; then
22700
DOLFIN_DEFINITIONS="$DOLFIN_DEFINITIONS $i"
22705
# External libraries which DOLFIN depends on
22706
DOLFIN_EXT_LIBS="$PETSC_LIBS $SLEPC_LIBS $XML_LIBS $UMFPACK_LIBS $GLIB_LIBS $GTS_LIBS $SCOTCH_LIBS"
22708
echo "external libraries: $DOLFIN_EXT_LIBS"
22710
# Library list which DOLFIN applications need to link against
22711
DOLFIN_LIBS="-ldolfin $PETSC_LIBS"
22712
DOLFIN_LIBS="$DOLFIN_LIBS $DOLFIN_EXT_LIBS"
22715
# Generate libtool library list
22717
for f in $DOLFIN_KERNEL; do
22718
KERNEL_LIBOBJS="$KERNEL_LIBOBJS \$(top_builddir)/src/kernel/$f/*.lo "
22722
# Generate standard environment variables for installation
22723
echo "creating dolfin.conf"
22724
if test $prefix = NONE; then
22725
prefix="/usr/local"
22727
CONFIG='dolfin.conf'
22729
echo 'export PATH="'$prefix'/bin:$PATH"' >> $CONFIG
22730
echo 'export LD_LIBRARY_PATH="'$prefix'/lib:$LD_LIBRARY_PATH"' >> $CONFIG
22731
echo 'export PKG_CONFIG_PATH="'$prefix'/lib/pkgconfig:$PKG_CONFIG_PATH"' >> $CONFIG
22732
echo 'export PYTHONPATH="'$prefix'/lib/python'$PYTHON_VERSION'/site-packages:$PYTHONPATH"' >> $CONFIG
22734
# Export variables to makefiles
22738
# List output to be generated: Makefiles and pkgconfig configuration
22739
ac_config_files="$ac_config_files Makefile src/Makefile src/kernel/Makefile src/kernel/common/Makefile src/kernel/common/dolfin/Makefile src/kernel/elements/Makefile src/kernel/elements/dolfin/Makefile src/kernel/fem/Makefile src/kernel/fem/dolfin/Makefile src/kernel/function/Makefile src/kernel/function/dolfin/Makefile src/kernel/graph/Makefile src/kernel/graph/dolfin/Makefile src/kernel/io/Makefile src/kernel/io/dolfin/Makefile src/kernel/la/Makefile src/kernel/la/dolfin/Makefile src/kernel/main/Makefile src/kernel/main/dolfin/Makefile src/kernel/math/Makefile src/kernel/math/dolfin/Makefile src/kernel/mesh/Makefile src/kernel/mesh/dolfin/Makefile src/kernel/mf/Makefile src/kernel/mf/dolfin/Makefile src/kernel/nls/Makefile src/kernel/nls/dolfin/Makefile src/kernel/ode/Makefile src/kernel/ode/dolfin/Makefile src/kernel/pde/Makefile src/kernel/pde/dolfin/Makefile src/kernel/plot/Makefile src/kernel/plot/dolfin/Makefile src/kernel/parameter/Makefile src/kernel/parameter/dolfin/Makefile src/kernel/quadrature/Makefile src/kernel/quadrature/dolfin/Makefile src/kernel/log/Makefile src/kernel/log/dolfin/Makefile src/lib/Makefile src/pydolfin/Makefile src/demo/Makefile src/test/Makefile src/bench/Makefile src/bench/fem/Makefile src/bench/la/Makefile src/bench/ode/Makefile src/utils/Makefile src/utils/inp2dx/Makefile src/utils/convert/Makefile src/utils/swig/Makefile src/greeting/Makefile dolfin.pc"
22741
cat >confcache <<\_ACEOF
22742
# This file is a shell script that caches the results of configure
22743
# tests run on this system so they can be shared between configure
22744
# scripts and configure runs, see configure's option --config-cache.
22745
# It is not useful on other systems. If it contains results you don't
22746
# want to keep, you may remove or edit it.
22748
# config.status only pays attention to the cache file if you give it
22749
# the --recheck option to rerun configure.
22751
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22752
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22753
# following values.
22757
# The following way of writing the cache mishandles newlines in values,
22758
# but we know of no workaround that is simple, portable, and efficient.
22759
# So, we kill variables containing newlines.
22760
# Ultrix sh set writes to stderr and can't be redirected directly,
22761
# and sets the high bit in the cache file unless we assign to the vars.
22763
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22764
eval ac_val=\$$ac_var
22768
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22769
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22772
_ | IFS | as_nl) ;; #(
22773
*) $as_unset $ac_var ;;
22779
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22780
*${as_nl}ac_space=\ *)
22781
# `set' does not quote correctly, so add quotes (double-quote
22782
# substitution turns \\\\ into \\, and sed turns \\ into \).
22785
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22788
# `set' quotes correctly as required by POSIX, so do not add quotes.
22789
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22798
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22800
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22802
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22803
if test -w "$cache_file"; then
22804
test "x$cache_file" != "x/dev/null" &&
22805
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
22806
echo "$as_me: updating cache $cache_file" >&6;}
22807
cat confcache >$cache_file
22809
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22810
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22815
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22816
# Let make expand exec_prefix.
22817
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22819
# Transform confdefs.h into DEFS.
22820
# Protect against shell expansion while executing Makefile rules.
22821
# Protect against Makefile macro expansion.
22823
# If the first sed substitution is executed (which looks for macros that
22824
# take arguments), then branch to the quote section. Otherwise,
22825
# look for a macro that doesn't take arguments.
22829
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22831
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22835
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22848
DEFS=`sed -n "$ac_script" confdefs.h`
22853
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22854
# 1. Remove the extension, and $U if already installed.
22855
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22856
ac_i=`echo "$ac_i" | sed "$ac_script"`
22857
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22858
# will be set to the directory where LIBOBJS objects are built.
22859
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22860
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22862
LIBOBJS=$ac_libobjs
22864
LTLIBOBJS=$ac_ltlibobjs
22867
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22868
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22869
Usually this means the macro was only invoked conditionally." >&5
22870
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22871
Usually this means the macro was only invoked conditionally." >&2;}
22872
{ (exit 1); exit 1; }; }
22874
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22875
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22876
Usually this means the macro was only invoked conditionally." >&5
22877
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22878
Usually this means the macro was only invoked conditionally." >&2;}
22879
{ (exit 1); exit 1; }; }
22881
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22882
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22883
Usually this means the macro was only invoked conditionally." >&5
22884
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22885
Usually this means the macro was only invoked conditionally." >&2;}
22886
{ (exit 1); exit 1; }; }
22888
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22889
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22890
Usually this means the macro was only invoked conditionally." >&5
22891
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22892
Usually this means the macro was only invoked conditionally." >&2;}
22893
{ (exit 1); exit 1; }; }
22895
if test -z "${COMPILE_PYDOLFIN_TRUE}" && test -z "${COMPILE_PYDOLFIN_FALSE}"; then
22896
{ { echo "$as_me:$LINENO: error: conditional \"COMPILE_PYDOLFIN\" was never defined.
22897
Usually this means the macro was only invoked conditionally." >&5
22898
echo "$as_me: error: conditional \"COMPILE_PYDOLFIN\" was never defined.
22899
Usually this means the macro was only invoked conditionally." >&2;}
22900
{ (exit 1); exit 1; }; }
22903
: ${CONFIG_STATUS=./config.status}
22904
ac_clean_files_save=$ac_clean_files
22905
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22906
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22907
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22908
cat >$CONFIG_STATUS <<_ACEOF
22910
# Generated by $as_me.
22911
# Run this file to recreate the current configuration.
22912
# Compiler output produced by configure, useful for debugging
22913
# configure, is in config.log if it exists.
22916
ac_cs_recheck=false
22918
SHELL=\${CONFIG_SHELL-$SHELL}
22921
cat >>$CONFIG_STATUS <<\_ACEOF
22922
## --------------------- ##
22923
## M4sh Initialization. ##
22924
## --------------------- ##
22926
# Be more Bourne compatible
22927
DUALCASE=1; export DUALCASE # for MKS sh
22928
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22931
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22932
# is contrary to our usage. Disable this feature.
22933
alias -g '${1+"$@"}'='"$@"'
22934
setopt NO_GLOB_SUBST
22936
case `(set -o) 2>/dev/null` in
22937
*posix*) set -o posix ;;
22946
# Avoid depending upon Character Ranges.
22947
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22948
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22949
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22950
as_cr_digits='0123456789'
22951
as_cr_alnum=$as_cr_Letters$as_cr_digits
22953
# The user is always right.
22954
if test "${PATH_SEPARATOR+set}" != set; then
22955
echo "#! /bin/sh" >conf$$.sh
22956
echo "exit 0" >>conf$$.sh
22958
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22966
# Support unset when possible.
22967
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22975
# We need space, tab and new line, in precisely that order. Quoting is
22976
# there to prevent editors from complaining about space-tab.
22977
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22978
# splitting by setting IFS to empty value.)
22983
# Find who we are. Look in the path if we contain no directory separator.
22985
*[\\/]* ) as_myself=$0 ;;
22986
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987
for as_dir in $PATH
22990
test -z "$as_dir" && as_dir=.
22991
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22997
# We did not find ourselves, most probably we were run as `sh COMMAND'
22998
# in which case we are not to be found in the path.
22999
if test "x$as_myself" = x; then
23002
if test ! -f "$as_myself"; then
23003
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23004
{ (exit 1); exit 1; }
23007
# Work around bugs in pre-3.0 UWIN ksh.
23008
for as_var in ENV MAIL MAILPATH
23009
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23017
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23018
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23019
LC_TELEPHONE LC_TIME
23021
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23022
eval $as_var=C; export $as_var
23024
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23028
# Required to use basename.
23029
if expr a : '\(a\)' >/dev/null 2>&1 &&
23030
test "X`expr 00001 : '.*\(...\)'`" = X001; then
23036
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23037
as_basename=basename
23043
# Name of the executable.
23044
as_me=`$as_basename -- "$0" ||
23045
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23046
X"$0" : 'X\(//\)$' \| \
23047
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23049
sed '/^.*\/\([^/][^/]*\)\/*$/{
23068
as_lineno_1=$LINENO
23069
as_lineno_2=$LINENO
23070
test "x$as_lineno_1" != "x$as_lineno_2" &&
23071
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23073
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23074
# uniformly replaced by the line number. The first 'sed' inserts a
23075
# line-number line after each line using $LINENO; the second 'sed'
23076
# does the real work. The second script uses 'N' to pair each
23077
# line-number line with the line containing $LINENO, and appends
23078
# trailing '-' during substitution so that $LINENO is not a special
23079
# case at line end.
23080
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23081
# scripts with optimization help from Paolo Bonzini. Blame Lee
23082
# E. McMahon (1931-1989) for sed's syntax. :-)
23094
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23097
' >$as_me.lineno &&
23098
chmod +x "$as_me.lineno" ||
23099
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23100
{ (exit 1); exit 1; }; }
23102
# Don't try to exec as it changes $[0], causing all sort of problems
23103
# (the dirname of $[0] is not the place where we might find the
23104
# original and so on. Autoconf is especially sensitive to this).
23105
. "./$as_me.lineno"
23106
# Exit status is that of the last command.
23111
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23117
ECHO_C= ECHO_N= ECHO_T=
23118
case `echo -n x` in
23120
case `echo 'x\c'` in
23121
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
23128
if expr a : '\(a\)' >/dev/null 2>&1 &&
23129
test "X`expr 00001 : '.*\(...\)'`" = X001; then
23135
rm -f conf$$ conf$$.exe conf$$.file
23136
if test -d conf$$.dir; then
23137
rm -f conf$$.dir/conf$$.file
23143
if ln -s conf$$.file conf$$ 2>/dev/null; then
23145
# ... but there are two gotchas:
23146
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23147
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23148
# In both cases, we have to default to `cp -p'.
23149
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23151
elif ln conf$$.file conf$$ 2>/dev/null; then
23156
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23157
rmdir conf$$.dir 2>/dev/null
23159
if mkdir -p . 2>/dev/null; then
23162
test -d ./-p && rmdir ./-p
23166
if test -x / >/dev/null 2>&1; then
23167
as_test_x='test -x'
23169
if ls -dL / >/dev/null 2>&1; then
23176
if test -d "$1"; then
23182
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23183
???[sx]*):;;*)false;;esac;fi
23187
as_executable_p=$as_test_x
23189
# Sed expression to map a string onto a valid CPP name.
23190
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23192
# Sed expression to map a string onto a valid variable name.
23193
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23198
# Save the log message, to keep $[0] and so on meaningful, and to
23199
# report actual input values of CONFIG_FILES etc. instead of their
23200
# values after options handling.
23202
This file was extended by DOLFIN $as_me 0.7.2, which was
23203
generated by GNU Autoconf 2.61. Invocation command line was
23205
CONFIG_FILES = $CONFIG_FILES
23206
CONFIG_HEADERS = $CONFIG_HEADERS
23207
CONFIG_LINKS = $CONFIG_LINKS
23208
CONFIG_COMMANDS = $CONFIG_COMMANDS
23211
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23216
cat >>$CONFIG_STATUS <<_ACEOF
23217
# Files that config.status was made for.
23218
config_files="$ac_config_files"
23219
config_commands="$ac_config_commands"
23223
cat >>$CONFIG_STATUS <<\_ACEOF
23225
\`$as_me' instantiates files from templates according to the
23226
current configuration.
23228
Usage: $0 [OPTIONS] [FILE]...
23230
-h, --help print this help, then exit
23231
-V, --version print version number and configuration settings, then exit
23232
-q, --quiet do not print progress messages
23233
-d, --debug don't remove temporary files
23234
--recheck update $as_me by reconfiguring in the same conditions
23235
--file=FILE[:TEMPLATE]
23236
instantiate the configuration file FILE
23238
Configuration files:
23241
Configuration commands:
23244
Report bugs to <bug-autoconf@gnu.org>."
23247
cat >>$CONFIG_STATUS <<_ACEOF
23249
DOLFIN config.status 0.7.2
23250
configured by $0, generated by GNU Autoconf 2.61,
23251
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23253
Copyright (C) 2006 Free Software Foundation, Inc.
23254
This config.status script is free software; the Free Software Foundation
23255
gives unlimited permission to copy, distribute and modify it."
23263
cat >>$CONFIG_STATUS <<\_ACEOF
23264
# If no file are specified by the user, then we need to provide default
23265
# value. By we need to know if files were specified by the user.
23271
ac_option=`expr "X$1" : 'X\([^=]*\)='`
23272
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23283
# Handling of the options.
23284
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23286
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23287
echo "$ac_cs_version"; exit ;;
23288
--debug | --debu | --deb | --de | --d | -d )
23290
--file | --fil | --fi | --f )
23292
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23293
ac_need_defaults=false;;
23294
--he | --h | --help | --hel | -h )
23295
echo "$ac_cs_usage"; exit ;;
23296
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23297
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23300
# This is an error.
23301
-*) { echo "$as_me: error: unrecognized option: $1
23302
Try \`$0 --help' for more information." >&2
23303
{ (exit 1); exit 1; }; } ;;
23305
*) ac_config_targets="$ac_config_targets $1"
23306
ac_need_defaults=false ;;
23312
ac_configure_extra_args=
23314
if $ac_cs_silent; then
23316
ac_configure_extra_args="$ac_configure_extra_args --silent"
23320
cat >>$CONFIG_STATUS <<_ACEOF
23321
if \$ac_cs_recheck; then
23322
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23323
CONFIG_SHELL=$SHELL
23324
export CONFIG_SHELL
23325
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23329
cat >>$CONFIG_STATUS <<\_ACEOF
23333
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23334
## Running $as_me. ##
23340
cat >>$CONFIG_STATUS <<_ACEOF
23344
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23348
cat >>$CONFIG_STATUS <<\_ACEOF
23350
# Handling of arguments.
23351
for ac_config_target in $ac_config_targets
23353
case $ac_config_target in
23354
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23355
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23356
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23357
"src/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/Makefile" ;;
23358
"src/kernel/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/common/Makefile" ;;
23359
"src/kernel/common/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/common/dolfin/Makefile" ;;
23360
"src/kernel/elements/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/elements/Makefile" ;;
23361
"src/kernel/elements/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/elements/dolfin/Makefile" ;;
23362
"src/kernel/fem/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/fem/Makefile" ;;
23363
"src/kernel/fem/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/fem/dolfin/Makefile" ;;
23364
"src/kernel/function/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/function/Makefile" ;;
23365
"src/kernel/function/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/function/dolfin/Makefile" ;;
23366
"src/kernel/graph/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/graph/Makefile" ;;
23367
"src/kernel/graph/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/graph/dolfin/Makefile" ;;
23368
"src/kernel/io/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/io/Makefile" ;;
23369
"src/kernel/io/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/io/dolfin/Makefile" ;;
23370
"src/kernel/la/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/la/Makefile" ;;
23371
"src/kernel/la/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/la/dolfin/Makefile" ;;
23372
"src/kernel/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/main/Makefile" ;;
23373
"src/kernel/main/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/main/dolfin/Makefile" ;;
23374
"src/kernel/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/math/Makefile" ;;
23375
"src/kernel/math/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/math/dolfin/Makefile" ;;
23376
"src/kernel/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/mesh/Makefile" ;;
23377
"src/kernel/mesh/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/mesh/dolfin/Makefile" ;;
23378
"src/kernel/mf/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/mf/Makefile" ;;
23379
"src/kernel/mf/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/mf/dolfin/Makefile" ;;
23380
"src/kernel/nls/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/nls/Makefile" ;;
23381
"src/kernel/nls/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/nls/dolfin/Makefile" ;;
23382
"src/kernel/ode/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/ode/Makefile" ;;
23383
"src/kernel/ode/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/ode/dolfin/Makefile" ;;
23384
"src/kernel/pde/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/pde/Makefile" ;;
23385
"src/kernel/pde/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/pde/dolfin/Makefile" ;;
23386
"src/kernel/plot/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/plot/Makefile" ;;
23387
"src/kernel/plot/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/plot/dolfin/Makefile" ;;
23388
"src/kernel/parameter/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/parameter/Makefile" ;;
23389
"src/kernel/parameter/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/parameter/dolfin/Makefile" ;;
23390
"src/kernel/quadrature/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/quadrature/Makefile" ;;
23391
"src/kernel/quadrature/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/quadrature/dolfin/Makefile" ;;
23392
"src/kernel/log/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/log/Makefile" ;;
23393
"src/kernel/log/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/log/dolfin/Makefile" ;;
23394
"src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
23395
"src/pydolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/pydolfin/Makefile" ;;
23396
"src/demo/Makefile") CONFIG_FILES="$CONFIG_FILES src/demo/Makefile" ;;
23397
"src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
23398
"src/bench/Makefile") CONFIG_FILES="$CONFIG_FILES src/bench/Makefile" ;;
23399
"src/bench/fem/Makefile") CONFIG_FILES="$CONFIG_FILES src/bench/fem/Makefile" ;;
23400
"src/bench/la/Makefile") CONFIG_FILES="$CONFIG_FILES src/bench/la/Makefile" ;;
23401
"src/bench/ode/Makefile") CONFIG_FILES="$CONFIG_FILES src/bench/ode/Makefile" ;;
23402
"src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
23403
"src/utils/inp2dx/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/inp2dx/Makefile" ;;
23404
"src/utils/convert/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/convert/Makefile" ;;
23405
"src/utils/swig/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/swig/Makefile" ;;
23406
"src/greeting/Makefile") CONFIG_FILES="$CONFIG_FILES src/greeting/Makefile" ;;
23407
"dolfin.pc") CONFIG_FILES="$CONFIG_FILES dolfin.pc" ;;
23409
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23410
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23411
{ (exit 1); exit 1; }; };;
23416
# If the user did not use the arguments to specify the items to instantiate,
23417
# then the envvar interface is used. Set only those that are not.
23418
# We use the long form for the default assignment because of an extremely
23419
# bizarre bug on SunOS 4.1.3.
23420
if $ac_need_defaults; then
23421
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23422
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23425
# Have a temporary directory for convenience. Make it in the build tree
23426
# simply because there is no reason against having it here, and in addition,
23427
# creating and moving files from /tmp can sometimes cause problems.
23428
# Hook for its removal unless debugging.
23429
# Note that there is a small window in which the directory will not be cleaned:
23430
# after its creation but before its name has been assigned to `$tmp'.
23434
trap 'exit_status=$?
23435
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23437
trap '{ (exit 1); exit 1; }' 1 2 13 15
23439
# Create a (secure) tmp directory for tmp files.
23442
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23443
test -n "$tmp" && test -d "$tmp"
23446
tmp=./conf$$-$RANDOM
23447
(umask 077 && mkdir "$tmp")
23450
echo "$me: cannot create a temporary directory in ." >&2
23451
{ (exit 1); exit 1; }
23455
# Set up the sed scripts for CONFIG_FILES section.
23458
# No need to generate the scripts if there are no CONFIG_FILES.
23459
# This happens for instance when ./config.status config.h
23460
if test -n "$CONFIG_FILES"; then
23467
for ac_last_try in false false false false false :; do
23468
cat >conf$$subs.sed <<_ACEOF
23469
SHELL!$SHELL$ac_delim
23470
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23471
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23472
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23473
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23474
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23475
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23476
exec_prefix!$exec_prefix$ac_delim
23477
prefix!$prefix$ac_delim
23478
program_transform_name!$program_transform_name$ac_delim
23479
bindir!$bindir$ac_delim
23480
sbindir!$sbindir$ac_delim
23481
libexecdir!$libexecdir$ac_delim
23482
datarootdir!$datarootdir$ac_delim
23483
datadir!$datadir$ac_delim
23484
sysconfdir!$sysconfdir$ac_delim
23485
sharedstatedir!$sharedstatedir$ac_delim
23486
localstatedir!$localstatedir$ac_delim
23487
includedir!$includedir$ac_delim
23488
oldincludedir!$oldincludedir$ac_delim
23489
docdir!$docdir$ac_delim
23490
infodir!$infodir$ac_delim
23491
htmldir!$htmldir$ac_delim
23492
dvidir!$dvidir$ac_delim
23493
pdfdir!$pdfdir$ac_delim
23494
psdir!$psdir$ac_delim
23495
libdir!$libdir$ac_delim
23496
localedir!$localedir$ac_delim
23497
mandir!$mandir$ac_delim
23498
DEFS!$DEFS$ac_delim
23499
ECHO_C!$ECHO_C$ac_delim
23500
ECHO_N!$ECHO_N$ac_delim
23501
ECHO_T!$ECHO_T$ac_delim
23502
LIBS!$LIBS$ac_delim
23503
build_alias!$build_alias$ac_delim
23504
host_alias!$host_alias$ac_delim
23505
target_alias!$target_alias$ac_delim
23506
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23507
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23508
INSTALL_DATA!$INSTALL_DATA$ac_delim
23509
am__isrc!$am__isrc$ac_delim
23510
CYGPATH_W!$CYGPATH_W$ac_delim
23511
PACKAGE!$PACKAGE$ac_delim
23512
VERSION!$VERSION$ac_delim
23513
ACLOCAL!$ACLOCAL$ac_delim
23514
AUTOCONF!$AUTOCONF$ac_delim
23515
AUTOMAKE!$AUTOMAKE$ac_delim
23516
AUTOHEADER!$AUTOHEADER$ac_delim
23517
MAKEINFO!$MAKEINFO$ac_delim
23518
install_sh!$install_sh$ac_delim
23519
STRIP!$STRIP$ac_delim
23520
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23521
mkdir_p!$mkdir_p$ac_delim
23523
SET_MAKE!$SET_MAKE$ac_delim
23524
am__leading_dot!$am__leading_dot$ac_delim
23525
AMTAR!$AMTAR$ac_delim
23526
am__tar!$am__tar$ac_delim
23527
am__untar!$am__untar$ac_delim
23528
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23529
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23530
MAINT!$MAINT$ac_delim
23532
CXXFLAGS!$CXXFLAGS$ac_delim
23533
LDFLAGS!$LDFLAGS$ac_delim
23534
CPPFLAGS!$CPPFLAGS$ac_delim
23535
ac_ct_CXX!$ac_ct_CXX$ac_delim
23536
EXEEXT!$EXEEXT$ac_delim
23537
OBJEXT!$OBJEXT$ac_delim
23538
DEPDIR!$DEPDIR$ac_delim
23539
am__include!$am__include$ac_delim
23540
am__quote!$am__quote$ac_delim
23541
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23542
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23543
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23544
CXXDEPMODE!$CXXDEPMODE$ac_delim
23545
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23546
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23548
CFLAGS!$CFLAGS$ac_delim
23549
ac_ct_CC!$ac_ct_CC$ac_delim
23550
CCDEPMODE!$CCDEPMODE$ac_delim
23551
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23552
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23553
LN_S!$LN_S$ac_delim
23554
CXXCPP!$CXXCPP$ac_delim
23555
GREP!$GREP$ac_delim
23556
EGREP!$EGREP$ac_delim
23557
libtool_found!$libtool_found$ac_delim
23558
build!$build$ac_delim
23559
build_cpu!$build_cpu$ac_delim
23560
build_vendor!$build_vendor$ac_delim
23561
build_os!$build_os$ac_delim
23562
host!$host$ac_delim
23563
host_cpu!$host_cpu$ac_delim
23564
host_vendor!$host_vendor$ac_delim
23565
host_os!$host_os$ac_delim
23568
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23570
elif $ac_last_try; then
23571
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23572
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23573
{ (exit 1); exit 1; }; }
23575
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23579
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23580
if test -n "$ac_eof"; then
23581
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23582
ac_eof=`expr $ac_eof + 1`
23585
cat >>$CONFIG_STATUS <<_ACEOF
23586
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23587
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23590
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23591
s/^/s,@/; s/!/@,|#_!!_#|/
23594
s/'"$ac_delim"'$/,g/; t
23596
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23597
' >>$CONFIG_STATUS <conf$$subs.sed
23598
rm -f conf$$subs.sed
23599
cat >>$CONFIG_STATUS <<_ACEOF
23605
for ac_last_try in false false false false false :; do
23606
cat >conf$$subs.sed <<_ACEOF
23607
ECHO!$ECHO$ac_delim
23609
RANLIB!$RANLIB$ac_delim
23612
FFLAGS!$FFLAGS$ac_delim
23613
ac_ct_F77!$ac_ct_F77$ac_delim
23614
LIBTOOL!$LIBTOOL$ac_delim
23615
XML2_CONFIG!$XML2_CONFIG$ac_delim
23616
XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
23617
XML_LIBS!$XML_LIBS$ac_delim
23618
BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
23619
BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
23620
PKG_CONFIG!$PKG_CONFIG$ac_delim
23621
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
23622
GLIB_LIBS!$GLIB_LIBS$ac_delim
23623
GTS_CFLAGS!$GTS_CFLAGS$ac_delim
23624
GTS_LIBS!$GTS_LIBS$ac_delim
23625
UFC_CFLAGS!$UFC_CFLAGS$ac_delim
23626
UFC_LIBS!$UFC_LIBS$ac_delim
23627
PYTHON!$PYTHON$ac_delim
23628
PYTHON_VERSION!$PYTHON_VERSION$ac_delim
23629
PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
23630
PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
23631
PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
23632
pythondir!$pythondir$ac_delim
23633
pkgpythondir!$pkgpythondir$ac_delim
23634
pyexecdir!$pyexecdir$ac_delim
23635
pkgpyexecdir!$pkgpyexecdir$ac_delim
23636
PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
23637
PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
23638
PYTHON_SITE_PKG!$PYTHON_SITE_PKG$ac_delim
23639
PYTHON_EXTRA_LIBS!$PYTHON_EXTRA_LIBS$ac_delim
23640
swig_found!$swig_found$ac_delim
23641
SWIG!$SWIG$ac_delim
23642
SWIG_LIB!$SWIG_LIB$ac_delim
23643
SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
23644
SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
23645
COMPILE_PYDOLFIN_TRUE!$COMPILE_PYDOLFIN_TRUE$ac_delim
23646
COMPILE_PYDOLFIN_FALSE!$COMPILE_PYDOLFIN_FALSE$ac_delim
23647
mpi_found!$mpi_found$ac_delim
23648
EXTERNAL_CFLAGS!$EXTERNAL_CFLAGS$ac_delim
23649
KERNEL_INCLUDE!$KERNEL_INCLUDE$ac_delim
23650
KERNEL_CFLAGS!$KERNEL_CFLAGS$ac_delim
23651
DOLFIN_CFLAGS!$DOLFIN_CFLAGS$ac_delim
23652
DOLFIN_DEFINITIONS!$DOLFIN_DEFINITIONS$ac_delim
23653
DOLFIN_EXT_LIBS!$DOLFIN_EXT_LIBS$ac_delim
23654
DOLFIN_LIBS!$DOLFIN_LIBS$ac_delim
23655
KERNEL_LIBOBJS!$KERNEL_LIBOBJS$ac_delim
23656
LIBOBJS!$LIBOBJS$ac_delim
23657
LTLIBOBJS!$LTLIBOBJS$ac_delim
23660
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
23662
elif $ac_last_try; then
23663
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23664
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23665
{ (exit 1); exit 1; }; }
23667
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23671
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23672
if test -n "$ac_eof"; then
23673
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23674
ac_eof=`expr $ac_eof + 1`
23677
cat >>$CONFIG_STATUS <<_ACEOF
23678
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23679
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23682
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23683
s/^/s,@/; s/!/@,|#_!!_#|/
23686
s/'"$ac_delim"'$/,g/; t
23688
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23689
' >>$CONFIG_STATUS <conf$$subs.sed
23690
rm -f conf$$subs.sed
23691
cat >>$CONFIG_STATUS <<_ACEOF
23698
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23699
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23700
# trailing colons and then remove the whole line if VPATH becomes empty
23701
# (actually we leave an empty line to preserve line numbers).
23702
if test "x$srcdir" = x.; then
23703
ac_vpsub='/^[ ]*VPATH[ ]*=/{
23704
s/:*\$(srcdir):*/:/
23705
s/:*\${srcdir}:*/:/
23707
s/^\([^=]*=[ ]*\):*/\1/
23713
cat >>$CONFIG_STATUS <<\_ACEOF
23714
fi # test -n "$CONFIG_FILES"
23717
for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
23720
:[FHLC]) ac_mode=$ac_tag; continue;;
23722
case $ac_mode$ac_tag in
23724
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23725
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23726
{ (exit 1); exit 1; }; };;
23727
:[FH]-) ac_tag=-:-;;
23728
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23745
-) ac_f="$tmp/stdin";;
23746
*) # Look for the file first in the build tree, then in the source tree
23747
# (if the path is not absolute). The absolute path cannot be DOS-style,
23748
# because $ac_f cannot contain `:'.
23752
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23754
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23755
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23756
{ (exit 1); exit 1; }; };;
23758
ac_file_inputs="$ac_file_inputs $ac_f"
23761
# Let's still pretend it is `configure' which instantiates (i.e., don't
23762
# use $as_me), people would be surprised to read:
23763
# /* config.h. Generated by config.status. */
23764
configure_input="Generated from "`IFS=:
23765
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23766
if test x"$ac_file" != x-; then
23767
configure_input="$ac_file. $configure_input"
23768
{ echo "$as_me:$LINENO: creating $ac_file" >&5
23769
echo "$as_me: creating $ac_file" >&6;}
23773
*:-:* | *:-) cat >"$tmp/stdin";;
23778
ac_dir=`$as_dirname -- "$ac_file" ||
23779
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23780
X"$ac_file" : 'X\(//\)[^/]' \| \
23781
X"$ac_file" : 'X\(//\)$' \| \
23782
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23784
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23788
/^X\(\/\/\)[^/].*/{
23803
-*) as_dir=./$as_dir;;
23805
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23809
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23810
*) as_qdir=$as_dir;;
23812
as_dirs="'$as_qdir' $as_dirs"
23813
as_dir=`$as_dirname -- "$as_dir" ||
23814
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815
X"$as_dir" : 'X\(//\)[^/]' \| \
23816
X"$as_dir" : 'X\(//\)$' \| \
23817
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23819
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23823
/^X\(\/\/\)[^/].*/{
23836
test -d "$as_dir" && break
23838
test -z "$as_dirs" || eval "mkdir $as_dirs"
23839
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23840
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23841
{ (exit 1); exit 1; }; }; }
23845
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23847
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23848
# A ".." for each directory in $ac_dir_suffix.
23849
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23850
case $ac_top_builddir_sub in
23851
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23852
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23855
ac_abs_top_builddir=$ac_pwd
23856
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23857
# for backward compatibility:
23858
ac_top_builddir=$ac_top_build_prefix
23861
.) # We are building in place.
23863
ac_top_srcdir=$ac_top_builddir_sub
23864
ac_abs_top_srcdir=$ac_pwd ;;
23865
[\\/]* | ?:[\\/]* ) # Absolute name.
23866
ac_srcdir=$srcdir$ac_dir_suffix;
23867
ac_top_srcdir=$srcdir
23868
ac_abs_top_srcdir=$srcdir ;;
23869
*) # Relative name.
23870
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23871
ac_top_srcdir=$ac_top_build_prefix$srcdir
23872
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23874
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23884
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23885
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23887
ac_MKDIR_P=$MKDIR_P
23889
[\\/$]* | ?:[\\/]* ) ;;
23890
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23894
cat >>$CONFIG_STATUS <<\_ACEOF
23895
# If the template does not know about datarootdir, expand it.
23896
# FIXME: This hack should be removed a few years after 2.60.
23897
ac_datarootdir_hack=; ac_datarootdir_seen=
23899
case `sed -n '/datarootdir/ {
23908
' $ac_file_inputs` in
23909
*datarootdir*) ac_datarootdir_seen=yes;;
23910
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23911
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23912
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23914
cat >>$CONFIG_STATUS <<_ACEOF
23915
ac_datarootdir_hack='
23916
s&@datadir@&$datadir&g
23917
s&@docdir@&$docdir&g
23918
s&@infodir@&$infodir&g
23919
s&@localedir@&$localedir&g
23920
s&@mandir@&$mandir&g
23921
s&\\\${datarootdir}&$datarootdir&g' ;;
23925
# Neutralize VPATH when `$srcdir' = `.'.
23926
# Shell code in configure.ac might set extrasub.
23927
# FIXME: do we really want to maintain this feature?
23928
cat >>$CONFIG_STATUS <<_ACEOF
23932
cat >>$CONFIG_STATUS <<\_ACEOF
23934
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23935
s&@configure_input@&$configure_input&;t t
23936
s&@top_builddir@&$ac_top_builddir_sub&;t t
23937
s&@srcdir@&$ac_srcdir&;t t
23938
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23939
s&@top_srcdir@&$ac_top_srcdir&;t t
23940
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23941
s&@builddir@&$ac_builddir&;t t
23942
s&@abs_builddir@&$ac_abs_builddir&;t t
23943
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23944
s&@INSTALL@&$ac_INSTALL&;t t
23945
s&@MKDIR_P@&$ac_MKDIR_P&;t t
23946
$ac_datarootdir_hack
23947
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23949
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23950
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23951
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23952
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23953
which seems to be undefined. Please make sure it is defined." >&5
23954
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23955
which seems to be undefined. Please make sure it is defined." >&2;}
23959
-) cat "$tmp/out"; rm -f "$tmp/out";;
23960
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23965
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23966
echo "$as_me: executing $ac_file commands" >&6;}
23971
case $ac_file$ac_mode in
23972
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23973
# Strip MF so we end up with the name of the file.
23974
mf=`echo "$mf" | sed -e 's/:.*$//'`
23975
# Check whether this is an Automake generated Makefile or not.
23976
# We used to match only the files named `Makefile.in', but
23977
# some people rename them; so instead we look at the file content.
23978
# Grep'ing the first line is not enough: some people post-process
23979
# each Makefile.in and add a new line on top of each file to say so.
23980
# Grep'ing the whole file is not good either: AIX grep has a line
23981
# limit of 2048, but all sed's we know have understand at least 4000.
23982
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23983
dirpart=`$as_dirname -- "$mf" ||
23984
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23985
X"$mf" : 'X\(//\)[^/]' \| \
23986
X"$mf" : 'X\(//\)$' \| \
23987
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23989
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23993
/^X\(\/\/\)[^/].*/{
24009
# Extract the definition of DEPDIR, am__include, and am__quote
24010
# from the Makefile without running `make'.
24011
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24012
test -z "$DEPDIR" && continue
24013
am__include=`sed -n 's/^am__include = //p' < "$mf"`
24014
test -z "am__include" && continue
24015
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24016
# When using ansi2knr, U may be empty or an underscore; expand it
24017
U=`sed -n 's/^U = //p' < "$mf"`
24018
# Find all dependency output files, they are included files with
24019
# $(DEPDIR) in their names. We invoke sed twice because it is the
24020
# simplest approach to changing $(DEPDIR) to its actual value in the
24022
for file in `sed -n "
24023
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24024
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24025
# Make sure the directory exists.
24026
test -f "$dirpart/$file" && continue
24027
fdir=`$as_dirname -- "$file" ||
24028
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24029
X"$file" : 'X\(//\)[^/]' \| \
24030
X"$file" : 'X\(//\)$' \| \
24031
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24033
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24037
/^X\(\/\/\)[^/].*/{
24050
{ as_dir=$dirpart/$fdir
24052
-*) as_dir=./$as_dir;;
24054
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24058
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24059
*) as_qdir=$as_dir;;
24061
as_dirs="'$as_qdir' $as_dirs"
24062
as_dir=`$as_dirname -- "$as_dir" ||
24063
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24064
X"$as_dir" : 'X\(//\)[^/]' \| \
24065
X"$as_dir" : 'X\(//\)$' \| \
24066
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24068
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24072
/^X\(\/\/\)[^/].*/{
24085
test -d "$as_dir" && break
24087
test -z "$as_dirs" || eval "mkdir $as_dirs"
24088
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24089
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24090
{ (exit 1); exit 1; }; }; }
24091
# echo "creating $dirpart/$file"
24092
echo '# dummy' > "$dirpart/$file"
24101
{ (exit 0); exit 0; }
24103
chmod +x $CONFIG_STATUS
24104
ac_clean_files=$ac_clean_files_save
24107
# configure is writing to config.log, and then calls config.status.
24108
# config.status does its own redirection, appending to config.log.
24109
# Unfortunately, on DOS this fails, as config.log is still kept open
24110
# by configure, so config.status won't be able to write to it; its
24111
# output is simply discarded. So we exec the FD to /dev/null,
24112
# effectively closing config.log, so it can be properly (re)opened and
24113
# appended to by config.status. When coming back to configure, we
24114
# need to make the FD available again.
24115
if test "$no_create" != yes; then
24117
ac_config_status_args=
24118
test "$silent" = yes &&
24119
ac_config_status_args="$ac_config_status_args --quiet"
24121
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24123
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
24124
# would make configure fail if this is the last instruction.
24125
$ac_cs_success || { (exit 1); exit 1; }
24129
# Display help text
24130
echo "---------------------------------------------------------"
24131
echo "Configuration of DOLFIN finished. Now type"
24134
echo " make install"
24136
echo "to install DOLFIN on your system. After DOLFIN has been"
24137
echo "installed, you can compile all the demo programs in the"
24138
echo "subdirectory src/demo by running"
24142
echo "Note that you may need to be root in order to install."
24143
echo "To specify an alternative installation directory, rerun"
24144
echo "configure with option --prefix=<path>. You may also run"
24145
echo "./configure.local to configure for a local installation"
24146
echo "in the DOLFIN source tree."
24147
echo "---------------------------------------------------------"
24149
# Check that the installation directory is set up correctly
24150
__BINDIR=`echo $prefix/bin | sed -e 's/\//-/g'`
24151
__PATH=`echo $PATH | sed -e 's/\//-/g'`
24152
if test "$__PATH" = "`echo $__PATH | sed s/$__BINDIR//`"; then
24153
echo 'Warning: Installation directory is not in PATH.'
24155
echo 'To compile a program against DOLFIN (including the demos)'
24156
echo 'you need to update your environment variables to reflect'
24157
echo 'the installation directory you have chosen for DOLFIN.'
24158
echo 'A simple way to do this if you are using Bash-like shell'
24159
echo 'is to source the file dolfin.conf:'
24161
echo ' source dolfin.conf'
24163
echo 'This will update the values for the environment variables'
24164
echo 'PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH and PYTHONPATH.'