version 1.68 | | version 1.69 |
---|
| | |
| | |
# The HP-UX ksh and POSIX shell print the target directory to stdout | | # The HP-UX ksh and POSIX shell print the target directory to stdout |
# if CDPATH is set. | | # if CDPATH is set. |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| | |
if test -z "$ECHO"; then | | if test -z "$ECHO"; then |
if test "X${echo_test_string+set}" != Xset; then | | if test "X${echo_test_string+set}" != Xset; then |
# find a string as large as possible, as long as the shell can cope with it | | # find a string as large as possible, as long as the shell can cope with it |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
if (echo_test_string=`eval $cmd`) 2>/dev/null && | | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
echo_test_string=`eval $cmd` && | | echo_test_string="`eval $cmd`" && |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
then | | then |
break | | break |
| | |
else | | else |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
fi | | fi |
cd $ac_popdir | | cd "$ac_popdir" |
done | | done |
fi | | fi |
| | |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris | | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
# along with /bin/sed that truncates output. | | # along with /bin/sed that truncates output. |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
test ! -f $lt_ac_sed && continue | | test ! -f $lt_ac_sed && break |
cat /dev/null > conftest.in | | cat /dev/null > conftest.in |
lt_ac_count=0 | | lt_ac_count=0 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in | | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| | |
fi | | fi |
done | | done |
done | | done |
| | SED=$lt_cv_path_SED |
| | |
fi | | fi |
| | |
SED=$lt_cv_path_SED | | |
echo "$as_me:$LINENO: result: $SED" >&5 | | echo "$as_me:$LINENO: result: $SED" >&5 |
echo "${ECHO_T}$SED" >&6 | | echo "${ECHO_T}$SED" >&6 |
| | |
| | |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
lt_cv_path_LD="$ac_dir/$ac_prog" | | lt_cv_path_LD="$ac_dir/$ac_prog" |
# Check to see if the program is GNU ld. I'd rather use --version, | | # Check to see if the program is GNU ld. I'd rather use --version, |
# but apparently some variants of GNU ld only accept -v. | | # but apparently some GNU ld's only accept -v. |
# Break only if it was the GNU/non-GNU ld that we prefer. | | # Break only if it was the GNU/non-GNU ld that we prefer. |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
*GNU* | *'with BFD'*) | | *GNU* | *'with BFD'*) |
| | |
if test "${lt_cv_prog_gnu_ld+set}" = set; then | | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
echo $ECHO_N "(cached) $ECHO_C" >&6 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
else | | else |
# I'd rather use --version here, but apparently some GNU lds only accept -v. | | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
case `$LD -v 2>&1 </dev/null` in | | case `$LD -v 2>&1 </dev/null` in |
*GNU* | *'with BFD'*) | | *GNU* | *'with BFD'*) |
lt_cv_prog_gnu_ld=yes | | lt_cv_prog_gnu_ld=yes |
| | |
*) reload_flag=" $reload_flag" ;; | | *) reload_flag=" $reload_flag" ;; |
esac | | esac |
reload_cmds='$LD$reload_flag -o $output$reload_objs' | | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
case $host_os in | | |
darwin*) | | |
if test "$GCC" = yes; then | | |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | | |
else | | |
reload_cmds='$LD$reload_flag -o $output$reload_objs' | | |
fi | | |
;; | | |
esac | | |
| | |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| | |
# Let the user override the test. | | # Let the user override the test. |
lt_cv_path_NM="$NM" | | lt_cv_path_NM="$NM" |
else | | else |
lt_nm_to_check="${ac_tool_prefix}nm" | | |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | | |
lt_nm_to_check="$lt_nm_to_check nm" | | |
fi | | |
for lt_tmp_nm in $lt_nm_to_check; do | | |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
IFS="$lt_save_ifs" | | IFS="$lt_save_ifs" |
test -z "$ac_dir" && ac_dir=. | | test -z "$ac_dir" && ac_dir=. |
tmp_nm="$ac_dir/$lt_tmp_nm" | | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
# Check to see if the nm accepts a BSD-compat flag. | | # Check to see if the nm accepts a BSD-compat flag. |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: | | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| | |
continue # so that we can try to find one that supports BSD flags | | continue # so that we can try to find one that supports BSD flags |
;; | | ;; |
esac | | esac |
;; | | |
esac | | esac |
fi | | fi |
done | | done |
IFS="$lt_save_ifs" | | IFS="$lt_save_ifs" |
done | | |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
fi | | fi |
fi | | fi |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
bsdi[45]*) | | bsdi4*) |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
lt_cv_file_magic_cmd='/usr/bin/file -L' | | lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_test_file=/shlib/libc.so | | lt_cv_file_magic_test_file=/shlib/libc.so |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
case $host_cpu in | | case $host_cpu in |
i*86 ) | | i*86 ) |
# Not sure whether the presence of OpenBSD here was a mistake. | | # Not sure whether the presence of OpenBSD here was a mistake. |
# Let's accept both of them until this is cleared up. | | # Let's accept both of them until this is cleared up. |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
lt_cv_file_magic_cmd=/usr/bin/file | | lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
;; | | ;; |
| | |
| | |
hpux10.20* | hpux11*) | | hpux10.20* | hpux11*) |
lt_cv_file_magic_cmd=/usr/bin/file | | lt_cv_file_magic_cmd=/usr/bin/file |
case $host_cpu in | | case "$host_cpu" in |
ia64*) | | ia64*) |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| | |
esac | | esac |
;; | | ;; |
| | |
interix3*) | | |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | | |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | | |
;; | | |
| | |
irix5* | irix6* | nonstopux*) | | irix5* | irix6* | nonstopux*) |
case $LD in | | case $LD in |
*-32|*"-32 ") libmagic=32-bit;; | | *-32|*"-32 ") libmagic=32-bit;; |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
else | | else |
| | |
;; | | ;; |
| | |
openbsd*) | | openbsd*) |
| | lt_cv_file_magic_cmd=/usr/bin/file |
| | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
else | | else |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
fi | | fi |
;; | | ;; |
| | |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | lt_cv_deplibs_check_method=pass_all |
| | ;; |
| | |
solaris*) | | solaris*) |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
sysv4 | sysv4.3*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
case $host_vendor in | | case $host_vendor in |
motorola) | | motorola) |
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]' | | 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]' |
| | |
siemens) | | siemens) |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
pc) | | |
lt_cv_deplibs_check_method=pass_all | | |
;; | | |
esac | | esac |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
esac | | esac |
| | |
# If no C compiler was specified, use CC. | | # If no C compiler was specified, use CC. |
LTCC=${LTCC-"$CC"} | | LTCC=${LTCC-"$CC"} |
| | |
# If no C compiler flags were specified, use CFLAGS. | | |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
compiler=$CC | | compiler=$CC |
| | |
| | |
;; | | ;; |
*-*-irix6*) | | *-*-irix6*) |
# Find out which ABI we are using. | | # Find out which ABI we are using. |
echo '#line 3718 "configure"' > conftest.$ac_ext | | echo '#line 3691 "configure"' > conftest.$ac_ext |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
(eval $ac_compile) 2>&5 | | (eval $ac_compile) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
ac_status=$? | | ac_status=$? |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); }; then | | (exit $ac_status); }; then |
case `/usr/bin/file conftest.o` in | | case "`/usr/bin/file conftest.o`" in |
*32-bit*) | | *32-bit*) |
case $host in | | case $host in |
x86_64-*linux*) | | x86_64-*linux*) |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
CFLAGS="$SAVE_CFLAGS" | | CFLAGS="$SAVE_CFLAGS" |
fi | | fi |
;; | | ;; |
sparc*-*solaris*) | | |
# Find out which ABI we are using. | | |
echo 'int i;' > conftest.$ac_ext | | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | | |
(eval $ac_compile) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; then | | |
case `/usr/bin/file conftest.o` in | | |
*64-bit*) | | |
case $lt_cv_prog_gnu_ld in | | |
yes*) LD="${LD-ld} -m elf64_sparc" ;; | | |
*) LD="${LD-ld} -64" ;; | | |
esac | | |
;; | | |
esac | | |
fi | | |
rm -rf conftest* | | |
;; | | |
| | |
| | |
esac | | esac |
| | |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_cxx_werror_flag" | | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_cxx_werror_flag" | | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_cxx_werror_flag" | | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_cxx_werror_flag" | | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
fi | | fi |
| | |
| | |
| | |
| | |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && | | |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | | |
(test "X$CXX" != "Xg++"))) ; then | | |
ac_ext=cc | | ac_ext=cc |
ac_cpp='$CXXCPP $CPPFLAGS' | | ac_cpp='$CXXCPP $CPPFLAGS' |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | |
fi | | |
| | |
| | |
ac_ext=f | | ac_ext=f |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| | |
| | |
| | |
# Provide some information about the compiler. | | # Provide some information about the compiler. |
echo "$as_me:5317:" \ | | echo "$as_me:5255:" \ |
"checking for Fortran 77 compiler version" >&5 | | "checking for Fortran 77 compiler version" >&5 |
ac_compiler=`set X $ac_compile; echo $2` | | ac_compiler=`set X $ac_compile; echo $2` |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_f77_werror_flag" | | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_f77_werror_flag" | | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
lt_cv_sys_max_cmd_len=8192; | | lt_cv_sys_max_cmd_len=8192; |
;; | | ;; |
| | |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | | |
# This has been around since 386BSD, at least. Likely further. | | |
if test -x /sbin/sysctl; then | | |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | | |
elif test -x /usr/sbin/sysctl; then | | |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | | |
else | | |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | | |
fi | | |
# And add a safety zone | | |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | | |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | | |
;; | | |
| | |
interix*) | | |
# We know the value 262144 and hardcode it with a safety zone (like BSD) | | |
lt_cv_sys_max_cmd_len=196608 | | |
;; | | |
| | |
osf*) | | |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | | |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | | |
# nice to cause kernel panics so lets avoid the loop below. | | |
# First set a reasonable default. | | |
lt_cv_sys_max_cmd_len=16384 | | |
# | | |
if test -x /sbin/sysconfig; then | | |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | | |
*1*) lt_cv_sys_max_cmd_len=-1 ;; | | |
esac | | |
fi | | |
;; | | |
sco3.2v5*) | | |
lt_cv_sys_max_cmd_len=102400 | | |
;; | | |
sysv5* | sco5v6* | sysv4.2uw2*) | | |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | | |
if test -n "$kargmax"; then | | |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | | |
else | | |
lt_cv_sys_max_cmd_len=32768 | | |
fi | | |
;; | | |
*) | | *) |
# If test is not a shell built-in, we'll probably end up computing a | | # If test is not a shell built-in, we'll probably end up computing a |
# maximum length that is only half of the actual maximum length, but | | # maximum length that is only half of the actual maximum length, but |
# we can't tell. | | # we can't tell. |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | | |
= "XX$teststring") >/dev/null 2>&1 && | | = "XX$teststring") >/dev/null 2>&1 && |
new_result=`expr "X$teststring" : ".*" 2>&1` && | | new_result=`expr "X$teststring" : ".*" 2>&1` && |
lt_cv_sys_max_cmd_len=$new_result && | | lt_cv_sys_max_cmd_len=$new_result && |
| | |
# Regexp to match symbols that can be accessed directly from C. | | # Regexp to match symbols that can be accessed directly from C. |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| | |
| | # Transform the above into a raw symbol and a C symbol. |
| | symxfrm='\1 \2\3 \3' |
| | |
# Transform an extracted symbol line into a proper C declaration | | # Transform an extracted symbol line into a proper C declaration |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| | |
| | |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
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'" | | 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'" |
;; | | ;; |
linux*) | | |
if test "$host_cpu" = ia64; then | | |
symcode='[ABCDGIRSTW]' | | |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | | |
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'" | | |
fi | | |
;; | | |
irix* | nonstopux*) | | irix* | nonstopux*) |
symcode='[BCDEGRST]' | | symcode='[BCDEGRST]' |
;; | | ;; |
osf*) | | osf*) |
symcode='[BCDEGQRST]' | | symcode='[BCDEGQRST]' |
;; | | ;; |
solaris*) | | solaris* | sysv5*) |
symcode='[BDRT]' | | symcode='[BDRT]' |
;; | | ;; |
sco3.2v5*) | | |
symcode='[DT]' | | |
;; | | |
sysv4.2uw2*) | | |
symcode='[DT]' | | |
;; | | |
sysv5* | sco5v6* | unixware* | OpenUNIX*) | | |
symcode='[ABDT]' | | |
;; | | |
sysv4) | | sysv4) |
symcode='[DFNSTU]' | | symcode='[DFNSTU]' |
;; | | ;; |
| | |
# Try without a prefix undercore, then with it. | | # Try without a prefix undercore, then with it. |
for ac_symprfx in "" "_"; do | | for ac_symprfx in "" "_"; do |
| | |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | | |
symxfrm="\\1 $ac_symprfx\\2 \\2" | | |
| | |
# Write the raw and C identifiers. | | # Write the raw and C identifiers. |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| | |
# Check to see that the pipe works correctly. | | # Check to see that the pipe works correctly. |
pipe_works=no | | pipe_works=no |
| | |
| | |
# Sed substitution that helps us do robust quoting. It backslashifies | | # Sed substitution that helps us do robust quoting. It backslashifies |
# metacharacters that are still active within double-quoted strings. | | # metacharacters that are still active within double-quoted strings. |
Xsed='sed -e 1s/^X//' | | Xsed='sed -e s/^X//' |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| | |
# Same as above, but do not quote variable references. | | # Same as above, but do not quote variable references. |
| | |
default_ofile=libtool | | default_ofile=libtool |
can_build_shared=yes | | can_build_shared=yes |
| | |
# All known linkers require a `.a' archive for static linking (except MSVC, | | # All known linkers require a `.a' archive for static linking (except M$VC, |
# which needs '.lib'). | | # which needs '.lib'). |
libext=a | | libext=a |
ltmain="$ac_aux_dir/ltmain.sh" | | ltmain="$ac_aux_dir/ltmain.sh" |
| | |
test -z "$AS" && AS=as | | test -z "$AS" && AS=as |
test -z "$CC" && CC=cc | | test -z "$CC" && CC=cc |
test -z "$LTCC" && LTCC=$CC | | test -z "$LTCC" && LTCC=$CC |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | | |
test -z "$DLLTOOL" && DLLTOOL=dlltool | | test -z "$DLLTOOL" && DLLTOOL=dlltool |
test -z "$LD" && LD=ld | | test -z "$LD" && LD=ld |
test -z "$LN_S" && LN_S="ln -s" | | test -z "$LN_S" && LN_S="ln -s" |
| | |
if test -n "$RANLIB"; then | | if test -n "$RANLIB"; then |
case $host_os in | | case $host_os in |
openbsd*) | | openbsd*) |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
;; | | ;; |
*) | | *) |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
;; | | ;; |
esac | | esac |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
fi | | fi |
| | |
for cc_temp in $compiler""; do | | |
case $cc_temp in | | |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | | |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
| | |
| | |
# Only perform the check for file, if the check method requires it | | # Only perform the check for file, if the check method requires it |
case $deplibs_check_method in | | case $deplibs_check_method in |
file_magic*) | | file_magic*) |
| | |
if test -n "$file_magic_test_file"; then | | if test -n "$file_magic_test_file"; then |
case $deplibs_check_method in | | case $deplibs_check_method in |
"file_magic "*) | | "file_magic "*) |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
$EGREP "$file_magic_regex" > /dev/null; then | | $EGREP "$file_magic_regex" > /dev/null; then |
| | |
if test -n "$file_magic_test_file"; then | | if test -n "$file_magic_test_file"; then |
case $deplibs_check_method in | | case $deplibs_check_method in |
"file_magic "*) | | "file_magic "*) |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
$EGREP "$file_magic_regex" > /dev/null; then | | $EGREP "$file_magic_regex" > /dev/null; then |
| | |
# If no C compiler was specified, use CC. | | # If no C compiler was specified, use CC. |
LTCC=${LTCC-"$CC"} | | LTCC=${LTCC-"$CC"} |
| | |
# If no C compiler flags were specified, use CFLAGS. | | |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
compiler=$CC | | compiler=$CC |
| | |
| | |
# save warnings/boilerplate of simple test code | | # |
ac_outfile=conftest.$ac_objext | | # Check for any special shared library compilation flags. |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext | | # |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | lt_prog_cc_shlib= |
_lt_compiler_boilerplate=`cat conftest.err` | | if test "$GCC" = no; then |
$rm conftest* | | case $host_os in |
| | sco3.2v5*) |
| | lt_prog_cc_shlib='-belf' |
| | ;; |
| | esac |
| | fi |
| | if test -n "$lt_prog_cc_shlib"; then |
| | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| | else |
| | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| | lt_cv_prog_cc_can_build_shared=no |
| | fi |
| | fi |
| | |
ac_outfile=conftest.$ac_objext | | |
| | # |
| | # Check to make sure the static flag actually works. |
| | # |
| | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| | if test "${lt_prog_compiler_static_works+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | lt_prog_compiler_static_works=no |
| | save_LDFLAGS="$LDFLAGS" |
| | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
printf "$lt_simple_link_test_code" >conftest.$ac_ext | | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
_lt_linker_boilerplate=`cat conftest.err` | | # The compiler can only warn and ignore the option if not recognized |
| | # So say no if there are warnings |
| | if test -s conftest.err; then |
| | # Append any errors to the config.log. |
| | cat conftest.err 1>&5 |
| | else |
| | lt_prog_compiler_static_works=yes |
| | fi |
| | fi |
$rm conftest* | | $rm conftest* |
| | LDFLAGS="$save_LDFLAGS" |
| | |
| | fi |
| | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| | |
| | if test x"$lt_prog_compiler_static_works" = xyes; then |
| | : |
| | else |
| | lt_prog_compiler_static= |
| | fi |
| | |
| | |
| | |
| | |
| | |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
# The option is referenced via a variable to avoid confusing sed. | | # The option is referenced via a variable to avoid confusing sed. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:6380: $lt_compile\"" >&5) | | (eval echo "\"\$as_me:6287: $lt_compile\"" >&5) |
(eval "$lt_compile" 2>conftest.err) | | (eval "$lt_compile" 2>conftest.err) |
ac_status=$? | | ac_status=$? |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:6384: \$? = $ac_status" >&5 | | echo "$as_me:6291: \$? = $ac_status" >&5 |
if (exit $ac_status) && test -s "$ac_outfile"; then | | if (exit $ac_status) && test -s "$ac_outfile"; then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings other than the usual output. | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | | if test ! -s conftest.err; then |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_cv_prog_compiler_rtti_exceptions=yes | | lt_cv_prog_compiler_rtti_exceptions=yes |
fi | | fi |
fi | | fi |
| | |
lt_prog_compiler_pic='-fno-common' | | lt_prog_compiler_pic='-fno-common' |
;; | | ;; |
| | |
interix3*) | | |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. | | |
# Instead, we relocate shared libraries at runtime. | | |
;; | | |
| | |
msdosdjgpp*) | | msdosdjgpp*) |
# Just because we use GCC doesn't mean we suddenly get shared libraries | | # Just because we use GCC doesn't mean we suddenly get shared libraries |
# on systems that don't support them. | | # on systems that don't support them. |
| | |
hpux*) | | hpux*) |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# not for PA HP-UX. | | # not for PA HP-UX. |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
# +Z the default | | # +Z the default |
;; | | ;; |
| | |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
fi | | fi |
;; | | ;; |
darwin*) | | |
# PIC is the default on this platform | | |
# Common symbols not allowed in MH_DYLIB files | | |
case $cc_basename in | | |
xlc*) | | |
lt_prog_compiler_pic='-qnocommon' | | |
lt_prog_compiler_wl='-Wl,' | | |
;; | | |
esac | | |
;; | | |
| | |
mingw* | pw32* | os2*) | | mingw* | pw32* | os2*) |
# This hack is so that the source file can tell whether it is being | | # This hack is so that the source file can tell whether it is being |
| | |
lt_prog_compiler_wl='-Wl,' | | lt_prog_compiler_wl='-Wl,' |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# not for PA HP-UX. | | # not for PA HP-UX. |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
# +Z the default | | # +Z the default |
;; | | ;; |
| | |
;; | | ;; |
| | |
linux*) | | linux*) |
case $cc_basename in | | case $CC in |
icc* | ecc*) | | icc* | ecc*) |
lt_prog_compiler_wl='-Wl,' | | lt_prog_compiler_wl='-Wl,' |
lt_prog_compiler_pic='-KPIC' | | lt_prog_compiler_pic='-KPIC' |
lt_prog_compiler_static='-static' | | lt_prog_compiler_static='-static' |
;; | | ;; |
pgcc* | pgf77* | pgf90* | pgf95*) | | |
# Portland Group compilers (*not* the Pentium gcc compiler, | | |
# which looks to be a dead project) | | |
lt_prog_compiler_wl='-Wl,' | | |
lt_prog_compiler_pic='-fpic' | | |
lt_prog_compiler_static='-Bstatic' | | |
;; | | |
ccc*) | | ccc*) |
lt_prog_compiler_wl='-Wl,' | | lt_prog_compiler_wl='-Wl,' |
# All Alpha code is PIC. | | # All Alpha code is PIC. |
| | |
lt_prog_compiler_static='-non_shared' | | lt_prog_compiler_static='-non_shared' |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | lt_prog_compiler_pic='-Kpic' |
| | lt_prog_compiler_static='-dn' |
| | ;; |
| | |
solaris*) | | solaris*) |
| | lt_prog_compiler_wl='-Wl,' |
lt_prog_compiler_pic='-KPIC' | | lt_prog_compiler_pic='-KPIC' |
lt_prog_compiler_static='-Bstatic' | | lt_prog_compiler_static='-Bstatic' |
case $cc_basename in | | |
f77* | f90* | f95*) | | |
lt_prog_compiler_wl='-Qoption ld ';; | | |
*) | | |
lt_prog_compiler_wl='-Wl,';; | | |
esac | | |
;; | | ;; |
| | |
sunos4*) | | sunos4*) |
| | |
lt_prog_compiler_static='-Bstatic' | | lt_prog_compiler_static='-Bstatic' |
;; | | ;; |
| | |
sysv4 | sysv4.2uw2* | sysv4.3*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
lt_prog_compiler_wl='-Wl,' | | lt_prog_compiler_wl='-Wl,' |
lt_prog_compiler_pic='-KPIC' | | lt_prog_compiler_pic='-KPIC' |
lt_prog_compiler_static='-Bstatic' | | lt_prog_compiler_static='-Bstatic' |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | | |
lt_prog_compiler_wl='-Wl,' | | |
lt_prog_compiler_pic='-KPIC' | | |
lt_prog_compiler_static='-Bstatic' | | |
;; | | |
| | |
unicos*) | | |
lt_prog_compiler_wl='-Wl,' | | |
lt_prog_compiler_can_build_shared=no | | |
;; | | |
| | |
uts4*) | | uts4*) |
lt_prog_compiler_pic='-pic' | | lt_prog_compiler_pic='-pic' |
lt_prog_compiler_static='-Bstatic' | | lt_prog_compiler_static='-Bstatic' |
| | |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
# The option is referenced via a variable to avoid confusing sed. | | # The option is referenced via a variable to avoid confusing sed. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:6648: $lt_compile\"" >&5) | | (eval echo "\"\$as_me:6520: $lt_compile\"" >&5) |
(eval "$lt_compile" 2>conftest.err) | | (eval "$lt_compile" 2>conftest.err) |
ac_status=$? | | ac_status=$? |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:6652: \$? = $ac_status" >&5 | | echo "$as_me:6524: \$? = $ac_status" >&5 |
if (exit $ac_status) && test -s "$ac_outfile"; then | | if (exit $ac_status) && test -s "$ac_outfile"; then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings other than the usual output. | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | | if test ! -s conftest.err; then |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_prog_compiler_pic_works=yes | | lt_prog_compiler_pic_works=yes |
fi | | fi |
fi | | fi |
| | |
fi | | fi |
| | |
fi | | fi |
case $host_os in | | case "$host_os" in |
# For platforms which do not support PIC, -DPIC is meaningless: | | # For platforms which do not support PIC, -DPIC is meaningless: |
*djgpp*) | | *djgpp*) |
lt_prog_compiler_pic= | | lt_prog_compiler_pic= |
| | |
;; | | ;; |
esac | | esac |
| | |
# | | |
# Check to make sure the static flag actually works. | | |
# | | |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | | |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | | |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | | |
if test "${lt_prog_compiler_static_works+set}" = set; then | | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | | |
else | | |
lt_prog_compiler_static_works=no | | |
save_LDFLAGS="$LDFLAGS" | | |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | | |
printf "$lt_simple_link_test_code" > conftest.$ac_ext | | |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | | |
# The linker can only warn and ignore the option if not recognized | | |
# So say no if there are warnings | | |
if test -s conftest.err; then | | |
# Append any errors to the config.log. | | |
cat conftest.err 1>&5 | | |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | | |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_prog_compiler_static_works=yes | | |
fi | | |
else | | |
lt_prog_compiler_static_works=yes | | |
fi | | |
fi | | |
$rm conftest* | | |
LDFLAGS="$save_LDFLAGS" | | |
| | |
fi | | |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | | |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | | |
| | |
if test x"$lt_prog_compiler_static_works" = xyes; then | | |
: | | |
else | | |
lt_prog_compiler_static= | | |
fi | | |
| | |
| | |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then | | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| | |
# Note that $ac_compile itself does not contain backslashes and begins | | # Note that $ac_compile itself does not contain backslashes and begins |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:6752: $lt_compile\"" >&5) | | (eval echo "\"\$as_me:6580: $lt_compile\"" >&5) |
(eval "$lt_compile" 2>out/conftest.err) | | (eval "$lt_compile" 2>out/conftest.err) |
ac_status=$? | | ac_status=$? |
cat out/conftest.err >&5 | | cat out/conftest.err >&5 |
echo "$as_me:6756: \$? = $ac_status" >&5 | | echo "$as_me:6584: \$? = $ac_status" >&5 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext | | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
then | | then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | | if test ! -s out/conftest.err; then |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | | |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | | |
lt_cv_prog_compiler_c_o=yes | | lt_cv_prog_compiler_c_o=yes |
fi | | fi |
fi | | fi |
chmod u+w . 2>&5 | | chmod u+w . |
$rm conftest* | | $rm conftest* |
# SGI C++ compiler will create directory out/ii_files/ for | | # SGI C++ compiler will create directory out/ii_files/ for |
# template instantiation | | # template instantiation |
| | |
# rely on this symbol name, it's probably fine to never include it in | | # rely on this symbol name, it's probably fine to never include it in |
# preloaded symbol tables. | | # preloaded symbol tables. |
extract_expsyms_cmds= | | extract_expsyms_cmds= |
# Just being paranoid about ensuring that cc_basename is set. | | |
for cc_temp in $compiler""; do | | |
case $cc_temp in | | |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | | |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
| | |
case $host_os in | | case $host_os in |
cygwin* | mingw* | pw32*) | | cygwin* | mingw* | pw32*) |
| | |
with_gnu_ld=no | | with_gnu_ld=no |
fi | | fi |
;; | | ;; |
interix*) | | |
# we just hope/assume this is gcc and not c89 (= MSVC++) | | |
with_gnu_ld=yes | | |
;; | | |
openbsd*) | | openbsd*) |
with_gnu_ld=no | | with_gnu_ld=no |
;; | | ;; |
| | |
# If archive_cmds runs LD, not CC, wlarc should be empty | | # If archive_cmds runs LD, not CC, wlarc should be empty |
wlarc='${wl}' | | wlarc='${wl}' |
| | |
# Set some defaults for GNU ld with shared library support. These | | |
# are reset later if shared libraries are not supported. Putting them | | |
# here allows them to be overridden if necessary. | | |
runpath_var=LD_RUN_PATH | | |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | | |
export_dynamic_flag_spec='${wl}--export-dynamic' | | |
# ancient GNU ld didn't support --whole-archive et. al. | | |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | | |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | | |
else | | |
whole_archive_flag_spec= | | |
fi | | |
supports_anon_versioning=no | | |
case `$LD -v 2>/dev/null` in | | |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | | |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | | |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | | |
*\ 2.11.*) ;; # other 2.11 versions | | |
*) supports_anon_versioning=yes ;; | | |
esac | | |
| | |
# See if GNU ld supports shared libraries. | | # See if GNU ld supports shared libraries. |
case $host_os in | | case $host_os in |
aix3* | aix4* | aix5*) | | aix3* | aix4* | aix5*) |
| | |
allow_undefined_flag=unsupported | | allow_undefined_flag=unsupported |
always_export_symbols=no | | always_export_symbols=no |
enable_shared_with_static_runtimes=yes | | enable_shared_with_static_runtimes=yes |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
# If the export-symbols file already is a .def file (1st line | | # If the export-symbols file already is a .def file (1st line |
# is EXPORTS), use it as is; otherwise, prepend... | | # is EXPORTS), use it as is; otherwise, prepend... |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | |
echo EXPORTS > $output_objdir/$soname.def; | | echo EXPORTS > $output_objdir/$soname.def; |
cat $export_symbols >> $output_objdir/$soname.def; | | cat $export_symbols >> $output_objdir/$soname.def; |
fi~ | | fi~ |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
else | | |
ld_shlibs=no | | |
fi | | |
;; | | |
| | |
interix3*) | | |
hardcode_direct=no | | |
hardcode_shlibpath_var=no | | |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | | |
export_dynamic_flag_spec='${wl}-E' | | |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | | |
# Instead, shared libraries are loaded at an image base (0x10000000 by | | |
# default) and relocated if they conflict, which is a slow very memory | | |
# consuming and fragmenting process. To avoid this, we pick a random, | | |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | | |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. | | |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | | |
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' | | |
;; | | |
| | |
linux*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
tmp_addflag= | | |
case $cc_basename,$host_cpu in | | |
pgcc*) # Portland Group C compiler | | |
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' | | |
tmp_addflag=' $pic_flag' | | |
;; | | |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | | |
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' | | |
tmp_addflag=' $pic_flag -Mnomain' ;; | | |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | | |
tmp_addflag=' -i_dynamic' ;; | | |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | | |
tmp_addflag=' -i_dynamic -nofor_main' ;; | | |
ifc* | ifort*) # Intel Fortran compiler | | |
tmp_addflag=' -nofor_main' ;; | | |
esac | | |
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
| | |
if test $supports_anon_versioning = yes; then | | |
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | | |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | | |
$echo "local: *; };" >> $output_objdir/$libname.ver~ | | |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | | |
fi | | |
else | | else |
ld_shlibs=no | | ld_shlibs=no |
fi | | fi |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
wlarc= | | wlarc= |
| | |
fi | | fi |
;; | | ;; |
| | |
solaris*) | | solaris* | sysv5*) |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
ld_shlibs=no | | ld_shlibs=no |
cat <<EOF 1>&2 | | cat <<EOF 1>&2 |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | | |
case `$LD -v 2>&1` in | | |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | | |
ld_shlibs=no | | |
cat <<_LT_EOF 1>&2 | | |
| | |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | | |
*** reliably create shared libraries on SCO systems. Therefore, libtool | | |
*** is disabling shared libraries support. We urge you to upgrade GNU | | |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify | | |
*** your PATH or compiler configuration so that the native linker is | | |
*** used, and then restart. | | |
| | |
_LT_EOF | | |
;; | | |
*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | | |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | | |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | | |
else | | |
ld_shlibs=no | | |
fi | | |
;; | | |
esac | | |
;; | | |
| | |
sunos4*) | | sunos4*) |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
wlarc= | | wlarc= |
| | |
hardcode_shlibpath_var=no | | hardcode_shlibpath_var=no |
;; | | ;; |
| | |
*) | | linux*) |
| | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | archive_cmds="$tmp_archive_cmds" |
| | supports_anon_versioning=no |
| | case `$LD -v 2>/dev/null` in |
| | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| | *\ 2.11.*) ;; # other 2.11 versions |
| | *) supports_anon_versioning=yes ;; |
| | esac |
| | if test $supports_anon_versioning = yes; then |
| | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| | else |
| | archive_expsym_cmds="$tmp_archive_cmds" |
| | fi |
| | link_all_deplibs=no |
| | else |
| | ld_shlibs=no |
| | fi |
| | ;; |
| | |
| | *) |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| | |
;; | | ;; |
esac | | esac |
| | |
if test "$ld_shlibs" = no; then | | if test "$ld_shlibs" = yes; then |
runpath_var= | | runpath_var=LD_RUN_PATH |
hardcode_libdir_flag_spec= | | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
export_dynamic_flag_spec= | | export_dynamic_flag_spec='${wl}--export-dynamic' |
| | # ancient GNU ld didn't support --whole-archive et. al. |
| | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | else |
whole_archive_flag_spec= | | whole_archive_flag_spec= |
fi | | fi |
| | fi |
else | | else |
# PORTME fill in a description of your system's linker (not GNU ld) | | # PORTME fill in a description of your system's linker (not GNU ld) |
case $host_os in | | case $host_os in |
| | |
# Note: this linker hardcodes the directories in LIBPATH if there | | # Note: this linker hardcodes the directories in LIBPATH if there |
# are no directories specified by -L. | | # are no directories specified by -L. |
hardcode_minus_L=yes | | hardcode_minus_L=yes |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | | if test "$GCC" = yes && test -z "$link_static_flag"; then |
# Neither direct hardcoding nor static linking is supported with a | | # Neither direct hardcoding nor static linking is supported with a |
# broken collect2. | | # broken collect2. |
hardcode_direct=unsupported | | hardcode_direct=unsupported |
| | |
break | | break |
fi | | fi |
done | | done |
;; | | |
esac | | esac |
| | |
exp_sym_flag='-bexport' | | exp_sym_flag='-bexport' |
| | |
link_all_deplibs=yes | | link_all_deplibs=yes |
| | |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
case $host_os in aix4.[012]|aix4.[012].*) | | case $host_os in aix4.012|aix4.012.*) |
# We only want to do this on AIX 4.2 and lower, the check | | # We only want to do this on AIX 4.2 and lower, the check |
# below for broken collect2 doesn't work under 4.3+ | | # below for broken collect2 doesn't work under 4.3+ |
collect2name=`${CC} -print-prog-name=collect2` | | collect2name=`${CC} -print-prog-name=collect2` |
| | |
hardcode_libdir_flag_spec='-L$libdir' | | hardcode_libdir_flag_spec='-L$libdir' |
hardcode_libdir_separator= | | hardcode_libdir_separator= |
fi | | fi |
;; | | |
esac | | esac |
shared_flag='-shared' | | shared_flag='-shared' |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag="$shared_flag "'${wl}-G' | | |
fi | | |
else | | else |
# not using gcc | | # not using gcc |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
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" | | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
else | | else |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
allow_undefined_flag="-z nodefs" | | allow_undefined_flag="-z nodefs" |
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" | | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
else | | else |
# Determine the default libpath from the value encoded in an empty executable. | | # Determine the default libpath from the value encoded in an empty executable. |
cat >conftest.$ac_ext <<_ACEOF | | cat >conftest.$ac_ext <<_ACEOF |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
# -berok will link without error, but may produce a broken library. | | # -berok will link without error, but may produce a broken library. |
no_undefined_flag=' ${wl}-bernotok' | | no_undefined_flag=' ${wl}-bernotok' |
allow_undefined_flag=' ${wl}-berok' | | allow_undefined_flag=' ${wl}-berok' |
| | # -bexpall does not export symbols beginning with underscore (_) |
| | always_export_symbols=yes |
# Exported symbols can be pulled into shared objects from archives | | # Exported symbols can be pulled into shared objects from archives |
whole_archive_flag_spec='$convenience' | | whole_archive_flag_spec=' ' |
archive_cmds_need_lc=yes | | archive_cmds_need_lc=yes |
# This is similar to how AIX traditionally builds its shared libraries. | | # This is similar to how AIX traditionally builds it's shared libraries. |
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' | | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
fi | | fi |
fi | | fi |
;; | | ;; |
| | |
ld_shlibs=no | | ld_shlibs=no |
;; | | ;; |
| | |
bsdi[45]*) | | bsdi4*) |
export_dynamic_flag_spec=-rdynamic | | export_dynamic_flag_spec=-rdynamic |
;; | | ;; |
| | |
| | |
;; | | ;; |
| | |
darwin* | rhapsody*) | | darwin* | rhapsody*) |
case $host_os in | | if test "$GXX" = yes ; then |
| | archive_cmds_need_lc=no |
| | case "$host_os" in |
rhapsody* | darwin1.[012]) | | rhapsody* | darwin1.[012]) |
allow_undefined_flag='${wl}-undefined ${wl}suppress' | | allow_undefined_flag='-undefined suppress' |
;; | | ;; |
*) # Darwin 1.3 on | | *) # Darwin 1.3 on |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | allow_undefined_flag='-flat_namespace -undefined suppress' |
else | | else |
case ${MACOSX_DEPLOYMENT_TARGET} in | | case ${MACOSX_DEPLOYMENT_TARGET} in |
10.[012]) | | 10.[012]) |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | allow_undefined_flag='-flat_namespace -undefined suppress' |
;; | | ;; |
10.*) | | 10.*) |
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | | allow_undefined_flag='-undefined dynamic_lookup' |
;; | | ;; |
esac | | esac |
fi | | fi |
;; | | ;; |
esac | | esac |
archive_cmds_need_lc=no | | lt_int_apple_cc_single_mod=no |
| | output_verbose_link_cmd='echo' |
| | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| | lt_int_apple_cc_single_mod=yes |
| | fi |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| | else |
| | archive_cmds='$CC -r ${wl}-bind_at_load -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' |
| | fi |
| | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | archive_expsym_cmds='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}' |
| | else |
| | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
| | fi |
| | 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}' |
hardcode_direct=no | | hardcode_direct=no |
hardcode_automatic=yes | | hardcode_automatic=yes |
hardcode_shlibpath_var=unsupported | | hardcode_shlibpath_var=unsupported |
whole_archive_flag_spec='' | | whole_archive_flag_spec='-all_load $convenience' |
link_all_deplibs=yes | | link_all_deplibs=yes |
if test "$GCC" = yes ; then | | |
output_verbose_link_cmd='echo' | | |
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
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}' | | |
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}' | | |
else | | else |
case $cc_basename in | | |
xlc*) | | |
output_verbose_link_cmd='echo' | | |
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | | |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
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}' | | |
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}' | | |
;; | | |
*) | | |
ld_shlibs=no | | ld_shlibs=no |
;; | | |
esac | | |
fi | | fi |
;; | | ;; |
| | |
| | |
;; | | ;; |
| | |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. | | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
hardcode_libdir_flag_spec='-R$libdir' | | hardcode_libdir_flag_spec='-R$libdir' |
hardcode_direct=yes | | hardcode_direct=yes |
| | |
export_dynamic_flag_spec='${wl}-E' | | export_dynamic_flag_spec='${wl}-E' |
;; | | ;; |
| | |
hpux10*) | | hpux10* | hpux11*) |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then | | |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | | |
fi | | |
if test "$with_gnu_ld" = no; then | | |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | | |
hardcode_libdir_separator=: | | |
| | |
hardcode_direct=yes | | |
export_dynamic_flag_spec='${wl}-E' | | |
| | |
# hardcode_minus_L: Not really in the search PATH, | | |
# but as the default location of the library. | | |
hardcode_minus_L=yes | | |
fi | | |
;; | | |
| | |
hpux11*) | | |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then | | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | hppa*64*|ia64*) |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
;; | | ;; |
ia64*) | | |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | *) |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
;; | | ;; |
esac | | esac |
else | | else |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | hppa*64*|ia64*) |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
;; | | |
ia64*) | | |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | ;; |
*) | | *) |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
;; | | ;; |
esac | | esac |
fi | | fi |
if test "$with_gnu_ld" = no; then | | if test "$with_gnu_ld" = no; then |
| | case "$host_cpu" in |
| | hppa*64*) |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
hardcode_libdir_separator=: | | |
| | |
case $host_cpu in | | |
hppa*64*|ia64*) | | |
hardcode_libdir_flag_spec_ld='+b $libdir' | | hardcode_libdir_flag_spec_ld='+b $libdir' |
| | hardcode_libdir_separator=: |
| | hardcode_direct=no |
| | hardcode_shlibpath_var=no |
| | ;; |
| | ia64*) |
| | hardcode_libdir_flag_spec='-L$libdir' |
hardcode_direct=no | | hardcode_direct=no |
hardcode_shlibpath_var=no | | hardcode_shlibpath_var=no |
| | |
| | # hardcode_minus_L: Not really in the search PATH, |
| | # but as the default location of the library. |
| | hardcode_minus_L=yes |
;; | | ;; |
*) | | *) |
| | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| | hardcode_libdir_separator=: |
hardcode_direct=yes | | hardcode_direct=yes |
export_dynamic_flag_spec='${wl}-E' | | export_dynamic_flag_spec='${wl}-E' |
| | |
| | |
link_all_deplibs=yes | | link_all_deplibs=yes |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
else | | else |
| | |
hardcode_shlibpath_var=no | | hardcode_shlibpath_var=no |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | | |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
export_dynamic_flag_spec='${wl}-E' | | export_dynamic_flag_spec='${wl}-E' |
else | | else |
| | |
allow_undefined_flag=' -expect_unresolved \*' | | allow_undefined_flag=' -expect_unresolved \*' |
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' | | 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' |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
$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' | | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| | |
# Both c and cxx compiler support -rpath directly | | # Both c and cxx compiler support -rpath directly |
hardcode_libdir_flag_spec='-rpath $libdir' | | hardcode_libdir_flag_spec='-rpath $libdir' |
| | |
hardcode_libdir_separator=: | | hardcode_libdir_separator=: |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | hardcode_shlibpath_var=no |
| | export_dynamic_flag_spec='${wl}-Bexport' |
| | runpath_var=LD_RUN_PATH |
| | hardcode_runpath_var=yes |
| | ;; |
| | |
solaris*) | | solaris*) |
no_undefined_flag=' -z text' | | no_undefined_flag=' -z text' |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
wlarc='${wl}' | | |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
else | | else |
wlarc='' | | |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| | |
hardcode_shlibpath_var=no | | hardcode_shlibpath_var=no |
case $host_os in | | case $host_os in |
solaris2.[0-5] | solaris2.[0-5].*) ;; | | solaris2.[0-5] | solaris2.[0-5].*) ;; |
*) | | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
# The compiler driver will combine linker options so we | | |
# cannot just pass the convience library names through | | |
# without $wl, iff we do not link with $LD. | | |
# Luckily, gcc supports the same syntax we need for Sun Studio. | | |
# Supported since Solaris 2.6 (maybe 2.5.1?) | | |
case $wlarc in | | |
'') | | |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
*) | | |
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' ;; | | |
esac ;; | | |
esac | | esac |
link_all_deplibs=yes | | link_all_deplibs=yes |
;; | | ;; |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | | sysv4.2uw2*) |
no_undefined_flag='${wl}-z,text' | | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds_need_lc=no | | hardcode_direct=yes |
| | hardcode_minus_L=no |
hardcode_shlibpath_var=no | | hardcode_shlibpath_var=no |
runpath_var='LD_RUN_PATH' | | hardcode_runpath_var=yes |
| | runpath_var=LD_RUN_PATH |
| | ;; |
| | |
| | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| | no_undefined_flag='${wl}-z ${wl}text' |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | else |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
fi | | fi |
| | runpath_var='LD_RUN_PATH' |
| | hardcode_shlibpath_var=no |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6*) | | sysv5*) |
# Note: We can NOT use -z defs as we might desire, because we do not | | no_undefined_flag=' -z text' |
# link with -lc, and that would cause any symbols used from libc to | | # $CC -shared without GNU ld will not create a library from C++ |
# always be unresolved, which means just about no library would | | # object files and a static libstdc++, better avoid it by now |
# ever link correctly. If we're not using GNU ld we use -z text | | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
# though, which does catch some bad symbols but isn't as heavy-handed | | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
# as -z defs. | | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
no_undefined_flag='${wl}-z,text' | | hardcode_libdir_flag_spec= |
allow_undefined_flag='${wl}-z,nodefs' | | |
archive_cmds_need_lc=no | | |
hardcode_shlibpath_var=no | | hardcode_shlibpath_var=no |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | | |
hardcode_libdir_separator=':' | | |
link_all_deplibs=yes | | |
export_dynamic_flag_spec='${wl}-Bexport' | | |
runpath_var='LD_RUN_PATH' | | runpath_var='LD_RUN_PATH' |
| | |
if test "$GCC" = yes; then | | |
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | |
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
fi | | |
;; | | ;; |
| | |
uts4*) | | uts4*) |
| | |
echo "${ECHO_T}$ld_shlibs" >&6 | | echo "${ECHO_T}$ld_shlibs" >&6 |
test "$ld_shlibs" = no && can_build_shared=no | | test "$ld_shlibs" = no && can_build_shared=no |
| | |
| | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| | if test "$GCC" = yes; then |
| | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| | fi |
| | |
# | | # |
# Do we need to explicitly link libc? | | # Do we need to explicitly link libc? |
# | | # |
| | |
libobjs=conftest.$ac_objext | | libobjs=conftest.$ac_objext |
deplibs= | | deplibs= |
wl=$lt_prog_compiler_wl | | wl=$lt_prog_compiler_wl |
pic_flag=$lt_prog_compiler_pic | | |
compiler_flags=-v | | compiler_flags=-v |
linker_flags=-v | | linker_flags=-v |
verstring= | | verstring= |
| | |
shlibpath_var=LIBRARY_PATH | | shlibpath_var=LIBRARY_PATH |
;; | | ;; |
| | |
bsdi[45]*) | | bsdi4*) |
version_type=linux | | version_type=linux |
need_version=no | | need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
dldir=$destdir/`dirname \$dlpath`~ | | dldir=$destdir/`dirname \$dlpath`~ |
test -d \$dldir || mkdir -p \$dldir~ | | test -d \$dldir || mkdir -p \$dldir~ |
$install_prog $dir/$dlname \$dldir/$dlname~ | | $install_prog $dir/$dlname \$dldir/$dlname' |
chmod a+x \$dldir/$dlname' | | |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
dlpath=$dir/\$dldll~ | | dlpath=$dir/\$dldll~ |
$rm \$dlpath' | | $rm \$dlpath' |
| | |
;; | | ;; |
pw32*) | | pw32*) |
# pw32 DLLs use 'pw' prefix rather than 'lib' | | # pw32 DLLs use 'pw' prefix rather than 'lib' |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
;; | | ;; |
esac | | esac |
;; | | ;; |
| | |
soname_spec='${libname}${release}${major}$shared_ext' | | soname_spec='${libname}${release}${major}$shared_ext' |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
shlibpath_var=DYLD_LIBRARY_PATH | | shlibpath_var=DYLD_LIBRARY_PATH |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
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"` | | 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"` |
| | |
dynamic_linker='GNU ld.so' | | dynamic_linker='GNU ld.so' |
;; | | ;; |
| | |
freebsd* | dragonfly*) | | freebsd*) |
# DragonFly does not have aout. When/if they implement a new | | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
# versioning mechanism, adjust this. | | |
if test -x /usr/bin/objformat; then | | |
objformat=`/usr/bin/objformat` | | |
else | | |
case $host_os in | | |
freebsd[123]*) objformat=aout ;; | | |
*) objformat=elf ;; | | |
esac | | |
fi | | |
version_type=freebsd-$objformat | | version_type=freebsd-$objformat |
case $version_type in | | case $version_type in |
freebsd-elf*) | | freebsd-elf*) |
| | |
freebsd2*) | | freebsd2*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
;; | | ;; |
freebsd3.[01]* | freebsdelf3.[01]*) | | freebsd3.01* | freebsdelf3.01*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | | *) # from 3.2 on |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | | |
shlibpath_overrides_runpath=no | | shlibpath_overrides_runpath=no |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
freebsd*) # from 4.6 on | | |
shlibpath_overrides_runpath=yes | | |
hardcode_into_libs=yes | | |
;; | | |
esac | | esac |
;; | | ;; |
| | |
| | |
version_type=sunos | | version_type=sunos |
need_lib_prefix=no | | need_lib_prefix=no |
need_version=no | | need_version=no |
case $host_cpu in | | case "$host_cpu" in |
ia64*) | | ia64*) |
shrext_cmds='.so' | | shrext_cmds='.so' |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | |
postinstall_cmds='chmod 555 $lib' | | postinstall_cmds='chmod 555 $lib' |
;; | | ;; |
| | |
interix3*) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=no | | |
hardcode_into_libs=yes | | |
;; | | |
| | |
irix5* | irix6* | nonstopux*) | | irix5* | irix6* | nonstopux*) |
case $host_os in | | case $host_os in |
nonstopux*) version_type=nonstopux ;; | | nonstopux*) version_type=nonstopux ;; |
| | |
# before this can be enabled. | | # before this can be enabled. |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | |
# find out which ABI we are using | | |
libsuff= | | |
case "$host_cpu" in | | |
x86_64*|s390x*|powerpc64*) | | |
echo '#line 8221 "configure"' > conftest.$ac_ext | | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | | |
(eval $ac_compile) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; then | | |
case `/usr/bin/file conftest.$ac_objext` in | | |
*64-bit*) | | |
libsuff=64 | | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | | |
;; | | |
esac | | |
fi | | |
rm -rf conftest* | | |
;; | | |
esac | | |
| | |
# Append ld.so.conf contents to the search path | | # Append ld.so.conf contents to the search path |
if test -f /etc/ld.so.conf; then | | if test -f /etc/ld.so.conf; then |
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' ' '` | | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
fi | | fi |
| | |
# We used to test for /lib/ld.so.1 and disable shared libraries on | | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| | |
dynamic_linker='GNU/Linux ld.so' | | dynamic_linker='GNU/Linux ld.so' |
;; | | ;; |
| | |
| | netbsdelf*-gnu) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | dynamic_linker='NetBSD ld.elf_so' |
| | ;; |
| | |
knetbsd*-gnu) | | knetbsd*-gnu) |
version_type=linux | | version_type=linux |
need_lib_prefix=no | | need_lib_prefix=no |
| | |
| | |
openbsd*) | | openbsd*) |
version_type=sunos | | version_type=sunos |
sys_lib_dlsearch_path_spec="/usr/lib" | | |
need_lib_prefix=no | | need_lib_prefix=no |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | | need_version=yes |
case $host_os in | | |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; | | |
*) need_version=no ;; | | |
esac | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
shlibpath_var=LD_LIBRARY_PATH | | shlibpath_var=LD_LIBRARY_PATH |
| | |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | version_type=osf |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | ;; |
| | |
solaris*) | | solaris*) |
version_type=linux | | version_type=linux |
need_lib_prefix=no | | need_lib_prefix=no |
| | |
need_version=yes | | need_version=yes |
;; | | ;; |
| | |
sysv4 | sysv4.3*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
version_type=linux | | version_type=linux |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
soname_spec='${libname}${release}${shared_ext}$major' | | soname_spec='${libname}${release}${shared_ext}$major' |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | | |
version_type=freebsd-elf | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
hardcode_into_libs=yes | | |
if test "$with_gnu_ld" = yes; then | | |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | | |
shlibpath_overrides_runpath=no | | |
else | | |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | | |
shlibpath_overrides_runpath=yes | | |
case $host_os in | | |
sco3.2v5*) | | |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | | |
;; | | |
esac | | |
fi | | |
sys_lib_dlsearch_path_spec='/usr/lib' | | |
;; | | |
| | |
uts4*) | | uts4*) |
version_type=linux | | version_type=linux |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | |
echo "${ECHO_T}$dynamic_linker" >&6 | | echo "${ECHO_T}$dynamic_linker" >&6 |
test "$dynamic_linker" = no && can_build_shared=no | | test "$dynamic_linker" = no && can_build_shared=no |
| | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | | |
if test "$GCC" = yes; then | | |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | | |
fi | | |
| | |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
hardcode_action= | | hardcode_action= |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| | |
save_LDFLAGS="$LDFLAGS" | | save_LDFLAGS="$LDFLAGS" |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| | |
save_LIBS="$LIBS" | | save_LIBS="$LIBS" |
LIBS="$lt_cv_dlopen_libs $LIBS" | | LIBS="$lt_cv_dlopen_libs $LIBS" |
| | |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
lt_status=$lt_dlunknown | | lt_status=$lt_dlunknown |
cat > conftest.$ac_ext <<EOF | | cat > conftest.$ac_ext <<EOF |
#line 9118 "configure" | | #line 8768 "configure" |
#include "confdefs.h" | | #include "confdefs.h" |
| | |
#if HAVE_DLFCN_H | | #if HAVE_DLFCN_H |
| | |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
/* dlclose (self); */ | | /* dlclose (self); */ |
} | | } |
else | | |
puts (dlerror ()); | | |
| | |
exit (status); | | exit (status); |
} | | } |
| | |
ac_status=$? | | ac_status=$? |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
(./conftest; exit; ) >&5 2>/dev/null | | (./conftest; exit; ) 2>/dev/null |
lt_status=$? | | lt_status=$? |
case x$lt_status in | | case x$lt_status in |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
esac | | esac |
else : | | else : |
# compilation failed | | # compilation failed |
| | |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| | |
if test "x$lt_cv_dlopen_self" = xyes; then | | if test "x$lt_cv_dlopen_self" = xyes; then |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | | LDFLAGS="$LDFLAGS $link_static_flag" |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
if test "${lt_cv_dlopen_self_static+set}" = set; then | | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| | |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
lt_status=$lt_dlunknown | | lt_status=$lt_dlunknown |
cat > conftest.$ac_ext <<EOF | | cat > conftest.$ac_ext <<EOF |
#line 9218 "configure" | | #line 8866 "configure" |
#include "confdefs.h" | | #include "confdefs.h" |
| | |
#if HAVE_DLFCN_H | | #if HAVE_DLFCN_H |
| | |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
/* dlclose (self); */ | | /* dlclose (self); */ |
} | | } |
else | | |
puts (dlerror ()); | | |
| | |
exit (status); | | exit (status); |
} | | } |
| | |
ac_status=$? | | ac_status=$? |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
(./conftest; exit; ) >&5 2>/dev/null | | (./conftest; exit; ) 2>/dev/null |
lt_status=$? | | lt_status=$? |
case x$lt_status in | | case x$lt_status in |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
esac | | esac |
else : | | else : |
# compilation failed | | # compilation failed |
| | |
fi | | fi |
| | |
| | |
# Report which library types will actually be built | | # Report which librarie types wil actually be built |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 | | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| | |
| | |
# On AIX, shared libraries and static libraries use the same namespace, and | | # On AIX, shared libraries and static libraries use the same namespace, and |
# are all built from PIC. | | # are all built from PIC. |
case $host_os in | | case "$host_os" in |
aix3*) | | aix3*) |
test "$enable_shared" = yes && enable_static=no | | test "$enable_shared" = yes && enable_static=no |
if test -n "$RANLIB"; then | | if test -n "$RANLIB"; then |
| | |
test "$enable_shared" = yes && enable_static=no | | test "$enable_shared" = yes && enable_static=no |
fi | | fi |
;; | | ;; |
| | darwin* | rhapsody*) |
| | if test "$GCC" = yes; then |
| | archive_cmds_need_lc=no |
| | case "$host_os" in |
| | rhapsody* | darwin1.[012]) |
| | allow_undefined_flag='-undefined suppress' |
| | ;; |
| | *) # Darwin 1.3 on |
| | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| | allow_undefined_flag='-flat_namespace -undefined suppress' |
| | else |
| | case ${MACOSX_DEPLOYMENT_TARGET} in |
| | 10.[012]) |
| | allow_undefined_flag='-flat_namespace -undefined suppress' |
| | ;; |
| | 10.*) |
| | allow_undefined_flag='-undefined dynamic_lookup' |
| | ;; |
| | esac |
| | fi |
| | ;; |
| | esac |
| | output_verbose_link_cmd='echo' |
| | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| | 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}' |
| | 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}' |
| | hardcode_direct=no |
| | hardcode_automatic=yes |
| | hardcode_shlibpath_var=unsupported |
| | whole_archive_flag_spec='-all_load $convenience' |
| | link_all_deplibs=yes |
| | else |
| | ld_shlibs=no |
| | fi |
| | ;; |
esac | | esac |
echo "$as_me:$LINENO: result: $enable_shared" >&5 | | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
echo "${ECHO_T}$enable_shared" >&6 | | echo "${ECHO_T}$enable_shared" >&6 |
| | |
# Now quote all the things that may contain metacharacters while being | | # Now quote all the things that may contain metacharacters while being |
# careful not to overquote the AC_SUBSTed values. We take copies of the | | # careful not to overquote the AC_SUBSTed values. We take copies of the |
# variables and quote the copies for generation of the libtool script. | | # variables and quote the copies for generation of the libtool script. |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
SED SHELL STRIP \ | | SED SHELL STRIP \ |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | |
# | | # |
# You should have received a copy of the GNU General Public License | | # You should have received a copy of the GNU General Public License |
# along with this program; if not, write to the Free Software | | # along with this program; if not, write to the Free Software |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
# | | # |
# As a special exception to the GNU General Public License, if you | | # As a special exception to the GNU General Public License, if you |
# distribute this file as part of a program that contains a | | # distribute this file as part of a program that contains a |
| | |
SED=$lt_SED | | SED=$lt_SED |
| | |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. | | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Xsed="$SED -e 1s/^X//" | | Xsed="$SED -e s/^X//" |
| | |
# The HP-UX ksh and POSIX shell print the target directory to stdout | | # The HP-UX ksh and POSIX shell print the target directory to stdout |
# if CDPATH is set. | | # if CDPATH is set. |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| | |
# The names of the tagged configurations supported by this script. | | # The names of the tagged configurations supported by this script. |
available_tags= | | available_tags= |
| | |
# The host system. | | # The host system. |
host_alias=$host_alias | | host_alias=$host_alias |
host=$host | | host=$host |
host_os=$host_os | | |
| | |
# The build system. | | |
build_alias=$build_alias | | |
build=$build | | |
build_os=$build_os | | |
| | |
# An echo program that does not interpret backslashes. | | # An echo program that does not interpret backslashes. |
echo=$lt_echo | | echo=$lt_echo |
| | |
# A C compiler. | | # A C compiler. |
LTCC=$lt_LTCC | | LTCC=$lt_LTCC |
| | |
# LTCC compiler flags. | | |
LTCFLAGS=$lt_LTCFLAGS | | |
| | |
# A language-specific compiler. | | # A language-specific compiler. |
CC=$lt_compiler | | CC=$lt_compiler |
| | |
| | |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
fi | | fi |
fi | | fi |
if test -z "$LTCFLAGS"; then | | |
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | | |
fi | | |
| | |
# Extract list of available tagged configurations in $ofile. | | # Extract list of available tagged configurations in $ofile. |
# Note that this assumes the entire list is on one line. | | # Note that this assumes the entire list is on one line. |
| | |
| | |
case $tagname in | | case $tagname in |
CXX) | | CXX) |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && | | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | | |
(test "X$CXX" != "Xg++"))) ; then | | |
ac_ext=cc | | ac_ext=cc |
ac_cpp='$CXXCPP $CPPFLAGS' | | ac_cpp='$CXXCPP $CPPFLAGS' |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | |
hardcode_libdir_flag_spec_ld_CXX= | | hardcode_libdir_flag_spec_ld_CXX= |
hardcode_libdir_separator_CXX= | | hardcode_libdir_separator_CXX= |
hardcode_minus_L_CXX=no | | hardcode_minus_L_CXX=no |
hardcode_shlibpath_var_CXX=unsupported | | |
hardcode_automatic_CXX=no | | hardcode_automatic_CXX=no |
module_cmds_CXX= | | module_cmds_CXX= |
module_expsym_cmds_CXX= | | module_expsym_cmds_CXX= |
| | |
compiler_lib_search_path_CXX= | | compiler_lib_search_path_CXX= |
| | |
# Source file extension for C++ test sources. | | # Source file extension for C++ test sources. |
ac_ext=cpp | | ac_ext=cc |
| | |
# Object file extension for compiled C++ test sources. | | # Object file extension for compiled C++ test sources. |
objext=o | | objext=o |
| | |
lt_simple_compile_test_code="int some_variable = 0;\n" | | lt_simple_compile_test_code="int some_variable = 0;\n" |
| | |
# Code to be used in simple link tests | | # Code to be used in simple link tests |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| | |
# If no C compiler was specified, use CC. | | # If no C compiler was specified, use CC. |
LTCC=${LTCC-"$CC"} | | LTCC=${LTCC-"$CC"} |
| | |
# If no C compiler flags were specified, use CFLAGS. | | |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
compiler=$CC | | compiler=$CC |
| | |
| | |
# save warnings/boilerplate of simple test code | | |
ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext | | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_compiler_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
| | |
ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_link_test_code" >conftest.$ac_ext | | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_linker_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
| | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC=$CC | | lt_save_CC=$CC |
lt_save_LD=$LD | | lt_save_LD=$LD |
| | |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
else | | else |
$as_unset lt_cv_prog_gnu_ld | | unset lt_cv_prog_gnu_ld |
fi | | fi |
if test -n "${lt_cv_path_LDCXX+set}"; then | | if test -n "${lt_cv_path_LDCXX+set}"; then |
lt_cv_path_LD=$lt_cv_path_LDCXX | | lt_cv_path_LD=$lt_cv_path_LDCXX |
else | | else |
$as_unset lt_cv_path_LD | | unset lt_cv_path_LD |
fi | | fi |
test -z "${LDCXX+set}" || LD=$LDCXX | | test -z "${LDCXX+set}" || LD=$LDCXX |
CC=${CXX-"c++"} | | CC=${CXX-"c++"} |
compiler=$CC | | compiler=$CC |
compiler_CXX=$CC | | compiler_CXX=$CC |
for cc_temp in $compiler""; do | | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
case $cc_temp in | | |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | | |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
| | |
| | |
# We don't want -fno-exception wen compiling C++ code, so set the | | # We don't want -fno-exception wen compiling C++ code, so set the |
# no_builtin_flag separately | | # no_builtin_flag separately |
| | |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
lt_cv_path_LD="$ac_dir/$ac_prog" | | lt_cv_path_LD="$ac_dir/$ac_prog" |
# Check to see if the program is GNU ld. I'd rather use --version, | | # Check to see if the program is GNU ld. I'd rather use --version, |
# but apparently some variants of GNU ld only accept -v. | | # but apparently some GNU ld's only accept -v. |
# Break only if it was the GNU/non-GNU ld that we prefer. | | # Break only if it was the GNU/non-GNU ld that we prefer. |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
*GNU* | *'with BFD'*) | | *GNU* | *'with BFD'*) |
| | |
if test "${lt_cv_prog_gnu_ld+set}" = set; then | | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
echo $ECHO_N "(cached) $ECHO_C" >&6 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
else | | else |
# I'd rather use --version here, but apparently some GNU lds only accept -v. | | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
case `$LD -v 2>&1 </dev/null` in | | case `$LD -v 2>&1 </dev/null` in |
*GNU* | *'with BFD'*) | | *GNU* | *'with BFD'*) |
lt_cv_prog_gnu_ld=yes | | lt_cv_prog_gnu_ld=yes |
| | |
;; | | ;; |
esac | | esac |
done | | done |
;; | | |
esac | | esac |
| | |
exp_sym_flag='-bexport' | | exp_sym_flag='-bexport' |
| | |
link_all_deplibs_CXX=yes | | link_all_deplibs_CXX=yes |
| | |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
case $host_os in aix4.[012]|aix4.[012].*) | | case $host_os in aix4.012|aix4.012.*) |
# We only want to do this on AIX 4.2 and lower, the check | | # We only want to do this on AIX 4.2 and lower, the check |
# below for broken collect2 doesn't work under 4.3+ | | # below for broken collect2 doesn't work under 4.3+ |
collect2name=`${CC} -print-prog-name=collect2` | | collect2name=`${CC} -print-prog-name=collect2` |
| | |
hardcode_libdir_flag_spec_CXX='-L$libdir' | | hardcode_libdir_flag_spec_CXX='-L$libdir' |
hardcode_libdir_separator_CXX= | | hardcode_libdir_separator_CXX= |
fi | | fi |
;; | | |
esac | | esac |
shared_flag='-shared' | | shared_flag='-shared' |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag="$shared_flag "'${wl}-G' | | |
fi | | |
else | | else |
# not using gcc | | # not using gcc |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_cxx_werror_flag" | | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
| | |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | |
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" | | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
else | | else |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
allow_undefined_flag_CXX="-z nodefs" | | allow_undefined_flag_CXX="-z nodefs" |
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" | | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
else | | else |
# Determine the default libpath from the value encoded in an empty executable. | | # Determine the default libpath from the value encoded in an empty executable. |
cat >conftest.$ac_ext <<_ACEOF | | cat >conftest.$ac_ext <<_ACEOF |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_cxx_werror_flag" | | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
# -berok will link without error, but may produce a broken library. | | # -berok will link without error, but may produce a broken library. |
no_undefined_flag_CXX=' ${wl}-bernotok' | | no_undefined_flag_CXX=' ${wl}-bernotok' |
allow_undefined_flag_CXX=' ${wl}-berok' | | allow_undefined_flag_CXX=' ${wl}-berok' |
| | # -bexpall does not export symbols beginning with underscore (_) |
| | always_export_symbols_CXX=yes |
# Exported symbols can be pulled into shared objects from archives | | # Exported symbols can be pulled into shared objects from archives |
whole_archive_flag_spec_CXX='$convenience' | | whole_archive_flag_spec_CXX=' ' |
archive_cmds_need_lc_CXX=yes | | archive_cmds_need_lc_CXX=yes |
# This is similar to how AIX traditionally builds its shared libraries. | | # This is similar to how AIX traditionally builds it's shared libraries. |
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' | | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
fi | | fi |
fi | | fi |
;; | | ;; |
| | |
beos*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
allow_undefined_flag_CXX=unsupported | | |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | | |
# support --undefined. This deserves some investigation. FIXME | | |
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
else | | |
ld_shlibs_CXX=no | | |
fi | | |
;; | | |
| | |
chorus*) | | chorus*) |
case $cc_basename in | | case $cc_basename in |
*) | | *) |
| | |
enable_shared_with_static_runtimes_CXX=yes | | enable_shared_with_static_runtimes_CXX=yes |
| | |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
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' | | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
# If the export-symbols file already is a .def file (1st line | | # If the export-symbols file already is a .def file (1st line |
# is EXPORTS), use it as is; otherwise, prepend... | | # is EXPORTS), use it as is; otherwise, prepend... |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | |
echo EXPORTS > $output_objdir/$soname.def; | | echo EXPORTS > $output_objdir/$soname.def; |
cat $export_symbols >> $output_objdir/$soname.def; | | cat $export_symbols >> $output_objdir/$soname.def; |
fi~ | | fi~ |
$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' | | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
else | | else |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
fi | | fi |
;; | | ;; |
| | |
darwin* | rhapsody*) | | darwin* | rhapsody*) |
case $host_os in | | if test "$GXX" = yes; then |
| | archive_cmds_need_lc_CXX=no |
| | case "$host_os" in |
rhapsody* | darwin1.[012]) | | rhapsody* | darwin1.[012]) |
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | | allow_undefined_flag_CXX='-undefined suppress' |
;; | | ;; |
*) # Darwin 1.3 on | | *) # Darwin 1.3 on |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
else | | else |
case ${MACOSX_DEPLOYMENT_TARGET} in | | case ${MACOSX_DEPLOYMENT_TARGET} in |
10.[012]) | | 10.[012]) |
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
;; | | ;; |
10.*) | | 10.*) |
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
;; | | ;; |
esac | | esac |
fi | | fi |
;; | | ;; |
esac | | esac |
archive_cmds_need_lc_CXX=no | | |
hardcode_direct_CXX=no | | |
hardcode_automatic_CXX=yes | | |
hardcode_shlibpath_var_CXX=unsupported | | |
whole_archive_flag_spec_CXX='' | | |
link_all_deplibs_CXX=yes | | |
| | |
if test "$GXX" = yes ; then | | |
lt_int_apple_cc_single_mod=no | | lt_int_apple_cc_single_mod=no |
output_verbose_link_cmd='echo' | | output_verbose_link_cmd='echo' |
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
lt_int_apple_cc_single_mod=yes | | lt_int_apple_cc_single_mod=yes |
fi | | fi |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
else | | else |
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' | | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' |
fi | | fi |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
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}' | | 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}' |
else | | else |
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}' | | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
fi | | fi |
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}' | | 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}' |
| | hardcode_direct_CXX=no |
| | hardcode_automatic_CXX=yes |
| | hardcode_shlibpath_var_CXX=unsupported |
| | whole_archive_flag_spec_CXX='-all_load $convenience' |
| | link_all_deplibs_CXX=yes |
else | | else |
case $cc_basename in | | |
xlc*) | | |
output_verbose_link_cmd='echo' | | |
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' | | |
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
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}' | | |
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}' | | |
;; | | |
*) | | |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | |
esac | | |
fi | | fi |
;; | | ;; |
| | |
dgux*) | | dgux*) |
case $cc_basename in | | case $cc_basename in |
ec++*) | | ec++) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
ghcx*) | | ghcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
freebsd[12]*) | | freebsd12*) |
# C++ shared libraries reported to be fairly broken before switch to ELF | | # C++ shared libraries reported to be fairly broken before switch to ELF |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
freebsd-elf*) | | freebsd-elf*) |
archive_cmds_need_lc_CXX=no | | archive_cmds_need_lc_CXX=no |
;; | | ;; |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
# conventions | | # conventions |
ld_shlibs_CXX=yes | | ld_shlibs_CXX=yes |
| | |
# location of the library. | | # location of the library. |
| | |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
aCC*) | | aCC) |
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' | | 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' |
# Commands to make compiler produce verbose output that lists | | # Commands to make compiler produce verbose output that lists |
# what "hidden" libraries, object files and flags are used when | | # what "hidden" libraries, object files and flags are used when |
| | |
# explicitly linking system object files so we need to strip them | | # explicitly linking system object files so we need to strip them |
# from the output so that they don't get included in the library | | # from the output so that they don't get included in the library |
# dependencies. | | # dependencies. |
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' | | 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' |
;; | | ;; |
*) | | *) |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
| | |
;; | | ;; |
hpux10*|hpux11*) | | hpux10*|hpux11*) |
if test $with_gnu_ld = no; then | | if test $with_gnu_ld = no; then |
| | case "$host_cpu" in |
| | hppa*64*) |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
hardcode_libdir_separator_CXX=: | | |
| | |
case $host_cpu in | | |
hppa*64*|ia64*) | | |
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| | hardcode_libdir_separator_CXX=: |
| | ;; |
| | ia64*) |
| | hardcode_libdir_flag_spec_CXX='-L$libdir' |
;; | | ;; |
*) | | *) |
| | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| | hardcode_libdir_separator_CXX=: |
export_dynamic_flag_spec_CXX='${wl}-E' | | export_dynamic_flag_spec_CXX='${wl}-E' |
;; | | ;; |
esac | | esac |
fi | | fi |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*) |
| | hardcode_direct_CXX=no |
| | hardcode_shlibpath_var_CXX=no |
| | ;; |
| | ia64*) |
hardcode_direct_CXX=no | | hardcode_direct_CXX=no |
hardcode_shlibpath_var_CXX=no | | hardcode_shlibpath_var_CXX=no |
| | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| | # but as the default |
| | # location of the library. |
;; | | ;; |
*) | | *) |
hardcode_direct_CXX=yes | | hardcode_direct_CXX=yes |
| | |
esac | | esac |
| | |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
aCC*) | | aCC) |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | hppa*64*|ia64*) |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
;; | | |
ia64*) | | |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | |
;; | | ;; |
*) | | *) |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | |
*) | | *) |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
if test $with_gnu_ld = no; then | | if test $with_gnu_ld = no; then |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | ia64*|hppa*64*) |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
;; | | |
ia64*) | | |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | |
;; | | ;; |
*) | | *) |
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' | | 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' |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
interix3*) | | |
hardcode_direct_CXX=no | | |
hardcode_shlibpath_var_CXX=no | | |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | | |
export_dynamic_flag_spec_CXX='${wl}-E' | | |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | | |
# Instead, shared libraries are loaded at an image base (0x10000000 by | | |
# default) and relocated if they conflict, which is a slow very memory | | |
# consuming and fragmenting process. To avoid this, we pick a random, | | |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | | |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. | | |
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' | | |
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' | | |
;; | | |
irix5* | irix6*) | | irix5* | irix6*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# SGI C++ | | # SGI C++ |
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' | | 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 ${objdir}/so_locations -o $lib' |
| | |
# Archives containing C++ object files must be created using | | # Archives containing C++ object files must be created using |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is | | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| | |
*) | | *) |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
if test "$with_gnu_ld" = no; then | | if test "$with_gnu_ld" = no; then |
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' | | 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}${objdir}/so_locations -o $lib' |
else | | else |
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' | | 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' |
fi | | fi |
| | |
;; | | ;; |
linux*) | | linux*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. | | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
;; | | ;; |
icpc*) | | icpc) |
# Intel C++ | | # Intel C++ |
with_gnu_ld=yes | | with_gnu_ld=yes |
# version 8.0 and above of icpc choke on multiply defined symbols | | archive_cmds_need_lc_CXX=no |
# if we add $predep_objects and $postdep_objects, however 7.1 and | | |
# earlier do not add the objects themselves. | | |
case `$CC -V 2>&1` in | | |
*"Version 7."*) | | |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
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' | | 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' |
;; | | |
*) # Version 8.0 or newer | | |
tmp_idyn= | | |
case $host_cpu in | | |
ia64*) tmp_idyn=' -i_dynamic';; | | |
esac | | |
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
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' | | |
;; | | |
esac | | |
archive_cmds_need_lc_CXX=no | | |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
;; | | ;; |
pgCC*) | | cxx) |
# Portland Group C++ compiler | | |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | | |
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' | | |
| | |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | | |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | | |
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' | | |
;; | | |
cxx*) | | |
# Compaq C++ | | # Compaq C++ |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
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' | | 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' |
| | |
;; | | ;; |
mvs*) | | mvs*) |
case $cc_basename in | | case $cc_basename in |
cxx*) | | cxx) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
wlarc= | | wlarc= |
| | |
# Workaround some broken pre-1.5 toolchains | | # Workaround some broken pre-1.5 toolchains |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
;; | | ;; |
openbsd2*) | | |
# C++ shared libraries are fairly broken | | |
ld_shlibs_CXX=no | | |
;; | | |
openbsd*) | | |
hardcode_direct_CXX=yes | | |
hardcode_shlibpath_var_CXX=no | | |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | | |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | | |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | | |
export_dynamic_flag_spec_CXX='${wl}-E' | | |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | | |
fi | | |
output_verbose_link_cmd='echo' | | |
;; | | |
osf3*) | | osf3*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| | |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
cxx*) | | cxx) |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
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' | | 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 ${objdir}/so_locations -o $lib' |
| | |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
hardcode_libdir_separator_CXX=: | | hardcode_libdir_separator_CXX=: |
| | |
*) | | *) |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then | | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
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' | | 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}${objdir}/so_locations -o $lib' |
| | |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
hardcode_libdir_separator_CXX=: | | hardcode_libdir_separator_CXX=: |
| | |
;; | | ;; |
osf4* | osf5*) | | osf4* | osf5*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
# the KAI C++ compiler. | | # the KAI C++ compiler. |
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
cxx*) | | cxx) |
allow_undefined_flag_CXX=' -expect_unresolved \*' | | allow_undefined_flag_CXX=' -expect_unresolved \*' |
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' | | 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 ${objdir}/so_locations -o $lib' |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
echo "-hidden">> $lib.exp~ | | echo "-hidden">> $lib.exp~ |
$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~ | | $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 $objdir/so_locations -o $lib~ |
$rm $lib.exp' | | $rm $lib.exp' |
| | |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' | | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| | |
*) | | *) |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then | | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
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' | | 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}${objdir}/so_locations -o $lib' |
| | |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
hardcode_libdir_separator_CXX=: | | hardcode_libdir_separator_CXX=: |
| | |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
| | sco*) |
| | archive_cmds_need_lc_CXX=no |
| | case $cc_basename in |
| | CC) |
| | # FIXME: insert proper C++ library support |
| | ld_shlibs_CXX=no |
| | ;; |
| | *) |
| | # FIXME: insert proper C++ library support |
| | ld_shlibs_CXX=no |
| | ;; |
| | esac |
| | ;; |
sunos4*) | | sunos4*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.x | | # Sun C++ 4.x |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
;; | | ;; |
lcc*) | | lcc) |
# Lucid | | # Lucid |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
| | |
;; | | ;; |
solaris*) | | solaris*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.2, 5.x and Centerline C++ | | # Sun C++ 4.2, 5.x and Centerline C++ |
archive_cmds_need_lc_CXX=yes | | |
no_undefined_flag_CXX=' -zdefs' | | no_undefined_flag_CXX=' -zdefs' |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$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' | | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| | |
hardcode_libdir_flag_spec_CXX='-R$libdir' | | hardcode_libdir_flag_spec_CXX='-R$libdir' |
hardcode_shlibpath_var_CXX=no | | hardcode_shlibpath_var_CXX=no |
case $host_os in | | case $host_os in |
solaris2.[0-5] | solaris2.[0-5].*) ;; | | solaris2.0-5 | solaris2.0-5.*) ;; |
*) | | *) |
# The C++ compiler is used as linker so we must use $wl | | # The C++ compiler is used as linker so we must use $wl |
# flag to pass the commands to the underlying system | | # flag to pass the commands to the underlying system |
# linker. We must also pass each convience library through | | # linker. |
# to the system linker between allextract/defaultextract. | | |
# The C++ compiler will combine linker options so we | | |
# cannot just pass the convience library names through | | |
# without $wl. | | |
# Supported since Solaris 2.6 (maybe 2.5.1?) | | # Supported since Solaris 2.6 (maybe 2.5.1?) |
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' | | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
;; | | ;; |
esac | | esac |
link_all_deplibs_CXX=yes | | link_all_deplibs_CXX=yes |
| | |
output_verbose_link_cmd='echo' | | # Commands to make compiler produce verbose output that lists |
| | # what "hidden" libraries, object files and flags are used when |
| | # linking a shared library. |
| | # |
| | # There doesn't appear to be a way to prevent this compiler from |
| | # explicitly linking system object files so we need to strip them |
| | # from the output so that they don't get included in the library |
| | # dependencies. |
| | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| | |
# Archives containing C++ object files must be created using | | # Archives containing C++ object files must be created using |
# "CC -xar", where "CC" is the Sun C++ compiler. This is | | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| | |
# in the archive. | | # in the archive. |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
;; | | ;; |
gcx*) | | gcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| | |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
no_undefined_flag_CXX='${wl}-z,text' | | |
archive_cmds_need_lc_CXX=no | | |
hardcode_shlibpath_var_CXX=no | | |
runpath_var='LD_RUN_PATH' | | |
| | |
case $cc_basename in | | |
CC*) | | |
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | |
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
esac | | |
;; | | |
sysv5* | sco3.2v5* | sco5v6*) | | |
# Note: We can NOT use -z defs as we might desire, because we do not | | |
# link with -lc, and that would cause any symbols used from libc to | | |
# always be unresolved, which means just about no library would | | |
# ever link correctly. If we're not using GNU ld we use -z text | | |
# though, which does catch some bad symbols but isn't as heavy-handed | | |
# as -z defs. | | |
# For security reasons, it is highly recommended that you always | | |
# use absolute paths for naming shared libraries, and exclude the | | |
# DT_RUNPATH tag from executables and libraries. But doing so | | |
# requires that you compile everything twice, which is a pain. | | |
# So that behaviour is only enabled if SCOABSPATH is set to a | | |
# non-empty value in the environment. Most likely only useful for | | |
# creating official distributions of packages. | | |
# This is a hack until libtool officially supports absolute path | | |
# names for shared libraries. | | |
no_undefined_flag_CXX='${wl}-z,text' | | |
allow_undefined_flag_CXX='${wl}-z,nodefs' | | |
archive_cmds_need_lc_CXX=no | | archive_cmds_need_lc_CXX=no |
hardcode_shlibpath_var_CXX=no | | |
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | | |
hardcode_libdir_separator_CXX=':' | | |
link_all_deplibs_CXX=yes | | |
export_dynamic_flag_spec_CXX='${wl}-Bexport' | | |
runpath_var='LD_RUN_PATH' | | |
| | |
case $cc_basename in | | |
CC*) | | |
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | |
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
esac | | |
;; | | ;; |
tandem*) | | tandem*) |
case $cc_basename in | | case $cc_basename in |
NCC*) | | NCC) |
# NonStop-UX NCC 3.20 | | # NonStop-UX NCC 3.20 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
ld_shlibs_CXX=no | | ld_shlibs_CXX=no |
| | |
# The `*' in the case matches for architectures that use `case' in | | # The `*' in the case matches for architectures that use `case' in |
# $output_verbose_cmd can trigger glob expansion during the loop | | # $output_verbose_cmd can trigger glob expansion during the loop |
# eval without this substitution. | | # eval without this substitution. |
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
| | |
for p in `eval $output_verbose_link_cmd`; do | | for p in `eval $output_verbose_link_cmd`; do |
case $p in | | case $p in |
| | |
| | |
$rm -f confest.$objext | | $rm -f confest.$objext |
| | |
# PORTME: override above test on systems where it is broken | | |
case $host_os in | | |
interix3*) | | |
# Interix 3.5 installs completely hosed .la files for C++, so rather than | | |
# hack all around it, let's just trust "g++" to DTRT. | | |
predep_objects_CXX= | | |
postdep_objects_CXX= | | |
postdeps_CXX= | | |
;; | | |
| | |
solaris*) | | |
case $cc_basename in | | |
CC*) | | |
# Adding this requires a known-good setup of shared libraries for | | |
# Sun compiler versions before 5.6, else PIC objects from an old | | |
# archive will be linked into the output, leading to subtle bugs. | | |
postdeps_CXX='-lCstd -lCrun' | | |
;; | | |
esac | | |
;; | | |
esac | | |
| | |
| | |
case " $postdeps_CXX " in | | case " $postdeps_CXX " in |
*" -lc "*) archive_cmds_need_lc_CXX=no ;; | | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
esac | | esac |
| | |
# DJGPP does not support shared libraries at all | | # DJGPP does not support shared libraries at all |
lt_prog_compiler_pic_CXX= | | lt_prog_compiler_pic_CXX= |
;; | | ;; |
interix3*) | | |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. | | |
# Instead, we relocate shared libraries at runtime. | | |
;; | | |
sysv4*MP*) | | sysv4*MP*) |
if test -d /usr/nec; then | | if test -d /usr/nec; then |
lt_prog_compiler_pic_CXX=-Kconform_pic | | lt_prog_compiler_pic_CXX=-Kconform_pic |
| | |
hpux*) | | hpux*) |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# not for PA HP-UX. | | # not for PA HP-UX. |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
;; | | ;; |
*) | | *) |
| | |
;; | | ;; |
chorus*) | | chorus*) |
case $cc_basename in | | case $cc_basename in |
cxch68*) | | cxch68) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
# _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" | | # _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" |
;; | | ;; |
esac | | esac |
;; | | ;; |
darwin*) | | |
# PIC is the default on this platform | | |
# Common symbols not allowed in MH_DYLIB files | | |
case $cc_basename in | | |
xlc*) | | |
lt_prog_compiler_pic_CXX='-qnocommon' | | |
lt_prog_compiler_wl_CXX='-Wl,' | | |
;; | | |
esac | | |
;; | | |
dgux*) | | dgux*) |
case $cc_basename in | | case $cc_basename in |
ec++*) | | ec++) |
lt_prog_compiler_pic_CXX='-KPIC' | | lt_prog_compiler_pic_CXX='-KPIC' |
;; | | ;; |
ghcx*) | | ghcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
lt_prog_compiler_pic_CXX='-pic' | | lt_prog_compiler_pic_CXX='-pic' |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
# FreeBSD uses GNU C++ | | # FreeBSD uses GNU C++ |
;; | | ;; |
hpux9* | hpux10* | hpux11*) | | hpux9* | hpux10* | hpux11*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
lt_prog_compiler_wl_CXX='-Wl,' | | lt_prog_compiler_wl_CXX='-Wl,' |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
if test "$host_cpu" != ia64; then | | if test "$host_cpu" != ia64; then |
lt_prog_compiler_pic_CXX='+Z' | | lt_prog_compiler_pic_CXX='+Z' |
fi | | fi |
;; | | ;; |
aCC*) | | aCC) |
lt_prog_compiler_wl_CXX='-Wl,' | | lt_prog_compiler_wl_CXX='-Wl,' |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
# +Z the default | | # +Z the default |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
interix*) | | |
# This is c89, which is MS Visual C++ (no shared libs) | | |
# Anyone wants to do a port? | | |
;; | | |
irix5* | irix6* | nonstopux*) | | irix5* | irix6* | nonstopux*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
lt_prog_compiler_wl_CXX='-Wl,' | | lt_prog_compiler_wl_CXX='-Wl,' |
lt_prog_compiler_static_CXX='-non_shared' | | lt_prog_compiler_static_CXX='-non_shared' |
# CC pic flag -KPIC is the default. | | # CC pic flag -KPIC is the default. |
| | |
;; | | ;; |
linux*) | | linux*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# KAI C++ Compiler | | # KAI C++ Compiler |
lt_prog_compiler_wl_CXX='--backend -Wl,' | | lt_prog_compiler_wl_CXX='--backend -Wl,' |
lt_prog_compiler_pic_CXX='-fPIC' | | lt_prog_compiler_pic_CXX='-fPIC' |
;; | | ;; |
icpc* | ecpc*) | | icpc) |
# Intel C++ | | # Intel C++ |
lt_prog_compiler_wl_CXX='-Wl,' | | lt_prog_compiler_wl_CXX='-Wl,' |
lt_prog_compiler_pic_CXX='-KPIC' | | lt_prog_compiler_pic_CXX='-KPIC' |
lt_prog_compiler_static_CXX='-static' | | lt_prog_compiler_static_CXX='-static' |
;; | | ;; |
pgCC*) | | cxx) |
# Portland Group C++ compiler. | | |
lt_prog_compiler_wl_CXX='-Wl,' | | |
lt_prog_compiler_pic_CXX='-fpic' | | |
lt_prog_compiler_static_CXX='-Bstatic' | | |
;; | | |
cxx*) | | |
# Compaq C++ | | # Compaq C++ |
# Make sure the PIC flag is empty. It appears that all Alpha | | # Make sure the PIC flag is empty. It appears that all Alpha |
# Linux and Compaq Tru64 Unix objects are PIC. | | # Linux and Compaq Tru64 Unix objects are PIC. |
| | |
;; | | ;; |
mvs*) | | mvs*) |
case $cc_basename in | | case $cc_basename in |
cxx*) | | cxx) |
lt_prog_compiler_pic_CXX='-W c,exportall' | | lt_prog_compiler_pic_CXX='-W c,exportall' |
;; | | ;; |
*) | | *) |
;; | | ;; |
esac | | esac |
;; | | ;; |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
;; | | ;; |
osf3* | osf4* | osf5*) | | osf3* | osf4* | osf5*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
lt_prog_compiler_wl_CXX='--backend -Wl,' | | lt_prog_compiler_wl_CXX='--backend -Wl,' |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
lt_prog_compiler_pic_CXX='-pic' | | lt_prog_compiler_pic_CXX='-pic' |
;; | | ;; |
cxx*) | | cxx) |
# Digital/Compaq C++ | | # Digital/Compaq C++ |
lt_prog_compiler_wl_CXX='-Wl,' | | lt_prog_compiler_wl_CXX='-Wl,' |
# Make sure the PIC flag is empty. It appears that all Alpha | | # Make sure the PIC flag is empty. It appears that all Alpha |
| | |
;; | | ;; |
psos*) | | psos*) |
;; | | ;; |
| | sco*) |
| | case $cc_basename in |
| | CC) |
| | lt_prog_compiler_pic_CXX='-fPIC' |
| | ;; |
| | *) |
| | ;; |
| | esac |
| | ;; |
solaris*) | | solaris*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.2, 5.x and Centerline C++ | | # Sun C++ 4.2, 5.x and Centerline C++ |
lt_prog_compiler_pic_CXX='-KPIC' | | lt_prog_compiler_pic_CXX='-KPIC' |
lt_prog_compiler_static_CXX='-Bstatic' | | lt_prog_compiler_static_CXX='-Bstatic' |
lt_prog_compiler_wl_CXX='-Qoption ld ' | | lt_prog_compiler_wl_CXX='-Qoption ld ' |
;; | | ;; |
gcx*) | | gcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
lt_prog_compiler_pic_CXX='-PIC' | | lt_prog_compiler_pic_CXX='-PIC' |
;; | | ;; |
| | |
;; | | ;; |
sunos4*) | | sunos4*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.x | | # Sun C++ 4.x |
lt_prog_compiler_pic_CXX='-pic' | | lt_prog_compiler_pic_CXX='-pic' |
lt_prog_compiler_static_CXX='-Bstatic' | | lt_prog_compiler_static_CXX='-Bstatic' |
;; | | ;; |
lcc*) | | lcc) |
# Lucid | | # Lucid |
lt_prog_compiler_pic_CXX='-pic' | | lt_prog_compiler_pic_CXX='-pic' |
;; | | ;; |
| | |
;; | | ;; |
tandem*) | | tandem*) |
case $cc_basename in | | case $cc_basename in |
NCC*) | | NCC) |
# NonStop-UX NCC 3.20 | | # NonStop-UX NCC 3.20 |
lt_prog_compiler_pic_CXX='-KPIC' | | lt_prog_compiler_pic_CXX='-KPIC' |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | | unixware*) |
case $cc_basename in | | |
CC*) | | |
lt_prog_compiler_wl_CXX='-Wl,' | | |
lt_prog_compiler_pic_CXX='-KPIC' | | |
lt_prog_compiler_static_CXX='-Bstatic' | | |
;; | | |
esac | | |
;; | | ;; |
vxworks*) | | vxworks*) |
;; | | ;; |
| | |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
# The option is referenced via a variable to avoid confusing sed. | | # The option is referenced via a variable to avoid confusing sed. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:11558: $lt_compile\"" >&5) | | (eval echo "\"\$as_me:11043: $lt_compile\"" >&5) |
(eval "$lt_compile" 2>conftest.err) | | (eval "$lt_compile" 2>conftest.err) |
ac_status=$? | | ac_status=$? |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:11562: \$? = $ac_status" >&5 | | echo "$as_me:11047: \$? = $ac_status" >&5 |
if (exit $ac_status) && test -s "$ac_outfile"; then | | if (exit $ac_status) && test -s "$ac_outfile"; then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings other than the usual output. | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | | if test ! -s conftest.err; then |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_prog_compiler_pic_works_CXX=yes | | lt_prog_compiler_pic_works_CXX=yes |
fi | | fi |
fi | | fi |
| | |
fi | | fi |
| | |
fi | | fi |
case $host_os in | | case "$host_os" in |
# For platforms which do not support PIC, -DPIC is meaningless: | | # For platforms which do not support PIC, -DPIC is meaningless: |
*djgpp*) | | *djgpp*) |
lt_prog_compiler_pic_CXX= | | lt_prog_compiler_pic_CXX= |
| | |
;; | | ;; |
esac | | esac |
| | |
# | | |
# Check to make sure the static flag actually works. | | |
# | | |
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | | |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | | |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | | |
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | | |
else | | |
lt_prog_compiler_static_works_CXX=no | | |
save_LDFLAGS="$LDFLAGS" | | |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | | |
printf "$lt_simple_link_test_code" > conftest.$ac_ext | | |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | | |
# The linker can only warn and ignore the option if not recognized | | |
# So say no if there are warnings | | |
if test -s conftest.err; then | | |
# Append any errors to the config.log. | | |
cat conftest.err 1>&5 | | |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | | |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_prog_compiler_static_works_CXX=yes | | |
fi | | |
else | | |
lt_prog_compiler_static_works_CXX=yes | | |
fi | | |
fi | | |
$rm conftest* | | |
LDFLAGS="$save_LDFLAGS" | | |
| | |
fi | | |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | | |
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 | | |
| | |
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | | |
: | | |
else | | |
lt_prog_compiler_static_CXX= | | |
fi | | |
| | |
| | |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| | |
# Note that $ac_compile itself does not contain backslashes and begins | | # Note that $ac_compile itself does not contain backslashes and begins |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:11662: $lt_compile\"" >&5) | | (eval echo "\"\$as_me:11103: $lt_compile\"" >&5) |
(eval "$lt_compile" 2>out/conftest.err) | | (eval "$lt_compile" 2>out/conftest.err) |
ac_status=$? | | ac_status=$? |
cat out/conftest.err >&5 | | cat out/conftest.err >&5 |
echo "$as_me:11666: \$? = $ac_status" >&5 | | echo "$as_me:11107: \$? = $ac_status" >&5 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext | | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
then | | then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | | if test ! -s out/conftest.err; then |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | | |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | | |
lt_cv_prog_compiler_c_o_CXX=yes | | lt_cv_prog_compiler_c_o_CXX=yes |
fi | | fi |
fi | | fi |
chmod u+w . 2>&5 | | chmod u+w . |
$rm conftest* | | $rm conftest* |
# SGI C++ compiler will create directory out/ii_files/ for | | # SGI C++ compiler will create directory out/ii_files/ for |
# template instantiation | | # template instantiation |
| | |
export_symbols_cmds_CXX="$ltdll_cmds" | | export_symbols_cmds_CXX="$ltdll_cmds" |
;; | | ;; |
cygwin* | mingw*) | | cygwin* | mingw*) |
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' | | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | ;; |
| | linux*) |
| | link_all_deplibs_CXX=no |
;; | | ;; |
*) | | *) |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | |
echo "${ECHO_T}$ld_shlibs_CXX" >&6 | | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
test "$ld_shlibs_CXX" = no && can_build_shared=no | | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| | |
| | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| | if test "$GCC" = yes; then |
| | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| | fi |
| | |
# | | # |
# Do we need to explicitly link libc? | | # Do we need to explicitly link libc? |
# | | # |
| | |
libobjs=conftest.$ac_objext | | libobjs=conftest.$ac_objext |
deplibs= | | deplibs= |
wl=$lt_prog_compiler_wl_CXX | | wl=$lt_prog_compiler_wl_CXX |
pic_flag=$lt_prog_compiler_pic_CXX | | |
compiler_flags=-v | | compiler_flags=-v |
linker_flags=-v | | linker_flags=-v |
verstring= | | verstring= |
| | |
shlibpath_var=LIBRARY_PATH | | shlibpath_var=LIBRARY_PATH |
;; | | ;; |
| | |
bsdi[45]*) | | bsdi4*) |
version_type=linux | | version_type=linux |
need_version=no | | need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
dldir=$destdir/`dirname \$dlpath`~ | | dldir=$destdir/`dirname \$dlpath`~ |
test -d \$dldir || mkdir -p \$dldir~ | | test -d \$dldir || mkdir -p \$dldir~ |
$install_prog $dir/$dlname \$dldir/$dlname~ | | $install_prog $dir/$dlname \$dldir/$dlname' |
chmod a+x \$dldir/$dlname' | | |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
dlpath=$dir/\$dldll~ | | dlpath=$dir/\$dldll~ |
$rm \$dlpath' | | $rm \$dlpath' |
| | |
;; | | ;; |
pw32*) | | pw32*) |
# pw32 DLLs use 'pw' prefix rather than 'lib' | | # pw32 DLLs use 'pw' prefix rather than 'lib' |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
;; | | ;; |
esac | | esac |
;; | | ;; |
| | |
soname_spec='${libname}${release}${major}$shared_ext' | | soname_spec='${libname}${release}${major}$shared_ext' |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
shlibpath_var=DYLD_LIBRARY_PATH | | shlibpath_var=DYLD_LIBRARY_PATH |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
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"` | | 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"` |
| | |
dynamic_linker='GNU ld.so' | | dynamic_linker='GNU ld.so' |
;; | | ;; |
| | |
freebsd* | dragonfly*) | | freebsd*) |
# DragonFly does not have aout. When/if they implement a new | | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
# versioning mechanism, adjust this. | | |
if test -x /usr/bin/objformat; then | | |
objformat=`/usr/bin/objformat` | | |
else | | |
case $host_os in | | |
freebsd[123]*) objformat=aout ;; | | |
*) objformat=elf ;; | | |
esac | | |
fi | | |
version_type=freebsd-$objformat | | version_type=freebsd-$objformat |
case $version_type in | | case $version_type in |
freebsd-elf*) | | freebsd-elf*) |
| | |
freebsd2*) | | freebsd2*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
;; | | ;; |
freebsd3.[01]* | freebsdelf3.[01]*) | | freebsd3.01* | freebsdelf3.01*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | | *) # from 3.2 on |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | | |
shlibpath_overrides_runpath=no | | shlibpath_overrides_runpath=no |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
freebsd*) # from 4.6 on | | |
shlibpath_overrides_runpath=yes | | |
hardcode_into_libs=yes | | |
;; | | |
esac | | esac |
;; | | ;; |
| | |
| | |
version_type=sunos | | version_type=sunos |
need_lib_prefix=no | | need_lib_prefix=no |
need_version=no | | need_version=no |
case $host_cpu in | | case "$host_cpu" in |
ia64*) | | ia64*) |
shrext_cmds='.so' | | shrext_cmds='.so' |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | |
postinstall_cmds='chmod 555 $lib' | | postinstall_cmds='chmod 555 $lib' |
;; | | ;; |
| | |
interix3*) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=no | | |
hardcode_into_libs=yes | | |
;; | | |
| | |
irix5* | irix6* | nonstopux*) | | irix5* | irix6* | nonstopux*) |
case $host_os in | | case $host_os in |
nonstopux*) version_type=nonstopux ;; | | nonstopux*) version_type=nonstopux ;; |
| | |
# before this can be enabled. | | # before this can be enabled. |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | |
# find out which ABI we are using | | |
libsuff= | | |
case "$host_cpu" in | | |
x86_64*|s390x*|powerpc64*) | | |
echo '#line 12198 "configure"' > conftest.$ac_ext | | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | | |
(eval $ac_compile) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; then | | |
case `/usr/bin/file conftest.$ac_objext` in | | |
*64-bit*) | | |
libsuff=64 | | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | | |
;; | | |
esac | | |
fi | | |
rm -rf conftest* | | |
;; | | |
esac | | |
| | |
# Append ld.so.conf contents to the search path | | # Append ld.so.conf contents to the search path |
if test -f /etc/ld.so.conf; then | | if test -f /etc/ld.so.conf; then |
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' ' '` | | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
fi | | fi |
| | |
# We used to test for /lib/ld.so.1 and disable shared libraries on | | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| | |
dynamic_linker='GNU/Linux ld.so' | | dynamic_linker='GNU/Linux ld.so' |
;; | | ;; |
| | |
| | netbsdelf*-gnu) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | dynamic_linker='NetBSD ld.elf_so' |
| | ;; |
| | |
knetbsd*-gnu) | | knetbsd*-gnu) |
version_type=linux | | version_type=linux |
need_lib_prefix=no | | need_lib_prefix=no |
| | |
| | |
openbsd*) | | openbsd*) |
version_type=sunos | | version_type=sunos |
sys_lib_dlsearch_path_spec="/usr/lib" | | |
need_lib_prefix=no | | need_lib_prefix=no |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | | need_version=yes |
case $host_os in | | |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; | | |
*) need_version=no ;; | | |
esac | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
shlibpath_var=LD_LIBRARY_PATH | | shlibpath_var=LD_LIBRARY_PATH |
| | |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | version_type=osf |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | ;; |
| | |
solaris*) | | solaris*) |
version_type=linux | | version_type=linux |
need_lib_prefix=no | | need_lib_prefix=no |
| | |
need_version=yes | | need_version=yes |
;; | | ;; |
| | |
sysv4 | sysv4.3*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
version_type=linux | | version_type=linux |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
soname_spec='${libname}${release}${shared_ext}$major' | | soname_spec='${libname}${release}${shared_ext}$major' |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | | |
version_type=freebsd-elf | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
hardcode_into_libs=yes | | |
if test "$with_gnu_ld" = yes; then | | |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | | |
shlibpath_overrides_runpath=no | | |
else | | |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | | |
shlibpath_overrides_runpath=yes | | |
case $host_os in | | |
sco3.2v5*) | | |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | | |
;; | | |
esac | | |
fi | | |
sys_lib_dlsearch_path_spec='/usr/lib' | | |
;; | | |
| | |
uts4*) | | uts4*) |
version_type=linux | | version_type=linux |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | |
echo "${ECHO_T}$dynamic_linker" >&6 | | echo "${ECHO_T}$dynamic_linker" >&6 |
test "$dynamic_linker" = no && can_build_shared=no | | test "$dynamic_linker" = no && can_build_shared=no |
| | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | | |
if test "$GCC" = yes; then | | |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | | |
fi | | |
| | |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
hardcode_action_CXX= | | hardcode_action_CXX= |
if test -n "$hardcode_libdir_flag_spec_CXX" || \ | | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
test -n "$runpath_var_CXX" || \ | | test -n "$runpath_var CXX" || \ |
test "X$hardcode_automatic_CXX" = "Xyes" ; then | | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| | |
# We can hardcode non-existant directories. | | # We can hardcode non-existant directories. |
| | |
enable_fast_install=needless | | enable_fast_install=needless |
fi | | fi |
| | |
| | striplib= |
# The else clause should only fire when bootstrapping the | | old_striplib= |
# libtool distribution, otherwise you forgot to ship ltmain.sh | | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
# with your package, and you will get complaints that there are | | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
# no rules to generate ltmain.sh. | | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
if test -f "$ltmain"; then | | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
# See if we are running on zsh, and set the options which allow our commands through | | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
# without removal of \ escapes. | | echo "$as_me:$LINENO: result: yes" >&5 |
if test -n "${ZSH_VERSION+set}" ; then | | echo "${ECHO_T}yes" >&6 |
setopt NO_GLOB_SUBST | | else |
| | # FIXME - insert some real tests, host_os isn't really good enough |
| | case $host_os in |
| | darwin*) |
| | if test -n "$STRIP" ; then |
| | striplib="$STRIP -x" |
| | echo "$as_me:$LINENO: result: yes" >&5 |
| | echo "${ECHO_T}yes" >&6 |
| | else |
| | echo "$as_me:$LINENO: result: no" >&5 |
| | echo "${ECHO_T}no" >&6 |
fi | | fi |
# Now quote all the things that may contain metacharacters while being | | |
# careful not to overquote the AC_SUBSTed values. We take copies of the | | |
# variables and quote the copies for generation of the libtool script. | | |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | | |
SED SHELL STRIP \ | | |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | | |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | | |
deplibs_check_method reload_flag reload_cmds need_locks \ | | |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | | |
lt_cv_sys_global_symbol_to_c_name_address \ | | |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | | |
old_postinstall_cmds old_postuninstall_cmds \ | | |
compiler_CXX \ | | |
CC_CXX \ | | |
LD_CXX \ | | |
lt_prog_compiler_wl_CXX \ | | |
lt_prog_compiler_pic_CXX \ | | |
lt_prog_compiler_static_CXX \ | | |
lt_prog_compiler_no_builtin_flag_CXX \ | | |
export_dynamic_flag_spec_CXX \ | | |
thread_safe_flag_spec_CXX \ | | |
whole_archive_flag_spec_CXX \ | | |
enable_shared_with_static_runtimes_CXX \ | | |
old_archive_cmds_CXX \ | | |
old_archive_from_new_cmds_CXX \ | | |
predep_objects_CXX \ | | |
postdep_objects_CXX \ | | |
predeps_CXX \ | | |
postdeps_CXX \ | | |
compiler_lib_search_path_CXX \ | | |
archive_cmds_CXX \ | | |
archive_expsym_cmds_CXX \ | | |
postinstall_cmds_CXX \ | | |
postuninstall_cmds_CXX \ | | |
old_archive_from_expsyms_cmds_CXX \ | | |
allow_undefined_flag_CXX \ | | |
no_undefined_flag_CXX \ | | |
export_symbols_cmds_CXX \ | | |
hardcode_libdir_flag_spec_CXX \ | | |
hardcode_libdir_flag_spec_ld_CXX \ | | |
hardcode_libdir_separator_CXX \ | | |
hardcode_automatic_CXX \ | | |
module_cmds_CXX \ | | |
module_expsym_cmds_CXX \ | | |
lt_cv_prog_compiler_c_o_CXX \ | | |
exclude_expsyms_CXX \ | | |
include_expsyms_CXX; do | | |
| | |
case $var in | | |
old_archive_cmds_CXX | \ | | |
old_archive_from_new_cmds_CXX | \ | | |
archive_cmds_CXX | \ | | |
archive_expsym_cmds_CXX | \ | | |
module_cmds_CXX | \ | | |
module_expsym_cmds_CXX | \ | | |
old_archive_from_expsyms_cmds_CXX | \ | | |
export_symbols_cmds_CXX | \ | | |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ | | |
postinstall_cmds | postuninstall_cmds | \ | | |
old_postinstall_cmds | old_postuninstall_cmds | \ | | |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | | |
# Double-quote double-evaled strings. | | |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | | |
;; | | ;; |
*) | | *) |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | | echo "$as_me:$LINENO: result: no" >&5 |
;; | | echo "${ECHO_T}no" >&6 |
esac | | |
done | | |
| | |
case $lt_echo in | | |
*'\$0 --fallback-echo"') | | |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | | |
;; | | ;; |
esac | | esac |
| | fi |
| | |
cfgfile="$ofile" | | if test "x$enable_dlopen" != xyes; then |
| | enable_dlopen=unknown |
cat <<__EOF__ >> "$cfgfile" | | enable_dlopen_self=unknown |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname | | enable_dlopen_self_static=unknown |
| | else |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | | lt_cv_dlopen=no |
| | lt_cv_dlopen_libs= |
# Shell to use when invoking shell scripts. | | |
SHELL=$lt_SHELL | | |
| | |
# Whether or not to build shared libraries. | | |
build_libtool_libs=$enable_shared | | |
| | |
# Whether or not to build static libraries. | | |
build_old_libs=$enable_static | | |
| | |
# Whether or not to add -lc for building shared libraries. | | |
build_libtool_need_lc=$archive_cmds_need_lc_CXX | | |
| | |
# Whether or not to disallow shared libs when runtime libs are static | | |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | | |
| | |
# Whether or not to optimize for fast installation. | | |
fast_install=$enable_fast_install | | |
| | |
# The host system. | | |
host_alias=$host_alias | | |
host=$host | | |
host_os=$host_os | | |
| | |
# The build system. | | case $host_os in |
build_alias=$build_alias | | beos*) |
build=$build | | lt_cv_dlopen="load_add_on" |
build_os=$build_os | | lt_cv_dlopen_libs= |
| | lt_cv_dlopen_self=yes |
| | ;; |
| | |
# An echo program that does not interpret backslashes. | | mingw* | pw32*) |
echo=$lt_echo | | lt_cv_dlopen="LoadLibrary" |
| | lt_cv_dlopen_libs= |
| | ;; |
| | |
# The archiver. | | cygwin*) |
AR=$lt_AR | | lt_cv_dlopen="dlopen" |
AR_FLAGS=$lt_AR_FLAGS | | lt_cv_dlopen_libs= |
| | ;; |
| | |
# A C compiler. | | darwin*) |
LTCC=$lt_LTCC | | # if libdl is installed we need to link against it |
| | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-ldl $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
# LTCC compiler flags. | | /* Override any gcc2 internal prototype to avoid an error. */ |
LTCFLAGS=$lt_LTCFLAGS | | #ifdef __cplusplus |
| | extern "C" |
# A language-specific compiler. | | #endif |
CC=$lt_compiler_CXX | | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dlopen (); |
| | int |
| | main () |
| | { |
| | dlopen (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_dl_dlopen=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
# Is the compiler the GNU C compiler? | | ac_cv_lib_dl_dlopen=no |
with_gcc=$GCC_CXX | | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| | if test $ac_cv_lib_dl_dlopen = yes; then |
| | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| | else |
| | |
# An ERE matcher. | | lt_cv_dlopen="dyld" |
EGREP=$lt_EGREP | | lt_cv_dlopen_libs= |
| | lt_cv_dlopen_self=yes |
| | |
# The linker used to build libraries. | | fi |
LD=$lt_LD_CXX | | |
| | |
# Whether we need hard or soft links. | | ;; |
LN_S=$lt_LN_S | | |
| | |
# A BSD-compatible nm program. | | *) |
NM=$lt_NM | | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| | if test "${ac_cv_func_shl_load+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| | #define shl_load innocuous_shl_load |
| | |
# A symbol stripping program | | /* System header to define __stub macros and hopefully few prototypes, |
STRIP=$lt_STRIP | | which can conflict with char shl_load (); below. |
| | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | <limits.h> exists even on freestanding compilers. */ |
| | |
# Used to examine libraries when file_magic_cmd begins "file" | | #ifdef __STDC__ |
MAGIC_CMD=$MAGIC_CMD | | # include <limits.h> |
| | #else |
| | # include <assert.h> |
| | #endif |
| | |
# Used on cygwin: DLL creation program. | | #undef shl_load |
DLLTOOL="$DLLTOOL" | | |
| | |
# Used on cygwin: object dumper. | | /* Override any gcc2 internal prototype to avoid an error. */ |
OBJDUMP="$OBJDUMP" | | #ifdef __cplusplus |
| | extern "C" |
| | { |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char shl_load (); |
| | /* The GNU C library defines this for functions which it implements |
| | to always fail with ENOSYS. Some functions are actually named |
| | something starting with __ and the normal name is an alias. */ |
| | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| | choke me |
| | #else |
| | char (*f) () = shl_load; |
| | #endif |
| | #ifdef __cplusplus |
| | } |
| | #endif |
| | |
# Used on cygwin: assembler. | | int |
AS="$AS" | | main () |
| | { |
| | return f != shl_load; |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_func_shl_load=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
# The name of the directory that contains temporary libtool files. | | ac_cv_func_shl_load=no |
objdir=$objdir | | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| | if test $ac_cv_func_shl_load = yes; then |
| | lt_cv_dlopen="shl_load" |
| | else |
| | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-ldld $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
# How to create reloadable object files. | | /* Override any gcc2 internal prototype to avoid an error. */ |
reload_flag=$lt_reload_flag | | #ifdef __cplusplus |
reload_cmds=$lt_reload_cmds | | extern "C" |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char shl_load (); |
| | int |
| | main () |
| | { |
| | shl_load (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_dld_shl_load=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
# How to pass a linker flag through the compiler. | | ac_cv_lib_dld_shl_load=no |
wl=$lt_lt_prog_compiler_wl_CXX | | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| | if test $ac_cv_lib_dld_shl_load = yes; then |
| | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| | else |
| | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| | if test "${ac_cv_func_dlopen+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| | #define dlopen innocuous_dlopen |
| | |
# Object file suffix (normally "o"). | | /* System header to define __stub macros and hopefully few prototypes, |
objext="$ac_objext" | | which can conflict with char dlopen (); below. |
| | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | <limits.h> exists even on freestanding compilers. */ |
| | |
# Old archive suffix (normally "a"). | | #ifdef __STDC__ |
libext="$libext" | | # include <limits.h> |
| | #else |
# Shared library suffix (normally ".so"). | | # include <assert.h> |
shrext_cmds='$shrext_cmds' | | #endif |
| | |
# Executable file suffix (normally ""). | | |
exeext="$exeext" | | |
| | |
# Additional compiler flags for building library objects. | | |
pic_flag=$lt_lt_prog_compiler_pic_CXX | | |
pic_mode=$pic_mode | | |
| | |
# What is the maximum length of a command? | | |
max_cmd_len=$lt_cv_sys_max_cmd_len | | |
| | |
# Does compiler simultaneously support -c and -o options? | | |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | | |
| | |
# Must we lock files when doing compilation? | | |
need_locks=$lt_need_locks | | |
| | |
# Do we need the lib prefix for modules? | | |
need_lib_prefix=$need_lib_prefix | | |
| | |
# Do we need a version for libraries? | | |
need_version=$need_version | | |
| | |
# Whether dlopen is supported. | | |
dlopen_support=$enable_dlopen | | |
| | |
# Whether dlopen of programs is supported. | | |
dlopen_self=$enable_dlopen_self | | |
| | |
# Whether dlopen of statically linked programs is supported. | | #undef dlopen |
dlopen_self_static=$enable_dlopen_self_static | | |
| | |
# Compiler flag to prevent dynamic linking. | | /* Override any gcc2 internal prototype to avoid an error. */ |
link_static_flag=$lt_lt_prog_compiler_static_CXX | | #ifdef __cplusplus |
| | extern "C" |
| | { |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dlopen (); |
| | /* The GNU C library defines this for functions which it implements |
| | to always fail with ENOSYS. Some functions are actually named |
| | something starting with __ and the normal name is an alias. */ |
| | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| | choke me |
| | #else |
| | char (*f) () = dlopen; |
| | #endif |
| | #ifdef __cplusplus |
| | } |
| | #endif |
| | |
# Compiler flag to turn off builtin functions. | | int |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | | main () |
| | { |
| | return f != dlopen; |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_func_dlopen=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
# Compiler flag to allow reflexive dlopens. | | ac_cv_func_dlopen=no |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| | if test $ac_cv_func_dlopen = yes; then |
| | lt_cv_dlopen="dlopen" |
| | else |
| | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-ldl $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
# Compiler flag to generate shared objects directly from archives. | | /* Override any gcc2 internal prototype to avoid an error. */ |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | | #ifdef __cplusplus |
| | extern "C" |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dlopen (); |
| | int |
| | main () |
| | { |
| | dlopen (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_dl_dlopen=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
# Compiler flag to generate thread-safe objects. | | ac_cv_lib_dl_dlopen=no |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| | if test $ac_cv_lib_dl_dlopen = yes; then |
| | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| | else |
| | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-lsvld $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
# Library versioning type. | | /* Override any gcc2 internal prototype to avoid an error. */ |
version_type=$version_type | | #ifdef __cplusplus |
| | extern "C" |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dlopen (); |
| | int |
| | main () |
| | { |
| | dlopen (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_svld_dlopen=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
# Format of library name prefix. | | ac_cv_lib_svld_dlopen=no |
libname_spec=$lt_libname_spec | | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| | if test $ac_cv_lib_svld_dlopen = yes; then |
| | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| | else |
| | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-ldld $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
# List of archive names. First name is the real one, the rest are links. | | /* Override any gcc2 internal prototype to avoid an error. */ |
# The last name is the one that the linker finds with -lNAME. | | #ifdef __cplusplus |
library_names_spec=$lt_library_names_spec | | extern "C" |
| | #endif |
# The coded name of the library, if different from the real name. | | /* We use char because int might match the return type of a gcc2 |
soname_spec=$lt_soname_spec | | builtin and then its argument prototype would still apply. */ |
| | char dld_link (); |
# Commands used to build and install an old-style archive. | | int |
RANLIB=$lt_RANLIB | | main () |
old_archive_cmds=$lt_old_archive_cmds_CXX | | { |
old_postinstall_cmds=$lt_old_postinstall_cmds | | dld_link (); |
old_postuninstall_cmds=$lt_old_postuninstall_cmds | | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_dld_dld_link=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
# Create an old-style archive from a shared archive. | | ac_cv_lib_dld_dld_link=no |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| | if test $ac_cv_lib_dld_dld_link = yes; then |
| | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| | fi |
| | |
# Create a temporary old-style archive to link instead of a shared archive. | | |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | | |
| | |
# Commands used to build and install a shared archive. | | fi |
archive_cmds=$lt_archive_cmds_CXX | | |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | | |
postinstall_cmds=$lt_postinstall_cmds | | |
postuninstall_cmds=$lt_postuninstall_cmds | | |
| | |
# Commands used to build a loadable module (assumed same as above if empty) | | |
module_cmds=$lt_module_cmds_CXX | | |
module_expsym_cmds=$lt_module_expsym_cmds_CXX | | |
| | |
# Commands to strip libraries. | | fi |
old_striplib=$lt_old_striplib | | |
striplib=$lt_striplib | | |
| | |
# Dependencies to place before the objects being linked to create a | | |
# shared library. | | |
predep_objects=$lt_predep_objects_CXX | | |
| | |
# Dependencies to place after the objects being linked to create a | | fi |
# shared library. | | |
postdep_objects=$lt_postdep_objects_CXX | | |
| | |
# Dependencies to place before the objects being linked to create a | | |
# shared library. | | |
predeps=$lt_predeps_CXX | | |
| | |
# Dependencies to place after the objects being linked to create a | | fi |
# shared library. | | |
postdeps=$lt_postdeps_CXX | | |
| | |
# The library search path used internally by the compiler when linking | | |
# a shared library. | | |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | | |
| | |
# Method to check whether dependent libraries are shared objects. | | fi |
deplibs_check_method=$lt_deplibs_check_method | | |
| | |
# Command to use when deplibs_check_method == file_magic. | | ;; |
file_magic_cmd=$lt_file_magic_cmd | | esac |
| | |
# Flag that allows shared libraries with undefined symbols to be built. | | if test "x$lt_cv_dlopen" != xno; then |
allow_undefined_flag=$lt_allow_undefined_flag_CXX | | enable_dlopen=yes |
| | else |
| | enable_dlopen=no |
| | fi |
| | |
# Flag that forces no undefined symbols. | | case $lt_cv_dlopen in |
no_undefined_flag=$lt_no_undefined_flag_CXX | | dlopen) |
| | save_CPPFLAGS="$CPPFLAGS" |
| | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| | |
# Commands used to finish a libtool library installation in a directory. | | save_LDFLAGS="$LDFLAGS" |
finish_cmds=$lt_finish_cmds | | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| | |
# Same as above, but a single script fragment to be evaled but not shown. | | save_LIBS="$LIBS" |
finish_eval=$lt_finish_eval | | LIBS="$lt_cv_dlopen_libs $LIBS" |
| | |
# Take the output of nm and produce a listing of raw symbols and C names. | | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| | if test "${lt_cv_dlopen_self+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | if test "$cross_compiling" = yes; then : |
| | lt_cv_dlopen_self=cross |
| | else |
| | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| | lt_status=$lt_dlunknown |
| | cat > conftest.$ac_ext <<EOF |
| | #line 12472 "configure" |
| | #include "confdefs.h" |
| | |
# Transform the output of nm in a proper C declaration | | #if HAVE_DLFCN_H |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | | #include <dlfcn.h> |
| | #endif |
| | |
# Transform the output of nm in a C name address pair | | #include <stdio.h> |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | | |
| | |
# This is the shared library runtime path variable. | | #ifdef RTLD_GLOBAL |
runpath_var=$runpath_var | | # define LT_DLGLOBAL RTLD_GLOBAL |
| | #else |
| | # ifdef DL_GLOBAL |
| | # define LT_DLGLOBAL DL_GLOBAL |
| | # else |
| | # define LT_DLGLOBAL 0 |
| | # endif |
| | #endif |
| | |
# This is the shared library path variable. | | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
shlibpath_var=$shlibpath_var | | find out it does not work in some platform. */ |
| | #ifndef LT_DLLAZY_OR_NOW |
| | # ifdef RTLD_LAZY |
| | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| | # else |
| | # ifdef DL_LAZY |
| | # define LT_DLLAZY_OR_NOW DL_LAZY |
| | # else |
| | # ifdef RTLD_NOW |
| | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| | # else |
| | # ifdef DL_NOW |
| | # define LT_DLLAZY_OR_NOW DL_NOW |
| | # else |
| | # define LT_DLLAZY_OR_NOW 0 |
| | # endif |
| | # endif |
| | # endif |
| | # endif |
| | #endif |
| | |
# Is shlibpath searched before the hard-coded library search path? | | #ifdef __cplusplus |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath | | extern "C" void exit (int); |
| | #endif |
| | |
# How to hardcode a shared library path into an executable. | | void fnord() { int i=42;} |
hardcode_action=$hardcode_action_CXX | | int main () |
| | { |
| | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| | int status = $lt_dlunknown; |
| | |
# Whether we should hardcode library paths into libraries. | | if (self) |
hardcode_into_libs=$hardcode_into_libs | | { |
| | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| | /* dlclose (self); */ |
| | } |
| | |
# Flag to hardcode \$libdir into a binary during linking. | | exit (status); |
# This must work even if \$libdir does not exist. | | } |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | | EOF |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| | (./conftest; exit; ) 2>/dev/null |
| | lt_status=$? |
| | case x$lt_status in |
| | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| | esac |
| | else : |
| | # compilation failed |
| | lt_cv_dlopen_self=no |
| | fi |
| | fi |
| | rm -fr conftest* |
| | |
# If ld is used when linking, flag to hardcode \$libdir into | | |
# a binary during linking. This must work even if \$libdir does | | |
# not exist. | | |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | | |
| | |
# Whether we need a single -rpath flag with a separated argument. | | fi |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| | |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | | if test "x$lt_cv_dlopen_self" = xyes; then |
# resulting binary. | | LDFLAGS="$LDFLAGS $link_static_flag" |
hardcode_direct=$hardcode_direct_CXX | | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | if test "$cross_compiling" = yes; then : |
| | lt_cv_dlopen_self_static=cross |
| | else |
| | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| | lt_status=$lt_dlunknown |
| | cat > conftest.$ac_ext <<EOF |
| | #line 12570 "configure" |
| | #include "confdefs.h" |
| | |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the | | #if HAVE_DLFCN_H |
# resulting binary. | | #include <dlfcn.h> |
hardcode_minus_L=$hardcode_minus_L_CXX | | #endif |
| | |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | | #include <stdio.h> |
# the resulting binary. | | |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | | |
| | |
# Set to yes if building a shared library automatically hardcodes DIR into the library | | #ifdef RTLD_GLOBAL |
# and all subsequent libraries and executables linked against it. | | # define LT_DLGLOBAL RTLD_GLOBAL |
hardcode_automatic=$hardcode_automatic_CXX | | #else |
| | # ifdef DL_GLOBAL |
| | # define LT_DLGLOBAL DL_GLOBAL |
| | # else |
| | # define LT_DLGLOBAL 0 |
| | # endif |
| | #endif |
| | |
# Variables whose values should be saved in libtool wrapper scripts and | | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
# restored at relink time. | | find out it does not work in some platform. */ |
variables_saved_for_relink="$variables_saved_for_relink" | | #ifndef LT_DLLAZY_OR_NOW |
| | # ifdef RTLD_LAZY |
| | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| | # else |
| | # ifdef DL_LAZY |
| | # define LT_DLLAZY_OR_NOW DL_LAZY |
| | # else |
| | # ifdef RTLD_NOW |
| | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| | # else |
| | # ifdef DL_NOW |
| | # define LT_DLLAZY_OR_NOW DL_NOW |
| | # else |
| | # define LT_DLLAZY_OR_NOW 0 |
| | # endif |
| | # endif |
| | # endif |
| | # endif |
| | #endif |
| | |
# Whether libtool must link a program against all its dependency libraries. | | #ifdef __cplusplus |
link_all_deplibs=$link_all_deplibs_CXX | | extern "C" void exit (int); |
| | #endif |
| | |
# Compile-time system search path for libraries | | void fnord() { int i=42;} |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | | int main () |
| | { |
| | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| | int status = $lt_dlunknown; |
| | |
# Run-time system search path for libraries | | if (self) |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | | { |
| | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| | /* dlclose (self); */ |
| | } |
| | |
# Fix the shell variable \$srcfile for the compiler. | | exit (status); |
fix_srcfile_path="$fix_srcfile_path_CXX" | | } |
| | EOF |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| | (./conftest; exit; ) 2>/dev/null |
| | lt_status=$? |
| | case x$lt_status in |
| | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| | esac |
| | else : |
| | # compilation failed |
| | lt_cv_dlopen_self_static=no |
| | fi |
| | fi |
| | rm -fr conftest* |
| | |
# Set to yes if exported symbols are required. | | |
always_export_symbols=$always_export_symbols_CXX | | |
| | |
# The commands to list exported symbols. | | fi |
export_symbols_cmds=$lt_export_symbols_cmds_CXX | | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| | fi |
| | |
# The commands to extract the exported symbol list from a shared archive. | | CPPFLAGS="$save_CPPFLAGS" |
extract_expsyms_cmds=$lt_extract_expsyms_cmds | | LDFLAGS="$save_LDFLAGS" |
| | LIBS="$save_LIBS" |
| | ;; |
| | esac |
| | |
# Symbols that should not be listed in the preloaded symbols. | | case $lt_cv_dlopen_self in |
exclude_expsyms=$lt_exclude_expsyms_CXX | | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| | *) enable_dlopen_self=unknown ;; |
| | esac |
| | |
# Symbols that must always be exported. | | case $lt_cv_dlopen_self_static in |
include_expsyms=$lt_include_expsyms_CXX | | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| | *) enable_dlopen_self_static=unknown ;; |
| | esac |
| | fi |
| | |
# ### END LIBTOOL TAG CONFIG: $tagname | | |
| | |
__EOF__ | | # The else clause should only fire when bootstrapping the |
| | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| | # with your package, and you will get complaints that there are |
| | # no rules to generate ltmain.sh. |
| | if test -f "$ltmain"; then |
| | # See if we are running on zsh, and set the options which allow our commands through |
| | # without removal of \ escapes. |
| | if test -n "${ZSH_VERSION+set}" ; then |
| | setopt NO_GLOB_SUBST |
| | fi |
| | # Now quote all the things that may contain metacharacters while being |
| | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| | # variables and quote the copies for generation of the libtool script. |
| | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| | SED SHELL STRIP \ |
| | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | deplibs_check_method reload_flag reload_cmds need_locks \ |
| | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| | lt_cv_sys_global_symbol_to_c_name_address \ |
| | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| | old_postinstall_cmds old_postuninstall_cmds \ |
| | compiler_CXX \ |
| | CC_CXX \ |
| | LD_CXX \ |
| | lt_prog_compiler_wl_CXX \ |
| | lt_prog_compiler_pic_CXX \ |
| | lt_prog_compiler_static_CXX \ |
| | lt_prog_compiler_no_builtin_flag_CXX \ |
| | export_dynamic_flag_spec_CXX \ |
| | thread_safe_flag_spec_CXX \ |
| | whole_archive_flag_spec_CXX \ |
| | enable_shared_with_static_runtimes_CXX \ |
| | old_archive_cmds_CXX \ |
| | old_archive_from_new_cmds_CXX \ |
| | predep_objects_CXX \ |
| | postdep_objects_CXX \ |
| | predeps_CXX \ |
| | postdeps_CXX \ |
| | compiler_lib_search_path_CXX \ |
| | archive_cmds_CXX \ |
| | archive_expsym_cmds_CXX \ |
| | postinstall_cmds_CXX \ |
| | postuninstall_cmds_CXX \ |
| | old_archive_from_expsyms_cmds_CXX \ |
| | allow_undefined_flag_CXX \ |
| | no_undefined_flag_CXX \ |
| | export_symbols_cmds_CXX \ |
| | hardcode_libdir_flag_spec_CXX \ |
| | hardcode_libdir_flag_spec_ld_CXX \ |
| | hardcode_libdir_separator_CXX \ |
| | hardcode_automatic_CXX \ |
| | module_cmds_CXX \ |
| | module_expsym_cmds_CXX \ |
| | lt_cv_prog_compiler_c_o_CXX \ |
| | exclude_expsyms_CXX \ |
| | include_expsyms_CXX; do |
| | |
| | case $var in |
| | old_archive_cmds_CXX | \ |
| | old_archive_from_new_cmds_CXX | \ |
| | archive_cmds_CXX | \ |
| | archive_expsym_cmds_CXX | \ |
| | module_cmds_CXX | \ |
| | module_expsym_cmds_CXX | \ |
| | old_archive_from_expsyms_cmds_CXX | \ |
| | export_symbols_cmds_CXX | \ |
| | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| | postinstall_cmds | postuninstall_cmds | \ |
| | old_postinstall_cmds | old_postuninstall_cmds | \ |
| | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| | # Double-quote double-evaled strings. |
| | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| | ;; |
| | *) |
| | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| | ;; |
| | esac |
| | done |
| | |
else | | case $lt_echo in |
# If there is no Makefile yet, we rely on a make rule to execute | | *'\$0 --fallback-echo"') |
# `config.status --recheck' to rerun these tests and create the | | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
# libtool script then. | | ;; |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | | esac |
if test -f "$ltmain_in"; then | | |
test -f Makefile && make "$ltmain" | | |
fi | | |
fi | | |
| | |
| | cfgfile="$ofile" |
| | |
ac_ext=c | | cat <<__EOF__ >> "$cfgfile" |
ac_cpp='$CPP $CPPFLAGS' | | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | | |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | | |
ac_compiler_gnu=$ac_cv_c_compiler_gnu | | |
| | |
CC=$lt_save_CC | | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
LDCXX=$LD | | |
LD=$lt_save_LD | | |
GCC=$lt_save_GCC | | |
with_gnu_ldcxx=$with_gnu_ld | | |
with_gnu_ld=$lt_save_with_gnu_ld | | |
lt_cv_path_LDCXX=$lt_cv_path_LD | | |
lt_cv_path_LD=$lt_save_path_LD | | |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | | |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | | |
| | |
else | | # Shell to use when invoking shell scripts. |
tagname="" | | SHELL=$lt_SHELL |
fi | | |
;; | | |
| | |
F77) | | # Whether or not to build shared libraries. |
if test -n "$F77" && test "X$F77" != "Xno"; then | | build_libtool_libs=$enable_shared |
| | |
ac_ext=f | | # Whether or not to build static libraries. |
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | | build_old_libs=$enable_static |
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | | |
ac_compiler_gnu=$ac_cv_f77_compiler_gnu | | |
| | |
| | # Whether or not to add -lc for building shared libraries. |
| | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| | |
archive_cmds_need_lc_F77=no | | # Whether or not to disallow shared libs when runtime libs are static |
allow_undefined_flag_F77= | | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
always_export_symbols_F77=no | | |
archive_expsym_cmds_F77= | | |
export_dynamic_flag_spec_F77= | | |
hardcode_direct_F77=no | | |
hardcode_libdir_flag_spec_F77= | | |
hardcode_libdir_flag_spec_ld_F77= | | |
hardcode_libdir_separator_F77= | | |
hardcode_minus_L_F77=no | | |
hardcode_automatic_F77=no | | |
module_cmds_F77= | | |
module_expsym_cmds_F77= | | |
link_all_deplibs_F77=unknown | | |
old_archive_cmds_F77=$old_archive_cmds | | |
no_undefined_flag_F77= | | |
whole_archive_flag_spec_F77= | | |
enable_shared_with_static_runtimes_F77=no | | |
| | |
# Source file extension for f77 test sources. | | # Whether or not to optimize for fast installation. |
ac_ext=f | | fast_install=$enable_fast_install |
| | |
# Object file extension for compiled f77 test sources. | | # The host system. |
objext=o | | host_alias=$host_alias |
objext_F77=$objext | | host=$host |
| | |
# Code to be used in simple compile tests | | # An echo program that does not interpret backslashes. |
lt_simple_compile_test_code=" subroutine t\n return\n end\n" | | echo=$lt_echo |
| | |
# Code to be used in simple link tests | | # The archiver. |
lt_simple_link_test_code=" program t\n end\n" | | AR=$lt_AR |
| | AR_FLAGS=$lt_AR_FLAGS |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # A C compiler. |
| | LTCC=$lt_LTCC |
| | |
# If no C compiler was specified, use CC. | | # A language-specific compiler. |
LTCC=${LTCC-"$CC"} | | CC=$lt_compiler_CXX |
| | |
# If no C compiler flags were specified, use CFLAGS. | | # Is the compiler the GNU C compiler? |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | | with_gcc=$GCC_CXX |
| | |
# Allow CC to be a program name with arguments. | | # An ERE matcher. |
compiler=$CC | | EGREP=$lt_EGREP |
| | |
| | # The linker used to build libraries. |
| | LD=$lt_LD_CXX |
| | |
# save warnings/boilerplate of simple test code | | # Whether we need hard or soft links. |
ac_outfile=conftest.$ac_objext | | LN_S=$lt_LN_S |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext | | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_compiler_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
| | |
ac_outfile=conftest.$ac_objext | | # A BSD-compatible nm program. |
printf "$lt_simple_link_test_code" >conftest.$ac_ext | | NM=$lt_NM |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_linker_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
| | |
| | # A symbol stripping program |
| | STRIP=$lt_STRIP |
| | |
# Allow CC to be a program name with arguments. | | # Used to examine libraries when file_magic_cmd begins "file" |
lt_save_CC="$CC" | | MAGIC_CMD=$MAGIC_CMD |
CC=${F77-"f77"} | | |
compiler=$CC | | |
compiler_F77=$CC | | |
for cc_temp in $compiler""; do | | |
case $cc_temp in | | |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | | |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
| | |
| | # Used on cygwin: DLL creation program. |
| | DLLTOOL="$DLLTOOL" |
| | |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | | # Used on cygwin: object dumper. |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | | OBJDUMP="$OBJDUMP" |
echo "$as_me:$LINENO: result: $can_build_shared" >&5 | | |
echo "${ECHO_T}$can_build_shared" >&6 | | |
| | |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | | # Used on cygwin: assembler. |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | | AS="$AS" |
test "$can_build_shared" = "no" && enable_shared=no | | |
| | |
# On AIX, shared libraries and static libraries use the same namespace, and | | # The name of the directory that contains temporary libtool files. |
# are all built from PIC. | | objdir=$objdir |
case $host_os in | | |
aix3*) | | |
test "$enable_shared" = yes && enable_static=no | | |
if test -n "$RANLIB"; then | | |
archive_cmds="$archive_cmds~\$RANLIB \$lib" | | |
postinstall_cmds='$RANLIB $lib' | | |
fi | | |
;; | | |
aix4* | aix5*) | | |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | | |
test "$enable_shared" = yes && enable_static=no | | |
fi | | |
;; | | |
esac | | |
echo "$as_me:$LINENO: result: $enable_shared" >&5 | | |
echo "${ECHO_T}$enable_shared" >&6 | | |
| | |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | | # How to create reloadable object files. |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | | reload_flag=$lt_reload_flag |
# Make sure either enable_shared or enable_static is yes. | | reload_cmds=$lt_reload_cmds |
test "$enable_shared" = yes || enable_static=yes | | |
echo "$as_me:$LINENO: result: $enable_static" >&5 | | |
echo "${ECHO_T}$enable_static" >&6 | | |
| | |
GCC_F77="$G77" | | # How to pass a linker flag through the compiler. |
LD_F77="$LD" | | wl=$lt_lt_prog_compiler_wl_CXX |
| | |
lt_prog_compiler_wl_F77= | | # Object file suffix (normally "o"). |
lt_prog_compiler_pic_F77= | | objext="$ac_objext" |
lt_prog_compiler_static_F77= | | |
| | |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | | # Old archive suffix (normally "a"). |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | | libext="$libext" |
| | |
if test "$GCC" = yes; then | | # Shared library suffix (normally ".so"). |
lt_prog_compiler_wl_F77='-Wl,' | | shrext_cmds='$shrext_cmds' |
lt_prog_compiler_static_F77='-static' | | |
| | |
case $host_os in | | # Executable file suffix (normally ""). |
aix*) | | exeext="$exeext" |
# All AIX code is PIC. | | |
if test "$host_cpu" = ia64; then | | |
# AIX 5 now supports IA64 processor | | |
lt_prog_compiler_static_F77='-Bstatic' | | |
fi | | |
;; | | |
| | |
amigaos*) | | # Additional compiler flags for building library objects. |
# FIXME: we need at least 68020 code to build shared libraries, but | | pic_flag=$lt_lt_prog_compiler_pic_CXX |
# adding the `-m68020' flag to GCC prevents building anything better, | | pic_mode=$pic_mode |
# like `-m68040'. | | |
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | | |
;; | | |
| | |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | | # What is the maximum length of a command? |
# PIC is the default for these OSes. | | max_cmd_len=$lt_cv_sys_max_cmd_len |
;; | | |
| | |
mingw* | pw32* | os2*) | | # Does compiler simultaneously support -c and -o options? |
# This hack is so that the source file can tell whether it is being | | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
# built for inclusion in a dll (and should export symbols for example). | | |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' | | |
;; | | |
| | |
darwin* | rhapsody*) | | # Must we lock files when doing compilation ? |
# PIC is the default on this platform | | need_locks=$lt_need_locks |
# Common symbols not allowed in MH_DYLIB files | | |
lt_prog_compiler_pic_F77='-fno-common' | | |
;; | | |
| | |
interix3*) | | # Do we need the lib prefix for modules? |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. | | need_lib_prefix=$need_lib_prefix |
# Instead, we relocate shared libraries at runtime. | | |
;; | | |
| | |
msdosdjgpp*) | | # Do we need a version for libraries? |
# Just because we use GCC doesn't mean we suddenly get shared libraries | | need_version=$need_version |
# on systems that don't support them. | | |
lt_prog_compiler_can_build_shared_F77=no | | |
enable_shared=no | | |
;; | | |
| | |
sysv4*MP*) | | # Whether dlopen is supported. |
if test -d /usr/nec; then | | dlopen_support=$enable_dlopen |
lt_prog_compiler_pic_F77=-Kconform_pic | | |
fi | | |
;; | | |
| | |
hpux*) | | # Whether dlopen of programs is supported. |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | dlopen_self=$enable_dlopen_self |
# not for PA HP-UX. | | |
case $host_cpu in | | |
hppa*64*|ia64*) | | |
# +Z the default | | |
;; | | |
*) | | |
lt_prog_compiler_pic_F77='-fPIC' | | |
;; | | |
esac | | |
;; | | |
| | |
*) | | # Whether dlopen of statically linked programs is supported. |
lt_prog_compiler_pic_F77='-fPIC' | | dlopen_self_static=$enable_dlopen_self_static |
;; | | |
esac | | |
else | | |
# PORTME Check for flag to pass linker flags through the system compiler. | | |
case $host_os in | | |
aix*) | | |
lt_prog_compiler_wl_F77='-Wl,' | | |
if test "$host_cpu" = ia64; then | | |
# AIX 5 now supports IA64 processor | | |
lt_prog_compiler_static_F77='-Bstatic' | | |
else | | |
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | | |
fi | | |
;; | | |
darwin*) | | |
# PIC is the default on this platform | | |
# Common symbols not allowed in MH_DYLIB files | | |
case $cc_basename in | | |
xlc*) | | |
lt_prog_compiler_pic_F77='-qnocommon' | | |
lt_prog_compiler_wl_F77='-Wl,' | | |
;; | | |
esac | | |
;; | | |
| | |
mingw* | pw32* | os2*) | | # Compiler flag to prevent dynamic linking. |
# This hack is so that the source file can tell whether it is being | | link_static_flag=$lt_lt_prog_compiler_static_CXX |
# built for inclusion in a dll (and should export symbols for example). | | |
lt_prog_compiler_pic_F77='-DDLL_EXPORT' | | |
;; | | |
| | |
hpux9* | hpux10* | hpux11*) | | # Compiler flag to turn off builtin functions. |
lt_prog_compiler_wl_F77='-Wl,' | | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | |
# not for PA HP-UX. | | |
case $host_cpu in | | |
hppa*64*|ia64*) | | |
# +Z the default | | |
;; | | |
*) | | |
lt_prog_compiler_pic_F77='+Z' | | |
;; | | |
esac | | |
# Is there a better lt_prog_compiler_static that works with the bundled CC? | | |
lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | | |
;; | | |
| | |
irix5* | irix6* | nonstopux*) | | # Compiler flag to allow reflexive dlopens. |
lt_prog_compiler_wl_F77='-Wl,' | | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
# PIC (with -KPIC) is the default. | | |
lt_prog_compiler_static_F77='-non_shared' | | |
;; | | |
| | |
newsos6) | | # Compiler flag to generate shared objects directly from archives. |
lt_prog_compiler_pic_F77='-KPIC' | | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
lt_prog_compiler_static_F77='-Bstatic' | | |
;; | | |
| | |
linux*) | | # Compiler flag to generate thread-safe objects. |
case $cc_basename in | | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
icc* | ecc*) | | |
lt_prog_compiler_wl_F77='-Wl,' | | |
lt_prog_compiler_pic_F77='-KPIC' | | |
lt_prog_compiler_static_F77='-static' | | |
;; | | |
pgcc* | pgf77* | pgf90* | pgf95*) | | |
# Portland Group compilers (*not* the Pentium gcc compiler, | | |
# which looks to be a dead project) | | |
lt_prog_compiler_wl_F77='-Wl,' | | |
lt_prog_compiler_pic_F77='-fpic' | | |
lt_prog_compiler_static_F77='-Bstatic' | | |
;; | | |
ccc*) | | |
lt_prog_compiler_wl_F77='-Wl,' | | |
# All Alpha code is PIC. | | |
lt_prog_compiler_static_F77='-non_shared' | | |
;; | | |
esac | | |
;; | | |
| | |
osf3* | osf4* | osf5*) | | # Library versioning type. |
lt_prog_compiler_wl_F77='-Wl,' | | version_type=$version_type |
# All OSF/1 code is PIC. | | |
lt_prog_compiler_static_F77='-non_shared' | | |
;; | | |
| | |
solaris*) | | # Format of library name prefix. |
lt_prog_compiler_pic_F77='-KPIC' | | libname_spec=$lt_libname_spec |
lt_prog_compiler_static_F77='-Bstatic' | | |
case $cc_basename in | | |
f77* | f90* | f95*) | | |
lt_prog_compiler_wl_F77='-Qoption ld ';; | | |
*) | | |
lt_prog_compiler_wl_F77='-Wl,';; | | |
esac | | |
;; | | |
| | |
sunos4*) | | # List of archive names. First name is the real one, the rest are links. |
lt_prog_compiler_wl_F77='-Qoption ld ' | | # The last name is the one that the linker finds with -lNAME. |
lt_prog_compiler_pic_F77='-PIC' | | library_names_spec=$lt_library_names_spec |
lt_prog_compiler_static_F77='-Bstatic' | | |
;; | | |
| | |
sysv4 | sysv4.2uw2* | sysv4.3*) | | # The coded name of the library, if different from the real name. |
lt_prog_compiler_wl_F77='-Wl,' | | soname_spec=$lt_soname_spec |
lt_prog_compiler_pic_F77='-KPIC' | | |
lt_prog_compiler_static_F77='-Bstatic' | | |
;; | | |
| | |
sysv4*MP*) | | # Commands used to build and install an old-style archive. |
if test -d /usr/nec ;then | | RANLIB=$lt_RANLIB |
lt_prog_compiler_pic_F77='-Kconform_pic' | | old_archive_cmds=$lt_old_archive_cmds_CXX |
lt_prog_compiler_static_F77='-Bstatic' | | old_postinstall_cmds=$lt_old_postinstall_cmds |
fi | | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
;; | | |
| | |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | | # Create an old-style archive from a shared archive. |
lt_prog_compiler_wl_F77='-Wl,' | | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
lt_prog_compiler_pic_F77='-KPIC' | | |
lt_prog_compiler_static_F77='-Bstatic' | | |
;; | | |
| | |
unicos*) | | # Create a temporary old-style archive to link instead of a shared archive. |
lt_prog_compiler_wl_F77='-Wl,' | | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
lt_prog_compiler_can_build_shared_F77=no | | |
;; | | |
| | |
uts4*) | | # Commands used to build and install a shared archive. |
lt_prog_compiler_pic_F77='-pic' | | archive_cmds=$lt_archive_cmds_CXX |
lt_prog_compiler_static_F77='-Bstatic' | | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
;; | | postinstall_cmds=$lt_postinstall_cmds |
| | postuninstall_cmds=$lt_postuninstall_cmds |
| | |
*) | | # Commands used to build a loadable module (assumed same as above if empty) |
lt_prog_compiler_can_build_shared_F77=no | | module_cmds=$lt_module_cmds_CXX |
;; | | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
esac | | |
fi | | |
| | |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | | # Commands to strip libraries. |
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | | old_striplib=$lt_old_striplib |
| | striplib=$lt_striplib |
| | |
# | | # Dependencies to place before the objects being linked to create a |
# Check to make sure the PIC flag actually works. | | # shared library. |
# | | predep_objects=$lt_predep_objects_CXX |
if test -n "$lt_prog_compiler_pic_F77"; then | | |
| | |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | | # Dependencies to place after the objects being linked to create a |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | | # shared library. |
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | | postdep_objects=$lt_postdep_objects_CXX |
echo $ECHO_N "(cached) $ECHO_C" >&6 | | |
else | | |
lt_prog_compiler_pic_works_F77=no | | |
ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext | | |
lt_compiler_flag="$lt_prog_compiler_pic_F77" | | |
# Insert the option either (1) after the last *FLAGS variable, or | | |
# (2) before a word containing "conftest.", or (3) at the end. | | |
# Note that $ac_compile itself does not contain backslashes and begins | | |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | |
# The option is referenced via a variable to avoid confusing sed. | | |
lt_compile=`echo "$ac_compile" | $SED \ | | |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | |
-e 's:$: $lt_compiler_flag:'` | | |
(eval echo "\"\$as_me:13253: $lt_compile\"" >&5) | | |
(eval "$lt_compile" 2>conftest.err) | | |
ac_status=$? | | |
cat conftest.err >&5 | | |
echo "$as_me:13257: \$? = $ac_status" >&5 | | |
if (exit $ac_status) && test -s "$ac_outfile"; then | | |
# The compiler can only warn and ignore the option if not recognized | | |
# So say no if there are warnings other than the usual output. | | |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | | |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_prog_compiler_pic_works_F77=yes | | |
fi | | |
fi | | |
$rm conftest* | | |
| | |
fi | | # Dependencies to place before the objects being linked to create a |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | | # shared library. |
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | | predeps=$lt_predeps_CXX |
| | |
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | | # Dependencies to place after the objects being linked to create a |
case $lt_prog_compiler_pic_F77 in | | # shared library. |
"" | " "*) ;; | | postdeps=$lt_postdeps_CXX |
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | | |
esac | | |
else | | |
lt_prog_compiler_pic_F77= | | |
lt_prog_compiler_can_build_shared_F77=no | | |
fi | | |
| | |
fi | | # The library search path used internally by the compiler when linking |
case $host_os in | | # a shared library. |
# For platforms which do not support PIC, -DPIC is meaningless: | | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
*djgpp*) | | |
lt_prog_compiler_pic_F77= | | |
;; | | |
*) | | |
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | | |
;; | | |
esac | | |
| | |
# | | # Method to check whether dependent libraries are shared objects. |
# Check to make sure the static flag actually works. | | deplibs_check_method=$lt_deplibs_check_method |
# | | |
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | | |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | | |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | | |
if test "${lt_prog_compiler_static_works_F77+set}" = set; then | | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | | |
else | | |
lt_prog_compiler_static_works_F77=no | | |
save_LDFLAGS="$LDFLAGS" | | |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | | |
printf "$lt_simple_link_test_code" > conftest.$ac_ext | | |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | | |
# The linker can only warn and ignore the option if not recognized | | |
# So say no if there are warnings | | |
if test -s conftest.err; then | | |
# Append any errors to the config.log. | | |
cat conftest.err 1>&5 | | |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | | |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_prog_compiler_static_works_F77=yes | | |
fi | | |
else | | |
lt_prog_compiler_static_works_F77=yes | | |
fi | | |
fi | | |
$rm conftest* | | |
LDFLAGS="$save_LDFLAGS" | | |
| | |
fi | | # Command to use when deplibs_check_method == file_magic. |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | | file_magic_cmd=$lt_file_magic_cmd |
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 | | |
| | |
if test x"$lt_prog_compiler_static_works_F77" = xyes; then | | # Flag that allows shared libraries with undefined symbols to be built. |
: | | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
else | | |
lt_prog_compiler_static_F77= | | |
fi | | |
| | |
| | # Flag that forces no undefined symbols. |
| | no_undefined_flag=$lt_no_undefined_flag_CXX |
| | |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | | # Commands used to finish a libtool library installation in a directory. |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | | finish_cmds=$lt_finish_cmds |
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | | |
else | | |
lt_cv_prog_compiler_c_o_F77=no | | |
$rm -r conftest 2>/dev/null | | |
mkdir conftest | | |
cd conftest | | |
mkdir out | | |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext | | |
| | |
lt_compiler_flag="-o out/conftest2.$ac_objext" | | # Same as above, but a single script fragment to be evaled but not shown. |
# Insert the option either (1) after the last *FLAGS variable, or | | finish_eval=$lt_finish_eval |
# (2) before a word containing "conftest.", or (3) at the end. | | |
# Note that $ac_compile itself does not contain backslashes and begins | | |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | |
lt_compile=`echo "$ac_compile" | $SED \ | | |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | |
-e 's:$: $lt_compiler_flag:'` | | |
(eval echo "\"\$as_me:13357: $lt_compile\"" >&5) | | |
(eval "$lt_compile" 2>out/conftest.err) | | |
ac_status=$? | | |
cat out/conftest.err >&5 | | |
echo "$as_me:13361: \$? = $ac_status" >&5 | | |
if (exit $ac_status) && test -s out/conftest2.$ac_objext | | |
then | | |
# The compiler can only warn and ignore the option if not recognized | | |
# So say no if there are warnings | | |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | | |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | | |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | | |
lt_cv_prog_compiler_c_o_F77=yes | | |
fi | | |
fi | | |
chmod u+w . 2>&5 | | |
$rm conftest* | | |
# SGI C++ compiler will create directory out/ii_files/ for | | |
# template instantiation | | |
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | | |
$rm out/* && rmdir out | | |
cd .. | | |
rmdir conftest | | |
$rm conftest* | | |
| | |
fi | | # Take the output of nm and produce a listing of raw symbols and C names. |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | | |
| | |
| | # Transform the output of nm in a proper C declaration |
| | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| | |
hard_links="nottested" | | # Transform the output of nm in a C name address pair |
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
# do not overwrite the value of need_locks provided by the user | | |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | | |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | | |
hard_links=yes | | |
$rm conftest* | | |
ln conftest.a conftest.b 2>/dev/null && hard_links=no | | |
touch conftest.a | | |
ln conftest.a conftest.b 2>&5 || hard_links=no | | |
ln conftest.a conftest.b 2>/dev/null && hard_links=no | | |
echo "$as_me:$LINENO: result: $hard_links" >&5 | | |
echo "${ECHO_T}$hard_links" >&6 | | |
if test "$hard_links" = no; then | | |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | | |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | | |
need_locks=warn | | |
fi | | |
else | | |
need_locks=no | | |
fi | | |
| | |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | | # This is the shared library runtime path variable. |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | | runpath_var=$runpath_var |
| | |
runpath_var= | | # This is the shared library path variable. |
allow_undefined_flag_F77= | | shlibpath_var=$shlibpath_var |
enable_shared_with_static_runtimes_F77=no | | |
archive_cmds_F77= | | |
archive_expsym_cmds_F77= | | |
old_archive_From_new_cmds_F77= | | |
old_archive_from_expsyms_cmds_F77= | | |
export_dynamic_flag_spec_F77= | | |
whole_archive_flag_spec_F77= | | |
thread_safe_flag_spec_F77= | | |
hardcode_libdir_flag_spec_F77= | | |
hardcode_libdir_flag_spec_ld_F77= | | |
hardcode_libdir_separator_F77= | | |
hardcode_direct_F77=no | | |
hardcode_minus_L_F77=no | | |
hardcode_shlibpath_var_F77=unsupported | | |
link_all_deplibs_F77=unknown | | |
hardcode_automatic_F77=no | | |
module_cmds_F77= | | |
module_expsym_cmds_F77= | | |
always_export_symbols_F77=no | | |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | | |
# include_expsyms should be a list of space-separated symbols to be *always* | | |
# included in the symbol list | | |
include_expsyms_F77= | | |
# exclude_expsyms can be an extended regexp of symbols to exclude | | |
# it will be wrapped by ` (' and `)$', so one must not match beginning or | | |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | | |
# as well as any symbol that contains `d'. | | |
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | | |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | | |
# platforms (ab)use it in PIC code, but their linkers get confused if | | |
# the symbol is explicitly referenced. Since portable code cannot | | |
# rely on this symbol name, it's probably fine to never include it in | | |
# preloaded symbol tables. | | |
extract_expsyms_cmds= | | |
# Just being paranoid about ensuring that cc_basename is set. | | |
for cc_temp in $compiler""; do | | |
case $cc_temp in | | |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | | |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
| | |
case $host_os in | | # Is shlibpath searched before the hard-coded library search path? |
cygwin* | mingw* | pw32*) | | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
# FIXME: the MSVC++ port hasn't been tested in a loooong time | | |
# When not using gcc, we currently assume that we are using | | |
# Microsoft Visual C++. | | |
if test "$GCC" != yes; then | | |
with_gnu_ld=no | | |
fi | | |
;; | | |
interix*) | | |
# we just hope/assume this is gcc and not c89 (= MSVC++) | | |
with_gnu_ld=yes | | |
;; | | |
openbsd*) | | |
with_gnu_ld=no | | |
;; | | |
esac | | |
| | |
ld_shlibs_F77=yes | | # How to hardcode a shared library path into an executable. |
if test "$with_gnu_ld" = yes; then | | hardcode_action=$hardcode_action_CXX |
# If archive_cmds runs LD, not CC, wlarc should be empty | | |
wlarc='${wl}' | | |
| | |
# Set some defaults for GNU ld with shared library support. These | | # Whether we should hardcode library paths into libraries. |
# are reset later if shared libraries are not supported. Putting them | | hardcode_into_libs=$hardcode_into_libs |
# here allows them to be overridden if necessary. | | |
runpath_var=LD_RUN_PATH | | |
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | | |
export_dynamic_flag_spec_F77='${wl}--export-dynamic' | | |
# ancient GNU ld didn't support --whole-archive et. al. | | |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | | |
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | | |
else | | |
whole_archive_flag_spec_F77= | | |
fi | | |
supports_anon_versioning=no | | |
case `$LD -v 2>/dev/null` in | | |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | | |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | | |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | | |
*\ 2.11.*) ;; # other 2.11 versions | | |
*) supports_anon_versioning=yes ;; | | |
esac | | |
| | |
# See if GNU ld supports shared libraries. | | # Flag to hardcode \$libdir into a binary during linking. |
case $host_os in | | # This must work even if \$libdir does not exist. |
aix3* | aix4* | aix5*) | | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
# On AIX/PPC, the GNU linker is very broken | | |
if test "$host_cpu" != ia64; then | | |
ld_shlibs_F77=no | | |
cat <<EOF 1>&2 | | |
| | |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported | | # If ld is used when linking, flag to hardcode \$libdir into |
*** to be unable to reliably create shared libraries on AIX. | | # a binary during linking. This must work even if \$libdir does |
*** Therefore, libtool is disabling shared libraries support. If you | | # not exist. |
*** really care for shared libraries, you may want to modify your PATH | | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
*** so that a non-GNU linker is found, and then restart. | | |
| | |
EOF | | # Whether we need a single -rpath flag with a separated argument. |
fi | | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
;; | | |
| | |
amigaos*) | | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
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)' | | # resulting binary. |
hardcode_libdir_flag_spec_F77='-L$libdir' | | hardcode_direct=$hardcode_direct_CXX |
hardcode_minus_L_F77=yes | | |
| | |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
# that the semantics of dynamic libraries on AmigaOS, at least up | | # resulting binary. |
# to version 4, is to share data among multiple programs linked | | hardcode_minus_L=$hardcode_minus_L_CXX |
# with the same dynamic library. Since this doesn't match the | | |
# behavior of shared libraries on other platforms, we can't use | | |
# them. | | |
ld_shlibs_F77=no | | |
;; | | |
| | |
beos*) | | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | # the resulting binary. |
allow_undefined_flag_F77=unsupported | | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc | | |
# support --undefined. This deserves some investigation. FIXME | | |
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
else | | |
ld_shlibs_F77=no | | |
fi | | |
;; | | |
| | |
cygwin* | mingw* | pw32*) | | # Set to yes if building a shared library automatically hardcodes DIR into the library |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | | # and all subsequent libraries and executables linked against it. |
# as there is no search path for DLLs. | | hardcode_automatic=$hardcode_automatic_CXX |
hardcode_libdir_flag_spec_F77='-L$libdir' | | |
allow_undefined_flag_F77=unsupported | | |
always_export_symbols_F77=no | | |
enable_shared_with_static_runtimes_F77=yes | | |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | | |
| | |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | | # Variables whose values should be saved in libtool wrapper scripts and |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | | # restored at relink time. |
# If the export-symbols file already is a .def file (1st line | | variables_saved_for_relink="$variables_saved_for_relink" |
# is EXPORTS), use it as is; otherwise, prepend... | | |
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | | |
cp $export_symbols $output_objdir/$soname.def; | | |
else | | |
echo EXPORTS > $output_objdir/$soname.def; | | |
cat $export_symbols >> $output_objdir/$soname.def; | | |
fi~ | | |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | | |
else | | |
ld_shlibs_F77=no | | |
fi | | |
;; | | |
| | |
interix3*) | | # Whether libtool must link a program against all its dependency libraries. |
hardcode_direct_F77=no | | link_all_deplibs=$link_all_deplibs_CXX |
hardcode_shlibpath_var_F77=no | | |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | | |
export_dynamic_flag_spec_F77='${wl}-E' | | |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | | |
# Instead, shared libraries are loaded at an image base (0x10000000 by | | |
# default) and relocated if they conflict, which is a slow very memory | | |
# consuming and fragmenting process. To avoid this, we pick a random, | | |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | | |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. | | |
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' | | |
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' | | |
;; | | |
| | |
linux*) | | # Compile-time system search path for libraries |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
tmp_addflag= | | |
case $cc_basename,$host_cpu in | | |
pgcc*) # Portland Group C compiler | | |
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' | | |
tmp_addflag=' $pic_flag' | | |
;; | | |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | | |
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' | | |
tmp_addflag=' $pic_flag -Mnomain' ;; | | |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | | |
tmp_addflag=' -i_dynamic' ;; | | |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | | |
tmp_addflag=' -i_dynamic -nofor_main' ;; | | |
ifc* | ifort*) # Intel Fortran compiler | | |
tmp_addflag=' -nofor_main' ;; | | |
esac | | |
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
| | |
if test $supports_anon_versioning = yes; then | | # Run-time system search path for libraries |
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | | |
$echo "local: *; };" >> $output_objdir/$libname.ver~ | | |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | | |
fi | | |
else | | |
ld_shlibs_F77=no | | |
fi | | |
;; | | |
| | |
netbsd*) | | # Fix the shell variable \$srcfile for the compiler. |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | fix_srcfile_path="$fix_srcfile_path_CXX" |
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | | |
wlarc= | | |
else | | |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | | |
fi | | |
;; | | |
| | |
solaris*) | | # Set to yes if exported symbols are required. |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | | always_export_symbols=$always_export_symbols_CXX |
ld_shlibs_F77=no | | |
cat <<EOF 1>&2 | | |
| | |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably | | # The commands to list exported symbols. |
*** create shared libraries on Solaris systems. Therefore, libtool | | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
*** is disabling shared libraries support. We urge you to upgrade GNU | | |
*** binutils to release 2.9.1 or newer. Another option is to modify | | |
*** your PATH or compiler configuration so that the native linker is | | |
*** used, and then restart. | | |
| | |
EOF | | # The commands to extract the exported symbol list from a shared archive. |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | | |
else | | |
ld_shlibs_F77=no | | |
fi | | |
;; | | |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | | # Symbols that should not be listed in the preloaded symbols. |
case `$LD -v 2>&1` in | | exclude_expsyms=$lt_exclude_expsyms_CXX |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | | |
ld_shlibs_F77=no | | # Symbols that must always be exported. |
cat <<_LT_EOF 1>&2 | | include_expsyms=$lt_include_expsyms_CXX |
| | |
| | # ### END LIBTOOL TAG CONFIG: $tagname |
| | |
| | __EOF__ |
| | |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | | |
*** reliably create shared libraries on SCO systems. Therefore, libtool | | |
*** is disabling shared libraries support. We urge you to upgrade GNU | | |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify | | |
*** your PATH or compiler configuration so that the native linker is | | |
*** used, and then restart. | | |
| | |
_LT_EOF | | |
;; | | |
*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | | |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | | |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | | |
else | | else |
ld_shlibs_F77=no | | # If there is no Makefile yet, we rely on a make rule to execute |
| | # `config.status --recheck' to rerun these tests and create the |
| | # libtool script then. |
| | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| | if test -f "$ltmain_in"; then |
| | test -f Makefile && make "$ltmain" |
| | fi |
fi | | fi |
;; | | |
esac | | |
;; | | |
| | |
sunos4*) | | |
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | | |
wlarc= | | |
hardcode_direct_F77=yes | | |
hardcode_shlibpath_var_F77=no | | |
;; | | |
| | |
*) | | ac_ext=c |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | ac_cpp='$CPP $CPPFLAGS' |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | |
| | CC=$lt_save_CC |
| | LDCXX=$LD |
| | LD=$lt_save_LD |
| | GCC=$lt_save_GCC |
| | with_gnu_ldcxx=$with_gnu_ld |
| | with_gnu_ld=$lt_save_with_gnu_ld |
| | lt_cv_path_LDCXX=$lt_cv_path_LD |
| | lt_cv_path_LD=$lt_save_path_LD |
| | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| | |
else | | else |
ld_shlibs_F77=no | | tagname="" |
fi | | fi |
;; | | ;; |
esac | | |
| | |
if test "$ld_shlibs_F77" = no; then | | F77) |
runpath_var= | | if test -n "$F77" && test "X$F77" != "Xno"; then |
hardcode_libdir_flag_spec_F77= | | |
| | ac_ext=f |
| | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| | |
| | |
| | archive_cmds_need_lc_F77=no |
| | allow_undefined_flag_F77= |
| | always_export_symbols_F77=no |
| | archive_expsym_cmds_F77= |
export_dynamic_flag_spec_F77= | | export_dynamic_flag_spec_F77= |
| | hardcode_direct_F77=no |
| | hardcode_libdir_flag_spec_F77= |
| | hardcode_libdir_flag_spec_ld_F77= |
| | hardcode_libdir_separator_F77= |
| | hardcode_minus_L_F77=no |
| | hardcode_automatic_F77=no |
| | module_cmds_F77= |
| | module_expsym_cmds_F77= |
| | link_all_deplibs_F77=unknown |
| | old_archive_cmds_F77=$old_archive_cmds |
| | no_undefined_flag_F77= |
whole_archive_flag_spec_F77= | | whole_archive_flag_spec_F77= |
fi | | enable_shared_with_static_runtimes_F77=no |
else | | |
# PORTME fill in a description of your system's linker (not GNU ld) | | # Source file extension for f77 test sources. |
case $host_os in | | ac_ext=f |
| | |
| | # Object file extension for compiled f77 test sources. |
| | objext=o |
| | objext_F77=$objext |
| | |
| | # Code to be used in simple compile tests |
| | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| | |
| | # Code to be used in simple link tests |
| | lt_simple_link_test_code=" program t\n end\n" |
| | |
| | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| | |
| | # If no C compiler was specified, use CC. |
| | LTCC=${LTCC-"$CC"} |
| | |
| | # Allow CC to be a program name with arguments. |
| | compiler=$CC |
| | |
| | |
| | # Allow CC to be a program name with arguments. |
| | lt_save_CC="$CC" |
| | CC=${F77-"f77"} |
| | compiler=$CC |
| | compiler_F77=$CC |
| | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| | |
| | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| | echo "${ECHO_T}$can_build_shared" >&6 |
| | |
| | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| | test "$can_build_shared" = "no" && enable_shared=no |
| | |
| | # On AIX, shared libraries and static libraries use the same namespace, and |
| | # are all built from PIC. |
| | case "$host_os" in |
aix3*) | | aix3*) |
allow_undefined_flag_F77=unsupported | | test "$enable_shared" = yes && enable_static=no |
always_export_symbols_F77=yes | | if test -n "$RANLIB"; then |
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' | | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
# Note: this linker hardcodes the directories in LIBPATH if there | | postinstall_cmds='$RANLIB $lib' |
# are no directories specified by -L. | | |
hardcode_minus_L_F77=yes | | |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | | |
# Neither direct hardcoding nor static linking is supported with a | | |
# broken collect2. | | |
hardcode_direct_F77=unsupported | | |
fi | | fi |
;; | | ;; |
| | |
aix4* | aix5*) | | aix4* | aix5*) |
| | test "$enable_shared" = yes && enable_static=no |
| | ;; |
| | esac |
| | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| | echo "${ECHO_T}$enable_shared" >&6 |
| | |
| | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| | # Make sure either enable_shared or enable_static is yes. |
| | test "$enable_shared" = yes || enable_static=yes |
| | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| | echo "${ECHO_T}$enable_static" >&6 |
| | |
| | test "$ld_shlibs_F77" = no && can_build_shared=no |
| | |
| | GCC_F77="$G77" |
| | LD_F77="$LD" |
| | |
| | lt_prog_compiler_wl_F77= |
| | lt_prog_compiler_pic_F77= |
| | lt_prog_compiler_static_F77= |
| | |
| | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| | |
| | if test "$GCC" = yes; then |
| | lt_prog_compiler_wl_F77='-Wl,' |
| | lt_prog_compiler_static_F77='-static' |
| | |
| | case $host_os in |
| | aix*) |
| | # All AIX code is PIC. |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
# On IA64, the linker does run time linking by default, so we don't | | # AIX 5 now supports IA64 processor |
# have to do anything special. | | lt_prog_compiler_static_F77='-Bstatic' |
aix_use_runtimelinking=no | | |
exp_sym_flag='-Bexport' | | |
no_entry_flag="" | | |
else | | |
# If we're using GNU nm, then we don't want the "-C" option. | | |
# -C means demangle to AIX nm, but means don't demangle with GNU nm | | |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | | |
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' | | |
else | | |
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' | | |
fi | | fi |
aix_use_runtimelinking=no | | ;; |
| | |
# Test if we are trying to use run time linking or normal | | amigaos*) |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we | | # FIXME: we need at least 68020 code to build shared libraries, but |
# need to do runtime linking. | | # adding the `-m68020' flag to GCC prevents building anything better, |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) | | # like `-m68040'. |
for ld_flag in $LDFLAGS; do | | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | | |
aix_use_runtimelinking=yes | | |
break | | |
fi | | |
done | | |
;; | | ;; |
esac | | |
| | |
exp_sym_flag='-bexport' | | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
no_entry_flag='-bnoentry' | | # PIC is the default for these OSes. |
fi | | ;; |
| | |
# When large executables or shared objects are built, AIX ld can | | mingw* | pw32* | os2*) |
# have problems creating the table of contents. If linking a library | | # This hack is so that the source file can tell whether it is being |
# or program results in "error TOC overflow" add -mminimal-toc to | | # built for inclusion in a dll (and should export symbols for example). |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | | ;; |
| | |
archive_cmds_F77='' | | darwin* | rhapsody*) |
hardcode_direct_F77=yes | | # PIC is the default on this platform |
hardcode_libdir_separator_F77=':' | | # Common symbols not allowed in MH_DYLIB files |
link_all_deplibs_F77=yes | | lt_prog_compiler_pic_F77='-fno-common' |
| | ;; |
| | |
if test "$GCC" = yes; then | | msdosdjgpp*) |
case $host_os in aix4.[012]|aix4.[012].*) | | # Just because we use GCC doesn't mean we suddenly get shared libraries |
# We only want to do this on AIX 4.2 and lower, the check | | # on systems that don't support them. |
# below for broken collect2 doesn't work under 4.3+ | | lt_prog_compiler_can_build_shared_F77=no |
collect2name=`${CC} -print-prog-name=collect2` | | enable_shared=no |
if test -f "$collect2name" && \ | | ;; |
strings "$collect2name" | grep resolve_lib_name >/dev/null | | |
then | | sysv4*MP*) |
# We have reworked collect2 | | if test -d /usr/nec; then |
hardcode_direct_F77=yes | | lt_prog_compiler_pic_F77=-Kconform_pic |
else | | |
# We have old collect2 | | |
hardcode_direct_F77=unsupported | | |
# It fails to find uninstalled libraries when the uninstalled | | |
# path is not listed in the libpath. Setting hardcode_minus_L | | |
# to unsupported forces relinking | | |
hardcode_minus_L_F77=yes | | |
hardcode_libdir_flag_spec_F77='-L$libdir' | | |
hardcode_libdir_separator_F77= | | |
fi | | fi |
;; | | ;; |
| | |
| | hpux*) |
| | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | # not for PA HP-UX. |
| | case "$host_cpu" in |
| | hppa*64*|ia64*) |
| | # +Z the default |
| | ;; |
| | *) |
| | lt_prog_compiler_pic_F77='-fPIC' |
| | ;; |
| | esac |
| | ;; |
| | |
| | *) |
| | lt_prog_compiler_pic_F77='-fPIC' |
| | ;; |
esac | | esac |
shared_flag='-shared' | | |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag="$shared_flag "'${wl}-G' | | |
fi | | |
else | | else |
# not using gcc | | # PORTME Check for flag to pass linker flags through the system compiler. |
| | case $host_os in |
| | aix*) |
| | lt_prog_compiler_wl_F77='-Wl,' |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | | # AIX 5 now supports IA64 processor |
# chokes on -Wl,-G. The following line is correct: | | lt_prog_compiler_static_F77='-Bstatic' |
shared_flag='-G' | | |
else | | |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag='${wl}-G' | | |
else | | else |
shared_flag='${wl}-bM:SRE' | | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
fi | | |
fi | | |
fi | | |
| | |
# It seems that -bexpall does not export symbols beginning with | | |
# underscore (_), so it is better to generate a list of symbols to export. | | |
always_export_symbols_F77=yes | | |
if test "$aix_use_runtimelinking" = yes; then | | |
# Warning - without using the other runtime loading flags (-brtl), | | |
# -berok will link without error, but may produce a broken library. | | |
allow_undefined_flag_F77='-berok' | | |
# Determine the default libpath from the value encoded in an empty executable. | | |
cat >conftest.$ac_ext <<_ACEOF | | |
program main | | |
| | |
end | | |
_ACEOF | | |
rm -f conftest.$ac_objext conftest$ac_exeext | | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | | |
(eval $ac_link) 2>conftest.er1 | | |
ac_status=$? | | |
grep -v '^ *+' conftest.er1 >conftest.err | | |
rm -f conftest.er1 | | |
cat conftest.err >&5 | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); } && | | |
{ ac_try='test -z "$ac_f77_werror_flag" | | |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | |
(eval $ac_try) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; } && | | |
{ ac_try='test -s conftest$ac_exeext' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | |
(eval $ac_try) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; }; then | | |
| | |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | | |
}'` | | |
# Check for a 64-bit object if we didn't find anything. | | |
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; } | | |
}'`; fi | | |
else | | |
echo "$as_me: failed program was:" >&5 | | |
sed 's/^/| /' conftest.$ac_ext >&5 | | |
| | |
fi | | |
rm -f conftest.err conftest.$ac_objext \ | | |
conftest$ac_exeext conftest.$ac_ext | | |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | | |
| | |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | | |
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" | | |
else | | |
if test "$host_cpu" = ia64; then | | |
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | | |
allow_undefined_flag_F77="-z nodefs" | | |
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" | | |
else | | |
# Determine the default libpath from the value encoded in an empty executable. | | |
cat >conftest.$ac_ext <<_ACEOF | | |
program main | | |
| | |
end | | |
_ACEOF | | |
rm -f conftest.$ac_objext conftest$ac_exeext | | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | | |
(eval $ac_link) 2>conftest.er1 | | |
ac_status=$? | | |
grep -v '^ *+' conftest.er1 >conftest.err | | |
rm -f conftest.er1 | | |
cat conftest.err >&5 | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); } && | | |
{ ac_try='test -z "$ac_f77_werror_flag" | | |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | |
(eval $ac_try) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; } && | | |
{ ac_try='test -s conftest$ac_exeext' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | |
(eval $ac_try) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; }; then | | |
| | |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | | |
}'` | | |
# Check for a 64-bit object if we didn't find anything. | | |
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; } | | |
}'`; fi | | |
else | | |
echo "$as_me: failed program was:" >&5 | | |
sed 's/^/| /' conftest.$ac_ext >&5 | | |
| | |
fi | | |
rm -f conftest.err conftest.$ac_objext \ | | |
conftest$ac_exeext conftest.$ac_ext | | |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | | |
| | |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | | |
# Warning - without using the other run time loading flags, | | |
# -berok will link without error, but may produce a broken library. | | |
no_undefined_flag_F77=' ${wl}-bernotok' | | |
allow_undefined_flag_F77=' ${wl}-berok' | | |
# Exported symbols can be pulled into shared objects from archives | | |
whole_archive_flag_spec_F77='$convenience' | | |
archive_cmds_need_lc_F77=yes | | |
# This is similar to how AIX traditionally builds its shared libraries. | | |
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' | | |
fi | | |
fi | | fi |
;; | | ;; |
| | |
amigaos*) | | mingw* | pw32* | os2*) |
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)' | | # This hack is so that the source file can tell whether it is being |
hardcode_libdir_flag_spec_F77='-L$libdir' | | # built for inclusion in a dll (and should export symbols for example). |
hardcode_minus_L_F77=yes | | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
# see comment about different semantics on the GNU ld section | | |
ld_shlibs_F77=no | | |
;; | | ;; |
| | |
bsdi[45]*) | | hpux9* | hpux10* | hpux11*) |
export_dynamic_flag_spec_F77=-rdynamic | | lt_prog_compiler_wl_F77='-Wl,' |
| | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | # not for PA HP-UX. |
| | case "$host_cpu" in |
| | hppa*64*|ia64*) |
| | # +Z the default |
| | ;; |
| | *) |
| | lt_prog_compiler_pic_F77='+Z' |
| | ;; |
| | esac |
| | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
;; | | ;; |
| | |
cygwin* | mingw* | pw32*) | | irix5* | irix6* | nonstopux*) |
# When not using gcc, we currently assume that we are using | | lt_prog_compiler_wl_F77='-Wl,' |
# Microsoft Visual C++. | | # PIC (with -KPIC) is the default. |
# hardcode_libdir_flag_spec is actually meaningless, as there is | | lt_prog_compiler_static_F77='-non_shared' |
# no search path for DLLs. | | |
hardcode_libdir_flag_spec_F77=' ' | | |
allow_undefined_flag_F77=unsupported | | |
# Tell ltmain to make .lib files, not .a files. | | |
libext=lib | | |
# Tell ltmain to make .dll files, not .so files. | | |
shrext_cmds=".dll" | | |
# FIXME: Setting linknames here is a bad hack. | | |
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | | |
# The linker will automatically build a .lib file if we build a DLL. | | |
old_archive_From_new_cmds_F77='true' | | |
# FIXME: Should let the user specify the lib program. | | |
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | | |
fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | | |
enable_shared_with_static_runtimes_F77=yes | | |
;; | | ;; |
| | |
darwin* | rhapsody*) | | newsos6) |
case $host_os in | | lt_prog_compiler_pic_F77='-KPIC' |
rhapsody* | darwin1.[012]) | | lt_prog_compiler_static_F77='-Bstatic' |
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | | |
;; | | ;; |
*) # Darwin 1.3 on | | |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | | linux*) |
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | case $CC in |
else | | icc* | ecc*) |
case ${MACOSX_DEPLOYMENT_TARGET} in | | lt_prog_compiler_wl_F77='-Wl,' |
10.[012]) | | lt_prog_compiler_pic_F77='-KPIC' |
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | lt_prog_compiler_static_F77='-static' |
;; | | ;; |
10.*) | | ccc*) |
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | | lt_prog_compiler_wl_F77='-Wl,' |
| | # All Alpha code is PIC. |
| | lt_prog_compiler_static_F77='-non_shared' |
;; | | ;; |
esac | | esac |
fi | | |
;; | | ;; |
esac | | |
archive_cmds_need_lc_F77=no | | osf3* | osf4* | osf5*) |
hardcode_direct_F77=no | | lt_prog_compiler_wl_F77='-Wl,' |
hardcode_automatic_F77=yes | | # All OSF/1 code is PIC. |
hardcode_shlibpath_var_F77=unsupported | | lt_prog_compiler_static_F77='-non_shared' |
whole_archive_flag_spec_F77='' | | |
link_all_deplibs_F77=yes | | |
if test "$GCC" = yes ; then | | |
output_verbose_link_cmd='echo' | | |
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
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}' | | |
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}' | | |
else | | |
case $cc_basename in | | |
xlc*) | | |
output_verbose_link_cmd='echo' | | |
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | | |
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
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}' | | |
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}' | | |
;; | | ;; |
*) | | |
ld_shlibs_F77=no | | sco3.2v5*) |
| | lt_prog_compiler_pic_F77='-Kpic' |
| | lt_prog_compiler_static_F77='-dn' |
;; | | ;; |
esac | | |
fi | | solaris*) |
| | lt_prog_compiler_wl_F77='-Wl,' |
| | lt_prog_compiler_pic_F77='-KPIC' |
| | lt_prog_compiler_static_F77='-Bstatic' |
;; | | ;; |
| | |
dgux*) | | sunos4*) |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | | lt_prog_compiler_wl_F77='-Qoption ld ' |
hardcode_libdir_flag_spec_F77='-L$libdir' | | lt_prog_compiler_pic_F77='-PIC' |
hardcode_shlibpath_var_F77=no | | lt_prog_compiler_static_F77='-Bstatic' |
;; | | ;; |
| | |
freebsd1*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
ld_shlibs_F77=no | | lt_prog_compiler_wl_F77='-Wl,' |
| | lt_prog_compiler_pic_F77='-KPIC' |
| | lt_prog_compiler_static_F77='-Bstatic' |
;; | | ;; |
| | |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | | sysv4*MP*) |
# support. Future versions do this automatically, but an explicit c++rt0.o | | if test -d /usr/nec ;then |
# does not break anything, and helps significantly (at the cost of a little | | lt_prog_compiler_pic_F77='-Kconform_pic' |
# extra space). | | lt_prog_compiler_static_F77='-Bstatic' |
freebsd2.2*) | | fi |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | | |
hardcode_libdir_flag_spec_F77='-R$libdir' | | |
hardcode_direct_F77=yes | | |
hardcode_shlibpath_var_F77=no | | |
;; | | ;; |
| | |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. | | uts4*) |
freebsd2*) | | lt_prog_compiler_pic_F77='-pic' |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | | lt_prog_compiler_static_F77='-Bstatic' |
hardcode_direct_F77=yes | | |
hardcode_minus_L_F77=yes | | |
hardcode_shlibpath_var_F77=no | | |
;; | | ;; |
| | |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. | | *) |
freebsd* | kfreebsd*-gnu | dragonfly*) | | lt_prog_compiler_can_build_shared_F77=no |
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | | |
hardcode_libdir_flag_spec_F77='-R$libdir' | | |
hardcode_direct_F77=yes | | |
hardcode_shlibpath_var_F77=no | | |
;; | | ;; |
| | esac |
| | fi |
| | |
hpux9*) | | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
if test "$GCC" = yes; then | | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
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' | | |
else | | |
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' | | |
fi | | |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | | |
hardcode_libdir_separator_F77=: | | |
hardcode_direct_F77=yes | | |
| | |
# hardcode_minus_L: Not really in the search PATH, | | # |
# but as the default location of the library. | | # Check to make sure the PIC flag actually works. |
hardcode_minus_L_F77=yes | | # |
export_dynamic_flag_spec_F77='${wl}-E' | | if test -n "$lt_prog_compiler_pic_F77"; then |
;; | | |
| | |
hpux10*) | | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then | | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
else | | else |
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | | lt_prog_compiler_pic_works_F77=no |
| | ac_outfile=conftest.$ac_objext |
| | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| | # Insert the option either (1) after the last *FLAGS variable, or |
| | # (2) before a word containing "conftest.", or (3) at the end. |
| | # Note that $ac_compile itself does not contain backslashes and begins |
| | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | # The option is referenced via a variable to avoid confusing sed. |
| | lt_compile=`echo "$ac_compile" | $SED \ |
| | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | -e 's:$: $lt_compiler_flag:'` |
| | (eval echo "\"\$as_me:13397: $lt_compile\"" >&5) |
| | (eval "$lt_compile" 2>conftest.err) |
| | ac_status=$? |
| | cat conftest.err >&5 |
| | echo "$as_me:13401: \$? = $ac_status" >&5 |
| | if (exit $ac_status) && test -s "$ac_outfile"; then |
| | # The compiler can only warn and ignore the option if not recognized |
| | # So say no if there are warnings |
| | if test ! -s conftest.err; then |
| | lt_prog_compiler_pic_works_F77=yes |
fi | | fi |
if test "$with_gnu_ld" = no; then | | fi |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | | $rm conftest* |
hardcode_libdir_separator_F77=: | | |
| | |
hardcode_direct_F77=yes | | |
export_dynamic_flag_spec_F77='${wl}-E' | | |
| | |
# hardcode_minus_L: Not really in the search PATH, | | |
# but as the default location of the library. | | |
hardcode_minus_L_F77=yes | | |
fi | | fi |
;; | | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| | |
hpux11*) | | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then | | case $lt_prog_compiler_pic_F77 in |
case $host_cpu in | | "" | " "*) ;; |
hppa*64*) | | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
ia64*) | | |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
esac | | esac |
else | | else |
case $host_cpu in | | lt_prog_compiler_pic_F77= |
hppa*64*) | | lt_prog_compiler_can_build_shared_F77=no |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
ia64*) | | |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
esac | | |
fi | | fi |
if test "$with_gnu_ld" = no; then | | |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | | |
hardcode_libdir_separator_F77=: | | |
| | |
case $host_cpu in | | fi |
hppa*64*|ia64*) | | case "$host_os" in |
hardcode_libdir_flag_spec_ld_F77='+b $libdir' | | # For platforms which do not support PIC, -DPIC is meaningless: |
hardcode_direct_F77=no | | *djgpp*) |
hardcode_shlibpath_var_F77=no | | lt_prog_compiler_pic_F77= |
;; | | ;; |
*) | | *) |
hardcode_direct_F77=yes | | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
export_dynamic_flag_spec_F77='${wl}-E' | | |
| | |
# hardcode_minus_L: Not really in the search PATH, | | |
# but as the default location of the library. | | |
hardcode_minus_L_F77=yes | | |
;; | | ;; |
esac | | esac |
fi | | |
;; | | |
| | |
irix5* | irix6* | nonstopux*) | | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
if test "$GCC" = yes; then | | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
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' | | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
else | | else |
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' | | lt_cv_prog_compiler_c_o_F77=no |
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | | $rm -r conftest 2>/dev/null |
| | mkdir conftest |
| | cd conftest |
| | mkdir out |
| | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | |
| | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| | # Insert the option either (1) after the last *FLAGS variable, or |
| | # (2) before a word containing "conftest.", or (3) at the end. |
| | # Note that $ac_compile itself does not contain backslashes and begins |
| | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | lt_compile=`echo "$ac_compile" | $SED \ |
| | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | -e 's:$: $lt_compiler_flag:'` |
| | (eval echo "\"\$as_me:13457: $lt_compile\"" >&5) |
| | (eval "$lt_compile" 2>out/conftest.err) |
| | ac_status=$? |
| | cat out/conftest.err >&5 |
| | echo "$as_me:13461: \$? = $ac_status" >&5 |
| | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| | then |
| | # The compiler can only warn and ignore the option if not recognized |
| | # So say no if there are warnings |
| | if test ! -s out/conftest.err; then |
| | lt_cv_prog_compiler_c_o_F77=yes |
fi | | fi |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | | fi |
hardcode_libdir_separator_F77=: | | chmod u+w . |
link_all_deplibs_F77=yes | | $rm conftest* |
;; | | # SGI C++ compiler will create directory out/ii_files/ for |
| | # template instantiation |
| | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| | $rm out/* && rmdir out |
| | cd .. |
| | rmdir conftest |
| | $rm conftest* |
| | |
netbsd*) | | |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | | |
else | | |
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | | |
fi | | fi |
hardcode_libdir_flag_spec_F77='-R$libdir' | | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
hardcode_direct_F77=yes | | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
hardcode_shlibpath_var_F77=no | | |
;; | | |
| | |
newsos6) | | |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | | |
hardcode_direct_F77=yes | | |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | | |
hardcode_libdir_separator_F77=: | | |
hardcode_shlibpath_var_F77=no | | |
;; | | |
| | |
openbsd*) | | hard_links="nottested" |
hardcode_direct_F77=yes | | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
hardcode_shlibpath_var_F77=no | | # do not overwrite the value of need_locks provided by the user |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | | hard_links=yes |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | | $rm conftest* |
export_dynamic_flag_spec_F77='${wl}-E' | | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | touch conftest.a |
| | ln conftest.a conftest.b 2>&5 || hard_links=no |
| | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| | echo "${ECHO_T}$hard_links" >&6 |
| | if test "$hard_links" = no; then |
| | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| | need_locks=warn |
| | fi |
else | | else |
| | need_locks=no |
| | fi |
| | |
| | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| | |
| | runpath_var= |
| | allow_undefined_flag_F77= |
| | enable_shared_with_static_runtimes_F77=no |
| | archive_cmds_F77= |
| | archive_expsym_cmds_F77= |
| | old_archive_From_new_cmds_F77= |
| | old_archive_from_expsyms_cmds_F77= |
| | export_dynamic_flag_spec_F77= |
| | whole_archive_flag_spec_F77= |
| | thread_safe_flag_spec_F77= |
| | hardcode_libdir_flag_spec_F77= |
| | hardcode_libdir_flag_spec_ld_F77= |
| | hardcode_libdir_separator_F77= |
| | hardcode_direct_F77=no |
| | hardcode_minus_L_F77=no |
| | hardcode_shlibpath_var_F77=unsupported |
| | link_all_deplibs_F77=unknown |
| | hardcode_automatic_F77=no |
| | module_cmds_F77= |
| | module_expsym_cmds_F77= |
| | always_export_symbols_F77=no |
| | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | # include_expsyms should be a list of space-separated symbols to be *always* |
| | # included in the symbol list |
| | include_expsyms_F77= |
| | # exclude_expsyms can be an extended regexp of symbols to exclude |
| | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| | # as well as any symbol that contains `d'. |
| | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| | # platforms (ab)use it in PIC code, but their linkers get confused if |
| | # the symbol is explicitly referenced. Since portable code cannot |
| | # rely on this symbol name, it's probably fine to never include it in |
| | # preloaded symbol tables. |
| | extract_expsyms_cmds= |
| | |
case $host_os in | | case $host_os in |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | | cygwin* | mingw* | pw32*) |
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
hardcode_libdir_flag_spec_F77='-R$libdir' | | # When not using gcc, we currently assume that we are using |
| | # Microsoft Visual C++. |
| | if test "$GCC" != yes; then |
| | with_gnu_ld=no |
| | fi |
;; | | ;; |
*) | | openbsd*) |
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | | with_gnu_ld=no |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | | |
;; | | ;; |
esac | | esac |
fi | | |
;; | | |
| | |
os2*) | | ld_shlibs_F77=yes |
hardcode_libdir_flag_spec_F77='-L$libdir' | | if test "$with_gnu_ld" = yes; then |
hardcode_minus_L_F77=yes | | # If archive_cmds runs LD, not CC, wlarc should be empty |
allow_undefined_flag_F77=unsupported | | wlarc='${wl}' |
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' | | |
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | | |
;; | | |
| | |
osf3*) | | # See if GNU ld supports shared libraries. |
if test "$GCC" = yes; then | | case $host_os in |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | | aix3* | aix4* | aix5*) |
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' | | # On AIX/PPC, the GNU linker is very broken |
else | | if test "$host_cpu" != ia64; then |
allow_undefined_flag_F77=' -expect_unresolved \*' | | ld_shlibs_F77=no |
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' | | cat <<EOF 1>&2 |
fi | | |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | | |
hardcode_libdir_separator_F77=: | | |
;; | | |
| | |
osf4* | osf5*) # as osf3* with the addition of -msym flag | | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
if test "$GCC" = yes; then | | *** to be unable to reliably create shared libraries on AIX. |
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | | *** Therefore, libtool is disabling shared libraries support. If you |
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' | | *** really care for shared libraries, you may want to modify your PATH |
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | | *** so that a non-GNU linker is found, and then restart. |
else | | |
allow_undefined_flag_F77=' -expect_unresolved \*' | | |
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' | | |
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~ | | |
$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' | | |
| | |
# Both c and cxx compiler support -rpath directly | | EOF |
hardcode_libdir_flag_spec_F77='-rpath $libdir' | | |
fi | | fi |
hardcode_libdir_separator_F77=: | | |
;; | | ;; |
| | |
solaris*) | | amigaos*) |
no_undefined_flag_F77=' -z text' | | 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)' |
if test "$GCC" = yes; then | | hardcode_libdir_flag_spec_F77='-L$libdir' |
wlarc='${wl}' | | hardcode_minus_L_F77=yes |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | | # that the semantics of dynamic libraries on AmigaOS, at least up |
else | | # to version 4, is to share data among multiple programs linked |
wlarc='' | | # with the same dynamic library. Since this doesn't match the |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | | # behavior of shared libraries on other platforms, we can't use |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | # them. |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | | ld_shlibs_F77=no |
fi | | |
hardcode_libdir_flag_spec_F77='-R$libdir' | | |
hardcode_shlibpath_var_F77=no | | |
case $host_os in | | |
solaris2.[0-5] | solaris2.[0-5].*) ;; | | |
*) | | |
# The compiler driver will combine linker options so we | | |
# cannot just pass the convience library names through | | |
# without $wl, iff we do not link with $LD. | | |
# Luckily, gcc supports the same syntax we need for Sun Studio. | | |
# Supported since Solaris 2.6 (maybe 2.5.1?) | | |
case $wlarc in | | |
'') | | |
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | | |
*) | | |
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' ;; | | |
esac ;; | | |
esac | | |
link_all_deplibs_F77=yes | | |
;; | | ;; |
| | |
sunos4*) | | beos*) |
if test "x$host_vendor" = xsequent; then | | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
# Use $CC to link under sequent, because it throws in some extra .o | | allow_undefined_flag_F77=unsupported |
# files that make .init and .fini sections work. | | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | | # support --undefined. This deserves some investigation. FIXME |
| | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
else | | else |
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | | ld_shlibs_F77=no |
fi | | fi |
hardcode_libdir_flag_spec_F77='-L$libdir' | | |
hardcode_direct_F77=yes | | |
hardcode_minus_L_F77=yes | | |
hardcode_shlibpath_var_F77=no | | |
;; | | ;; |
| | |
sysv4) | | cygwin* | mingw* | pw32*) |
case $host_vendor in | | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
sni) | | # as there is no search path for DLLs. |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | | hardcode_libdir_flag_spec_F77='-L$libdir' |
hardcode_direct_F77=yes # is this really true??? | | allow_undefined_flag_F77=unsupported |
;; | | always_export_symbols_F77=no |
siemens) | | enable_shared_with_static_runtimes_F77=yes |
## LD is ld it makes a PLAMLIB | | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
## CC just makes a GrossModule. | | |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | | |
reload_cmds_F77='$CC -r -o $output$reload_objs' | | |
hardcode_direct_F77=no | | |
;; | | |
motorola) | | |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | | |
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | | |
;; | | |
esac | | |
runpath_var='LD_RUN_PATH' | | |
hardcode_shlibpath_var_F77=no | | |
;; | | |
| | |
sysv4.3*) | | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
hardcode_shlibpath_var_F77=no | | # If the export-symbols file already is a .def file (1st line |
export_dynamic_flag_spec_F77='-Bexport' | | # is EXPORTS), use it as is; otherwise, prepend... |
| | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | cp $export_symbols $output_objdir/$soname.def; |
| | else |
| | echo EXPORTS > $output_objdir/$soname.def; |
| | cat $export_symbols >> $output_objdir/$soname.def; |
| | fi~ |
| | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| | else |
| | ld_shlibs=no |
| | fi |
;; | | ;; |
| | |
sysv4*MP*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if test -d /usr/nec; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
hardcode_shlibpath_var_F77=no | | wlarc= |
runpath_var=LD_RUN_PATH | | else |
hardcode_runpath_var=yes | | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
ld_shlibs_F77=yes | | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
fi | | fi |
;; | | ;; |
| | |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | | solaris* | sysv5*) |
no_undefined_flag_F77='${wl}-z,text' | | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
archive_cmds_need_lc_F77=no | | ld_shlibs_F77=no |
hardcode_shlibpath_var_F77=no | | cat <<EOF 1>&2 |
runpath_var='LD_RUN_PATH' | | |
| | |
if test "$GCC" = yes; then | | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | *** create shared libraries on Solaris systems. Therefore, libtool |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | *** is disabling shared libraries support. We urge you to upgrade GNU |
| | *** binutils to release 2.9.1 or newer. Another option is to modify |
| | *** your PATH or compiler configuration so that the native linker is |
| | *** used, and then restart. |
| | |
| | EOF |
| | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
else | | else |
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | ld_shlibs_F77=no |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6*) | | sunos4*) |
# Note: We can NOT use -z defs as we might desire, because we do not | | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
# link with -lc, and that would cause any symbols used from libc to | | wlarc= |
# always be unresolved, which means just about no library would | | hardcode_direct_F77=yes |
# ever link correctly. If we're not using GNU ld we use -z text | | |
# though, which does catch some bad symbols but isn't as heavy-handed | | |
# as -z defs. | | |
no_undefined_flag_F77='${wl}-z,text' | | |
allow_undefined_flag_F77='${wl}-z,nodefs' | | |
archive_cmds_need_lc_F77=no | | |
hardcode_shlibpath_var_F77=no | | hardcode_shlibpath_var_F77=no |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | | ;; |
hardcode_libdir_separator_F77=':' | | |
link_all_deplibs_F77=yes | | |
export_dynamic_flag_spec_F77='${wl}-Bexport' | | |
runpath_var='LD_RUN_PATH' | | |
| | |
if test "$GCC" = yes; then | | linux*) |
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | archive_cmds_F77="$tmp_archive_cmds" |
| | supports_anon_versioning=no |
| | case `$LD -v 2>/dev/null` in |
| | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| | *\ 2.11.*) ;; # other 2.11 versions |
| | *) supports_anon_versioning=yes ;; |
| | esac |
| | if test $supports_anon_versioning = yes; then |
| | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
else | | else |
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_expsym_cmds_F77="$tmp_archive_cmds" |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | fi |
| | link_all_deplibs_F77=no |
| | else |
| | ld_shlibs_F77=no |
fi | | fi |
;; | | |
| | |
uts4*) | | |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | | |
hardcode_libdir_flag_spec_F77='-L$libdir' | | |
hardcode_shlibpath_var_F77=no | | |
;; | | ;; |
| | |
*) | | *) |
| | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| | else |
ld_shlibs_F77=no | | ld_shlibs_F77=no |
| | fi |
;; | | ;; |
esac | | esac |
| | |
| | if test "$ld_shlibs_F77" = yes; then |
| | runpath_var=LD_RUN_PATH |
| | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| | # ancient GNU ld didn't support --whole-archive et. al. |
| | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | else |
| | whole_archive_flag_spec_F77= |
| | fi |
| | fi |
| | else |
| | # PORTME fill in a description of your system's linker (not GNU ld) |
| | case $host_os in |
| | aix3*) |
| | allow_undefined_flag_F77=unsupported |
| | always_export_symbols_F77=yes |
| | 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' |
| | # Note: this linker hardcodes the directories in LIBPATH if there |
| | # are no directories specified by -L. |
| | hardcode_minus_L_F77=yes |
| | if test "$GCC" = yes && test -z "$link_static_flag"; then |
| | # Neither direct hardcoding nor static linking is supported with a |
| | # broken collect2. |
| | hardcode_direct_F77=unsupported |
fi | | fi |
| | ;; |
| | |
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | | aix4* | aix5*) |
echo "${ECHO_T}$ld_shlibs_F77" >&6 | | if test "$host_cpu" = ia64; then |
test "$ld_shlibs_F77" = no && can_build_shared=no | | # On IA64, the linker does run time linking by default, so we don't |
| | # have to do anything special. |
| | aix_use_runtimelinking=no |
| | exp_sym_flag='-Bexport' |
| | no_entry_flag="" |
| | else |
| | # If we're using GNU nm, then we don't want the "-C" option. |
| | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| | 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' |
| | else |
| | 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' |
| | fi |
| | aix_use_runtimelinking=no |
| | |
# | | # Test if we are trying to use run time linking or normal |
# Do we need to explicitly link libc? | | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
# | | # need to do runtime linking. |
case "x$archive_cmds_need_lc_F77" in | | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
x|xyes) | | for ld_flag in $LDFLAGS; do |
# Assume -lc should be added | | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
archive_cmds_need_lc_F77=yes | | aix_use_runtimelinking=yes |
| | break |
if test "$enable_shared" = yes && test "$GCC" = yes; then | | |
case $archive_cmds_F77 in | | |
*'~'*) | | |
# FIXME: we may have to deal with multi-command sequences. | | |
;; | | |
'$CC '*) | | |
# Test whether the compiler implicitly links with -lc since on some | | |
# systems, -lgcc has to come before -lc. If gcc already passes -lc | | |
# to ld, don't add -lc before -lgcc. | | |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | | |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | | |
$rm conftest* | | |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext | | |
| | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | | |
(eval $ac_compile) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); } 2>conftest.err; then | | |
soname=conftest | | |
lib=conftest | | |
libobjs=conftest.$ac_objext | | |
deplibs= | | |
wl=$lt_prog_compiler_wl_F77 | | |
pic_flag=$lt_prog_compiler_pic_F77 | | |
compiler_flags=-v | | |
linker_flags=-v | | |
verstring= | | |
output_objdir=. | | |
libname=conftest | | |
lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | | |
allow_undefined_flag_F77= | | |
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | | |
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); } | | |
then | | |
archive_cmds_need_lc_F77=no | | |
else | | |
archive_cmds_need_lc_F77=yes | | |
fi | | |
allow_undefined_flag_F77=$lt_save_allow_undefined_flag | | |
else | | |
cat conftest.err 1>&5 | | |
fi | | |
$rm conftest* | | |
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | | |
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | | |
;; | | |
esac | | |
fi | | fi |
;; | | done |
esac | | esac |
| | |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | | exp_sym_flag='-bexport' |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | | no_entry_flag='-bnoentry' |
library_names_spec= | | |
libname_spec='lib$name' | | |
soname_spec= | | |
shrext_cmds=".so" | | |
postinstall_cmds= | | |
postuninstall_cmds= | | |
finish_cmds= | | |
finish_eval= | | |
shlibpath_var= | | |
shlibpath_overrides_runpath=unknown | | |
version_type=none | | |
dynamic_linker="$host_os ld.so" | | |
sys_lib_dlsearch_path_spec="/lib /usr/lib" | | |
if test "$GCC" = yes; then | | |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | | |
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | | |
# if the path contains ";" then we assume it to be the separator | | |
# otherwise default to the standard path separator (i.e. ":") - it is | | |
# assumed that no part of a normal pathname contains ";" but that should | | |
# okay in the real world where ";" in dirpaths is itself problematic. | | |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | | |
else | | |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | | |
fi | | |
else | | |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | | |
fi | | fi |
need_lib_prefix=unknown | | |
hardcode_into_libs=no | | |
| | |
# when you set need_version to no, make sure it does not cause -set_version | | |
# flags to be left without arguments | | |
need_version=unknown | | |
| | |
case $host_os in | | # When large executables or shared objects are built, AIX ld can |
aix3*) | | # have problems creating the table of contents. If linking a library |
version_type=linux | | # or program results in "error TOC overflow" add -mminimal-toc to |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
shlibpath_var=LIBPATH | | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| | |
# AIX 3 has no versioning support, so we append a major version to the name. | | archive_cmds_F77='' |
soname_spec='${libname}${release}${shared_ext}$major' | | hardcode_direct_F77=yes |
;; | | hardcode_libdir_separator_F77=':' |
| | link_all_deplibs_F77=yes |
| | |
aix4* | aix5*) | | if test "$GCC" = yes; then |
version_type=linux | | case $host_os in aix4.012|aix4.012.*) |
need_lib_prefix=no | | # We only want to do this on AIX 4.2 and lower, the check |
need_version=no | | # below for broken collect2 doesn't work under 4.3+ |
hardcode_into_libs=yes | | collect2name=`${CC} -print-prog-name=collect2` |
if test "$host_cpu" = ia64; then | | if test -f "$collect2name" && \ |
# AIX 5 supports IA64 | | strings "$collect2name" | grep resolve_lib_name >/dev/null |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | | then |
shlibpath_var=LD_LIBRARY_PATH | | # We have reworked collect2 |
else | | hardcode_direct_F77=yes |
# With GCC up to 2.95.x, collect2 would create an import file | | |
# for dependence libraries. The import file would start with | | |
# the line `#! .'. This would cause the generated library to | | |
# depend on `.', always an invalid library. This was fixed in | | |
# development snapshots of GCC prior to 3.0. | | |
case $host_os in | | |
aix4 | aix4.[01] | aix4.[01].*) | | |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | | |
echo ' yes ' | | |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | | |
: | | |
else | | else |
can_build_shared=no | | # We have old collect2 |
| | hardcode_direct_F77=unsupported |
| | # It fails to find uninstalled libraries when the uninstalled |
| | # path is not listed in the libpath. Setting hardcode_minus_L |
| | # to unsupported forces relinking |
| | hardcode_minus_L_F77=yes |
| | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | hardcode_libdir_separator_F77= |
fi | | fi |
;; | | |
esac | | esac |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct | | shared_flag='-shared' |
# soname into executable. Probably we can add versioning support to | | else |
# collect2, so additional links can be useful in future. | | # not using gcc |
| | if test "$host_cpu" = ia64; then |
| | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| | # chokes on -Wl,-G. The following line is correct: |
| | shared_flag='-G' |
| | else |
if test "$aix_use_runtimelinking" = yes; then | | if test "$aix_use_runtimelinking" = yes; then |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so | | shared_flag='${wl}-G' |
# instead of lib<name>.a to let people know that these are not | | |
# typical AIX shared libraries. | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
else | | else |
# We preserve .a as extension for shared libraries through AIX4.2 | | shared_flag='${wl}-bM:SRE' |
# and later when we are not doing run time linking. | | fi |
library_names_spec='${libname}${release}.a $libname.a' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
fi | | fi |
shlibpath_var=LIBPATH | | |
fi | | fi |
;; | | |
| | |
amigaos*) | | # It seems that -bexpall does not export symbols beginning with |
library_names_spec='$libname.ixlibrary $libname.a' | | # underscore (_), so it is better to generate a list of symbols to export. |
# Create ${libname}_ixlibrary.a entries in /sys/libs. | | always_export_symbols_F77=yes |
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' | | if test "$aix_use_runtimelinking" = yes; then |
;; | | # Warning - without using the other runtime loading flags (-brtl), |
| | # -berok will link without error, but may produce a broken library. |
| | allow_undefined_flag_F77='-berok' |
| | # Determine the default libpath from the value encoded in an empty executable. |
| | cat >conftest.$ac_ext <<_ACEOF |
| | program main |
| | |
beos*) | | end |
library_names_spec='${libname}${shared_ext}' | | _ACEOF |
dynamic_linker="$host_os ld.so" | | rm -f conftest.$ac_objext conftest$ac_exeext |
shlibpath_var=LIBRARY_PATH | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
;; | | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | |
bsdi[45]*) | | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
version_type=linux | | }'` |
need_version=no | | # Check for a 64-bit object if we didn't find anything. |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | 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; } |
soname_spec='${libname}${release}${shared_ext}$major' | | }'`; fi |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | | else |
shlibpath_var=LD_LIBRARY_PATH | | echo "$as_me: failed program was:" >&5 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | | sed 's/^/| /' conftest.$ac_ext >&5 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | | |
# the default ld.so.conf also contains /usr/contrib/lib and | | |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | | |
# libtool to hard-code these into programs | | |
;; | | |
| | |
cygwin* | mingw* | pw32*) | | fi |
version_type=windows | | rm -f conftest.err conftest.$ac_objext \ |
shrext_cmds=".dll" | | conftest$ac_exeext conftest.$ac_ext |
need_version=no | | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
need_lib_prefix=no | | |
| | |
case $GCC,$host_os in | | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
yes,cygwin* | yes,mingw* | yes,pw32*) | | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
library_names_spec='$libname.dll.a' | | else |
# DLL is installed to $(libdir)/../bin by postinstall_cmds | | if test "$host_cpu" = ia64; then |
postinstall_cmds='base_file=`basename \${file}`~ | | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | | allow_undefined_flag_F77="-z nodefs" |
dldir=$destdir/`dirname \$dlpath`~ | | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
test -d \$dldir || mkdir -p \$dldir~ | | else |
$install_prog $dir/$dlname \$dldir/$dlname~ | | # Determine the default libpath from the value encoded in an empty executable. |
chmod a+x \$dldir/$dlname' | | cat >conftest.$ac_ext <<_ACEOF |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | | program main |
dlpath=$dir/\$dldll~ | | |
$rm \$dlpath' | | |
shlibpath_overrides_runpath=yes | | |
| | |
case $host_os in | | end |
cygwin*) | | _ACEOF |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' | | rm -f conftest.$ac_objext conftest$ac_exeext |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | | (eval $ac_link) 2>conftest.er1 |
;; | | ac_status=$? |
mingw*) | | grep -v '^ *+' conftest.er1 >conftest.err |
# MinGW DLLs use traditional 'lib' prefix | | rm -f conftest.er1 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | | cat conftest.err >&5 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | | (exit $ac_status); } && |
# It is most probably a Windows format PATH printed by | | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
# mingw gcc, but we are running on Cygwin. Gcc prints its search | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
# path with ; separators, and with drive letters. We can handle the | | (eval $ac_try) 2>&5 |
# drive letters (cygwin fileutils understands them), so leave them, | | ac_status=$? |
# especially as we might pass files found there to a mingw objdump, | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
# which wouldn't understand a cygwinified path. Ahh. | | (exit $ac_status); }; } && |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | |
| | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| | }'` |
| | # Check for a 64-bit object if we didn't find anything. |
| | 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; } |
| | }'`; fi |
else | | else |
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
| | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | |
| | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | # Warning - without using the other run time loading flags, |
| | # -berok will link without error, but may produce a broken library. |
| | no_undefined_flag_F77=' ${wl}-bernotok' |
| | allow_undefined_flag_F77=' ${wl}-berok' |
| | # -bexpall does not export symbols beginning with underscore (_) |
| | always_export_symbols_F77=yes |
| | # Exported symbols can be pulled into shared objects from archives |
| | whole_archive_flag_spec_F77=' ' |
| | archive_cmds_need_lc_F77=yes |
| | # This is similar to how AIX traditionally builds it's shared libraries. |
| | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| | fi |
fi | | fi |
;; | | ;; |
pw32*) | | |
# pw32 DLLs use 'pw' prefix rather than 'lib' | | amigaos*) |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | | 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)' |
;; | | hardcode_libdir_flag_spec_F77='-L$libdir' |
esac | | hardcode_minus_L_F77=yes |
| | # see comment about different semantics on the GNU ld section |
| | ld_shlibs_F77=no |
;; | | ;; |
| | |
*) | | bsdi4*) |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | | export_dynamic_flag_spec_F77=-rdynamic |
;; | | ;; |
esac | | |
dynamic_linker='Win32 ld.exe' | | cygwin* | mingw* | pw32*) |
# FIXME: first we should search . and the directory the executable is in | | # When not using gcc, we currently assume that we are using |
shlibpath_var=PATH | | # Microsoft Visual C++. |
| | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| | # no search path for DLLs. |
| | hardcode_libdir_flag_spec_F77=' ' |
| | allow_undefined_flag_F77=unsupported |
| | # Tell ltmain to make .lib files, not .a files. |
| | libext=lib |
| | # Tell ltmain to make .dll files, not .so files. |
| | shrext_cmds=".dll" |
| | # FIXME: Setting linknames here is a bad hack. |
| | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| | # The linker will automatically build a .lib file if we build a DLL. |
| | old_archive_From_new_cmds_F77='true' |
| | # FIXME: Should let the user specify the lib program. |
| | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| | enable_shared_with_static_runtimes_F77=yes |
;; | | ;; |
| | |
darwin* | rhapsody*) | | darwin* | rhapsody*) |
dynamic_linker="$host_os dyld" | | if test "$GXX" = yes ; then |
version_type=darwin | | archive_cmds_need_lc_F77=no |
need_lib_prefix=no | | case "$host_os" in |
need_version=no | | rhapsody* | darwin1.[012]) |
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | | allow_undefined_flag_F77='-undefined suppress' |
soname_spec='${libname}${release}${major}$shared_ext' | | ;; |
shlibpath_overrides_runpath=yes | | *) # Darwin 1.3 on |
shlibpath_var=DYLD_LIBRARY_PATH | | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | | |
if test "$GCC" = yes; then | | |
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"` | | |
else | | else |
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | | case ${MACOSX_DEPLOYMENT_TARGET} in |
| | 10.[012]) |
| | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
| | ;; |
| | 10.*) |
| | allow_undefined_flag_F77='-undefined dynamic_lookup' |
| | ;; |
| | esac |
| | fi |
| | ;; |
| | esac |
| | lt_int_apple_cc_single_mod=no |
| | output_verbose_link_cmd='echo' |
| | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| | lt_int_apple_cc_single_mod=yes |
| | fi |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| | else |
| | archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' |
| | fi |
| | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | archive_expsym_cmds_F77='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}' |
| | else |
| | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
| | fi |
| | 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}' |
| | hardcode_direct_F77=no |
| | hardcode_automatic_F77=yes |
| | hardcode_shlibpath_var_F77=unsupported |
| | whole_archive_flag_spec_F77='-all_load $convenience' |
| | link_all_deplibs_F77=yes |
| | else |
| | ld_shlibs_F77=no |
fi | | fi |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | | |
;; | | ;; |
| | |
dgux*) | | dgux*) |
version_type=linux | | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
need_lib_prefix=no | | hardcode_libdir_flag_spec_F77='-L$libdir' |
need_version=no | | hardcode_shlibpath_var_F77=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
;; | | ;; |
| | |
freebsd1*) | | freebsd1*) |
dynamic_linker=no | | ld_shlibs_F77=no |
;; | | ;; |
| | |
kfreebsd*-gnu) | | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
version_type=linux | | # support. Future versions do this automatically, but an explicit c++rt0.o |
need_lib_prefix=no | | # does not break anything, and helps significantly (at the cost of a little |
need_version=no | | # extra space). |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | freebsd2.2*) |
soname_spec='${libname}${release}${shared_ext}$major' | | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
shlibpath_var=LD_LIBRARY_PATH | | hardcode_libdir_flag_spec_F77='-R$libdir' |
shlibpath_overrides_runpath=no | | hardcode_direct_F77=yes |
hardcode_into_libs=yes | | hardcode_shlibpath_var_F77=no |
dynamic_linker='GNU ld.so' | | ;; |
| | |
| | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| | freebsd2*) |
| | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| | hardcode_direct_F77=yes |
| | hardcode_minus_L_F77=yes |
| | hardcode_shlibpath_var_F77=no |
| | ;; |
| | |
| | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| | freebsd* | kfreebsd*-gnu) |
| | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| | hardcode_libdir_flag_spec_F77='-R$libdir' |
| | hardcode_direct_F77=yes |
| | hardcode_shlibpath_var_F77=no |
;; | | ;; |
| | |
freebsd* | dragonfly*) | | hpux9*) |
# DragonFly does not have aout. When/if they implement a new | | if test "$GCC" = yes; then |
# versioning mechanism, adjust this. | | 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' |
if test -x /usr/bin/objformat; then | | |
objformat=`/usr/bin/objformat` | | |
else | | else |
case $host_os in | | 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' |
freebsd[123]*) objformat=aout ;; | | |
*) objformat=elf ;; | | |
esac | | |
fi | | fi |
version_type=freebsd-$objformat | | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
case $version_type in | | hardcode_libdir_separator_F77=: |
freebsd-elf*) | | hardcode_direct_F77=yes |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | | |
need_version=no | | # hardcode_minus_L: Not really in the search PATH, |
need_lib_prefix=no | | # but as the default location of the library. |
| | hardcode_minus_L_F77=yes |
| | export_dynamic_flag_spec_F77='${wl}-E' |
;; | | ;; |
freebsd-*) | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | | hpux10* | hpux11*) |
need_version=yes | | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| | case "$host_cpu" in |
| | hppa*64*|ia64*) |
| | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | ;; |
| | *) |
| | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
;; | | ;; |
esac | | esac |
shlibpath_var=LD_LIBRARY_PATH | | else |
case $host_os in | | case "$host_cpu" in |
freebsd2*) | | hppa*64*|ia64*) |
shlibpath_overrides_runpath=yes | | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
;; | | ;; |
freebsd3.[01]* | freebsdelf3.[01]*) | | *) |
shlibpath_overrides_runpath=yes | | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
hardcode_into_libs=yes | | |
;; | | |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | | |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | | |
shlibpath_overrides_runpath=no | | |
hardcode_into_libs=yes | | |
;; | | |
freebsd*) # from 4.6 on | | |
shlibpath_overrides_runpath=yes | | |
hardcode_into_libs=yes | | |
;; | | ;; |
esac | | esac |
;; | | |
| | |
gnu*) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
hardcode_into_libs=yes | | |
;; | | |
| | |
hpux9* | hpux10* | hpux11*) | | |
# Give a soname corresponding to the major version so that dld.sl refuses to | | |
# link against other versions. | | |
version_type=sunos | | |
need_lib_prefix=no | | |
need_version=no | | |
case $host_cpu in | | |
ia64*) | | |
shrext_cmds='.so' | | |
hardcode_into_libs=yes | | |
dynamic_linker="$host_os dld.so" | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
if test "X$HPUX_IA64_MODE" = X32; then | | |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | | |
else | | |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | | |
fi | | fi |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | | if test "$with_gnu_ld" = no; then |
;; | | case "$host_cpu" in |
hppa*64*) | | hppa*64*) |
shrext_cmds='.sl' | | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
hardcode_into_libs=yes | | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
dynamic_linker="$host_os dld.sl" | | hardcode_libdir_separator_F77=: |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | | hardcode_direct_F77=no |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | | hardcode_shlibpath_var_F77=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | | |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | | |
;; | | |
*) | | |
shrext_cmds='.sl' | | |
dynamic_linker="$host_os dld.sl" | | |
shlibpath_var=SHLIB_PATH | | |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
;; | | |
esac | | |
# HP-UX runs *really* slowly unless shared libraries are mode 555. | | |
postinstall_cmds='chmod 555 $lib' | | |
;; | | |
| | |
interix3*) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=no | | |
hardcode_into_libs=yes | | |
;; | | ;; |
| | ia64*) |
| | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | hardcode_direct_F77=no |
| | hardcode_shlibpath_var_F77=no |
| | |
irix5* | irix6* | nonstopux*) | | # hardcode_minus_L: Not really in the search PATH, |
case $host_os in | | # but as the default location of the library. |
nonstopux*) version_type=nonstopux ;; | | hardcode_minus_L_F77=yes |
*) | | |
if test "$lt_cv_prog_gnu_ld" = yes; then | | |
version_type=linux | | |
else | | |
version_type=irix | | |
fi ;; | | |
esac | | |
need_lib_prefix=no | | |
need_version=no | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | | |
case $host_os in | | |
irix5* | nonstopux*) | | |
libsuff= shlibsuff= | | |
;; | | ;; |
*) | | *) |
case $LD in # libtool.m4 will add one of these switches to LD | | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | | hardcode_libdir_separator_F77=: |
libsuff= shlibsuff= libmagic=32-bit;; | | hardcode_direct_F77=yes |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | | export_dynamic_flag_spec_F77='${wl}-E' |
libsuff=32 shlibsuff=N32 libmagic=N32;; | | |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | | |
libsuff=64 shlibsuff=64 libmagic=64-bit;; | | |
*) libsuff= shlibsuff= libmagic=never-match;; | | |
esac | | |
;; | | |
esac | | |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | | |
shlibpath_overrides_runpath=no | | |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | | |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | | |
hardcode_into_libs=yes | | |
;; | | |
| | |
# No shared lib support for Linux oldld, aout, or coff. | | |
linux*oldld* | linux*aout* | linux*coff*) | | |
dynamic_linker=no | | |
;; | | |
| | |
# This must be Linux ELF. | | |
linux*) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=no | | |
# This implies no fast_install, which is unacceptable. | | |
# Some rework will be needed to allow for fast_install | | |
# before this can be enabled. | | |
hardcode_into_libs=yes | | |
| | |
# find out which ABI we are using | | # hardcode_minus_L: Not really in the search PATH, |
libsuff= | | # but as the default location of the library. |
case "$host_cpu" in | | hardcode_minus_L_F77=yes |
x86_64*|s390x*|powerpc64*) | | |
echo '#line 14806 "configure"' > conftest.$ac_ext | | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | | |
(eval $ac_compile) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; then | | |
case `/usr/bin/file conftest.$ac_objext` in | | |
*64-bit*) | | |
libsuff=64 | | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | | |
;; | | ;; |
esac | | esac |
fi | | fi |
rm -rf conftest* | | |
;; | | ;; |
esac | | |
| | |
# Append ld.so.conf contents to the search path | | irix5* | irix6* | nonstopux*) |
if test -f /etc/ld.so.conf; then | | if test "$GCC" = yes; then |
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' ' '` | | 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' |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | | else |
| | 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' |
| | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
fi | | fi |
| | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
# We used to test for /lib/ld.so.1 and disable shared libraries on | | hardcode_libdir_separator_F77=: |
# powerpc, because MkLinux only supported shared libraries with the | | link_all_deplibs_F77=yes |
# GNU dynamic linker. Since this was broken with cross compilers, | | |
# most powerpc-linux boxes support dynamic linking these days and | | |
# people can always --disable-shared, the test was removed, and we | | |
# assume the GNU/Linux dynamic linker is in use. | | |
dynamic_linker='GNU/Linux ld.so' | | |
;; | | |
| | |
knetbsd*-gnu) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=no | | |
hardcode_into_libs=yes | | |
dynamic_linker='GNU ld.so' | | |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
version_type=sunos | | |
need_lib_prefix=no | | |
need_version=no | | |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | | |
dynamic_linker='NetBSD (a.out) ld.so' | | |
else | | else |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
soname_spec='${libname}${release}${shared_ext}$major' | | |
dynamic_linker='NetBSD ld.elf_so' | | |
fi | | fi |
shlibpath_var=LD_LIBRARY_PATH | | hardcode_libdir_flag_spec_F77='-R$libdir' |
shlibpath_overrides_runpath=yes | | hardcode_direct_F77=yes |
hardcode_into_libs=yes | | hardcode_shlibpath_var_F77=no |
;; | | ;; |
| | |
newsos6) | | newsos6) |
version_type=linux | | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | hardcode_direct_F77=yes |
shlibpath_var=LD_LIBRARY_PATH | | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
shlibpath_overrides_runpath=yes | | hardcode_libdir_separator_F77=: |
;; | | hardcode_shlibpath_var_F77=no |
| | |
nto-qnx*) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=yes | | |
;; | | ;; |
| | |
openbsd*) | | openbsd*) |
version_type=sunos | | hardcode_direct_F77=yes |
sys_lib_dlsearch_path_spec="/usr/lib" | | hardcode_shlibpath_var_F77=no |
need_lib_prefix=no | | |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | | |
case $host_os in | | |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; | | |
*) need_version=no ;; | | |
esac | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| | export_dynamic_flag_spec_F77='${wl}-E' |
| | else |
case $host_os in | | case $host_os in |
openbsd2.[89] | openbsd2.[89].*) | | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
shlibpath_overrides_runpath=no | | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| | hardcode_libdir_flag_spec_F77='-R$libdir' |
;; | | ;; |
*) | | *) |
shlibpath_overrides_runpath=yes | | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
;; | | ;; |
esac | | esac |
else | | |
shlibpath_overrides_runpath=yes | | |
fi | | fi |
;; | | ;; |
| | |
os2*) | | os2*) |
libname_spec='$name' | | hardcode_libdir_flag_spec_F77='-L$libdir' |
shrext_cmds=".dll" | | hardcode_minus_L_F77=yes |
need_lib_prefix=no | | allow_undefined_flag_F77=unsupported |
library_names_spec='$libname${shared_ext} $libname.a' | | 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' |
dynamic_linker='OS/2 ld.exe' | | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
shlibpath_var=LIBPATH | | |
;; | | ;; |
| | |
osf3* | osf4* | osf5*) | | osf3*) |
version_type=osf | | if test "$GCC" = yes; then |
need_lib_prefix=no | | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
need_version=no | | 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' |
soname_spec='${libname}${release}${shared_ext}$major' | | else |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | allow_undefined_flag_F77=' -expect_unresolved \*' |
shlibpath_var=LD_LIBRARY_PATH | | 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' |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | | fi |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| | hardcode_libdir_separator_F77=: |
| | ;; |
| | |
| | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| | if test "$GCC" = yes; then |
| | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| | 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' |
| | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| | else |
| | allow_undefined_flag_F77=' -expect_unresolved \*' |
| | 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' |
| | 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~ |
| | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| | |
| | # Both c and cxx compiler support -rpath directly |
| | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| | fi |
| | hardcode_libdir_separator_F77=: |
| | ;; |
| | |
| | sco3.2v5*) |
| | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | hardcode_shlibpath_var_F77=no |
| | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| | runpath_var=LD_RUN_PATH |
| | hardcode_runpath_var=yes |
;; | | ;; |
| | |
solaris*) | | solaris*) |
version_type=linux | | no_undefined_flag_F77=' -z text' |
need_lib_prefix=no | | if test "$GCC" = yes; then |
need_version=no | | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
soname_spec='${libname}${release}${shared_ext}$major' | | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
shlibpath_var=LD_LIBRARY_PATH | | else |
shlibpath_overrides_runpath=yes | | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
hardcode_into_libs=yes | | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
# ldd complains unless libraries are executable | | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
postinstall_cmds='chmod +x $lib' | | fi |
| | hardcode_libdir_flag_spec_F77='-R$libdir' |
| | hardcode_shlibpath_var_F77=no |
| | case $host_os in |
| | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| | esac |
| | link_all_deplibs_F77=yes |
;; | | ;; |
| | |
sunos4*) | | sunos4*) |
version_type=sunos | | if test "x$host_vendor" = xsequent; then |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | # Use $CC to link under sequent, because it throws in some extra .o |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | | # files that make .init and .fini sections work. |
shlibpath_var=LD_LIBRARY_PATH | | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
shlibpath_overrides_runpath=yes | | else |
if test "$with_gnu_ld" = yes; then | | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
need_lib_prefix=no | | |
fi | | fi |
need_version=yes | | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | hardcode_direct_F77=yes |
| | hardcode_minus_L_F77=yes |
| | hardcode_shlibpath_var_F77=no |
;; | | ;; |
| | |
sysv4 | sysv4.3*) | | sysv4) |
version_type=linux | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
case $host_vendor in | | case $host_vendor in |
sni) | | sni) |
shlibpath_overrides_runpath=no | | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
need_lib_prefix=no | | hardcode_direct_F77=yes # is this really true??? |
export_dynamic_flag_spec='${wl}-Blargedynsym' | | |
runpath_var=LD_RUN_PATH | | |
;; | | ;; |
siemens) | | siemens) |
need_lib_prefix=no | | ## LD is ld it makes a PLAMLIB |
| | ## CC just makes a GrossModule. |
| | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| | hardcode_direct_F77=no |
;; | | ;; |
motorola) | | motorola) |
need_lib_prefix=no | | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
need_version=no | | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
shlibpath_overrides_runpath=no | | |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | | |
;; | | ;; |
esac | | esac |
| | runpath_var='LD_RUN_PATH' |
| | hardcode_shlibpath_var_F77=no |
| | ;; |
| | |
| | sysv4.3*) |
| | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | hardcode_shlibpath_var_F77=no |
| | export_dynamic_flag_spec_F77='-Bexport' |
;; | | ;; |
| | |
sysv4*MP*) | | sysv4*MP*) |
if test -d /usr/nec ;then | | if test -d /usr/nec ;then |
version_type=linux | | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | | hardcode_shlibpath_var_F77=no |
soname_spec='$libname${shared_ext}.$major' | | runpath_var=LD_RUN_PATH |
shlibpath_var=LD_LIBRARY_PATH | | hardcode_runpath_var=yes |
| | ld_shlibs_F77=yes |
fi | | fi |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | | sysv4.2uw2*) |
version_type=freebsd-elf | | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
need_lib_prefix=no | | hardcode_direct_F77=yes |
need_version=no | | hardcode_minus_L_F77=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | | hardcode_shlibpath_var_F77=no |
soname_spec='${libname}${release}${shared_ext}$major' | | hardcode_runpath_var=yes |
shlibpath_var=LD_LIBRARY_PATH | | runpath_var=LD_RUN_PATH |
hardcode_into_libs=yes | | |
if test "$with_gnu_ld" = yes; then | | |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | | |
shlibpath_overrides_runpath=no | | |
else | | |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | | |
shlibpath_overrides_runpath=yes | | |
case $host_os in | | |
sco3.2v5*) | | |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | | |
;; | | ;; |
esac | | |
| | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| | no_undefined_flag_F77='${wl}-z ${wl}text' |
| | if test "$GCC" = yes; then |
| | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | else |
| | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
fi | | fi |
sys_lib_dlsearch_path_spec='/usr/lib' | | runpath_var='LD_RUN_PATH' |
| | hardcode_shlibpath_var_F77=no |
| | ;; |
| | |
| | sysv5*) |
| | no_undefined_flag_F77=' -z text' |
| | # $CC -shared without GNU ld will not create a library from C++ |
| | # object files and a static libstdc++, better avoid it by now |
| | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| | hardcode_libdir_flag_spec_F77= |
| | hardcode_shlibpath_var_F77=no |
| | runpath_var='LD_RUN_PATH' |
;; | | ;; |
| | |
uts4*) | | uts4*) |
version_type=linux | | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | hardcode_libdir_flag_spec_F77='-L$libdir' |
soname_spec='${libname}${release}${shared_ext}$major' | | hardcode_shlibpath_var_F77=no |
shlibpath_var=LD_LIBRARY_PATH | | |
;; | | ;; |
| | |
*) | | *) |
dynamic_linker=no | | ld_shlibs_F77=no |
;; | | ;; |
esac | | esac |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | | fi |
echo "${ECHO_T}$dynamic_linker" >&6 | | |
test "$dynamic_linker" = no && can_build_shared=no | | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| | test "$ld_shlibs_F77" = no && can_build_shared=no |
| | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
fi | | fi |
| | |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | | # |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | | # Do we need to explicitly link libc? |
hardcode_action_F77= | | # |
if test -n "$hardcode_libdir_flag_spec_F77" || \ | | case "x$archive_cmds_need_lc_F77" in |
test -n "$runpath_var_F77" || \ | | x|xyes) |
test "X$hardcode_automatic_F77" = "Xyes" ; then | | # Assume -lc should be added |
| | archive_cmds_need_lc_F77=yes |
| | |
# We can hardcode non-existant directories. | | if test "$enable_shared" = yes && test "$GCC" = yes; then |
if test "$hardcode_direct_F77" != no && | | case $archive_cmds_F77 in |
# If the only mechanism to avoid hardcoding is shlibpath_var, we | | *'~'*) |
# have to relink, otherwise we might link with an installed library | | # FIXME: we may have to deal with multi-command sequences. |
# when we should be linking with a yet-to-be-installed one | | ;; |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | | '$CC '*) |
test "$hardcode_minus_L_F77" != no; then | | # Test whether the compiler implicitly links with -lc since on some |
# Linking always hardcodes the temporary library directory. | | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
hardcode_action_F77=relink | | # to ld, don't add -lc before -lgcc. |
| | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| | $rm conftest* |
| | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | |
| | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | (eval $ac_compile) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } 2>conftest.err; then |
| | soname=conftest |
| | lib=conftest |
| | libobjs=conftest.$ac_objext |
| | deplibs= |
| | wl=$lt_prog_compiler_wl_F77 |
| | compiler_flags=-v |
| | linker_flags=-v |
| | verstring= |
| | output_objdir=. |
| | libname=conftest |
| | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| | allow_undefined_flag_F77= |
| | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } |
| | then |
| | archive_cmds_need_lc_F77=no |
else | | else |
# We can link without hardcoding, and we can hardcode nonexisting dirs. | | archive_cmds_need_lc_F77=yes |
hardcode_action_F77=immediate | | |
fi | | fi |
| | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
else | | else |
# We cannot hardcode anything, or else we can only hardcode existing | | cat conftest.err 1>&5 |
# directories. | | |
hardcode_action_F77=unsupported | | |
fi | | fi |
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | | $rm conftest* |
echo "${ECHO_T}$hardcode_action_F77" >&6 | | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| | ;; |
| | esac |
| | fi |
| | ;; |
| | esac |
| | |
if test "$hardcode_action_F77" = relink; then | | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
# Fast installation is not supported | | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
enable_fast_install=no | | library_names_spec= |
elif test "$shlibpath_overrides_runpath" = yes || | | libname_spec='lib$name' |
test "$enable_shared" = no; then | | soname_spec= |
# Fast installation is not necessary | | shrext_cmds=".so" |
enable_fast_install=needless | | postinstall_cmds= |
| | postuninstall_cmds= |
| | finish_cmds= |
| | finish_eval= |
| | shlibpath_var= |
| | shlibpath_overrides_runpath=unknown |
| | version_type=none |
| | dynamic_linker="$host_os ld.so" |
| | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| | if test "$GCC" = yes; then |
| | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| | # if the path contains ";" then we assume it to be the separator |
| | # otherwise default to the standard path separator (i.e. ":") - it is |
| | # assumed that no part of a normal pathname contains ";" but that should |
| | # okay in the real world where ";" in dirpaths is itself problematic. |
| | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| | else |
| | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
fi | | fi |
| | else |
| | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| | fi |
| | need_lib_prefix=unknown |
| | hardcode_into_libs=no |
| | |
| | # when you set need_version to no, make sure it does not cause -set_version |
| | # flags to be left without arguments |
| | need_version=unknown |
| | |
# The else clause should only fire when bootstrapping the | | case $host_os in |
# libtool distribution, otherwise you forgot to ship ltmain.sh | | aix3*) |
# with your package, and you will get complaints that there are | | version_type=linux |
# no rules to generate ltmain.sh. | | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
if test -f "$ltmain"; then | | shlibpath_var=LIBPATH |
# See if we are running on zsh, and set the options which allow our commands through | | |
# without removal of \ escapes. | | |
if test -n "${ZSH_VERSION+set}" ; then | | |
setopt NO_GLOB_SUBST | | |
fi | | |
# Now quote all the things that may contain metacharacters while being | | |
# careful not to overquote the AC_SUBSTed values. We take copies of the | | |
# variables and quote the copies for generation of the libtool script. | | |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | | |
SED SHELL STRIP \ | | |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | | |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | | |
deplibs_check_method reload_flag reload_cmds need_locks \ | | |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | | |
lt_cv_sys_global_symbol_to_c_name_address \ | | |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | | |
old_postinstall_cmds old_postuninstall_cmds \ | | |
compiler_F77 \ | | |
CC_F77 \ | | |
LD_F77 \ | | |
lt_prog_compiler_wl_F77 \ | | |
lt_prog_compiler_pic_F77 \ | | |
lt_prog_compiler_static_F77 \ | | |
lt_prog_compiler_no_builtin_flag_F77 \ | | |
export_dynamic_flag_spec_F77 \ | | |
thread_safe_flag_spec_F77 \ | | |
whole_archive_flag_spec_F77 \ | | |
enable_shared_with_static_runtimes_F77 \ | | |
old_archive_cmds_F77 \ | | |
old_archive_from_new_cmds_F77 \ | | |
predep_objects_F77 \ | | |
postdep_objects_F77 \ | | |
predeps_F77 \ | | |
postdeps_F77 \ | | |
compiler_lib_search_path_F77 \ | | |
archive_cmds_F77 \ | | |
archive_expsym_cmds_F77 \ | | |
postinstall_cmds_F77 \ | | |
postuninstall_cmds_F77 \ | | |
old_archive_from_expsyms_cmds_F77 \ | | |
allow_undefined_flag_F77 \ | | |
no_undefined_flag_F77 \ | | |
export_symbols_cmds_F77 \ | | |
hardcode_libdir_flag_spec_F77 \ | | |
hardcode_libdir_flag_spec_ld_F77 \ | | |
hardcode_libdir_separator_F77 \ | | |
hardcode_automatic_F77 \ | | |
module_cmds_F77 \ | | |
module_expsym_cmds_F77 \ | | |
lt_cv_prog_compiler_c_o_F77 \ | | |
exclude_expsyms_F77 \ | | |
include_expsyms_F77; do | | |
| | |
case $var in | | # AIX 3 has no versioning support, so we append a major version to the name. |
old_archive_cmds_F77 | \ | | soname_spec='${libname}${release}${shared_ext}$major' |
old_archive_from_new_cmds_F77 | \ | | |
archive_cmds_F77 | \ | | |
archive_expsym_cmds_F77 | \ | | |
module_cmds_F77 | \ | | |
module_expsym_cmds_F77 | \ | | |
old_archive_from_expsyms_cmds_F77 | \ | | |
export_symbols_cmds_F77 | \ | | |
extract_expsyms_cmds | reload_cmds | finish_cmds | \ | | |
postinstall_cmds | postuninstall_cmds | \ | | |
old_postinstall_cmds | old_postuninstall_cmds | \ | | |
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | | |
# Double-quote double-evaled strings. | | |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | | |
;; | | |
*) | | |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | | |
;; | | ;; |
esac | | |
done | | |
| | |
case $lt_echo in | | aix4* | aix5*) |
*'\$0 --fallback-echo"') | | version_type=linux |
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | | need_lib_prefix=no |
| | need_version=no |
| | hardcode_into_libs=yes |
| | if test "$host_cpu" = ia64; then |
| | # AIX 5 supports IA64 |
| | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | else |
| | # With GCC up to 2.95.x, collect2 would create an import file |
| | # for dependence libraries. The import file would start with |
| | # the line `#! .'. This would cause the generated library to |
| | # depend on `.', always an invalid library. This was fixed in |
| | # development snapshots of GCC prior to 3.0. |
| | case $host_os in |
| | aix4 | aix4.[01] | aix4.[01].*) |
| | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| | echo ' yes ' |
| | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| | : |
| | else |
| | can_build_shared=no |
| | fi |
;; | | ;; |
esac | | esac |
| | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| | # soname into executable. Probably we can add versioning support to |
| | # collect2, so additional links can be useful in future. |
| | if test "$aix_use_runtimelinking" = yes; then |
| | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| | # instead of lib<name>.a to let people know that these are not |
| | # typical AIX shared libraries. |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | else |
| | # We preserve .a as extension for shared libraries through AIX4.2 |
| | # and later when we are not doing run time linking. |
| | library_names_spec='${libname}${release}.a $libname.a' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | fi |
| | shlibpath_var=LIBPATH |
| | fi |
| | ;; |
| | |
cfgfile="$ofile" | | amigaos*) |
| | library_names_spec='$libname.ixlibrary $libname.a' |
cat <<__EOF__ >> "$cfgfile" | | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
# ### BEGIN LIBTOOL TAG CONFIG: $tagname | | 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' |
| | ;; |
| | |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | | beos*) |
| | library_names_spec='${libname}${shared_ext}' |
| | dynamic_linker="$host_os ld.so" |
| | shlibpath_var=LIBRARY_PATH |
| | ;; |
| | |
# Shell to use when invoking shell scripts. | | bsdi4*) |
SHELL=$lt_SHELL | | version_type=linux |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| | # the default ld.so.conf also contains /usr/contrib/lib and |
| | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| | # libtool to hard-code these into programs |
| | ;; |
| | |
# Whether or not to build shared libraries. | | cygwin* | mingw* | pw32*) |
build_libtool_libs=$enable_shared | | version_type=windows |
| | shrext_cmds=".dll" |
| | need_version=no |
| | need_lib_prefix=no |
| | |
# Whether or not to build static libraries. | | case $GCC,$host_os in |
build_old_libs=$enable_static | | yes,cygwin* | yes,mingw* | yes,pw32*) |
| | library_names_spec='$libname.dll.a' |
| | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| | postinstall_cmds='base_file=`basename \${file}`~ |
| | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| | dldir=$destdir/`dirname \$dlpath`~ |
| | test -d \$dldir || mkdir -p \$dldir~ |
| | $install_prog $dir/$dlname \$dldir/$dlname' |
| | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| | dlpath=$dir/\$dldll~ |
| | $rm \$dlpath' |
| | shlibpath_overrides_runpath=yes |
| | |
# Whether or not to add -lc for building shared libraries. | | case $host_os in |
build_libtool_need_lc=$archive_cmds_need_lc_F77 | | cygwin*) |
| | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| | ;; |
| | mingw*) |
| | # MinGW DLLs use traditional 'lib' prefix |
| | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| | # It is most probably a Windows format PATH printed by |
| | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| | # path with ; separators, and with drive letters. We can handle the |
| | # drive letters (cygwin fileutils understands them), so leave them, |
| | # especially as we might pass files found there to a mingw objdump, |
| | # which wouldn't understand a cygwinified path. Ahh. |
| | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| | else |
| | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| | fi |
| | ;; |
| | pw32*) |
| | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
| | ;; |
| | esac |
| | ;; |
| | |
# Whether or not to disallow shared libs when runtime libs are static | | *) |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| | ;; |
| | esac |
| | dynamic_linker='Win32 ld.exe' |
| | # FIXME: first we should search . and the directory the executable is in |
| | shlibpath_var=PATH |
| | ;; |
| | |
# Whether or not to optimize for fast installation. | | darwin* | rhapsody*) |
fast_install=$enable_fast_install | | dynamic_linker="$host_os dyld" |
| | version_type=darwin |
# The host system. | | need_lib_prefix=no |
host_alias=$host_alias | | need_version=no |
host=$host | | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
host_os=$host_os | | soname_spec='${libname}${release}${major}$shared_ext' |
| | shlibpath_overrides_runpath=yes |
# The build system. | | shlibpath_var=DYLD_LIBRARY_PATH |
build_alias=$build_alias | | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
build=$build | | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
build_os=$build_os | | if test "$GCC" = yes; then |
| | 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"` |
| | else |
| | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| | fi |
| | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| | ;; |
| | |
# An echo program that does not interpret backslashes. | | dgux*) |
echo=$lt_echo | | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | ;; |
| | |
# The archiver. | | freebsd1*) |
AR=$lt_AR | | dynamic_linker=no |
AR_FLAGS=$lt_AR_FLAGS | | ;; |
| | |
# A C compiler. | | kfreebsd*-gnu) |
LTCC=$lt_LTCC | | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | dynamic_linker='GNU ld.so' |
| | ;; |
| | |
# LTCC compiler flags. | | freebsd*) |
LTCFLAGS=$lt_LTCFLAGS | | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| | version_type=freebsd-$objformat |
| | case $version_type in |
| | freebsd-elf*) |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | need_version=no |
| | need_lib_prefix=no |
| | ;; |
| | freebsd-*) |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| | need_version=yes |
| | ;; |
| | esac |
| | shlibpath_var=LD_LIBRARY_PATH |
| | case $host_os in |
| | freebsd2*) |
| | shlibpath_overrides_runpath=yes |
| | ;; |
| | freebsd3.01* | freebsdelf3.01*) |
| | shlibpath_overrides_runpath=yes |
| | hardcode_into_libs=yes |
| | ;; |
| | *) # from 3.2 on |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | ;; |
| | esac |
| | ;; |
| | |
# A language-specific compiler. | | gnu*) |
CC=$lt_compiler_F77 | | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | hardcode_into_libs=yes |
| | ;; |
| | |
# Is the compiler the GNU C compiler? | | hpux9* | hpux10* | hpux11*) |
with_gcc=$GCC_F77 | | # Give a soname corresponding to the major version so that dld.sl refuses to |
| | # link against other versions. |
| | version_type=sunos |
| | need_lib_prefix=no |
| | need_version=no |
| | case "$host_cpu" in |
| | ia64*) |
| | shrext_cmds='.so' |
| | hardcode_into_libs=yes |
| | dynamic_linker="$host_os dld.so" |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | if test "X$HPUX_IA64_MODE" = X32; then |
| | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| | else |
| | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| | fi |
| | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| | ;; |
| | hppa*64*) |
| | shrext_cmds='.sl' |
| | hardcode_into_libs=yes |
| | dynamic_linker="$host_os dld.sl" |
| | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| | ;; |
| | *) |
| | shrext_cmds='.sl' |
| | dynamic_linker="$host_os dld.sl" |
| | shlibpath_var=SHLIB_PATH |
| | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | ;; |
| | esac |
| | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| | postinstall_cmds='chmod 555 $lib' |
| | ;; |
| | |
# An ERE matcher. | | irix5* | irix6* | nonstopux*) |
EGREP=$lt_EGREP | | case $host_os in |
| | nonstopux*) version_type=nonstopux ;; |
| | *) |
| | if test "$lt_cv_prog_gnu_ld" = yes; then |
| | version_type=linux |
| | else |
| | version_type=irix |
| | fi ;; |
| | esac |
| | need_lib_prefix=no |
| | need_version=no |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | case $host_os in |
| | irix5* | nonstopux*) |
| | libsuff= shlibsuff= |
| | ;; |
| | *) |
| | case $LD in # libtool.m4 will add one of these switches to LD |
| | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| | libsuff= shlibsuff= libmagic=32-bit;; |
| | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| | *) libsuff= shlibsuff= libmagic=never-match;; |
| | esac |
| | ;; |
| | esac |
| | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| | shlibpath_overrides_runpath=no |
| | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| | hardcode_into_libs=yes |
| | ;; |
| | |
# The linker used to build libraries. | | # No shared lib support for Linux oldld, aout, or coff. |
LD=$lt_LD_F77 | | linux*oldld* | linux*aout* | linux*coff*) |
| | dynamic_linker=no |
| | ;; |
| | |
# Whether we need hard or soft links. | | # This must be Linux ELF. |
LN_S=$lt_LN_S | | linux*) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | # This implies no fast_install, which is unacceptable. |
| | # Some rework will be needed to allow for fast_install |
| | # before this can be enabled. |
| | hardcode_into_libs=yes |
| | |
# A BSD-compatible nm program. | | # Append ld.so.conf contents to the search path |
NM=$lt_NM | | if test -f /etc/ld.so.conf; then |
| | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| | fi |
| | |
# A symbol stripping program | | # We used to test for /lib/ld.so.1 and disable shared libraries on |
STRIP=$lt_STRIP | | # powerpc, because MkLinux only supported shared libraries with the |
| | # GNU dynamic linker. Since this was broken with cross compilers, |
| | # most powerpc-linux boxes support dynamic linking these days and |
| | # people can always --disable-shared, the test was removed, and we |
| | # assume the GNU/Linux dynamic linker is in use. |
| | dynamic_linker='GNU/Linux ld.so' |
| | ;; |
| | |
# Used to examine libraries when file_magic_cmd begins "file" | | netbsdelf*-gnu) |
MAGIC_CMD=$MAGIC_CMD | | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | dynamic_linker='NetBSD ld.elf_so' |
| | ;; |
| | |
# Used on cygwin: DLL creation program. | | knetbsd*-gnu) |
DLLTOOL="$DLLTOOL" | | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | dynamic_linker='GNU ld.so' |
| | ;; |
| | |
# Used on cygwin: object dumper. | | netbsd*) |
OBJDUMP="$OBJDUMP" | | version_type=sunos |
| | need_lib_prefix=no |
| | need_version=no |
| | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | dynamic_linker='NetBSD (a.out) ld.so' |
| | else |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | dynamic_linker='NetBSD ld.elf_so' |
| | fi |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | hardcode_into_libs=yes |
| | ;; |
| | |
# Used on cygwin: assembler. | | newsos6) |
AS="$AS" | | version_type=linux |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
# The name of the directory that contains temporary libtool files. | | shlibpath_var=LD_LIBRARY_PATH |
objdir=$objdir | | shlibpath_overrides_runpath=yes |
| | ;; |
# How to create reloadable object files. | | |
reload_flag=$lt_reload_flag | | |
reload_cmds=$lt_reload_cmds | | |
| | |
# How to pass a linker flag through the compiler. | | |
wl=$lt_lt_prog_compiler_wl_F77 | | |
| | |
# Object file suffix (normally "o"). | | |
objext="$ac_objext" | | |
| | |
# Old archive suffix (normally "a"). | | |
libext="$libext" | | |
| | |
# Shared library suffix (normally ".so"). | | |
shrext_cmds='$shrext_cmds' | | |
| | |
# Executable file suffix (normally ""). | | |
exeext="$exeext" | | |
| | |
# Additional compiler flags for building library objects. | | |
pic_flag=$lt_lt_prog_compiler_pic_F77 | | |
pic_mode=$pic_mode | | |
| | |
# What is the maximum length of a command? | | |
max_cmd_len=$lt_cv_sys_max_cmd_len | | |
| | |
# Does compiler simultaneously support -c and -o options? | | nto-qnx*) |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | ;; |
| | |
# Must we lock files when doing compilation? | | openbsd*) |
need_locks=$lt_need_locks | | version_type=sunos |
| | need_lib_prefix=no |
| | need_version=yes |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | case $host_os in |
| | openbsd2.[89] | openbsd2.[89].*) |
| | shlibpath_overrides_runpath=no |
| | ;; |
| | *) |
| | shlibpath_overrides_runpath=yes |
| | ;; |
| | esac |
| | else |
| | shlibpath_overrides_runpath=yes |
| | fi |
| | ;; |
| | |
# Do we need the lib prefix for modules? | | os2*) |
need_lib_prefix=$need_lib_prefix | | libname_spec='$name' |
| | shrext_cmds=".dll" |
| | need_lib_prefix=no |
| | library_names_spec='$libname${shared_ext} $libname.a' |
| | dynamic_linker='OS/2 ld.exe' |
| | shlibpath_var=LIBPATH |
| | ;; |
| | |
# Do we need a version for libraries? | | osf3* | osf4* | osf5*) |
need_version=$need_version | | version_type=osf |
| | need_lib_prefix=no |
| | need_version=no |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| | ;; |
| | |
# Whether dlopen is supported. | | sco3.2v5*) |
dlopen_support=$enable_dlopen | | version_type=osf |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | ;; |
| | |
# Whether dlopen of programs is supported. | | solaris*) |
dlopen_self=$enable_dlopen_self | | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | hardcode_into_libs=yes |
| | # ldd complains unless libraries are executable |
| | postinstall_cmds='chmod +x $lib' |
| | ;; |
| | |
# Whether dlopen of statically linked programs is supported. | | sunos4*) |
dlopen_self_static=$enable_dlopen_self_static | | version_type=sunos |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | if test "$with_gnu_ld" = yes; then |
| | need_lib_prefix=no |
| | fi |
| | need_version=yes |
| | ;; |
| | |
# Compiler flag to prevent dynamic linking. | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
link_static_flag=$lt_lt_prog_compiler_static_F77 | | version_type=linux |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | case $host_vendor in |
| | sni) |
| | shlibpath_overrides_runpath=no |
| | need_lib_prefix=no |
| | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| | runpath_var=LD_RUN_PATH |
| | ;; |
| | siemens) |
| | need_lib_prefix=no |
| | ;; |
| | motorola) |
| | need_lib_prefix=no |
| | need_version=no |
| | shlibpath_overrides_runpath=no |
| | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| | ;; |
| | esac |
| | ;; |
| | |
# Compiler flag to turn off builtin functions. | | sysv4*MP*) |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | | if test -d /usr/nec ;then |
| | version_type=linux |
| | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| | soname_spec='$libname${shared_ext}.$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | fi |
| | ;; |
| | |
# Compiler flag to allow reflexive dlopens. | | uts4*) |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | | version_type=linux |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | ;; |
| | |
# Compiler flag to generate shared objects directly from archives. | | *) |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | | dynamic_linker=no |
| | ;; |
| | esac |
| | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| | echo "${ECHO_T}$dynamic_linker" >&6 |
| | test "$dynamic_linker" = no && can_build_shared=no |
| | |
# Compiler flag to generate thread-safe objects. | | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| | hardcode_action_F77= |
| | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| | test -n "$runpath_var F77" || \ |
| | test "X$hardcode_automatic_F77"="Xyes" ; then |
| | |
# Library versioning type. | | # We can hardcode non-existant directories. |
version_type=$version_type | | if test "$hardcode_direct_F77" != no && |
| | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| | # have to relink, otherwise we might link with an installed library |
| | # when we should be linking with a yet-to-be-installed one |
| | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| | test "$hardcode_minus_L_F77" != no; then |
| | # Linking always hardcodes the temporary library directory. |
| | hardcode_action_F77=relink |
| | else |
| | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| | hardcode_action_F77=immediate |
| | fi |
| | else |
| | # We cannot hardcode anything, or else we can only hardcode existing |
| | # directories. |
| | hardcode_action_F77=unsupported |
| | fi |
| | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| | |
# Format of library name prefix. | | if test "$hardcode_action_F77" = relink; then |
libname_spec=$lt_libname_spec | | # Fast installation is not supported |
| | enable_fast_install=no |
| | elif test "$shlibpath_overrides_runpath" = yes || |
| | test "$enable_shared" = no; then |
| | # Fast installation is not necessary |
| | enable_fast_install=needless |
| | fi |
| | |
# List of archive names. First name is the real one, the rest are links. | | striplib= |
# The last name is the one that the linker finds with -lNAME. | | old_striplib= |
library_names_spec=$lt_library_names_spec | | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| | echo "$as_me:$LINENO: result: yes" >&5 |
| | echo "${ECHO_T}yes" >&6 |
| | else |
| | # FIXME - insert some real tests, host_os isn't really good enough |
| | case $host_os in |
| | darwin*) |
| | if test -n "$STRIP" ; then |
| | striplib="$STRIP -x" |
| | echo "$as_me:$LINENO: result: yes" >&5 |
| | echo "${ECHO_T}yes" >&6 |
| | else |
| | echo "$as_me:$LINENO: result: no" >&5 |
| | echo "${ECHO_T}no" >&6 |
| | fi |
| | ;; |
| | *) |
| | echo "$as_me:$LINENO: result: no" >&5 |
| | echo "${ECHO_T}no" >&6 |
| | ;; |
| | esac |
| | fi |
| | |
# The coded name of the library, if different from the real name. | | |
soname_spec=$lt_soname_spec | | |
| | |
# Commands used to build and install an old-style archive. | | |
RANLIB=$lt_RANLIB | | |
old_archive_cmds=$lt_old_archive_cmds_F77 | | |
old_postinstall_cmds=$lt_old_postinstall_cmds | | |
old_postuninstall_cmds=$lt_old_postuninstall_cmds | | |
| | |
# Create an old-style archive from a shared archive. | | # The else clause should only fire when bootstrapping the |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| | # with your package, and you will get complaints that there are |
| | # no rules to generate ltmain.sh. |
| | if test -f "$ltmain"; then |
| | # See if we are running on zsh, and set the options which allow our commands through |
| | # without removal of \ escapes. |
| | if test -n "${ZSH_VERSION+set}" ; then |
| | setopt NO_GLOB_SUBST |
| | fi |
| | # Now quote all the things that may contain metacharacters while being |
| | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| | # variables and quote the copies for generation of the libtool script. |
| | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
| | SED SHELL STRIP \ |
| | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | deplibs_check_method reload_flag reload_cmds need_locks \ |
| | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| | lt_cv_sys_global_symbol_to_c_name_address \ |
| | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| | old_postinstall_cmds old_postuninstall_cmds \ |
| | compiler_F77 \ |
| | CC_F77 \ |
| | LD_F77 \ |
| | lt_prog_compiler_wl_F77 \ |
| | lt_prog_compiler_pic_F77 \ |
| | lt_prog_compiler_static_F77 \ |
| | lt_prog_compiler_no_builtin_flag_F77 \ |
| | export_dynamic_flag_spec_F77 \ |
| | thread_safe_flag_spec_F77 \ |
| | whole_archive_flag_spec_F77 \ |
| | enable_shared_with_static_runtimes_F77 \ |
| | old_archive_cmds_F77 \ |
| | old_archive_from_new_cmds_F77 \ |
| | predep_objects_F77 \ |
| | postdep_objects_F77 \ |
| | predeps_F77 \ |
| | postdeps_F77 \ |
| | compiler_lib_search_path_F77 \ |
| | archive_cmds_F77 \ |
| | archive_expsym_cmds_F77 \ |
| | postinstall_cmds_F77 \ |
| | postuninstall_cmds_F77 \ |
| | old_archive_from_expsyms_cmds_F77 \ |
| | allow_undefined_flag_F77 \ |
| | no_undefined_flag_F77 \ |
| | export_symbols_cmds_F77 \ |
| | hardcode_libdir_flag_spec_F77 \ |
| | hardcode_libdir_flag_spec_ld_F77 \ |
| | hardcode_libdir_separator_F77 \ |
| | hardcode_automatic_F77 \ |
| | module_cmds_F77 \ |
| | module_expsym_cmds_F77 \ |
| | lt_cv_prog_compiler_c_o_F77 \ |
| | exclude_expsyms_F77 \ |
| | include_expsyms_F77; do |
| | |
| | case $var in |
| | old_archive_cmds_F77 | \ |
| | old_archive_from_new_cmds_F77 | \ |
| | archive_cmds_F77 | \ |
| | archive_expsym_cmds_F77 | \ |
| | module_cmds_F77 | \ |
| | module_expsym_cmds_F77 | \ |
| | old_archive_from_expsyms_cmds_F77 | \ |
| | export_symbols_cmds_F77 | \ |
| | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| | postinstall_cmds | postuninstall_cmds | \ |
| | old_postinstall_cmds | old_postuninstall_cmds | \ |
| | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| | # Double-quote double-evaled strings. |
| | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| | ;; |
| | *) |
| | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| | ;; |
| | esac |
| | done |
| | |
| | case $lt_echo in |
| | *'\$0 --fallback-echo"') |
| | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| | ;; |
| | esac |
| | |
| | cfgfile="$ofile" |
| | |
| | cat <<__EOF__ >> "$cfgfile" |
| | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| | |
| | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| | |
| | # Shell to use when invoking shell scripts. |
| | SHELL=$lt_SHELL |
| | |
| | # Whether or not to build shared libraries. |
| | build_libtool_libs=$enable_shared |
| | |
| | # Whether or not to build static libraries. |
| | build_old_libs=$enable_static |
| | |
| | # Whether or not to add -lc for building shared libraries. |
| | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| | |
| | # Whether or not to disallow shared libs when runtime libs are static |
| | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| | |
| | # Whether or not to optimize for fast installation. |
| | fast_install=$enable_fast_install |
| | |
| | # The host system. |
| | host_alias=$host_alias |
| | host=$host |
| | |
| | # An echo program that does not interpret backslashes. |
| | echo=$lt_echo |
| | |
| | # The archiver. |
| | AR=$lt_AR |
| | AR_FLAGS=$lt_AR_FLAGS |
| | |
| | # A C compiler. |
| | LTCC=$lt_LTCC |
| | |
| | # A language-specific compiler. |
| | CC=$lt_compiler_F77 |
| | |
| | # Is the compiler the GNU C compiler? |
| | with_gcc=$GCC_F77 |
| | |
| | # An ERE matcher. |
| | EGREP=$lt_EGREP |
| | |
| | # The linker used to build libraries. |
| | LD=$lt_LD_F77 |
| | |
| | # Whether we need hard or soft links. |
| | LN_S=$lt_LN_S |
| | |
| | # A BSD-compatible nm program. |
| | NM=$lt_NM |
| | |
| | # A symbol stripping program |
| | STRIP=$lt_STRIP |
| | |
| | # Used to examine libraries when file_magic_cmd begins "file" |
| | MAGIC_CMD=$MAGIC_CMD |
| | |
| | # Used on cygwin: DLL creation program. |
| | DLLTOOL="$DLLTOOL" |
| | |
| | # Used on cygwin: object dumper. |
| | OBJDUMP="$OBJDUMP" |
| | |
| | # Used on cygwin: assembler. |
| | AS="$AS" |
| | |
| | # The name of the directory that contains temporary libtool files. |
| | objdir=$objdir |
| | |
| | # How to create reloadable object files. |
| | reload_flag=$lt_reload_flag |
| | reload_cmds=$lt_reload_cmds |
| | |
| | # How to pass a linker flag through the compiler. |
| | wl=$lt_lt_prog_compiler_wl_F77 |
| | |
| | # Object file suffix (normally "o"). |
| | objext="$ac_objext" |
| | |
| | # Old archive suffix (normally "a"). |
| | libext="$libext" |
| | |
| | # Shared library suffix (normally ".so"). |
| | shrext_cmds='$shrext_cmds' |
| | |
| | # Executable file suffix (normally ""). |
| | exeext="$exeext" |
| | |
| | # Additional compiler flags for building library objects. |
| | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| | pic_mode=$pic_mode |
| | |
| | # What is the maximum length of a command? |
| | max_cmd_len=$lt_cv_sys_max_cmd_len |
| | |
| | # Does compiler simultaneously support -c and -o options? |
| | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| | |
| | # Must we lock files when doing compilation ? |
| | need_locks=$lt_need_locks |
| | |
| | # Do we need the lib prefix for modules? |
| | need_lib_prefix=$need_lib_prefix |
| | |
| | # Do we need a version for libraries? |
| | need_version=$need_version |
| | |
| | # Whether dlopen is supported. |
| | dlopen_support=$enable_dlopen |
| | |
| | # Whether dlopen of programs is supported. |
| | dlopen_self=$enable_dlopen_self |
| | |
| | # Whether dlopen of statically linked programs is supported. |
| | dlopen_self_static=$enable_dlopen_self_static |
| | |
| | # Compiler flag to prevent dynamic linking. |
| | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| | |
| | # Compiler flag to turn off builtin functions. |
| | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| | |
| | # Compiler flag to allow reflexive dlopens. |
| | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| | |
| | # Compiler flag to generate shared objects directly from archives. |
| | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| | |
| | # Compiler flag to generate thread-safe objects. |
| | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| | |
| | # Library versioning type. |
| | version_type=$version_type |
| | |
| | # Format of library name prefix. |
| | libname_spec=$lt_libname_spec |
| | |
| | # List of archive names. First name is the real one, the rest are links. |
| | # The last name is the one that the linker finds with -lNAME. |
| | library_names_spec=$lt_library_names_spec |
| | |
| | # The coded name of the library, if different from the real name. |
| | soname_spec=$lt_soname_spec |
| | |
| | # Commands used to build and install an old-style archive. |
| | RANLIB=$lt_RANLIB |
| | old_archive_cmds=$lt_old_archive_cmds_F77 |
| | old_postinstall_cmds=$lt_old_postinstall_cmds |
| | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| | |
| | # Create an old-style archive from a shared archive. |
| | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| | |
# Create a temporary old-style archive to link instead of a shared archive. | | # Create a temporary old-style archive to link instead of a shared archive. |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| | |
lt_simple_compile_test_code="class foo {}\n" | | lt_simple_compile_test_code="class foo {}\n" |
| | |
# Code to be used in simple link tests | | # Code to be used in simple link tests |
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| | |
# If no C compiler was specified, use CC. | | # If no C compiler was specified, use CC. |
LTCC=${LTCC-"$CC"} | | LTCC=${LTCC-"$CC"} |
| | |
# If no C compiler flags were specified, use CFLAGS. | | |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
compiler=$CC | | compiler=$CC |
| | |
| | |
# save warnings/boilerplate of simple test code | | |
ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext | | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_compiler_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
| | |
ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_link_test_code" >conftest.$ac_ext | | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_linker_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
| | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | | lt_save_CC="$CC" |
CC=${GCJ-"gcj"} | | CC=${GCJ-"gcj"} |
compiler=$CC | | compiler=$CC |
compiler_GCJ=$CC | | compiler_GCJ=$CC |
for cc_temp in $compiler""; do | | |
case $cc_temp in | | |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | | |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
| | |
| | |
# GCJ did not exist at the time GCC didn't implicitly link libc in. | | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
archive_cmds_need_lc_GCJ=no | | archive_cmds_need_lc_GCJ=no |
| | |
old_archive_cmds_GCJ=$old_archive_cmds | | |
| | |
| | |
lt_prog_compiler_no_builtin_flag_GCJ= | | lt_prog_compiler_no_builtin_flag_GCJ= |
| | |
| | |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
# The option is referenced via a variable to avoid confusing sed. | | # The option is referenced via a variable to avoid confusing sed. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:15581: $lt_compile\"" >&5) | | (eval echo "\"\$as_me:15502: $lt_compile\"" >&5) |
(eval "$lt_compile" 2>conftest.err) | | (eval "$lt_compile" 2>conftest.err) |
ac_status=$? | | ac_status=$? |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:15585: \$? = $ac_status" >&5 | | echo "$as_me:15506: \$? = $ac_status" >&5 |
if (exit $ac_status) && test -s "$ac_outfile"; then | | if (exit $ac_status) && test -s "$ac_outfile"; then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings other than the usual output. | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | | if test ! -s conftest.err; then |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_cv_prog_compiler_rtti_exceptions=yes | | lt_cv_prog_compiler_rtti_exceptions=yes |
fi | | fi |
fi | | fi |
| | |
lt_prog_compiler_pic_GCJ='-fno-common' | | lt_prog_compiler_pic_GCJ='-fno-common' |
;; | | ;; |
| | |
interix3*) | | |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. | | |
# Instead, we relocate shared libraries at runtime. | | |
;; | | |
| | |
msdosdjgpp*) | | msdosdjgpp*) |
# Just because we use GCC doesn't mean we suddenly get shared libraries | | # Just because we use GCC doesn't mean we suddenly get shared libraries |
# on systems that don't support them. | | # on systems that don't support them. |
| | |
hpux*) | | hpux*) |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# not for PA HP-UX. | | # not for PA HP-UX. |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
# +Z the default | | # +Z the default |
;; | | ;; |
| | |
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
fi | | fi |
;; | | ;; |
darwin*) | | |
# PIC is the default on this platform | | |
# Common symbols not allowed in MH_DYLIB files | | |
case $cc_basename in | | |
xlc*) | | |
lt_prog_compiler_pic_GCJ='-qnocommon' | | |
lt_prog_compiler_wl_GCJ='-Wl,' | | |
;; | | |
esac | | |
;; | | |
| | |
mingw* | pw32* | os2*) | | mingw* | pw32* | os2*) |
# This hack is so that the source file can tell whether it is being | | # This hack is so that the source file can tell whether it is being |
| | |
lt_prog_compiler_wl_GCJ='-Wl,' | | lt_prog_compiler_wl_GCJ='-Wl,' |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
# not for PA HP-UX. | | # not for PA HP-UX. |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
# +Z the default | | # +Z the default |
;; | | ;; |
| | |
;; | | ;; |
| | |
linux*) | | linux*) |
case $cc_basename in | | case $CC in |
icc* | ecc*) | | icc* | ecc*) |
lt_prog_compiler_wl_GCJ='-Wl,' | | lt_prog_compiler_wl_GCJ='-Wl,' |
lt_prog_compiler_pic_GCJ='-KPIC' | | lt_prog_compiler_pic_GCJ='-KPIC' |
lt_prog_compiler_static_GCJ='-static' | | lt_prog_compiler_static_GCJ='-static' |
;; | | ;; |
pgcc* | pgf77* | pgf90* | pgf95*) | | |
# Portland Group compilers (*not* the Pentium gcc compiler, | | |
# which looks to be a dead project) | | |
lt_prog_compiler_wl_GCJ='-Wl,' | | |
lt_prog_compiler_pic_GCJ='-fpic' | | |
lt_prog_compiler_static_GCJ='-Bstatic' | | |
;; | | |
ccc*) | | ccc*) |
lt_prog_compiler_wl_GCJ='-Wl,' | | lt_prog_compiler_wl_GCJ='-Wl,' |
# All Alpha code is PIC. | | # All Alpha code is PIC. |
| | |
lt_prog_compiler_static_GCJ='-non_shared' | | lt_prog_compiler_static_GCJ='-non_shared' |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | lt_prog_compiler_pic_GCJ='-Kpic' |
| | lt_prog_compiler_static_GCJ='-dn' |
| | ;; |
| | |
solaris*) | | solaris*) |
| | lt_prog_compiler_wl_GCJ='-Wl,' |
lt_prog_compiler_pic_GCJ='-KPIC' | | lt_prog_compiler_pic_GCJ='-KPIC' |
lt_prog_compiler_static_GCJ='-Bstatic' | | lt_prog_compiler_static_GCJ='-Bstatic' |
case $cc_basename in | | |
f77* | f90* | f95*) | | |
lt_prog_compiler_wl_GCJ='-Qoption ld ';; | | |
*) | | |
lt_prog_compiler_wl_GCJ='-Wl,';; | | |
esac | | |
;; | | ;; |
| | |
sunos4*) | | sunos4*) |
| | |
lt_prog_compiler_static_GCJ='-Bstatic' | | lt_prog_compiler_static_GCJ='-Bstatic' |
;; | | ;; |
| | |
sysv4 | sysv4.2uw2* | sysv4.3*) | | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
lt_prog_compiler_wl_GCJ='-Wl,' | | lt_prog_compiler_wl_GCJ='-Wl,' |
lt_prog_compiler_pic_GCJ='-KPIC' | | lt_prog_compiler_pic_GCJ='-KPIC' |
lt_prog_compiler_static_GCJ='-Bstatic' | | lt_prog_compiler_static_GCJ='-Bstatic' |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | | |
lt_prog_compiler_wl_GCJ='-Wl,' | | |
lt_prog_compiler_pic_GCJ='-KPIC' | | |
lt_prog_compiler_static_GCJ='-Bstatic' | | |
;; | | |
| | |
unicos*) | | |
lt_prog_compiler_wl_GCJ='-Wl,' | | |
lt_prog_compiler_can_build_shared_GCJ=no | | |
;; | | |
| | |
uts4*) | | uts4*) |
lt_prog_compiler_pic_GCJ='-pic' | | lt_prog_compiler_pic_GCJ='-pic' |
lt_prog_compiler_static_GCJ='-Bstatic' | | lt_prog_compiler_static_GCJ='-Bstatic' |
| | |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
# The option is referenced via a variable to avoid confusing sed. | | # The option is referenced via a variable to avoid confusing sed. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:15849: $lt_compile\"" >&5) | | (eval echo "\"\$as_me:15735: $lt_compile\"" >&5) |
(eval "$lt_compile" 2>conftest.err) | | (eval "$lt_compile" 2>conftest.err) |
ac_status=$? | | ac_status=$? |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:15853: \$? = $ac_status" >&5 | | echo "$as_me:15739: \$? = $ac_status" >&5 |
if (exit $ac_status) && test -s "$ac_outfile"; then | | if (exit $ac_status) && test -s "$ac_outfile"; then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings other than the usual output. | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | | if test ! -s conftest.err; then |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_prog_compiler_pic_works_GCJ=yes | | lt_prog_compiler_pic_works_GCJ=yes |
fi | | fi |
fi | | fi |
| | |
fi | | fi |
| | |
fi | | fi |
case $host_os in | | case "$host_os" in |
# For platforms which do not support PIC, -DPIC is meaningless: | | # For platforms which do not support PIC, -DPIC is meaningless: |
*djgpp*) | | *djgpp*) |
lt_prog_compiler_pic_GCJ= | | lt_prog_compiler_pic_GCJ= |
| | |
;; | | ;; |
esac | | esac |
| | |
# | | |
# Check to make sure the static flag actually works. | | |
# | | |
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | | |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | | |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | | |
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | | |
echo $ECHO_N "(cached) $ECHO_C" >&6 | | |
else | | |
lt_prog_compiler_static_works_GCJ=no | | |
save_LDFLAGS="$LDFLAGS" | | |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | | |
printf "$lt_simple_link_test_code" > conftest.$ac_ext | | |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | | |
# The linker can only warn and ignore the option if not recognized | | |
# So say no if there are warnings | | |
if test -s conftest.err; then | | |
# Append any errors to the config.log. | | |
cat conftest.err 1>&5 | | |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | | |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | | |
if diff conftest.exp conftest.er2 >/dev/null; then | | |
lt_prog_compiler_static_works_GCJ=yes | | |
fi | | |
else | | |
lt_prog_compiler_static_works_GCJ=yes | | |
fi | | |
fi | | |
$rm conftest* | | |
LDFLAGS="$save_LDFLAGS" | | |
| | |
fi | | |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | | |
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 | | |
| | |
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | | |
: | | |
else | | |
lt_prog_compiler_static_GCJ= | | |
fi | | |
| | |
| | |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| | |
# Note that $ac_compile itself does not contain backslashes and begins | | # Note that $ac_compile itself does not contain backslashes and begins |
# with a dollar sign (not a hyphen), so the echo should work correctly. | | # with a dollar sign (not a hyphen), so the echo should work correctly. |
lt_compile=`echo "$ac_compile" | $SED \ | | lt_compile=`echo "$ac_compile" | $SED \ |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
-e 's:$: $lt_compiler_flag:'` | | -e 's:$: $lt_compiler_flag:'` |
(eval echo "\"\$as_me:15953: $lt_compile\"" >&5) | | (eval echo "\"\$as_me:15795: $lt_compile\"" >&5) |
(eval "$lt_compile" 2>out/conftest.err) | | (eval "$lt_compile" 2>out/conftest.err) |
ac_status=$? | | ac_status=$? |
cat out/conftest.err >&5 | | cat out/conftest.err >&5 |
echo "$as_me:15957: \$? = $ac_status" >&5 | | echo "$as_me:15799: \$? = $ac_status" >&5 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext | | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
then | | then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | | if test ! -s out/conftest.err; then |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | | |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | | |
lt_cv_prog_compiler_c_o_GCJ=yes | | lt_cv_prog_compiler_c_o_GCJ=yes |
fi | | fi |
fi | | fi |
chmod u+w . 2>&5 | | chmod u+w . |
$rm conftest* | | $rm conftest* |
# SGI C++ compiler will create directory out/ii_files/ for | | # SGI C++ compiler will create directory out/ii_files/ for |
# template instantiation | | # template instantiation |
| | |
# rely on this symbol name, it's probably fine to never include it in | | # rely on this symbol name, it's probably fine to never include it in |
# preloaded symbol tables. | | # preloaded symbol tables. |
extract_expsyms_cmds= | | extract_expsyms_cmds= |
# Just being paranoid about ensuring that cc_basename is set. | | |
for cc_temp in $compiler""; do | | |
case $cc_temp in | | |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | | |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
| | |
case $host_os in | | case $host_os in |
cygwin* | mingw* | pw32*) | | cygwin* | mingw* | pw32*) |
| | |
with_gnu_ld=no | | with_gnu_ld=no |
fi | | fi |
;; | | ;; |
interix*) | | |
# we just hope/assume this is gcc and not c89 (= MSVC++) | | |
with_gnu_ld=yes | | |
;; | | |
openbsd*) | | openbsd*) |
with_gnu_ld=no | | with_gnu_ld=no |
;; | | ;; |
| | |
# If archive_cmds runs LD, not CC, wlarc should be empty | | # If archive_cmds runs LD, not CC, wlarc should be empty |
wlarc='${wl}' | | wlarc='${wl}' |
| | |
# Set some defaults for GNU ld with shared library support. These | | |
# are reset later if shared libraries are not supported. Putting them | | |
# here allows them to be overridden if necessary. | | |
runpath_var=LD_RUN_PATH | | |
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | | |
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | | |
# ancient GNU ld didn't support --whole-archive et. al. | | |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | | |
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | | |
else | | |
whole_archive_flag_spec_GCJ= | | |
fi | | |
supports_anon_versioning=no | | |
case `$LD -v 2>/dev/null` in | | |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | | |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | | |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | | |
*\ 2.11.*) ;; # other 2.11 versions | | |
*) supports_anon_versioning=yes ;; | | |
esac | | |
| | |
# See if GNU ld supports shared libraries. | | # See if GNU ld supports shared libraries. |
case $host_os in | | case $host_os in |
aix3* | aix4* | aix5*) | | aix3* | aix4* | aix5*) |
| | |
allow_undefined_flag_GCJ=unsupported | | allow_undefined_flag_GCJ=unsupported |
always_export_symbols_GCJ=no | | always_export_symbols_GCJ=no |
enable_shared_with_static_runtimes_GCJ=yes | | enable_shared_with_static_runtimes_GCJ=yes |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
# If the export-symbols file already is a .def file (1st line | | # If the export-symbols file already is a .def file (1st line |
# is EXPORTS), use it as is; otherwise, prepend... | | # is EXPORTS), use it as is; otherwise, prepend... |
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | |
echo EXPORTS > $output_objdir/$soname.def; | | echo EXPORTS > $output_objdir/$soname.def; |
cat $export_symbols >> $output_objdir/$soname.def; | | cat $export_symbols >> $output_objdir/$soname.def; |
fi~ | | fi~ |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
else | | |
ld_shlibs_GCJ=no | | |
fi | | |
;; | | |
| | |
interix3*) | | |
hardcode_direct_GCJ=no | | |
hardcode_shlibpath_var_GCJ=no | | |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | | |
export_dynamic_flag_spec_GCJ='${wl}-E' | | |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | | |
# Instead, shared libraries are loaded at an image base (0x10000000 by | | |
# default) and relocated if they conflict, which is a slow very memory | | |
# consuming and fragmenting process. To avoid this, we pick a random, | | |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | | |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. | | |
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' | | |
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' | | |
;; | | |
| | |
linux*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
tmp_addflag= | | |
case $cc_basename,$host_cpu in | | |
pgcc*) # Portland Group C compiler | | |
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' | | |
tmp_addflag=' $pic_flag' | | |
;; | | |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | | |
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' | | |
tmp_addflag=' $pic_flag -Mnomain' ;; | | |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | | |
tmp_addflag=' -i_dynamic' ;; | | |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | | |
tmp_addflag=' -i_dynamic -nofor_main' ;; | | |
ifc* | ifort*) # Intel Fortran compiler | | |
tmp_addflag=' -nofor_main' ;; | | |
esac | | |
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
| | |
if test $supports_anon_versioning = yes; then | | |
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | | |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | | |
$echo "local: *; };" >> $output_objdir/$libname.ver~ | | |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | | |
fi | | |
else | | else |
ld_shlibs_GCJ=no | | ld_shlibs=no |
fi | | fi |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
wlarc= | | wlarc= |
| | |
fi | | fi |
;; | | ;; |
| | |
solaris*) | | solaris* | sysv5*) |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
ld_shlibs_GCJ=no | | ld_shlibs_GCJ=no |
cat <<EOF 1>&2 | | cat <<EOF 1>&2 |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | | |
case `$LD -v 2>&1` in | | |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | | |
ld_shlibs_GCJ=no | | |
cat <<_LT_EOF 1>&2 | | |
| | |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | | |
*** reliably create shared libraries on SCO systems. Therefore, libtool | | |
*** is disabling shared libraries support. We urge you to upgrade GNU | | |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify | | |
*** your PATH or compiler configuration so that the native linker is | | |
*** used, and then restart. | | |
| | |
_LT_EOF | | |
;; | | |
*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | | |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | | |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | | |
else | | |
ld_shlibs_GCJ=no | | |
fi | | |
;; | | |
esac | | |
;; | | |
| | |
sunos4*) | | sunos4*) |
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
wlarc= | | wlarc= |
| | |
hardcode_shlibpath_var_GCJ=no | | hardcode_shlibpath_var_GCJ=no |
;; | | ;; |
| | |
| | linux*) |
| | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | archive_cmds_GCJ="$tmp_archive_cmds" |
| | supports_anon_versioning=no |
| | case `$LD -v 2>/dev/null` in |
| | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| | *\ 2.11.*) ;; # other 2.11 versions |
| | *) supports_anon_versioning=yes ;; |
| | esac |
| | if test $supports_anon_versioning = yes; then |
| | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| | else |
| | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
| | fi |
| | link_all_deplibs_GCJ=no |
| | else |
| | ld_shlibs_GCJ=no |
| | fi |
| | ;; |
| | |
*) | | *) |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | |
;; | | ;; |
esac | | esac |
| | |
if test "$ld_shlibs_GCJ" = no; then | | if test "$ld_shlibs_GCJ" = yes; then |
runpath_var= | | runpath_var=LD_RUN_PATH |
hardcode_libdir_flag_spec_GCJ= | | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
export_dynamic_flag_spec_GCJ= | | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| | # ancient GNU ld didn't support --whole-archive et. al. |
| | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | else |
whole_archive_flag_spec_GCJ= | | whole_archive_flag_spec_GCJ= |
fi | | fi |
| | fi |
else | | else |
# PORTME fill in a description of your system's linker (not GNU ld) | | # PORTME fill in a description of your system's linker (not GNU ld) |
case $host_os in | | case $host_os in |
| | |
# Note: this linker hardcodes the directories in LIBPATH if there | | # Note: this linker hardcodes the directories in LIBPATH if there |
# are no directories specified by -L. | | # are no directories specified by -L. |
hardcode_minus_L_GCJ=yes | | hardcode_minus_L_GCJ=yes |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | | if test "$GCC" = yes && test -z "$link_static_flag"; then |
# Neither direct hardcoding nor static linking is supported with a | | # Neither direct hardcoding nor static linking is supported with a |
# broken collect2. | | # broken collect2. |
hardcode_direct_GCJ=unsupported | | hardcode_direct_GCJ=unsupported |
| | |
break | | break |
fi | | fi |
done | | done |
;; | | |
esac | | esac |
| | |
exp_sym_flag='-bexport' | | exp_sym_flag='-bexport' |
| | |
link_all_deplibs_GCJ=yes | | link_all_deplibs_GCJ=yes |
| | |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
case $host_os in aix4.[012]|aix4.[012].*) | | case $host_os in aix4.012|aix4.012.*) |
# We only want to do this on AIX 4.2 and lower, the check | | # We only want to do this on AIX 4.2 and lower, the check |
# below for broken collect2 doesn't work under 4.3+ | | # below for broken collect2 doesn't work under 4.3+ |
collect2name=`${CC} -print-prog-name=collect2` | | collect2name=`${CC} -print-prog-name=collect2` |
| | |
hardcode_libdir_flag_spec_GCJ='-L$libdir' | | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
hardcode_libdir_separator_GCJ= | | hardcode_libdir_separator_GCJ= |
fi | | fi |
;; | | |
esac | | esac |
shared_flag='-shared' | | shared_flag='-shared' |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag="$shared_flag "'${wl}-G' | | |
fi | | |
else | | else |
# not using gcc | | # not using gcc |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
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" | | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
else | | else |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
allow_undefined_flag_GCJ="-z nodefs" | | allow_undefined_flag_GCJ="-z nodefs" |
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" | | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
else | | else |
# Determine the default libpath from the value encoded in an empty executable. | | # Determine the default libpath from the value encoded in an empty executable. |
cat >conftest.$ac_ext <<_ACEOF | | cat >conftest.$ac_ext <<_ACEOF |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
# -berok will link without error, but may produce a broken library. | | # -berok will link without error, but may produce a broken library. |
no_undefined_flag_GCJ=' ${wl}-bernotok' | | no_undefined_flag_GCJ=' ${wl}-bernotok' |
allow_undefined_flag_GCJ=' ${wl}-berok' | | allow_undefined_flag_GCJ=' ${wl}-berok' |
| | # -bexpall does not export symbols beginning with underscore (_) |
| | always_export_symbols_GCJ=yes |
# Exported symbols can be pulled into shared objects from archives | | # Exported symbols can be pulled into shared objects from archives |
whole_archive_flag_spec_GCJ='$convenience' | | whole_archive_flag_spec_GCJ=' ' |
archive_cmds_need_lc_GCJ=yes | | archive_cmds_need_lc_GCJ=yes |
# This is similar to how AIX traditionally builds its shared libraries. | | # This is similar to how AIX traditionally builds it's shared libraries. |
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' | | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
fi | | fi |
fi | | fi |
;; | | ;; |
| | |
ld_shlibs_GCJ=no | | ld_shlibs_GCJ=no |
;; | | ;; |
| | |
bsdi[45]*) | | bsdi4*) |
export_dynamic_flag_spec_GCJ=-rdynamic | | export_dynamic_flag_spec_GCJ=-rdynamic |
;; | | ;; |
| | |
| | |
old_archive_From_new_cmds_GCJ='true' | | old_archive_From_new_cmds_GCJ='true' |
# FIXME: Should let the user specify the lib program. | | # FIXME: Should let the user specify the lib program. |
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | | fix_srcfile_path='`cygpath -w "$srcfile"`' |
enable_shared_with_static_runtimes_GCJ=yes | | enable_shared_with_static_runtimes_GCJ=yes |
;; | | ;; |
| | |
darwin* | rhapsody*) | | darwin* | rhapsody*) |
case $host_os in | | if test "$GXX" = yes ; then |
| | archive_cmds_need_lc_GCJ=no |
| | case "$host_os" in |
rhapsody* | darwin1.[012]) | | rhapsody* | darwin1.[012]) |
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | | allow_undefined_flag_GCJ='-undefined suppress' |
;; | | ;; |
*) # Darwin 1.3 on | | *) # Darwin 1.3 on |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
else | | else |
case ${MACOSX_DEPLOYMENT_TARGET} in | | case ${MACOSX_DEPLOYMENT_TARGET} in |
10.[012]) | | 10.[012]) |
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
;; | | ;; |
10.*) | | 10.*) |
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
;; | | ;; |
esac | | esac |
fi | | fi |
;; | | ;; |
esac | | esac |
archive_cmds_need_lc_GCJ=no | | lt_int_apple_cc_single_mod=no |
| | output_verbose_link_cmd='echo' |
| | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| | lt_int_apple_cc_single_mod=yes |
| | fi |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| | else |
| | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' |
| | fi |
| | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | archive_expsym_cmds_GCJ='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}' |
| | else |
| | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' |
| | fi |
| | 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}' |
hardcode_direct_GCJ=no | | hardcode_direct_GCJ=no |
hardcode_automatic_GCJ=yes | | hardcode_automatic_GCJ=yes |
hardcode_shlibpath_var_GCJ=unsupported | | hardcode_shlibpath_var_GCJ=unsupported |
whole_archive_flag_spec_GCJ='' | | whole_archive_flag_spec_GCJ='-all_load $convenience' |
link_all_deplibs_GCJ=yes | | link_all_deplibs_GCJ=yes |
if test "$GCC" = yes ; then | | |
output_verbose_link_cmd='echo' | | |
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
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}' | | |
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}' | | |
else | | else |
case $cc_basename in | | |
xlc*) | | |
output_verbose_link_cmd='echo' | | |
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | | |
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | | |
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}' | | |
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}' | | |
;; | | |
*) | | |
ld_shlibs_GCJ=no | | ld_shlibs_GCJ=no |
;; | | |
esac | | |
fi | | fi |
;; | | ;; |
| | |
| | |
;; | | ;; |
| | |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. | | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
hardcode_libdir_flag_spec_GCJ='-R$libdir' | | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
hardcode_direct_GCJ=yes | | hardcode_direct_GCJ=yes |
| | |
export_dynamic_flag_spec_GCJ='${wl}-E' | | export_dynamic_flag_spec_GCJ='${wl}-E' |
;; | | ;; |
| | |
hpux10*) | | hpux10* | hpux11*) |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then | | |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | | |
fi | | |
if test "$with_gnu_ld" = no; then | | |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | | |
hardcode_libdir_separator_GCJ=: | | |
| | |
hardcode_direct_GCJ=yes | | |
export_dynamic_flag_spec_GCJ='${wl}-E' | | |
| | |
# hardcode_minus_L: Not really in the search PATH, | | |
# but as the default location of the library. | | |
hardcode_minus_L_GCJ=yes | | |
fi | | |
;; | | |
| | |
hpux11*) | | |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then | | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | hppa*64*|ia64*) |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
;; | | ;; |
ia64*) | | |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | |
*) | | *) |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
;; | | ;; |
esac | | esac |
else | | else |
case $host_cpu in | | case "$host_cpu" in |
hppa*64*) | | hppa*64*|ia64*) |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
;; | | |
ia64*) | | |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | | |
;; | | ;; |
*) | | *) |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
;; | | ;; |
esac | | esac |
fi | | fi |
if test "$with_gnu_ld" = no; then | | if test "$with_gnu_ld" = no; then |
| | case "$host_cpu" in |
| | hppa*64*) |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
hardcode_libdir_separator_GCJ=: | | |
| | |
case $host_cpu in | | |
hppa*64*|ia64*) | | |
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| | hardcode_libdir_separator_GCJ=: |
| | hardcode_direct_GCJ=no |
| | hardcode_shlibpath_var_GCJ=no |
| | ;; |
| | ia64*) |
| | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
hardcode_direct_GCJ=no | | hardcode_direct_GCJ=no |
hardcode_shlibpath_var_GCJ=no | | hardcode_shlibpath_var_GCJ=no |
| | |
| | # hardcode_minus_L: Not really in the search PATH, |
| | # but as the default location of the library. |
| | hardcode_minus_L_GCJ=yes |
;; | | ;; |
*) | | *) |
| | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| | hardcode_libdir_separator_GCJ=: |
hardcode_direct_GCJ=yes | | hardcode_direct_GCJ=yes |
export_dynamic_flag_spec_GCJ='${wl}-E' | | export_dynamic_flag_spec_GCJ='${wl}-E' |
| | |
| | |
link_all_deplibs_GCJ=yes | | link_all_deplibs_GCJ=yes |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
else | | else |
| | |
hardcode_shlibpath_var_GCJ=no | | hardcode_shlibpath_var_GCJ=no |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | | |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
export_dynamic_flag_spec_GCJ='${wl}-E' | | export_dynamic_flag_spec_GCJ='${wl}-E' |
else | | else |
| | |
allow_undefined_flag_GCJ=' -expect_unresolved \*' | | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
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' | | 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' |
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~ | | 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~ |
$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' | | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| | |
# Both c and cxx compiler support -rpath directly | | # Both c and cxx compiler support -rpath directly |
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| | |
hardcode_libdir_separator_GCJ=: | | hardcode_libdir_separator_GCJ=: |
;; | | ;; |
| | |
| | sco3.2v5*) |
| | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | hardcode_shlibpath_var_GCJ=no |
| | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
| | runpath_var=LD_RUN_PATH |
| | hardcode_runpath_var=yes |
| | ;; |
| | |
solaris*) | | solaris*) |
no_undefined_flag_GCJ=' -z text' | | no_undefined_flag_GCJ=' -z text' |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
wlarc='${wl}' | | |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
else | | else |
wlarc='' | | |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| | |
hardcode_shlibpath_var_GCJ=no | | hardcode_shlibpath_var_GCJ=no |
case $host_os in | | case $host_os in |
solaris2.[0-5] | solaris2.[0-5].*) ;; | | solaris2.[0-5] | solaris2.[0-5].*) ;; |
*) | | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
# The compiler driver will combine linker options so we | | |
# cannot just pass the convience library names through | | |
# without $wl, iff we do not link with $LD. | | |
# Luckily, gcc supports the same syntax we need for Sun Studio. | | |
# Supported since Solaris 2.6 (maybe 2.5.1?) | | |
case $wlarc in | | |
'') | | |
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
*) | | |
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' ;; | | |
esac ;; | | |
esac | | esac |
link_all_deplibs_GCJ=yes | | link_all_deplibs_GCJ=yes |
;; | | ;; |
| | |
fi | | fi |
;; | | ;; |
| | |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | | sysv4.2uw2*) |
no_undefined_flag_GCJ='${wl}-z,text' | | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds_need_lc_GCJ=no | | hardcode_direct_GCJ=yes |
| | hardcode_minus_L_GCJ=no |
hardcode_shlibpath_var_GCJ=no | | hardcode_shlibpath_var_GCJ=no |
runpath_var='LD_RUN_PATH' | | hardcode_runpath_var=yes |
| | runpath_var=LD_RUN_PATH |
| | ;; |
| | |
| | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | else |
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
fi | | fi |
| | runpath_var='LD_RUN_PATH' |
| | hardcode_shlibpath_var_GCJ=no |
;; | | ;; |
| | |
sysv5* | sco3.2v5* | sco5v6*) | | sysv5*) |
# Note: We can NOT use -z defs as we might desire, because we do not | | no_undefined_flag_GCJ=' -z text' |
# link with -lc, and that would cause any symbols used from libc to | | # $CC -shared without GNU ld will not create a library from C++ |
# always be unresolved, which means just about no library would | | # object files and a static libstdc++, better avoid it by now |
# ever link correctly. If we're not using GNU ld we use -z text | | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
# though, which does catch some bad symbols but isn't as heavy-handed | | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
# as -z defs. | | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
no_undefined_flag_GCJ='${wl}-z,text' | | hardcode_libdir_flag_spec_GCJ= |
allow_undefined_flag_GCJ='${wl}-z,nodefs' | | |
archive_cmds_need_lc_GCJ=no | | |
hardcode_shlibpath_var_GCJ=no | | hardcode_shlibpath_var_GCJ=no |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | | |
hardcode_libdir_separator_GCJ=':' | | |
link_all_deplibs_GCJ=yes | | |
export_dynamic_flag_spec_GCJ='${wl}-Bexport' | | |
runpath_var='LD_RUN_PATH' | | runpath_var='LD_RUN_PATH' |
| | |
if test "$GCC" = yes; then | | |
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
else | | |
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | | |
fi | | |
;; | | ;; |
| | |
uts4*) | | uts4*) |
| | |
echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
test "$ld_shlibs_GCJ" = no && can_build_shared=no | | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| | |
| | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| | if test "$GCC" = yes; then |
| | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| | fi |
| | |
# | | # |
# Do we need to explicitly link libc? | | # Do we need to explicitly link libc? |
# | | # |
| | |
libobjs=conftest.$ac_objext | | libobjs=conftest.$ac_objext |
deplibs= | | deplibs= |
wl=$lt_prog_compiler_wl_GCJ | | wl=$lt_prog_compiler_wl_GCJ |
pic_flag=$lt_prog_compiler_pic_GCJ | | |
compiler_flags=-v | | compiler_flags=-v |
linker_flags=-v | | linker_flags=-v |
verstring= | | verstring= |
| | |
shlibpath_var=LIBRARY_PATH | | shlibpath_var=LIBRARY_PATH |
;; | | ;; |
| | |
bsdi[45]*) | | bsdi4*) |
version_type=linux | | version_type=linux |
need_version=no | | need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
dldir=$destdir/`dirname \$dlpath`~ | | dldir=$destdir/`dirname \$dlpath`~ |
test -d \$dldir || mkdir -p \$dldir~ | | test -d \$dldir || mkdir -p \$dldir~ |
$install_prog $dir/$dlname \$dldir/$dlname~ | | $install_prog $dir/$dlname \$dldir/$dlname' |
chmod a+x \$dldir/$dlname' | | |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
dlpath=$dir/\$dldll~ | | dlpath=$dir/\$dldll~ |
$rm \$dlpath' | | $rm \$dlpath' |
| | |
;; | | ;; |
pw32*) | | pw32*) |
# pw32 DLLs use 'pw' prefix rather than 'lib' | | # pw32 DLLs use 'pw' prefix rather than 'lib' |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
;; | | ;; |
esac | | esac |
;; | | ;; |
| | |
soname_spec='${libname}${release}${major}$shared_ext' | | soname_spec='${libname}${release}${major}$shared_ext' |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
shlibpath_var=DYLD_LIBRARY_PATH | | shlibpath_var=DYLD_LIBRARY_PATH |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
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"` | | 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"` |
| | |
dynamic_linker='GNU ld.so' | | dynamic_linker='GNU ld.so' |
;; | | ;; |
| | |
freebsd* | dragonfly*) | | freebsd*) |
# DragonFly does not have aout. When/if they implement a new | | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
# versioning mechanism, adjust this. | | |
if test -x /usr/bin/objformat; then | | |
objformat=`/usr/bin/objformat` | | |
else | | |
case $host_os in | | |
freebsd[123]*) objformat=aout ;; | | |
*) objformat=elf ;; | | |
esac | | |
fi | | |
version_type=freebsd-$objformat | | version_type=freebsd-$objformat |
case $version_type in | | case $version_type in |
freebsd-elf*) | | freebsd-elf*) |
| | |
freebsd2*) | | freebsd2*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
;; | | ;; |
freebsd3.[01]* | freebsdelf3.[01]*) | | freebsd3.01* | freebsdelf3.01*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | | *) # from 3.2 on |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | | |
shlibpath_overrides_runpath=no | | shlibpath_overrides_runpath=no |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
freebsd*) # from 4.6 on | | |
shlibpath_overrides_runpath=yes | | |
hardcode_into_libs=yes | | |
;; | | |
esac | | esac |
;; | | ;; |
| | |
| | |
version_type=sunos | | version_type=sunos |
need_lib_prefix=no | | need_lib_prefix=no |
need_version=no | | need_version=no |
case $host_cpu in | | case "$host_cpu" in |
ia64*) | | ia64*) |
shrext_cmds='.so' | | shrext_cmds='.so' |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | |
postinstall_cmds='chmod 555 $lib' | | postinstall_cmds='chmod 555 $lib' |
;; | | ;; |
| | |
interix3*) | | irix5* | irix6* | nonstopux*) |
| | case $host_os in |
| | nonstopux*) version_type=nonstopux ;; |
| | *) |
| | if test "$lt_cv_prog_gnu_ld" = yes; then |
| | version_type=linux |
| | else |
| | version_type=irix |
| | fi ;; |
| | esac |
| | need_lib_prefix=no |
| | need_version=no |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | case $host_os in |
| | irix5* | nonstopux*) |
| | libsuff= shlibsuff= |
| | ;; |
| | *) |
| | case $LD in # libtool.m4 will add one of these switches to LD |
| | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| | libsuff= shlibsuff= libmagic=32-bit;; |
| | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| | *) libsuff= shlibsuff= libmagic=never-match;; |
| | esac |
| | ;; |
| | esac |
| | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| | shlibpath_overrides_runpath=no |
| | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| | hardcode_into_libs=yes |
| | ;; |
| | |
| | # No shared lib support for Linux oldld, aout, or coff. |
| | linux*oldld* | linux*aout* | linux*coff*) |
| | dynamic_linker=no |
| | ;; |
| | |
| | # This must be Linux ELF. |
| | linux*) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | # This implies no fast_install, which is unacceptable. |
| | # Some rework will be needed to allow for fast_install |
| | # before this can be enabled. |
| | hardcode_into_libs=yes |
| | |
| | # Append ld.so.conf contents to the search path |
| | if test -f /etc/ld.so.conf; then |
| | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
| | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| | fi |
| | |
| | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| | # powerpc, because MkLinux only supported shared libraries with the |
| | # GNU dynamic linker. Since this was broken with cross compilers, |
| | # most powerpc-linux boxes support dynamic linking these days and |
| | # people can always --disable-shared, the test was removed, and we |
| | # assume the GNU/Linux dynamic linker is in use. |
| | dynamic_linker='GNU/Linux ld.so' |
| | ;; |
| | |
| | netbsdelf*-gnu) |
version_type=linux | | version_type=linux |
need_lib_prefix=no | | need_lib_prefix=no |
need_version=no | | need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
soname_spec='${libname}${release}${shared_ext}$major' | | soname_spec='${libname}${release}${shared_ext}$major' |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | | |
shlibpath_var=LD_LIBRARY_PATH | | shlibpath_var=LD_LIBRARY_PATH |
shlibpath_overrides_runpath=no | | shlibpath_overrides_runpath=no |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | dynamic_linker='NetBSD ld.elf_so' |
;; | | ;; |
| | |
irix5* | irix6* | nonstopux*) | | knetbsd*-gnu) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | dynamic_linker='GNU ld.so' |
| | ;; |
| | |
| | netbsd*) |
| | version_type=sunos |
| | need_lib_prefix=no |
| | need_version=no |
| | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | dynamic_linker='NetBSD (a.out) ld.so' |
| | else |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | dynamic_linker='NetBSD ld.elf_so' |
| | fi |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | hardcode_into_libs=yes |
| | ;; |
| | |
| | newsos6) |
| | version_type=linux |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | ;; |
| | |
| | nto-qnx*) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | ;; |
| | |
| | openbsd*) |
| | version_type=sunos |
| | need_lib_prefix=no |
| | need_version=yes |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
case $host_os in | | case $host_os in |
nonstopux*) version_type=nonstopux ;; | | openbsd2.[89] | openbsd2.[89].*) |
| | shlibpath_overrides_runpath=no |
| | ;; |
*) | | *) |
if test "$lt_cv_prog_gnu_ld" = yes; then | | shlibpath_overrides_runpath=yes |
| | ;; |
| | esac |
| | else |
| | shlibpath_overrides_runpath=yes |
| | fi |
| | ;; |
| | |
| | os2*) |
| | libname_spec='$name' |
| | shrext_cmds=".dll" |
| | need_lib_prefix=no |
| | library_names_spec='$libname${shared_ext} $libname.a' |
| | dynamic_linker='OS/2 ld.exe' |
| | shlibpath_var=LIBPATH |
| | ;; |
| | |
| | osf3* | osf4* | osf5*) |
| | version_type=osf |
| | need_lib_prefix=no |
| | need_version=no |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| | ;; |
| | |
| | sco3.2v5*) |
| | version_type=osf |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | ;; |
| | |
| | solaris*) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | hardcode_into_libs=yes |
| | # ldd complains unless libraries are executable |
| | postinstall_cmds='chmod +x $lib' |
| | ;; |
| | |
| | sunos4*) |
| | version_type=sunos |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=yes |
| | if test "$with_gnu_ld" = yes; then |
| | need_lib_prefix=no |
| | fi |
| | need_version=yes |
| | ;; |
| | |
| | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
version_type=linux | | version_type=linux |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | case $host_vendor in |
| | sni) |
| | shlibpath_overrides_runpath=no |
| | need_lib_prefix=no |
| | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| | runpath_var=LD_RUN_PATH |
| | ;; |
| | siemens) |
| | need_lib_prefix=no |
| | ;; |
| | motorola) |
| | need_lib_prefix=no |
| | need_version=no |
| | shlibpath_overrides_runpath=no |
| | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| | ;; |
| | esac |
| | ;; |
| | |
| | sysv4*MP*) |
| | if test -d /usr/nec ;then |
| | version_type=linux |
| | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| | soname_spec='$libname${shared_ext}.$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | fi |
| | ;; |
| | |
| | uts4*) |
| | version_type=linux |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | ;; |
| | |
| | *) |
| | dynamic_linker=no |
| | ;; |
| | esac |
| | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| | echo "${ECHO_T}$dynamic_linker" >&6 |
| | test "$dynamic_linker" = no && can_build_shared=no |
| | |
| | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| | hardcode_action_GCJ= |
| | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| | test -n "$runpath_var GCJ" || \ |
| | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
| | |
| | # We can hardcode non-existant directories. |
| | if test "$hardcode_direct_GCJ" != no && |
| | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| | # have to relink, otherwise we might link with an installed library |
| | # when we should be linking with a yet-to-be-installed one |
| | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| | test "$hardcode_minus_L_GCJ" != no; then |
| | # Linking always hardcodes the temporary library directory. |
| | hardcode_action_GCJ=relink |
| | else |
| | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| | hardcode_action_GCJ=immediate |
| | fi |
| | else |
| | # We cannot hardcode anything, or else we can only hardcode existing |
| | # directories. |
| | hardcode_action_GCJ=unsupported |
| | fi |
| | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
| | |
| | if test "$hardcode_action_GCJ" = relink; then |
| | # Fast installation is not supported |
| | enable_fast_install=no |
| | elif test "$shlibpath_overrides_runpath" = yes || |
| | test "$enable_shared" = no; then |
| | # Fast installation is not necessary |
| | enable_fast_install=needless |
| | fi |
| | |
| | striplib= |
| | old_striplib= |
| | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| | echo "$as_me:$LINENO: result: yes" >&5 |
| | echo "${ECHO_T}yes" >&6 |
| | else |
| | # FIXME - insert some real tests, host_os isn't really good enough |
| | case $host_os in |
| | darwin*) |
| | if test -n "$STRIP" ; then |
| | striplib="$STRIP -x" |
| | echo "$as_me:$LINENO: result: yes" >&5 |
| | echo "${ECHO_T}yes" >&6 |
| | else |
| | echo "$as_me:$LINENO: result: no" >&5 |
| | echo "${ECHO_T}no" >&6 |
| | fi |
| | ;; |
| | *) |
| | echo "$as_me:$LINENO: result: no" >&5 |
| | echo "${ECHO_T}no" >&6 |
| | ;; |
| | esac |
| | fi |
| | |
| | if test "x$enable_dlopen" != xyes; then |
| | enable_dlopen=unknown |
| | enable_dlopen_self=unknown |
| | enable_dlopen_self_static=unknown |
| | else |
| | lt_cv_dlopen=no |
| | lt_cv_dlopen_libs= |
| | |
| | case $host_os in |
| | beos*) |
| | lt_cv_dlopen="load_add_on" |
| | lt_cv_dlopen_libs= |
| | lt_cv_dlopen_self=yes |
| | ;; |
| | |
| | mingw* | pw32*) |
| | lt_cv_dlopen="LoadLibrary" |
| | lt_cv_dlopen_libs= |
| | ;; |
| | |
| | cygwin*) |
| | lt_cv_dlopen="dlopen" |
| | lt_cv_dlopen_libs= |
| | ;; |
| | |
| | darwin*) |
| | # if libdl is installed we need to link against it |
| | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-ldl $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
| | /* Override any gcc2 internal prototype to avoid an error. */ |
| | #ifdef __cplusplus |
| | extern "C" |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dlopen (); |
| | int |
| | main () |
| | { |
| | dlopen (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_dl_dlopen=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
| | ac_cv_lib_dl_dlopen=no |
| | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| | if test $ac_cv_lib_dl_dlopen = yes; then |
| | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| | else |
| | |
| | lt_cv_dlopen="dyld" |
| | lt_cv_dlopen_libs= |
| | lt_cv_dlopen_self=yes |
| | |
| | fi |
| | |
| | ;; |
| | |
| | *) |
| | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| | if test "${ac_cv_func_shl_load+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| | #define shl_load innocuous_shl_load |
| | |
| | /* System header to define __stub macros and hopefully few prototypes, |
| | which can conflict with char shl_load (); below. |
| | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | <limits.h> exists even on freestanding compilers. */ |
| | |
| | #ifdef __STDC__ |
| | # include <limits.h> |
| | #else |
| | # include <assert.h> |
| | #endif |
| | |
| | #undef shl_load |
| | |
| | /* Override any gcc2 internal prototype to avoid an error. */ |
| | #ifdef __cplusplus |
| | extern "C" |
| | { |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char shl_load (); |
| | /* The GNU C library defines this for functions which it implements |
| | to always fail with ENOSYS. Some functions are actually named |
| | something starting with __ and the normal name is an alias. */ |
| | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| | choke me |
| | #else |
| | char (*f) () = shl_load; |
| | #endif |
| | #ifdef __cplusplus |
| | } |
| | #endif |
| | |
| | int |
| | main () |
| | { |
| | return f != shl_load; |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_func_shl_load=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
| | ac_cv_func_shl_load=no |
| | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| | if test $ac_cv_func_shl_load = yes; then |
| | lt_cv_dlopen="shl_load" |
| | else |
| | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-ldld $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
| | /* Override any gcc2 internal prototype to avoid an error. */ |
| | #ifdef __cplusplus |
| | extern "C" |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char shl_load (); |
| | int |
| | main () |
| | { |
| | shl_load (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_dld_shl_load=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
| | ac_cv_lib_dld_shl_load=no |
| | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| | if test $ac_cv_lib_dld_shl_load = yes; then |
| | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| | else |
| | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| | if test "${ac_cv_func_dlopen+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| | #define dlopen innocuous_dlopen |
| | |
| | /* System header to define __stub macros and hopefully few prototypes, |
| | which can conflict with char dlopen (); below. |
| | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | <limits.h> exists even on freestanding compilers. */ |
| | |
| | #ifdef __STDC__ |
| | # include <limits.h> |
| | #else |
| | # include <assert.h> |
| | #endif |
| | |
| | #undef dlopen |
| | |
| | /* Override any gcc2 internal prototype to avoid an error. */ |
| | #ifdef __cplusplus |
| | extern "C" |
| | { |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dlopen (); |
| | /* The GNU C library defines this for functions which it implements |
| | to always fail with ENOSYS. Some functions are actually named |
| | something starting with __ and the normal name is an alias. */ |
| | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| | choke me |
| | #else |
| | char (*f) () = dlopen; |
| | #endif |
| | #ifdef __cplusplus |
| | } |
| | #endif |
| | |
| | int |
| | main () |
| | { |
| | return f != dlopen; |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_func_dlopen=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
| | ac_cv_func_dlopen=no |
| | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| | if test $ac_cv_func_dlopen = yes; then |
| | lt_cv_dlopen="dlopen" |
| | else |
| | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-ldl $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
| | /* Override any gcc2 internal prototype to avoid an error. */ |
| | #ifdef __cplusplus |
| | extern "C" |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dlopen (); |
| | int |
| | main () |
| | { |
| | dlopen (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_dl_dlopen=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
| | ac_cv_lib_dl_dlopen=no |
| | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| | if test $ac_cv_lib_dl_dlopen = yes; then |
| | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| | else |
| | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-lsvld $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
| | /* Override any gcc2 internal prototype to avoid an error. */ |
| | #ifdef __cplusplus |
| | extern "C" |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dlopen (); |
| | int |
| | main () |
| | { |
| | dlopen (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_svld_dlopen=yes |
| | else |
| | echo "$as_me: failed program was:" >&5 |
| | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
| | ac_cv_lib_svld_dlopen=no |
| | fi |
| | rm -f conftest.err conftest.$ac_objext \ |
| | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| | if test $ac_cv_lib_svld_dlopen = yes; then |
| | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| | else |
| | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | else |
| | ac_check_lib_save_LIBS=$LIBS |
| | LIBS="-ldld $LIBS" |
| | cat >conftest.$ac_ext <<_ACEOF |
| | /* confdefs.h. */ |
| | _ACEOF |
| | cat confdefs.h >>conftest.$ac_ext |
| | cat >>conftest.$ac_ext <<_ACEOF |
| | /* end confdefs.h. */ |
| | |
| | /* Override any gcc2 internal prototype to avoid an error. */ |
| | #ifdef __cplusplus |
| | extern "C" |
| | #endif |
| | /* We use char because int might match the return type of a gcc2 |
| | builtin and then its argument prototype would still apply. */ |
| | char dld_link (); |
| | int |
| | main () |
| | { |
| | dld_link (); |
| | ; |
| | return 0; |
| | } |
| | _ACEOF |
| | rm -f conftest.$ac_objext conftest$ac_exeext |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>conftest.er1 |
| | ac_status=$? |
| | grep -v '^ *+' conftest.er1 >conftest.err |
| | rm -f conftest.er1 |
| | cat conftest.err >&5 |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && |
| | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; } && |
| | { ac_try='test -s conftest$ac_exeext' |
| | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | (eval $ac_try) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); }; }; then |
| | ac_cv_lib_dld_dld_link=yes |
else | | else |
version_type=irix | | echo "$as_me: failed program was:" >&5 |
fi ;; | | sed 's/^/| /' conftest.$ac_ext >&5 |
esac | | |
need_lib_prefix=no | | |
need_version=no | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | | |
case $host_os in | | |
irix5* | nonstopux*) | | |
libsuff= shlibsuff= | | |
;; | | |
*) | | |
case $LD in # libtool.m4 will add one of these switches to LD | | |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | | |
libsuff= shlibsuff= libmagic=32-bit;; | | |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | | |
libsuff=32 shlibsuff=N32 libmagic=N32;; | | |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | | |
libsuff=64 shlibsuff=64 libmagic=64-bit;; | | |
*) libsuff= shlibsuff= libmagic=never-match;; | | |
esac | | |
;; | | |
esac | | |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | | |
shlibpath_overrides_runpath=no | | |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | | |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | | |
hardcode_into_libs=yes | | |
;; | | |
| | |
# No shared lib support for Linux oldld, aout, or coff. | | ac_cv_lib_dld_dld_link=no |
linux*oldld* | linux*aout* | linux*coff*) | | fi |
dynamic_linker=no | | rm -f conftest.err conftest.$ac_objext \ |
;; | | conftest$ac_exeext conftest.$ac_ext |
| | LIBS=$ac_check_lib_save_LIBS |
| | fi |
| | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| | if test $ac_cv_lib_dld_dld_link = yes; then |
| | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| | fi |
| | |
# This must be Linux ELF. | | |
linux*) | | |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=no | | |
# This implies no fast_install, which is unacceptable. | | |
# Some rework will be needed to allow for fast_install | | |
# before this can be enabled. | | |
hardcode_into_libs=yes | | |
| | |
# find out which ABI we are using | | |
libsuff= | | |
case "$host_cpu" in | | |
x86_64*|s390x*|powerpc64*) | | |
echo '#line 17422 "configure"' > conftest.$ac_ext | | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | | |
(eval $ac_compile) 2>&5 | | |
ac_status=$? | | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | |
(exit $ac_status); }; then | | |
case `/usr/bin/file conftest.$ac_objext` in | | |
*64-bit*) | | |
libsuff=64 | | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | | |
;; | | |
esac | | |
fi | | fi |
rm -rf conftest* | | |
;; | | |
esac | | |
| | |
# Append ld.so.conf contents to the search path | | |
if test -f /etc/ld.so.conf; then | | |
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' ' '` | | |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | | |
fi | | fi |
| | |
# We used to test for /lib/ld.so.1 and disable shared libraries on | | |
# powerpc, because MkLinux only supported shared libraries with the | | |
# GNU dynamic linker. Since this was broken with cross compilers, | | |
# most powerpc-linux boxes support dynamic linking these days and | | |
# people can always --disable-shared, the test was removed, and we | | |
# assume the GNU/Linux dynamic linker is in use. | | |
dynamic_linker='GNU/Linux ld.so' | | |
;; | | |
| | |
knetbsd*-gnu) | | fi |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=no | | |
hardcode_into_libs=yes | | |
dynamic_linker='GNU ld.so' | | |
;; | | |
| | |
netbsd*) | | |
version_type=sunos | | |
need_lib_prefix=no | | |
need_version=no | | |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | | |
dynamic_linker='NetBSD (a.out) ld.so' | | |
else | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
dynamic_linker='NetBSD ld.elf_so' | | |
fi | | fi |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=yes | | |
hardcode_into_libs=yes | | |
;; | | |
| | |
newsos6) | | |
version_type=linux | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=yes | | |
;; | | |
| | |
nto-qnx*) | | fi |
version_type=linux | | |
need_lib_prefix=no | | |
need_version=no | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
shlibpath_overrides_runpath=yes | | |
;; | | |
| | |
openbsd*) | | |
version_type=sunos | | |
sys_lib_dlsearch_path_spec="/usr/lib" | | |
need_lib_prefix=no | | |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | | |
case $host_os in | | |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; | | |
*) need_version=no ;; | | |
esac | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | |
case $host_os in | | |
openbsd2.[89] | openbsd2.[89].*) | | |
shlibpath_overrides_runpath=no | | |
;; | | |
*) | | |
shlibpath_overrides_runpath=yes | | |
;; | | ;; |
esac | | esac |
| | |
| | if test "x$lt_cv_dlopen" != xno; then |
| | enable_dlopen=yes |
else | | else |
shlibpath_overrides_runpath=yes | | enable_dlopen=no |
fi | | fi |
;; | | |
| | |
os2*) | | case $lt_cv_dlopen in |
libname_spec='$name' | | dlopen) |
shrext_cmds=".dll" | | save_CPPFLAGS="$CPPFLAGS" |
need_lib_prefix=no | | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
library_names_spec='$libname${shared_ext} $libname.a' | | |
dynamic_linker='OS/2 ld.exe' | | |
shlibpath_var=LIBPATH | | |
;; | | |
| | |
osf3* | osf4* | osf5*) | | save_LDFLAGS="$LDFLAGS" |
version_type=osf | | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
need_lib_prefix=no | | |
need_version=no | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | | |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | | |
;; | | |
| | |
solaris*) | | save_LIBS="$LIBS" |
version_type=linux | | LIBS="$lt_cv_dlopen_libs $LIBS" |
need_lib_prefix=no | | |
need_version=no | | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
soname_spec='${libname}${release}${shared_ext}$major' | | if test "${lt_cv_dlopen_self+set}" = set; then |
shlibpath_var=LD_LIBRARY_PATH | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
shlibpath_overrides_runpath=yes | | else |
hardcode_into_libs=yes | | if test "$cross_compiling" = yes; then : |
# ldd complains unless libraries are executable | | lt_cv_dlopen_self=cross |
postinstall_cmds='chmod +x $lib' | | else |
;; | | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| | lt_status=$lt_dlunknown |
| | cat > conftest.$ac_ext <<EOF |
| | #line 17983 "configure" |
| | #include "confdefs.h" |
| | |
| | #if HAVE_DLFCN_H |
| | #include <dlfcn.h> |
| | #endif |
| | |
| | #include <stdio.h> |
| | |
| | #ifdef RTLD_GLOBAL |
| | # define LT_DLGLOBAL RTLD_GLOBAL |
| | #else |
| | # ifdef DL_GLOBAL |
| | # define LT_DLGLOBAL DL_GLOBAL |
| | # else |
| | # define LT_DLGLOBAL 0 |
| | # endif |
| | #endif |
| | |
| | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| | find out it does not work in some platform. */ |
| | #ifndef LT_DLLAZY_OR_NOW |
| | # ifdef RTLD_LAZY |
| | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| | # else |
| | # ifdef DL_LAZY |
| | # define LT_DLLAZY_OR_NOW DL_LAZY |
| | # else |
| | # ifdef RTLD_NOW |
| | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| | # else |
| | # ifdef DL_NOW |
| | # define LT_DLLAZY_OR_NOW DL_NOW |
| | # else |
| | # define LT_DLLAZY_OR_NOW 0 |
| | # endif |
| | # endif |
| | # endif |
| | # endif |
| | #endif |
| | |
| | #ifdef __cplusplus |
| | extern "C" void exit (int); |
| | #endif |
| | |
| | void fnord() { int i=42;} |
| | int main () |
| | { |
| | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| | int status = $lt_dlunknown; |
| | |
| | if (self) |
| | { |
| | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| | /* dlclose (self); */ |
| | } |
| | |
sunos4*) | | exit (status); |
version_type=sunos | | } |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | EOF |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
shlibpath_var=LD_LIBRARY_PATH | | (eval $ac_link) 2>&5 |
shlibpath_overrides_runpath=yes | | ac_status=$? |
if test "$with_gnu_ld" = yes; then | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
need_lib_prefix=no | | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| | (./conftest; exit; ) 2>/dev/null |
| | lt_status=$? |
| | case x$lt_status in |
| | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| | esac |
| | else : |
| | # compilation failed |
| | lt_cv_dlopen_self=no |
fi | | fi |
need_version=yes | | fi |
;; | | rm -fr conftest* |
| | |
sysv4 | sysv4.3*) | | |
version_type=linux | | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
case $host_vendor in | | |
sni) | | |
shlibpath_overrides_runpath=no | | |
need_lib_prefix=no | | |
export_dynamic_flag_spec='${wl}-Blargedynsym' | | |
runpath_var=LD_RUN_PATH | | |
;; | | |
siemens) | | |
need_lib_prefix=no | | |
;; | | |
motorola) | | |
need_lib_prefix=no | | |
need_version=no | | |
shlibpath_overrides_runpath=no | | |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | | |
;; | | |
esac | | |
;; | | |
| | |
sysv4*MP*) | | |
if test -d /usr/nec ;then | | |
version_type=linux | | |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | | |
soname_spec='$libname${shared_ext}.$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
fi | | fi |
;; | | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| | |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | | if test "x$lt_cv_dlopen_self" = xyes; then |
version_type=freebsd-elf | | LDFLAGS="$LDFLAGS $link_static_flag" |
need_lib_prefix=no | | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
need_version=no | | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | | if test "${lt_cv_dlopen_self_static+set}" = set; then |
soname_spec='${libname}${release}${shared_ext}$major' | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
shlibpath_var=LD_LIBRARY_PATH | | |
hardcode_into_libs=yes | | |
if test "$with_gnu_ld" = yes; then | | |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | | |
shlibpath_overrides_runpath=no | | |
else | | else |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | | if test "$cross_compiling" = yes; then : |
shlibpath_overrides_runpath=yes | | lt_cv_dlopen_self_static=cross |
case $host_os in | | else |
sco3.2v5*) | | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | | lt_status=$lt_dlunknown |
;; | | cat > conftest.$ac_ext <<EOF |
esac | | #line 18081 "configure" |
fi | | #include "confdefs.h" |
sys_lib_dlsearch_path_spec='/usr/lib' | | |
;; | | |
| | |
uts4*) | | #if HAVE_DLFCN_H |
version_type=linux | | #include <dlfcn.h> |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | #endif |
soname_spec='${libname}${release}${shared_ext}$major' | | |
shlibpath_var=LD_LIBRARY_PATH | | |
;; | | |
| | |
*) | | #include <stdio.h> |
dynamic_linker=no | | |
;; | | |
esac | | |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | | |
echo "${ECHO_T}$dynamic_linker" >&6 | | |
test "$dynamic_linker" = no && can_build_shared=no | | |
| | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | | #ifdef RTLD_GLOBAL |
if test "$GCC" = yes; then | | # define LT_DLGLOBAL RTLD_GLOBAL |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | | #else |
| | # ifdef DL_GLOBAL |
| | # define LT_DLGLOBAL DL_GLOBAL |
| | # else |
| | # define LT_DLGLOBAL 0 |
| | # endif |
| | #endif |
| | |
| | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| | find out it does not work in some platform. */ |
| | #ifndef LT_DLLAZY_OR_NOW |
| | # ifdef RTLD_LAZY |
| | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| | # else |
| | # ifdef DL_LAZY |
| | # define LT_DLLAZY_OR_NOW DL_LAZY |
| | # else |
| | # ifdef RTLD_NOW |
| | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| | # else |
| | # ifdef DL_NOW |
| | # define LT_DLLAZY_OR_NOW DL_NOW |
| | # else |
| | # define LT_DLLAZY_OR_NOW 0 |
| | # endif |
| | # endif |
| | # endif |
| | # endif |
| | #endif |
| | |
| | #ifdef __cplusplus |
| | extern "C" void exit (int); |
| | #endif |
| | |
| | void fnord() { int i=42;} |
| | int main () |
| | { |
| | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| | int status = $lt_dlunknown; |
| | |
| | if (self) |
| | { |
| | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| | /* dlclose (self); */ |
| | } |
| | |
| | exit (status); |
| | } |
| | EOF |
| | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | (eval $ac_link) 2>&5 |
| | ac_status=$? |
| | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| | (./conftest; exit; ) 2>/dev/null |
| | lt_status=$? |
| | case x$lt_status in |
| | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| | esac |
| | else : |
| | # compilation failed |
| | lt_cv_dlopen_self_static=no |
fi | | fi |
| | fi |
| | rm -fr conftest* |
| | |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | | |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | | |
hardcode_action_GCJ= | | |
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | | |
test -n "$runpath_var_GCJ" || \ | | |
test "X$hardcode_automatic_GCJ" = "Xyes" ; then | | |
| | |
# We can hardcode non-existant directories. | | |
if test "$hardcode_direct_GCJ" != no && | | |
# If the only mechanism to avoid hardcoding is shlibpath_var, we | | |
# have to relink, otherwise we might link with an installed library | | |
# when we should be linking with a yet-to-be-installed one | | |
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | | |
test "$hardcode_minus_L_GCJ" != no; then | | |
# Linking always hardcodes the temporary library directory. | | |
hardcode_action_GCJ=relink | | |
else | | |
# We can link without hardcoding, and we can hardcode nonexisting dirs. | | |
hardcode_action_GCJ=immediate | | |
fi | | fi |
else | | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
# We cannot hardcode anything, or else we can only hardcode existing | | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
# directories. | | |
hardcode_action_GCJ=unsupported | | |
fi | | fi |
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | | |
echo "${ECHO_T}$hardcode_action_GCJ" >&6 | | |
| | |
if test "$hardcode_action_GCJ" = relink; then | | CPPFLAGS="$save_CPPFLAGS" |
# Fast installation is not supported | | LDFLAGS="$save_LDFLAGS" |
enable_fast_install=no | | LIBS="$save_LIBS" |
elif test "$shlibpath_overrides_runpath" = yes || | | ;; |
test "$enable_shared" = no; then | | esac |
# Fast installation is not necessary | | |
enable_fast_install=needless | | case $lt_cv_dlopen_self in |
| | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| | *) enable_dlopen_self=unknown ;; |
| | esac |
| | |
| | case $lt_cv_dlopen_self_static in |
| | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| | *) enable_dlopen_self_static=unknown ;; |
| | esac |
fi | | fi |
| | |
| | |
| | |
# Now quote all the things that may contain metacharacters while being | | # Now quote all the things that may contain metacharacters while being |
# careful not to overquote the AC_SUBSTed values. We take copies of the | | # careful not to overquote the AC_SUBSTed values. We take copies of the |
# variables and quote the copies for generation of the libtool script. | | # variables and quote the copies for generation of the libtool script. |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
SED SHELL STRIP \ | | SED SHELL STRIP \ |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | |
# The host system. | | # The host system. |
host_alias=$host_alias | | host_alias=$host_alias |
host=$host | | host=$host |
host_os=$host_os | | |
| | |
# The build system. | | |
build_alias=$build_alias | | |
build=$build | | |
build_os=$build_os | | |
| | |
# An echo program that does not interpret backslashes. | | # An echo program that does not interpret backslashes. |
echo=$lt_echo | | echo=$lt_echo |
| | |
# A C compiler. | | # A C compiler. |
LTCC=$lt_LTCC | | LTCC=$lt_LTCC |
| | |
# LTCC compiler flags. | | |
LTCFLAGS=$lt_LTCFLAGS | | |
| | |
# A language-specific compiler. | | # A language-specific compiler. |
CC=$lt_compiler_GCJ | | CC=$lt_compiler_GCJ |
| | |
| | |
# If no C compiler was specified, use CC. | | # If no C compiler was specified, use CC. |
LTCC=${LTCC-"$CC"} | | LTCC=${LTCC-"$CC"} |
| | |
# If no C compiler flags were specified, use CFLAGS. | | |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
compiler=$CC | | compiler=$CC |
| | |
| | |
# save warnings/boilerplate of simple test code | | |
ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext | | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_compiler_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
| | |
ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_link_test_code" >conftest.$ac_ext | | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | | |
_lt_linker_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
| | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | | lt_save_CC="$CC" |
CC=${RC-"windres"} | | CC=${RC-"windres"} |
compiler=$CC | | compiler=$CC |
compiler_RC=$CC | | compiler_RC=$CC |
for cc_temp in $compiler""; do | | |
case $cc_temp in | | |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | | |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
| | |
lt_cv_prog_compiler_c_o_RC=yes | | lt_cv_prog_compiler_c_o_RC=yes |
| | |
# The else clause should only fire when bootstrapping the | | # The else clause should only fire when bootstrapping the |
| | |
# Now quote all the things that may contain metacharacters while being | | # Now quote all the things that may contain metacharacters while being |
# careful not to overquote the AC_SUBSTed values. We take copies of the | | # careful not to overquote the AC_SUBSTed values. We take copies of the |
# variables and quote the copies for generation of the libtool script. | | # variables and quote the copies for generation of the libtool script. |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
SED SHELL STRIP \ | | SED SHELL STRIP \ |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | |
# The host system. | | # The host system. |
host_alias=$host_alias | | host_alias=$host_alias |
host=$host | | host=$host |
host_os=$host_os | | |
| | |
# The build system. | | |
build_alias=$build_alias | | |
build=$build | | |
build_os=$build_os | | |
| | |
# An echo program that does not interpret backslashes. | | # An echo program that does not interpret backslashes. |
echo=$lt_echo | | echo=$lt_echo |
| | |
# A C compiler. | | # A C compiler. |
LTCC=$lt_LTCC | | LTCC=$lt_LTCC |
| | |
# LTCC compiler flags. | | |
LTCFLAGS=$lt_LTCFLAGS | | |
| | |
# A language-specific compiler. | | # A language-specific compiler. |
CC=$lt_compiler_RC | | CC=$lt_compiler_RC |
| | |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
fi | | fi |
| | |
| | |
| | |
| | if test "x$ac_path_x_has_been_run" != xyes; then |
echo "$as_me:$LINENO: checking for X" >&5 | | echo "$as_me:$LINENO: checking for X" >&5 |
echo $ECHO_N "checking for X... $ECHO_C" >&6 | | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| | |
| | ac_path_x_has_been_run=yes |
| | |
# Check whether --with-x or --without-x was given. | | # Check whether --with-x or --without-x was given. |
if test "${with_x+set}" = set; then | | if test "${with_x+set}" = set; then |
| | |
/usr/openwin/share/include' | | /usr/openwin/share/include' |
| | |
if test "$ac_x_includes" = no; then | | if test "$ac_x_includes" = no; then |
# Guess where to find include files, by looking for Xlib.h. | | # Guess where to find include files, by looking for a specified header file. |
# First, try using that file with no special directory specified. | | # First, try using that file with no special directory specified. |
cat >conftest.$ac_ext <<_ACEOF | | cat >conftest.$ac_ext <<_ACEOF |
/* confdefs.h. */ | | /* confdefs.h. */ |
| | |
cat confdefs.h >>conftest.$ac_ext | | cat confdefs.h >>conftest.$ac_ext |
cat >>conftest.$ac_ext <<_ACEOF | | cat >>conftest.$ac_ext <<_ACEOF |
/* end confdefs.h. */ | | /* end confdefs.h. */ |
#include <X11/Xlib.h> | | #include <X11/Intrinsic.h> |
_ACEOF | | _ACEOF |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | |
sed 's/^/| /' conftest.$ac_ext >&5 | | sed 's/^/| /' conftest.$ac_ext >&5 |
| | |
for ac_dir in $ac_x_header_dirs; do | | for ac_dir in $ac_x_header_dirs; do |
if test -r "$ac_dir/X11/Xlib.h"; then | | if test -r "$ac_dir/X11/Intrinsic.h"; then |
ac_x_includes=$ac_dir | | ac_x_includes=$ac_dir |
break | | break |
fi | | fi |
| | |
cat confdefs.h >>conftest.$ac_ext | | cat confdefs.h >>conftest.$ac_ext |
cat >>conftest.$ac_ext <<_ACEOF | | cat >>conftest.$ac_ext <<_ACEOF |
/* end confdefs.h. */ | | /* end confdefs.h. */ |
#include <X11/Xlib.h> | | #include <X11/Intrinsic.h> |
int | | int |
main () | | main () |
{ | | { |
XrmInitialize () | | XtMalloc (0) |
; | | ; |
return 0; | | return 0; |
} | | } |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
# Update the cache value to reflect the command line values. | | # Update the cache value to reflect the command line values. |
ac_cv_have_x="have_x=yes \ | | ac_cv_have_x="have_x=yes \ |
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | | # It might be that x_includes is empty (headers are found in the |
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | | # standard search path. Then output the corresponding message |
| | ac_out_x_includes=$x_includes |
| | test "x$x_includes" = x && ac_out_x_includes="in standard search path" |
| | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 |
| | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 |
fi | | fi |
| | |
| | fi |
if test "$no_x" = yes; then | | if test "$no_x" = yes; then |
# Not all programs may use this symbol, but it does not hurt to define it. | | # Not all programs may use this symbol, but it does not hurt to define it. |
| | |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
esac | | esac |
else | | else |
if test "$cross_compiling" = yes; then | | if test "$cross_compiling" = yes; then |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
See \`config.log' for more details." >&5 | | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
echo "$as_me: error: cannot run test program while cross compiling | | |
See \`config.log' for more details." >&2;} | | |
{ (exit 1); exit 1; }; } | | { (exit 1); exit 1; }; } |
else | | else |
cat >conftest.$ac_ext <<_ACEOF | | cat >conftest.$ac_ext <<_ACEOF |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
esac | | esac |
else | | else |
if test "$cross_compiling" = yes; then | | if test "$cross_compiling" = yes; then |
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
See \`config.log' for more details." >&5 | | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
echo "$as_me: error: cannot run test program while cross compiling | | |
See \`config.log' for more details." >&2;} | | |
{ (exit 1); exit 1; }; } | | { (exit 1); exit 1; }; } |
else | | else |
cat >conftest.$ac_ext <<_ACEOF | | cat >conftest.$ac_ext <<_ACEOF |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
#include <Xaw.h> | | #include <Xaw.h> |
#include <Ansi.h> | | #include <Ansi.h> |
#include <config.h> | | #include <config.h> |
#include <includes.h> | | /*include <includes.h>*/ |
#include <debug.h> | | #include <debug.h> |
#include <assert.h> | | #include <assert.h> |
| | |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
cat conftest.err >&5 | | cat conftest.err >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
(exit $ac_status); } && | | (exit $ac_status); } && |
{ ac_try='test -z "$ac_c_werror_flag" | | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|| test ! -s conftest.err' | | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
(eval $ac_try) 2>&5 | | (eval $ac_try) 2>&5 |
ac_status=$? | | ac_status=$? |
| | |
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; | | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
esac | | esac |
| | |
if test x"$ac_file" != x-; then | | |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 | | |
echo "$as_me: creating $ac_file" >&6;} | | |
rm -f "$ac_file" | | |
fi | | |
# Let's still pretend it is `configure' which instantiates (i.e., don't | | # Let's still pretend it is `configure' which instantiates (i.e., don't |
# use $as_me), people would be surprised to read: | | # use $as_me), people would be surprised to read: |
# /* config.h. Generated by config.status. */ | | # /* config.h. Generated by config.status. */ |
| | |
fi;; | | fi;; |
esac | | esac |
done` || { (exit 1); exit 1; } | | done` || { (exit 1); exit 1; } |
| | |
| | if test x"$ac_file" != x-; then |
| | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| | echo "$as_me: creating $ac_file" >&6;} |
| | rm -f "$ac_file" |
| | fi |
_ACEOF | | _ACEOF |
cat >>$CONFIG_STATUS <<_ACEOF | | cat >>$CONFIG_STATUS <<_ACEOF |
sed "$ac_vpsub | | sed "$ac_vpsub |