| 7 |
# This configure script is free software; the Free Software Foundation |
# This configure script is free software; the Free Software Foundation |
| 8 |
# gives unlimited permission to copy, distribute and modify it. |
# gives unlimited permission to copy, distribute and modify it. |
| 9 |
|
|
|
# Find the correct PATH separator. Usually this is `:', but |
|
|
# DJGPP uses `;' like DOS. |
|
|
if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
case X$UNAME in |
|
|
*-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
*) lt_cv_sys_path_separator=':' ;; |
|
|
esac |
|
|
fi |
|
|
|
|
| 10 |
|
|
| 11 |
# Check that we are running under the correct shell. |
# Check that we are running under the correct shell. |
| 12 |
SHELL=${CONFIG_SHELL-/bin/sh} |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 25 |
elif test "X$1" = X--fallback-echo; then |
elif test "X$1" = X--fallback-echo; then |
| 26 |
# Avoid inline document here, it may be left over |
# Avoid inline document here, it may be left over |
| 27 |
: |
: |
| 28 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 29 |
# Yippee, $echo works! |
# Yippee, $echo works! |
| 30 |
: |
: |
| 31 |
else |
else |
| 37 |
# used as fallback echo |
# used as fallback echo |
| 38 |
shift |
shift |
| 39 |
cat <<EOF |
cat <<EOF |
| 40 |
|
$* |
| 41 |
EOF |
EOF |
| 42 |
exit 0 |
exit 0 |
| 43 |
fi |
fi |
| 71 |
# |
# |
| 72 |
# So, first we look for a working echo in the user's PATH. |
# So, first we look for a working echo in the user's PATH. |
| 73 |
|
|
| 74 |
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 75 |
for dir in $PATH /usr/ucb; do |
for dir in $PATH /usr/ucb; do |
| 76 |
|
IFS="$lt_save_ifs" |
| 77 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 78 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 79 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 82 |
break |
break |
| 83 |
fi |
fi |
| 84 |
done |
done |
| 85 |
IFS="$save_ifs" |
IFS="$lt_save_ifs" |
| 86 |
|
|
| 87 |
if test "X$echo" = Xecho; then |
if test "X$echo" = Xecho; then |
| 88 |
# We didn't find a better echo, so look for alternatives. |
# We didn't find a better echo, so look for alternatives. |
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` |
| 161 |
|
|
| 162 |
|
tagnames=`echo "$tagnames,F77" | sed 's/^,//'` |
| 163 |
|
|
| 164 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 165 |
as_expr=expr |
as_expr=expr |
| 166 |
else |
else |
| 906 |
ac_env_CPP_value=$CPP |
ac_env_CPP_value=$CPP |
| 907 |
ac_cv_env_CPP_set=${CPP+set} |
ac_cv_env_CPP_set=${CPP+set} |
| 908 |
ac_cv_env_CPP_value=$CPP |
ac_cv_env_CPP_value=$CPP |
| 909 |
|
ac_env_CXX_set=${CXX+set} |
| 910 |
|
ac_env_CXX_value=$CXX |
| 911 |
|
ac_cv_env_CXX_set=${CXX+set} |
| 912 |
|
ac_cv_env_CXX_value=$CXX |
| 913 |
|
ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 914 |
|
ac_env_CXXFLAGS_value=$CXXFLAGS |
| 915 |
|
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 916 |
|
ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 917 |
|
ac_env_CXXCPP_set=${CXXCPP+set} |
| 918 |
|
ac_env_CXXCPP_value=$CXXCPP |
| 919 |
|
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 920 |
|
ac_cv_env_CXXCPP_value=$CXXCPP |
| 921 |
|
ac_env_F77_set=${F77+set} |
| 922 |
|
ac_env_F77_value=$F77 |
| 923 |
|
ac_cv_env_F77_set=${F77+set} |
| 924 |
|
ac_cv_env_F77_value=$F77 |
| 925 |
|
ac_env_FFLAGS_set=${FFLAGS+set} |
| 926 |
|
ac_env_FFLAGS_value=$FFLAGS |
| 927 |
|
ac_cv_env_FFLAGS_set=${FFLAGS+set} |
| 928 |
|
ac_cv_env_FFLAGS_value=$FFLAGS |
| 929 |
|
|
| 930 |
# |
# |
| 931 |
# Report the --help message. |
# Report the --help message. |
| 1013 |
--enable-kWnn build and install kWnn default=yes |
--enable-kWnn build and install kWnn default=yes |
| 1014 |
--enable-ipv6 build and install IPv6 default=no |
--enable-ipv6 build and install IPv6 default=no |
| 1015 |
--enable-unsafe-path allow creating files in an arbitrary path default=no |
--enable-unsafe-path allow creating files in an arbitrary path default=no |
| 1016 |
--enable-shared=PKGS build shared libraries default=yes |
--enable-shared[=PKGS] |
| 1017 |
--enable-static=PKGS build static libraries default=yes |
build shared libraries [default=yes] |
| 1018 |
--enable-fast-install=PKGS optimize for fast installation default=yes |
--enable-static[=PKGS] |
| 1019 |
|
build static libraries [default=yes] |
| 1020 |
|
--enable-fast-install[=PKGS] |
| 1021 |
|
optimize for fast installation [default=yes] |
| 1022 |
--disable-libtool-lock avoid locking (might break parallel builds) |
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1023 |
|
|
| 1024 |
Optional Packages: |
Optional Packages: |
| 1033 |
--with-libkwnn use installed kWnn library default=no |
--with-libkwnn use installed kWnn library default=no |
| 1034 |
--with-kwnn-includes=DIR KWNN include files are in DIR |
--with-kwnn-includes=DIR KWNN include files are in DIR |
| 1035 |
--with-kwnn-libraries=DIR Search for KWNN libraries in DIRdefault=/usr/local/lib |
--with-kwnn-libraries=DIR Search for KWNN libraries in DIRdefault=/usr/local/lib |
| 1036 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1037 |
--with-pic try to use only PIC/non-PIC objects default=use both |
--with-pic try to use only PIC/non-PIC objects [default=use |
| 1038 |
|
both] |
| 1039 |
|
--with-tags[=TAGS] |
| 1040 |
|
include additional configurations [automatic] |
| 1041 |
--with-x use the X Window System |
--with-x use the X Window System |
| 1042 |
|
|
| 1043 |
Some influential environment variables: |
Some influential environment variables: |
| 1048 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1049 |
headers in a nonstandard directory <include dir> |
headers in a nonstandard directory <include dir> |
| 1050 |
CPP C preprocessor |
CPP C preprocessor |
| 1051 |
|
CXX C++ compiler command |
| 1052 |
|
CXXFLAGS C++ compiler flags |
| 1053 |
|
CXXCPP C++ preprocessor |
| 1054 |
|
F77 Fortran 77 compiler command |
| 1055 |
|
FFLAGS Fortran 77 compiler flags |
| 1056 |
|
|
| 1057 |
Use these variables to override the choices made by `configure' or to help |
Use these variables to override the choices made by `configure' or to help |
| 1058 |
it to find libraries and programs with nonstandard names/locations. |
it to find libraries and programs with nonstandard names/locations. |
| 1773 |
|
|
| 1774 |
|
|
| 1775 |
if test ${unsafe_path} = true; then |
if test ${unsafe_path} = true; then |
| 1776 |
cat >>confdefs.h <<\_ACEOF |
|
| 1777 |
|
cat >>confdefs.h <<\_ACEOF |
| 1778 |
#define WNN_ALLOW_UNSAFE_PATH 1 |
#define WNN_ALLOW_UNSAFE_PATH 1 |
| 1779 |
_ACEOF |
_ACEOF |
| 1780 |
|
|
| 2547 |
;; |
;; |
| 2548 |
*-*-bsdi*) |
*-*-bsdi*) |
| 2549 |
;; |
;; |
| 2550 |
|
*-*-darwin*) |
| 2551 |
|
# Unfortunately, autoconf (at least 2.57) does not recognize |
| 2552 |
|
# proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does |
| 2553 |
|
# not work with pubdic+ processing.) So define here .... |
| 2554 |
|
CPP=${CPP:-"gcc -E -no-cpp-precomp"} |
| 2555 |
|
;; |
| 2556 |
*-*-sunos*) |
*-*-sunos*) |
| 2557 |
if test $GCC = yes; then |
if test $GCC = yes; then |
| 2558 |
CCOPTIONS="-Dsun -Dsparc" |
CCOPTIONS="-Dsun -Dsparc" |
| 2929 |
if test "${enable_shared+set}" = set; then |
if test "${enable_shared+set}" = set; then |
| 2930 |
enableval="$enable_shared" |
enableval="$enable_shared" |
| 2931 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
| 2932 |
case $enableval in |
case $enableval in |
| 2933 |
yes) enable_shared=yes ;; |
yes) enable_shared=yes ;; |
| 2934 |
no) enable_shared=no ;; |
no) enable_shared=no ;; |
| 2935 |
*) |
*) |
| 2936 |
enable_shared=no |
enable_shared=no |
| 2937 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
| 2938 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2939 |
for pkg in $enableval; do |
for pkg in $enableval; do |
| 2940 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
| 2941 |
enable_shared=yes |
if test "X$pkg" = "X$p"; then |
| 2942 |
fi |
enable_shared=yes |
| 2943 |
done |
fi |
| 2944 |
IFS="$ac_save_ifs" |
done |
| 2945 |
;; |
IFS="$lt_save_ifs" |
| 2946 |
esac |
;; |
| 2947 |
|
esac |
| 2948 |
else |
else |
| 2949 |
enable_shared=yes |
enable_shared=yes |
| 2950 |
fi; |
fi; |
| 2951 |
|
|
| 2952 |
# Check whether --enable-static or --disable-static was given. |
# Check whether --enable-static or --disable-static was given. |
| 2953 |
if test "${enable_static+set}" = set; then |
if test "${enable_static+set}" = set; then |
| 2954 |
enableval="$enable_static" |
enableval="$enable_static" |
| 2955 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
| 2956 |
case $enableval in |
case $enableval in |
| 2957 |
yes) enable_static=yes ;; |
yes) enable_static=yes ;; |
| 2958 |
no) enable_static=no ;; |
no) enable_static=no ;; |
| 2959 |
*) |
*) |
| 2960 |
enable_static=no |
enable_static=no |
| 2961 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
| 2962 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2963 |
for pkg in $enableval; do |
for pkg in $enableval; do |
| 2964 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
| 2965 |
enable_static=yes |
if test "X$pkg" = "X$p"; then |
| 2966 |
fi |
enable_static=yes |
| 2967 |
done |
fi |
| 2968 |
IFS="$ac_save_ifs" |
done |
| 2969 |
;; |
IFS="$lt_save_ifs" |
| 2970 |
esac |
;; |
| 2971 |
|
esac |
| 2972 |
else |
else |
| 2973 |
enable_static=yes |
enable_static=yes |
| 2974 |
fi; |
fi; |
| 2975 |
|
|
| 2976 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
# Check whether --enable-fast-install or --disable-fast-install was given. |
| 2977 |
if test "${enable_fast_install+set}" = set; then |
if test "${enable_fast_install+set}" = set; then |
| 2978 |
enableval="$enable_fast_install" |
enableval="$enable_fast_install" |
| 2979 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
| 2980 |
case $enableval in |
case $enableval in |
| 2981 |
yes) enable_fast_install=yes ;; |
yes) enable_fast_install=yes ;; |
| 2982 |
no) enable_fast_install=no ;; |
no) enable_fast_install=no ;; |
| 2983 |
*) |
*) |
| 2984 |
enable_fast_install=no |
enable_fast_install=no |
| 2985 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
| 2986 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 2987 |
for pkg in $enableval; do |
for pkg in $enableval; do |
| 2988 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
| 2989 |
enable_fast_install=yes |
if test "X$pkg" = "X$p"; then |
| 2990 |
fi |
enable_fast_install=yes |
| 2991 |
done |
fi |
| 2992 |
IFS="$ac_save_ifs" |
done |
| 2993 |
;; |
IFS="$lt_save_ifs" |
| 2994 |
esac |
;; |
| 2995 |
|
esac |
| 2996 |
else |
else |
| 2997 |
enable_fast_install=yes |
enable_fast_install=yes |
| 2998 |
fi; |
fi; |
| 2999 |
|
|
| 3000 |
|
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 3001 |
|
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 3002 |
|
if test "${lt_cv_path_SED+set}" = set; then |
| 3003 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3004 |
|
else |
| 3005 |
|
# Loop through the user's path and test for sed and gsed. |
| 3006 |
|
# Then use that list of sed's as ones to test for truncation. |
| 3007 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3008 |
|
for as_dir in $PATH |
| 3009 |
|
do |
| 3010 |
|
IFS=$as_save_IFS |
| 3011 |
|
test -z "$as_dir" && as_dir=. |
| 3012 |
|
for lt_ac_prog in sed gsed; do |
| 3013 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3014 |
|
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 3015 |
|
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 3016 |
|
fi |
| 3017 |
|
done |
| 3018 |
|
done |
| 3019 |
|
done |
| 3020 |
|
lt_ac_max=0 |
| 3021 |
|
lt_ac_count=0 |
| 3022 |
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 3023 |
|
# along with /bin/sed that truncates output. |
| 3024 |
|
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 3025 |
|
test ! -f $lt_ac_sed && break |
| 3026 |
|
cat /dev/null > conftest.in |
| 3027 |
|
lt_ac_count=0 |
| 3028 |
|
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 3029 |
|
# Check for GNU sed and select it if it is found. |
| 3030 |
|
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 3031 |
|
lt_cv_path_SED=$lt_ac_sed |
| 3032 |
|
break |
| 3033 |
|
fi |
| 3034 |
|
while true; do |
| 3035 |
|
cat conftest.in conftest.in >conftest.tmp |
| 3036 |
|
mv conftest.tmp conftest.in |
| 3037 |
|
cp conftest.in conftest.nl |
| 3038 |
|
echo >>conftest.nl |
| 3039 |
|
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 3040 |
|
cmp -s conftest.out conftest.nl || break |
| 3041 |
|
# 10000 chars as input seems more than enough |
| 3042 |
|
test $lt_ac_count -gt 10 && break |
| 3043 |
|
lt_ac_count=`expr $lt_ac_count + 1` |
| 3044 |
|
if test $lt_ac_count -gt $lt_ac_max; then |
| 3045 |
|
lt_ac_max=$lt_ac_count |
| 3046 |
|
lt_cv_path_SED=$lt_ac_sed |
| 3047 |
|
fi |
| 3048 |
|
done |
| 3049 |
|
done |
| 3050 |
|
SED=$lt_cv_path_SED |
| 3051 |
|
|
| 3052 |
|
fi |
| 3053 |
|
|
| 3054 |
|
echo "$as_me:$LINENO: result: $SED" >&5 |
| 3055 |
|
echo "${ECHO_T}$SED" >&6 |
| 3056 |
|
|
| 3057 |
|
echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3058 |
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3059 |
|
if test "${ac_cv_prog_egrep+set}" = set; then |
| 3060 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3061 |
|
else |
| 3062 |
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3063 |
|
then ac_cv_prog_egrep='grep -E' |
| 3064 |
|
else ac_cv_prog_egrep='egrep' |
| 3065 |
|
fi |
| 3066 |
|
fi |
| 3067 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3068 |
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3069 |
|
EGREP=$ac_cv_prog_egrep |
| 3070 |
|
|
| 3071 |
|
|
| 3072 |
|
|
| 3073 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 3074 |
if test "${with_gnu_ld+set}" = set; then |
if test "${with_gnu_ld+set}" = set; then |
| 3075 |
withval="$with_gnu_ld" |
withval="$with_gnu_ld" |
| 3080 |
ac_prog=ld |
ac_prog=ld |
| 3081 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
| 3082 |
# Check if gcc -print-prog-name=ld gives a path. |
# Check if gcc -print-prog-name=ld gives a path. |
| 3083 |
echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 3084 |
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| 3085 |
case $host in |
case $host in |
| 3086 |
*-*-mingw*) |
*-*-mingw*) |
| 3087 |
# gcc leaves a trailing carriage return which upsets mingw |
# gcc leaves a trailing carriage return which upsets mingw |
| 3091 |
esac |
esac |
| 3092 |
case $ac_prog in |
case $ac_prog in |
| 3093 |
# Accept absolute paths. |
# Accept absolute paths. |
| 3094 |
[\\/]* | [A-Za-z]:[\\/]*) |
[\\/]* | ?:[\\/]*) |
| 3095 |
re_direlt='/[^/][^/]*/\.\./' |
re_direlt='/[^/][^/]*/\.\./' |
| 3096 |
# Canonicalize the path of ld |
# Canonicalize the path of ld |
| 3097 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 3098 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3099 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 3100 |
done |
done |
| 3101 |
test -z "$LD" && LD="$ac_prog" |
test -z "$LD" && LD="$ac_prog" |
| 3102 |
;; |
;; |
| 3120 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3121 |
else |
else |
| 3122 |
if test -z "$LD"; then |
if test -z "$LD"; then |
| 3123 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3124 |
for ac_dir in $PATH; do |
for ac_dir in $PATH; do |
| 3125 |
|
IFS="$lt_save_ifs" |
| 3126 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
| 3127 |
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 |
| 3128 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3129 |
# 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, |
| 3130 |
# but apparently some GNU ld's only accept -v. |
# but apparently some GNU ld's only accept -v. |
| 3131 |
# 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. |
| 3132 |
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3133 |
|
*GNU* | *'with BFD'*) |
| 3134 |
test "$with_gnu_ld" != no && break |
test "$with_gnu_ld" != no && break |
| 3135 |
else |
;; |
| 3136 |
|
*) |
| 3137 |
test "$with_gnu_ld" != yes && break |
test "$with_gnu_ld" != yes && break |
| 3138 |
fi |
;; |
| 3139 |
|
esac |
| 3140 |
fi |
fi |
| 3141 |
done |
done |
| 3142 |
IFS="$ac_save_ifs" |
IFS="$lt_save_ifs" |
| 3143 |
else |
else |
| 3144 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3145 |
fi |
fi |
| 3162 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3163 |
else |
else |
| 3164 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 3165 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
case `"$LD" -v 2>&1 </dev/null` in |
| 3166 |
|
*GNU* | *'with BFD'*) |
| 3167 |
lt_cv_prog_gnu_ld=yes |
lt_cv_prog_gnu_ld=yes |
| 3168 |
else |
;; |
| 3169 |
|
*) |
| 3170 |
lt_cv_prog_gnu_ld=no |
lt_cv_prog_gnu_ld=no |
| 3171 |
fi |
;; |
| 3172 |
|
esac |
| 3173 |
fi |
fi |
| 3174 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 3175 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| 3186 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3187 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
| 3188 |
reload_flag=$lt_cv_ld_reload_flag |
reload_flag=$lt_cv_ld_reload_flag |
| 3189 |
test -n "$reload_flag" && reload_flag=" $reload_flag" |
case $reload_flag in |
| 3190 |
|
"" | " "*) ;; |
| 3191 |
|
*) reload_flag=" $reload_flag" ;; |
| 3192 |
|
esac |
| 3193 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3194 |
|
|
| 3195 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 3196 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 3201 |
# Let the user override the test. |
# Let the user override the test. |
| 3202 |
lt_cv_path_NM="$NM" |
lt_cv_path_NM="$NM" |
| 3203 |
else |
else |
| 3204 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3205 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 3206 |
|
IFS="$lt_save_ifs" |
| 3207 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
| 3208 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
| 3209 |
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3210 |
# Check to see if the nm accepts a BSD-compat flag. |
# Check to see if the nm accepts a BSD-compat flag. |
| 3211 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3212 |
# nm: unknown option "B" ignored |
# nm: unknown option "B" ignored |
| 3213 |
# Tru64's nm complains that /dev/null is an invalid object file |
# Tru64's nm complains that /dev/null is an invalid object file |
| 3214 |
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3215 |
|
*/dev/null* | *'Invalid file or object type'*) |
| 3216 |
lt_cv_path_NM="$tmp_nm -B" |
lt_cv_path_NM="$tmp_nm -B" |
| 3217 |
break |
break |
| 3218 |
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
;; |
| 3219 |
lt_cv_path_NM="$tmp_nm -p" |
*) |
| 3220 |
break |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3221 |
else |
*/dev/null*) |
| 3222 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
lt_cv_path_NM="$tmp_nm -p" |
| 3223 |
continue # so that we can try to find one that supports BSD flags |
break |
| 3224 |
fi |
;; |
| 3225 |
|
*) |
| 3226 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3227 |
|
continue # so that we can try to find one that supports BSD flags |
| 3228 |
|
;; |
| 3229 |
|
esac |
| 3230 |
|
esac |
| 3231 |
fi |
fi |
| 3232 |
done |
done |
| 3233 |
IFS="$ac_save_ifs" |
IFS="$lt_save_ifs" |
| 3234 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 3235 |
fi |
fi |
| 3236 |
fi |
fi |
| 3237 |
|
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 3238 |
|
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
| 3239 |
NM="$lt_cv_path_NM" |
NM="$lt_cv_path_NM" |
|
echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
echo "${ECHO_T}$NM" >&6 |
|
| 3240 |
|
|
| 3241 |
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 3242 |
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
| 3243 |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 3244 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3245 |
else |
else |
| 3252 |
# `unknown' -- same as none, but documents that we really don't know. |
# `unknown' -- same as none, but documents that we really don't know. |
| 3253 |
# 'pass_all' -- all dependencies passed with no checks. |
# 'pass_all' -- all dependencies passed with no checks. |
| 3254 |
# 'test_compile' -- check by making test program. |
# 'test_compile' -- check by making test program. |
| 3255 |
# ['file_magic [regex]'] -- check by looking for files in library path |
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 3256 |
# which responds to the $file_magic_cmd with a given egrep regex. |
# which responds to the $file_magic_cmd with a given extended regex. |
| 3257 |
# If you have `file' or equivalent on your system and you're not sure |
# If you have `file' or equivalent on your system and you're not sure |
| 3258 |
# whether `pass_all' will *always* work, you probably want this one. |
# whether `pass_all' will *always* work, you probably want this one. |
| 3259 |
|
|
| 3273 |
;; |
;; |
| 3274 |
|
|
| 3275 |
cygwin* | mingw* | pw32*) |
cygwin* | mingw* | pw32*) |
| 3276 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
# win32_libid is a shell function defined in ltmain.sh |
| 3277 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3278 |
|
lt_cv_file_magic_cmd='win32_libid' |
| 3279 |
;; |
;; |
| 3280 |
|
|
| 3281 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
| 3282 |
|
# this will be overwritten by pass_all, but leave it in just in case |
| 3283 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 3284 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3285 |
case "$host_os" in |
case "$host_os" in |
| 3286 |
rhapsody* | darwin1.012) |
rhapsody* | darwin1.[012]) |
| 3287 |
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
| 3288 |
;; |
;; |
| 3289 |
*) # Darwin 1.3 on |
*) # Darwin 1.3 on |
| 3290 |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 3291 |
;; |
;; |
| 3292 |
esac |
esac |
| 3293 |
|
lt_cv_deplibs_check_method=pass_all |
| 3294 |
;; |
;; |
| 3295 |
|
|
| 3296 |
freebsd*) |
freebsd*) |
| 3313 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
| 3314 |
;; |
;; |
| 3315 |
|
|
| 3316 |
hpux10.20*|hpux11*) |
hpux10.20* | hpux11*) |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
| 3317 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
| 3318 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
case "$host_cpu" in |
| 3319 |
|
ia64*) |
| 3320 |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3321 |
|
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3322 |
|
;; |
| 3323 |
|
hppa*64*) |
| 3324 |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 3325 |
|
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3326 |
|
;; |
| 3327 |
|
*) |
| 3328 |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3329 |
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3330 |
|
;; |
| 3331 |
|
esac |
| 3332 |
;; |
;; |
| 3333 |
|
|
| 3334 |
irix5* | irix6*) |
irix5* | irix6* | nonstopux*) |
| 3335 |
case $host_os in |
case $host_os in |
| 3336 |
irix5*) |
irix5* | nonstopux*) |
| 3337 |
# this will be overridden with pass_all, but let us keep it just in case |
# this will be overridden with pass_all, but let us keep it just in case |
| 3338 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 3339 |
;; |
;; |
| 3353 |
;; |
;; |
| 3354 |
|
|
| 3355 |
# This must be Linux ELF. |
# This must be Linux ELF. |
| 3356 |
linux-gnu*) |
linux*) |
| 3357 |
case $host_cpu in |
case $host_cpu in |
| 3358 |
alpha* | i*86 | powerpc* | sparc* | ia64* ) |
alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
| 3359 |
lt_cv_deplibs_check_method=pass_all ;; |
lt_cv_deplibs_check_method=pass_all ;; |
| 3360 |
*) |
*) |
| 3361 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
# glibc up to 2.1.1 does not perform some relocations on ARM |
| 3366 |
|
|
| 3367 |
netbsd*) |
netbsd*) |
| 3368 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 3369 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 3370 |
else |
else |
| 3371 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 3372 |
fi |
fi |
| 3373 |
;; |
;; |
| 3374 |
|
|
| 3378 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3379 |
;; |
;; |
| 3380 |
|
|
| 3381 |
|
nto-qnx) |
| 3382 |
|
lt_cv_deplibs_check_method=unknown |
| 3383 |
|
;; |
| 3384 |
|
|
| 3385 |
|
openbsd*) |
| 3386 |
|
lt_cv_file_magic_cmd=/usr/bin/file |
| 3387 |
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3388 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3389 |
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
| 3390 |
|
else |
| 3391 |
|
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
| 3392 |
|
fi |
| 3393 |
|
;; |
| 3394 |
|
|
| 3395 |
osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
| 3396 |
# this will be overridden with pass_all, but let us keep it just in case |
# this will be overridden with pass_all, but let us keep it just in case |
| 3397 |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 3408 |
lt_cv_file_magic_test_file=/lib/libc.so |
lt_cv_file_magic_test_file=/lib/libc.so |
| 3409 |
;; |
;; |
| 3410 |
|
|
|
sysv5uw[78]* | sysv4*uw2*) |
|
|
lt_cv_deplibs_check_method=pass_all |
|
|
;; |
|
|
|
|
| 3411 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 3412 |
case $host_vendor in |
case $host_vendor in |
| 3413 |
motorola) |
motorola) |
| 3426 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3427 |
lt_cv_file_magic_test_file=/lib/libc.so |
lt_cv_file_magic_test_file=/lib/libc.so |
| 3428 |
;; |
;; |
| 3429 |
|
siemens) |
| 3430 |
|
lt_cv_deplibs_check_method=pass_all |
| 3431 |
|
;; |
| 3432 |
esac |
esac |
| 3433 |
;; |
;; |
| 3434 |
|
|
| 3435 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
| 3436 |
|
lt_cv_deplibs_check_method=pass_all |
| 3437 |
|
;; |
| 3438 |
esac |
esac |
| 3439 |
|
|
| 3440 |
fi |
fi |
| 3442 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
| 3443 |
file_magic_cmd=$lt_cv_file_magic_cmd |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 3444 |
deplibs_check_method=$lt_cv_deplibs_check_method |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 3445 |
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3446 |
|
|
| 3447 |
|
|
| 3448 |
|
|
| 3449 |
|
|
| 3450 |
|
# If no C compiler was specified, use CC. |
| 3451 |
|
LTCC=${LTCC-"$CC"} |
| 3452 |
|
|
| 3453 |
|
# Allow CC to be a program name with arguments. |
| 3454 |
|
compiler=$CC |
| 3455 |
|
|
| 3456 |
|
|
| 3457 |
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3458 |
|
if test "${enable_libtool_lock+set}" = set; then |
| 3459 |
|
enableval="$enable_libtool_lock" |
| 3460 |
|
|
| 3461 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
fi; |
| 3462 |
echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
|
|
|
# These are sane defaults that work on at least a few old systems. |
|
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
|
|
|
# Character class describing NM global symbol codes. |
|
|
symcode='[BCDEGRST]' |
|
|
|
|
|
# Regexp to match symbols that can be accessed directly from C. |
|
|
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 |
|
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
|
|
|
# Define system-specific variables. |
|
|
case $host_os in |
|
|
aix*) |
|
|
symcode='[BCDT]' |
|
|
;; |
|
|
cygwin* | mingw* | pw32*) |
|
|
symcode='[ABCDGISTW]' |
|
|
;; |
|
|
hpux*) # Its linker distinguishes data from code symbols |
|
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
;; |
|
|
irix*) |
|
|
symcode='[BCDEGRST]' |
|
|
;; |
|
|
solaris* | sysv5*) |
|
|
symcode='[BDT]' |
|
|
;; |
|
|
sysv4) |
|
|
symcode='[DFNSTU]' |
|
|
;; |
|
|
esac |
|
| 3463 |
|
|
| 3464 |
# Handle CRLF in mingw tool chain |
# Some flags need to be propagated to the compiler or linker for good |
| 3465 |
opt_cr= |
# libtool support. |
| 3466 |
case $host_os in |
case $host in |
| 3467 |
mingw*) |
ia64-*-hpux*) |
| 3468 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
# Find out which ABI we are using. |
| 3469 |
|
echo 'int i;' > conftest.$ac_ext |
| 3470 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3471 |
|
(eval $ac_compile) 2>&5 |
| 3472 |
|
ac_status=$? |
| 3473 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3474 |
|
(exit $ac_status); }; then |
| 3475 |
|
case `/usr/bin/file conftest.$ac_objext` in |
| 3476 |
|
*ELF-32*) |
| 3477 |
|
HPUX_IA64_MODE="32" |
| 3478 |
|
;; |
| 3479 |
|
*ELF-64*) |
| 3480 |
|
HPUX_IA64_MODE="64" |
| 3481 |
|
;; |
| 3482 |
|
esac |
| 3483 |
|
fi |
| 3484 |
|
rm -rf conftest* |
| 3485 |
;; |
;; |
| 3486 |
esac |
*-*-irix6*) |
| 3487 |
|
# Find out which ABI we are using. |
| 3488 |
# If we're using GNU nm, then use its standard symbol codes. |
echo '#line 3488 "configure"' > conftest.$ac_ext |
|
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
symcode='[ABCDGISTW]' |
|
|
fi |
|
|
|
|
|
# Try without a prefix undercore, then with it. |
|
|
for ac_symprfx in "" "_"; do |
|
|
|
|
|
# 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'" |
|
|
|
|
|
# Check to see that the pipe works correctly. |
|
|
pipe_works=no |
|
|
rm -f conftest* |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#ifdef __cplusplus |
|
|
extern "C" { |
|
|
#endif |
|
|
char nm_test_var; |
|
|
void nm_test_func(){} |
|
|
#ifdef __cplusplus |
|
|
} |
|
|
#endif |
|
|
int main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
EOF |
|
|
|
|
| 3489 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3490 |
(eval $ac_compile) 2>&5 |
(eval $ac_compile) 2>&5 |
| 3491 |
ac_status=$? |
ac_status=$? |
| 3492 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3493 |
(exit $ac_status); }; then |
(exit $ac_status); }; then |
| 3494 |
# Now try to grab the symbols. |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 3495 |
nlist=conftest.nm |
case `/usr/bin/file conftest.$ac_objext` in |
| 3496 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
*32-bit*) |
| 3497 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
LD="${LD-ld} -melf32bsmip" |
| 3498 |
|
;; |
| 3499 |
|
*N32*) |
| 3500 |
|
LD="${LD-ld} -melf32bmipn32" |
| 3501 |
|
;; |
| 3502 |
|
*64-bit*) |
| 3503 |
|
LD="${LD-ld} -melf64bmip" |
| 3504 |
|
;; |
| 3505 |
|
esac |
| 3506 |
|
else |
| 3507 |
|
case `/usr/bin/file conftest.$ac_objext` in |
| 3508 |
|
*32-bit*) |
| 3509 |
|
LD="${LD-ld} -32" |
| 3510 |
|
;; |
| 3511 |
|
*N32*) |
| 3512 |
|
LD="${LD-ld} -n32" |
| 3513 |
|
;; |
| 3514 |
|
*64-bit*) |
| 3515 |
|
LD="${LD-ld} -64" |
| 3516 |
|
;; |
| 3517 |
|
esac |
| 3518 |
|
fi |
| 3519 |
|
fi |
| 3520 |
|
rm -rf conftest* |
| 3521 |
|
;; |
| 3522 |
|
|
| 3523 |
|
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 3524 |
|
# Find out which ABI we are using. |
| 3525 |
|
echo 'int i;' > conftest.$ac_ext |
| 3526 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3527 |
|
(eval $ac_compile) 2>&5 |
| 3528 |
ac_status=$? |
ac_status=$? |
| 3529 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3530 |
(exit $ac_status); } && test -s "$nlist"; then |
(exit $ac_status); }; then |
| 3531 |
# Try sorting and uniquifying the output. |
case "`/usr/bin/file conftest.o`" in |
| 3532 |
if sort "$nlist" | uniq > "$nlist"T; then |
*32-bit*) |
| 3533 |
mv -f "$nlist"T "$nlist" |
case $host in |
| 3534 |
else |
x86_64-*linux*) |
| 3535 |
rm -f "$nlist"T |
LD="${LD-ld} -m elf_i386" |
| 3536 |
fi |
;; |
| 3537 |
|
ppc64-*linux*) |
| 3538 |
|
LD="${LD-ld} -m elf32ppclinux" |
| 3539 |
|
;; |
| 3540 |
|
s390x-*linux*) |
| 3541 |
|
LD="${LD-ld} -m elf_s390" |
| 3542 |
|
;; |
| 3543 |
|
sparc64-*linux*) |
| 3544 |
|
LD="${LD-ld} -m elf32_sparc" |
| 3545 |
|
;; |
| 3546 |
|
esac |
| 3547 |
|
;; |
| 3548 |
|
*64-bit*) |
| 3549 |
|
case $host in |
| 3550 |
|
x86_64-*linux*) |
| 3551 |
|
LD="${LD-ld} -m elf_x86_64" |
| 3552 |
|
;; |
| 3553 |
|
ppc*-*linux*|powerpc*-*linux*) |
| 3554 |
|
LD="${LD-ld} -m elf64ppc" |
| 3555 |
|
;; |
| 3556 |
|
s390*-*linux*) |
| 3557 |
|
LD="${LD-ld} -m elf64_s390" |
| 3558 |
|
;; |
| 3559 |
|
sparc*-*linux*) |
| 3560 |
|
LD="${LD-ld} -m elf64_sparc" |
| 3561 |
|
;; |
| 3562 |
|
esac |
| 3563 |
|
;; |
| 3564 |
|
esac |
| 3565 |
|
fi |
| 3566 |
|
rm -rf conftest* |
| 3567 |
|
;; |
| 3568 |
|
|
| 3569 |
# Make sure that we snagged all the symbols we need. |
*-*-sco3.2v5*) |
| 3570 |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 3571 |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
SAVE_CFLAGS="$CFLAGS" |
| 3572 |
cat <<EOF > conftest.$ac_ext |
CFLAGS="$CFLAGS -belf" |
| 3573 |
#ifdef __cplusplus |
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 3574 |
extern "C" { |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 3575 |
#endif |
if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 3576 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3577 |
|
else |
| 3578 |
|
ac_ext=c |
| 3579 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 3580 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3581 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3582 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3583 |
|
|
| 3584 |
EOF |
cat >conftest.$ac_ext <<_ACEOF |
| 3585 |
# Now generate the symbol file. |
#line $LINENO "configure" |
| 3586 |
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
#include "confdefs.h" |
| 3587 |
|
|
| 3588 |
cat <<EOF >> conftest.$ac_ext |
#ifdef F77_DUMMY_MAIN |
| 3589 |
#if defined (__STDC__) && __STDC__ |
# ifdef __cplusplus |
| 3590 |
# define lt_ptr_t void * |
extern "C" |
| 3591 |
#else |
# endif |
| 3592 |
# define lt_ptr_t char * |
int F77_DUMMY_MAIN() { return 1; } |
|
# define const |
|
| 3593 |
#endif |
#endif |
| 3594 |
|
int |
| 3595 |
/* The mapping between symbol names and symbols. */ |
main () |
|
const struct { |
|
|
const char *name; |
|
|
lt_ptr_t address; |
|
|
} |
|
|
lt_preloaded_symbols[] = |
|
| 3596 |
{ |
{ |
|
EOF |
|
|
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext |
|
|
cat <<\EOF >> conftest.$ac_ext |
|
|
{0, (lt_ptr_t) 0} |
|
|
}; |
|
| 3597 |
|
|
| 3598 |
#ifdef __cplusplus |
; |
| 3599 |
|
return 0; |
| 3600 |
} |
} |
| 3601 |
#endif |
_ACEOF |
| 3602 |
EOF |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 3603 |
# Now try linking the two files. |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
|
|
save_LIBS="$LIBS" |
|
|
save_CFLAGS="$CFLAGS" |
|
|
LIBS="conftstm.$ac_objext" |
|
|
CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
| 3604 |
(eval $ac_link) 2>&5 |
(eval $ac_link) 2>&5 |
| 3605 |
ac_status=$? |
ac_status=$? |
| 3606 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3607 |
(exit $ac_status); } && test -s conftest; then |
(exit $ac_status); } && |
| 3608 |
pipe_works=yes |
{ ac_try='test -s conftest$ac_exeext' |
| 3609 |
fi |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3610 |
LIBS="$save_LIBS" |
(eval $ac_try) 2>&5 |
| 3611 |
CFLAGS="$save_CFLAGS" |
ac_status=$? |
| 3612 |
else |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3613 |
echo "cannot find nm_test_func in $nlist" >&5 |
(exit $ac_status); }; }; then |
| 3614 |
fi |
lt_cv_cc_needs_belf=yes |
| 3615 |
else |
else |
| 3616 |
echo "cannot find nm_test_var in $nlist" >&5 |
echo "$as_me: failed program was:" >&5 |
| 3617 |
fi |
cat conftest.$ac_ext >&5 |
| 3618 |
else |
lt_cv_cc_needs_belf=no |
| 3619 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
fi |
| 3620 |
fi |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3621 |
else |
ac_ext=c |
| 3622 |
echo "$progname: failed program was:" >&5 |
ac_cpp='$CPP $CPPFLAGS' |
| 3623 |
cat conftest.$ac_ext >&5 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3624 |
fi |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3625 |
rm -f conftest* conftst* |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3626 |
|
|
| 3627 |
# Do not use the global_symbol_pipe unless it works. |
fi |
| 3628 |
if test "$pipe_works" = yes; then |
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 3629 |
break |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 3630 |
else |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 3631 |
lt_cv_sys_global_symbol_pipe= |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 3632 |
|
CFLAGS="$SAVE_CFLAGS" |
| 3633 |
fi |
fi |
| 3634 |
done |
;; |
| 3635 |
|
|
| 3636 |
fi |
esac |
| 3637 |
|
|
| 3638 |
|
need_locks="$enable_libtool_lock" |
| 3639 |
|
|
|
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
global_symbol_to_cdecl= |
|
|
else |
|
|
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
fi |
|
|
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
|
|
echo "$as_me:$LINENO: result: failed" >&5 |
|
|
echo "${ECHO_T}failed" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: ok" >&5 |
|
|
echo "${ECHO_T}ok" >&6 |
|
|
fi |
|
| 3640 |
|
|
| 3641 |
|
|
| 3642 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3950 |
|
|
| 3951 |
done |
done |
| 3952 |
|
|
| 3953 |
|
ac_ext=cc |
| 3954 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
| 3955 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3956 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3957 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3958 |
|
if test -n "$ac_tool_prefix"; then |
| 3959 |
|
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 3960 |
|
do |
| 3961 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3962 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3963 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3964 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3965 |
|
if test "${ac_cv_prog_CXX+set}" = set; then |
| 3966 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3967 |
|
else |
| 3968 |
|
if test -n "$CXX"; then |
| 3969 |
|
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3970 |
|
else |
| 3971 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3972 |
|
for as_dir in $PATH |
| 3973 |
|
do |
| 3974 |
|
IFS=$as_save_IFS |
| 3975 |
|
test -z "$as_dir" && as_dir=. |
| 3976 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3977 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3978 |
|
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3979 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3980 |
|
break 2 |
| 3981 |
|
fi |
| 3982 |
|
done |
| 3983 |
|
done |
| 3984 |
|
|
| 3985 |
|
fi |
| 3986 |
|
fi |
| 3987 |
|
CXX=$ac_cv_prog_CXX |
| 3988 |
|
if test -n "$CXX"; then |
| 3989 |
|
echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3990 |
|
echo "${ECHO_T}$CXX" >&6 |
| 3991 |
|
else |
| 3992 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 3993 |
|
echo "${ECHO_T}no" >&6 |
| 3994 |
|
fi |
| 3995 |
|
|
| 3996 |
|
test -n "$CXX" && break |
| 3997 |
|
done |
| 3998 |
|
fi |
| 3999 |
|
if test -z "$CXX"; then |
| 4000 |
|
ac_ct_CXX=$CXX |
| 4001 |
|
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 4002 |
|
do |
| 4003 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4004 |
|
set dummy $ac_prog; ac_word=$2 |
| 4005 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4006 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4007 |
|
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 4008 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4009 |
|
else |
| 4010 |
|
if test -n "$ac_ct_CXX"; then |
| 4011 |
|
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4012 |
|
else |
| 4013 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4014 |
|
for as_dir in $PATH |
| 4015 |
|
do |
| 4016 |
|
IFS=$as_save_IFS |
| 4017 |
|
test -z "$as_dir" && as_dir=. |
| 4018 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4019 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4020 |
|
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 4021 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4022 |
|
break 2 |
| 4023 |
|
fi |
| 4024 |
|
done |
| 4025 |
|
done |
| 4026 |
|
|
| 4027 |
|
fi |
| 4028 |
|
fi |
| 4029 |
|
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4030 |
|
if test -n "$ac_ct_CXX"; then |
| 4031 |
|
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 4032 |
|
echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 4033 |
|
else |
| 4034 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 4035 |
|
echo "${ECHO_T}no" >&6 |
| 4036 |
|
fi |
| 4037 |
|
|
| 4038 |
# Only perform the check for file, if the check method requires it |
test -n "$ac_ct_CXX" && break |
| 4039 |
case $deplibs_check_method in |
done |
| 4040 |
file_magic*) |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 4041 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
| 4042 |
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
CXX=$ac_ct_CXX |
| 4043 |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
fi |
| 4044 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
| 4045 |
|
|
| 4046 |
|
# Provide some information about the compiler. |
| 4047 |
|
echo "$as_me:$LINENO:" \ |
| 4048 |
|
"checking for C++ compiler version" >&5 |
| 4049 |
|
ac_compiler=`set X $ac_compile; echo $2` |
| 4050 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4051 |
|
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4052 |
|
ac_status=$? |
| 4053 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4054 |
|
(exit $ac_status); } |
| 4055 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4056 |
|
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4057 |
|
ac_status=$? |
| 4058 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4059 |
|
(exit $ac_status); } |
| 4060 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4061 |
|
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4062 |
|
ac_status=$? |
| 4063 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4064 |
|
(exit $ac_status); } |
| 4065 |
|
|
| 4066 |
|
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 4067 |
|
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 4068 |
|
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 4069 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4070 |
else |
else |
| 4071 |
case $MAGIC_CMD in |
cat >conftest.$ac_ext <<_ACEOF |
| 4072 |
/*) |
#line $LINENO "configure" |
| 4073 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
#include "confdefs.h" |
|
;; |
|
|
?:/*) |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
;; |
|
|
*) |
|
|
ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="/usr/bin:$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
if test -n "$file_magic_test_file"; then |
|
|
case $deplibs_check_method in |
|
|
"file_magic "*) |
|
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
egrep "$file_magic_regex" > /dev/null; then |
|
|
: |
|
|
else |
|
|
cat <<EOF 1>&2 |
|
| 4074 |
|
|
| 4075 |
*** Warning: the command libtool uses to detect shared libraries, |
#ifdef F77_DUMMY_MAIN |
| 4076 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
# ifdef __cplusplus |
| 4077 |
*** The result is that libtool may fail to recognize shared libraries |
extern "C" |
| 4078 |
*** as such. This will affect the creation of libtool libraries that |
# endif |
| 4079 |
*** depend on shared libraries, but programs linked with such libtool |
int F77_DUMMY_MAIN() { return 1; } |
| 4080 |
*** libraries will work regardless of this problem. Nevertheless, you |
#endif |
| 4081 |
*** may want to report the problem to your system manager and/or to |
int |
| 4082 |
*** bug-libtool@gnu.org |
main () |
| 4083 |
|
{ |
| 4084 |
|
#ifndef __GNUC__ |
| 4085 |
|
choke me |
| 4086 |
|
#endif |
| 4087 |
|
|
| 4088 |
EOF |
; |
| 4089 |
fi ;; |
return 0; |
| 4090 |
esac |
} |
| 4091 |
fi |
_ACEOF |
| 4092 |
break |
rm -f conftest.$ac_objext |
| 4093 |
fi |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4094 |
|
(eval $ac_compile) 2>&5 |
| 4095 |
|
ac_status=$? |
| 4096 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4097 |
|
(exit $ac_status); } && |
| 4098 |
|
{ ac_try='test -s conftest.$ac_objext' |
| 4099 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4100 |
|
(eval $ac_try) 2>&5 |
| 4101 |
|
ac_status=$? |
| 4102 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4103 |
|
(exit $ac_status); }; }; then |
| 4104 |
|
ac_compiler_gnu=yes |
| 4105 |
|
else |
| 4106 |
|
echo "$as_me: failed program was:" >&5 |
| 4107 |
|
cat conftest.$ac_ext >&5 |
| 4108 |
|
ac_compiler_gnu=no |
| 4109 |
|
fi |
| 4110 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
| 4111 |
|
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4112 |
|
|
| 4113 |
|
fi |
| 4114 |
|
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4115 |
|
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 4116 |
|
GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4117 |
|
ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4118 |
|
ac_save_CXXFLAGS=$CXXFLAGS |
| 4119 |
|
CXXFLAGS="-g" |
| 4120 |
|
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4121 |
|
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 4122 |
|
if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4123 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4124 |
|
else |
| 4125 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 4126 |
|
#line $LINENO "configure" |
| 4127 |
|
#include "confdefs.h" |
| 4128 |
|
|
| 4129 |
|
#ifdef F77_DUMMY_MAIN |
| 4130 |
|
# ifdef __cplusplus |
| 4131 |
|
extern "C" |
| 4132 |
|
# endif |
| 4133 |
|
int F77_DUMMY_MAIN() { return 1; } |
| 4134 |
|
#endif |
| 4135 |
|
int |
| 4136 |
|
main () |
| 4137 |
|
{ |
| 4138 |
|
|
| 4139 |
|
; |
| 4140 |
|
return 0; |
| 4141 |
|
} |
| 4142 |
|
_ACEOF |
| 4143 |
|
rm -f conftest.$ac_objext |
| 4144 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4145 |
|
(eval $ac_compile) 2>&5 |
| 4146 |
|
ac_status=$? |
| 4147 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4148 |
|
(exit $ac_status); } && |
| 4149 |
|
{ ac_try='test -s conftest.$ac_objext' |
| 4150 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4151 |
|
(eval $ac_try) 2>&5 |
| 4152 |
|
ac_status=$? |
| 4153 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4154 |
|
(exit $ac_status); }; }; then |
| 4155 |
|
ac_cv_prog_cxx_g=yes |
| 4156 |
|
else |
| 4157 |
|
echo "$as_me: failed program was:" >&5 |
| 4158 |
|
cat conftest.$ac_ext >&5 |
| 4159 |
|
ac_cv_prog_cxx_g=no |
| 4160 |
|
fi |
| 4161 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
| 4162 |
|
fi |
| 4163 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4164 |
|
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 4165 |
|
if test "$ac_test_CXXFLAGS" = set; then |
| 4166 |
|
CXXFLAGS=$ac_save_CXXFLAGS |
| 4167 |
|
elif test $ac_cv_prog_cxx_g = yes; then |
| 4168 |
|
if test "$GXX" = yes; then |
| 4169 |
|
CXXFLAGS="-g -O2" |
| 4170 |
|
else |
| 4171 |
|
CXXFLAGS="-g" |
| 4172 |
|
fi |
| 4173 |
|
else |
| 4174 |
|
if test "$GXX" = yes; then |
| 4175 |
|
CXXFLAGS="-O2" |
| 4176 |
|
else |
| 4177 |
|
CXXFLAGS= |
| 4178 |
|
fi |
| 4179 |
|
fi |
| 4180 |
|
for ac_declaration in \ |
| 4181 |
|
''\ |
| 4182 |
|
'#include <stdlib.h>' \ |
| 4183 |
|
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 4184 |
|
'extern "C" void std::exit (int); using std::exit;' \ |
| 4185 |
|
'extern "C" void exit (int) throw ();' \ |
| 4186 |
|
'extern "C" void exit (int);' \ |
| 4187 |
|
'void exit (int);' |
| 4188 |
|
do |
| 4189 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 4190 |
|
#line $LINENO "configure" |
| 4191 |
|
#include "confdefs.h" |
| 4192 |
|
#include <stdlib.h> |
| 4193 |
|
$ac_declaration |
| 4194 |
|
#ifdef F77_DUMMY_MAIN |
| 4195 |
|
# ifdef __cplusplus |
| 4196 |
|
extern "C" |
| 4197 |
|
# endif |
| 4198 |
|
int F77_DUMMY_MAIN() { return 1; } |
| 4199 |
|
#endif |
| 4200 |
|
int |
| 4201 |
|
main () |
| 4202 |
|
{ |
| 4203 |
|
exit (42); |
| 4204 |
|
; |
| 4205 |
|
return 0; |
| 4206 |
|
} |
| 4207 |
|
_ACEOF |
| 4208 |
|
rm -f conftest.$ac_objext |
| 4209 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4210 |
|
(eval $ac_compile) 2>&5 |
| 4211 |
|
ac_status=$? |
| 4212 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4213 |
|
(exit $ac_status); } && |
| 4214 |
|
{ ac_try='test -s conftest.$ac_objext' |
| 4215 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4216 |
|
(eval $ac_try) 2>&5 |
| 4217 |
|
ac_status=$? |
| 4218 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4219 |
|
(exit $ac_status); }; }; then |
| 4220 |
|
: |
| 4221 |
|
else |
| 4222 |
|
echo "$as_me: failed program was:" >&5 |
| 4223 |
|
cat conftest.$ac_ext >&5 |
| 4224 |
|
continue |
| 4225 |
|
fi |
| 4226 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
| 4227 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 4228 |
|
#line $LINENO "configure" |
| 4229 |
|
#include "confdefs.h" |
| 4230 |
|
$ac_declaration |
| 4231 |
|
#ifdef F77_DUMMY_MAIN |
| 4232 |
|
# ifdef __cplusplus |
| 4233 |
|
extern "C" |
| 4234 |
|
# endif |
| 4235 |
|
int F77_DUMMY_MAIN() { return 1; } |
| 4236 |
|
#endif |
| 4237 |
|
int |
| 4238 |
|
main () |
| 4239 |
|
{ |
| 4240 |
|
exit (42); |
| 4241 |
|
; |
| 4242 |
|
return 0; |
| 4243 |
|
} |
| 4244 |
|
_ACEOF |
| 4245 |
|
rm -f conftest.$ac_objext |
| 4246 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4247 |
|
(eval $ac_compile) 2>&5 |
| 4248 |
|
ac_status=$? |
| 4249 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4250 |
|
(exit $ac_status); } && |
| 4251 |
|
{ ac_try='test -s conftest.$ac_objext' |
| 4252 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4253 |
|
(eval $ac_try) 2>&5 |
| 4254 |
|
ac_status=$? |
| 4255 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4256 |
|
(exit $ac_status); }; }; then |
| 4257 |
|
break |
| 4258 |
|
else |
| 4259 |
|
echo "$as_me: failed program was:" >&5 |
| 4260 |
|
cat conftest.$ac_ext >&5 |
| 4261 |
|
fi |
| 4262 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
| 4263 |
|
done |
| 4264 |
|
rm -f conftest* |
| 4265 |
|
if test -n "$ac_declaration"; then |
| 4266 |
|
echo '#ifdef __cplusplus' >>confdefs.h |
| 4267 |
|
echo $ac_declaration >>confdefs.h |
| 4268 |
|
echo '#endif' >>confdefs.h |
| 4269 |
|
fi |
| 4270 |
|
|
| 4271 |
|
ac_ext=cc |
| 4272 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4273 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4274 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4275 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4276 |
|
|
| 4277 |
|
ac_ext=cc |
| 4278 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4279 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4280 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4281 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4282 |
|
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 4283 |
|
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 4284 |
|
if test -z "$CXXCPP"; then |
| 4285 |
|
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 4286 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4287 |
|
else |
| 4288 |
|
# Double quotes because CXXCPP needs to be expanded |
| 4289 |
|
for CXXCPP in "$CXX -E" "/lib/cpp" |
| 4290 |
|
do |
| 4291 |
|
ac_preproc_ok=false |
| 4292 |
|
for ac_cxx_preproc_warn_flag in '' yes |
| 4293 |
|
do |
| 4294 |
|
# Use a header file that comes with gcc, so configuring glibc |
| 4295 |
|
# with a fresh cross-compiler works. |
| 4296 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4297 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
| 4298 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 4299 |
|
#line $LINENO "configure" |
| 4300 |
|
#include "confdefs.h" |
| 4301 |
|
#include <assert.h> |
| 4302 |
|
Syntax error |
| 4303 |
|
_ACEOF |
| 4304 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4305 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4306 |
|
ac_status=$? |
| 4307 |
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4308 |
|
rm -f conftest.er1 |
| 4309 |
|
cat conftest.err >&5 |
| 4310 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4311 |
|
(exit $ac_status); } >/dev/null; then |
| 4312 |
|
if test -s conftest.err; then |
| 4313 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4314 |
|
else |
| 4315 |
|
ac_cpp_err= |
| 4316 |
|
fi |
| 4317 |
|
else |
| 4318 |
|
ac_cpp_err=yes |
| 4319 |
|
fi |
| 4320 |
|
if test -z "$ac_cpp_err"; then |
| 4321 |
|
: |
| 4322 |
|
else |
| 4323 |
|
echo "$as_me: failed program was:" >&5 |
| 4324 |
|
cat conftest.$ac_ext >&5 |
| 4325 |
|
# Broken: fails on valid input. |
| 4326 |
|
continue |
| 4327 |
|
fi |
| 4328 |
|
rm -f conftest.err conftest.$ac_ext |
| 4329 |
|
|
| 4330 |
|
# OK, works on sane cases. Now check whether non-existent headers |
| 4331 |
|
# can be detected and how. |
| 4332 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 4333 |
|
#line $LINENO "configure" |
| 4334 |
|
#include "confdefs.h" |
| 4335 |
|
#include <ac_nonexistent.h> |
| 4336 |
|
_ACEOF |
| 4337 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4338 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4339 |
|
ac_status=$? |
| 4340 |
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4341 |
|
rm -f conftest.er1 |
| 4342 |
|
cat conftest.err >&5 |
| 4343 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4344 |
|
(exit $ac_status); } >/dev/null; then |
| 4345 |
|
if test -s conftest.err; then |
| 4346 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4347 |
|
else |
| 4348 |
|
ac_cpp_err= |
| 4349 |
|
fi |
| 4350 |
|
else |
| 4351 |
|
ac_cpp_err=yes |
| 4352 |
|
fi |
| 4353 |
|
if test -z "$ac_cpp_err"; then |
| 4354 |
|
# Broken: success on invalid input. |
| 4355 |
|
continue |
| 4356 |
|
else |
| 4357 |
|
echo "$as_me: failed program was:" >&5 |
| 4358 |
|
cat conftest.$ac_ext >&5 |
| 4359 |
|
# Passes both tests. |
| 4360 |
|
ac_preproc_ok=: |
| 4361 |
|
break |
| 4362 |
|
fi |
| 4363 |
|
rm -f conftest.err conftest.$ac_ext |
| 4364 |
|
|
| 4365 |
|
done |
| 4366 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4367 |
|
rm -f conftest.err conftest.$ac_ext |
| 4368 |
|
if $ac_preproc_ok; then |
| 4369 |
|
break |
| 4370 |
|
fi |
| 4371 |
|
|
| 4372 |
|
done |
| 4373 |
|
ac_cv_prog_CXXCPP=$CXXCPP |
| 4374 |
|
|
| 4375 |
|
fi |
| 4376 |
|
CXXCPP=$ac_cv_prog_CXXCPP |
| 4377 |
|
else |
| 4378 |
|
ac_cv_prog_CXXCPP=$CXXCPP |
| 4379 |
|
fi |
| 4380 |
|
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 4381 |
|
echo "${ECHO_T}$CXXCPP" >&6 |
| 4382 |
|
ac_preproc_ok=false |
| 4383 |
|
for ac_cxx_preproc_warn_flag in '' yes |
| 4384 |
|
do |
| 4385 |
|
# Use a header file that comes with gcc, so configuring glibc |
| 4386 |
|
# with a fresh cross-compiler works. |
| 4387 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4388 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
| 4389 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 4390 |
|
#line $LINENO "configure" |
| 4391 |
|
#include "confdefs.h" |
| 4392 |
|
#include <assert.h> |
| 4393 |
|
Syntax error |
| 4394 |
|
_ACEOF |
| 4395 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4396 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4397 |
|
ac_status=$? |
| 4398 |
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4399 |
|
rm -f conftest.er1 |
| 4400 |
|
cat conftest.err >&5 |
| 4401 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4402 |
|
(exit $ac_status); } >/dev/null; then |
| 4403 |
|
if test -s conftest.err; then |
| 4404 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4405 |
|
else |
| 4406 |
|
ac_cpp_err= |
| 4407 |
|
fi |
| 4408 |
|
else |
| 4409 |
|
ac_cpp_err=yes |
| 4410 |
|
fi |
| 4411 |
|
if test -z "$ac_cpp_err"; then |
| 4412 |
|
: |
| 4413 |
|
else |
| 4414 |
|
echo "$as_me: failed program was:" >&5 |
| 4415 |
|
cat conftest.$ac_ext >&5 |
| 4416 |
|
# Broken: fails on valid input. |
| 4417 |
|
continue |
| 4418 |
|
fi |
| 4419 |
|
rm -f conftest.err conftest.$ac_ext |
| 4420 |
|
|
| 4421 |
|
# OK, works on sane cases. Now check whether non-existent headers |
| 4422 |
|
# can be detected and how. |
| 4423 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 4424 |
|
#line $LINENO "configure" |
| 4425 |
|
#include "confdefs.h" |
| 4426 |
|
#include <ac_nonexistent.h> |
| 4427 |
|
_ACEOF |
| 4428 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4429 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4430 |
|
ac_status=$? |
| 4431 |
|
egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4432 |
|
rm -f conftest.er1 |
| 4433 |
|
cat conftest.err >&5 |
| 4434 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4435 |
|
(exit $ac_status); } >/dev/null; then |
| 4436 |
|
if test -s conftest.err; then |
| 4437 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 4438 |
|
else |
| 4439 |
|
ac_cpp_err= |
| 4440 |
|
fi |
| 4441 |
|
else |
| 4442 |
|
ac_cpp_err=yes |
| 4443 |
|
fi |
| 4444 |
|
if test -z "$ac_cpp_err"; then |
| 4445 |
|
# Broken: success on invalid input. |
| 4446 |
|
continue |
| 4447 |
|
else |
| 4448 |
|
echo "$as_me: failed program was:" >&5 |
| 4449 |
|
cat conftest.$ac_ext >&5 |
| 4450 |
|
# Passes both tests. |
| 4451 |
|
ac_preproc_ok=: |
| 4452 |
|
break |
| 4453 |
|
fi |
| 4454 |
|
rm -f conftest.err conftest.$ac_ext |
| 4455 |
|
|
| 4456 |
|
done |
| 4457 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4458 |
|
rm -f conftest.err conftest.$ac_ext |
| 4459 |
|
if $ac_preproc_ok; then |
| 4460 |
|
: |
| 4461 |
|
else |
| 4462 |
|
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 |
| 4463 |
|
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} |
| 4464 |
|
{ (exit 1); exit 1; }; } |
| 4465 |
|
fi |
| 4466 |
|
|
| 4467 |
|
ac_ext=cc |
| 4468 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
| 4469 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4470 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4471 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4472 |
|
|
| 4473 |
|
|
| 4474 |
|
ac_ext=f |
| 4475 |
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 4476 |
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4477 |
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 4478 |
|
if test -n "$ac_tool_prefix"; then |
| 4479 |
|
for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc |
| 4480 |
|
do |
| 4481 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4482 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4483 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4484 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4485 |
|
if test "${ac_cv_prog_F77+set}" = set; then |
| 4486 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4487 |
|
else |
| 4488 |
|
if test -n "$F77"; then |
| 4489 |
|
ac_cv_prog_F77="$F77" # Let the user override the test. |
| 4490 |
|
else |
| 4491 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4492 |
|
for as_dir in $PATH |
| 4493 |
|
do |
| 4494 |
|
IFS=$as_save_IFS |
| 4495 |
|
test -z "$as_dir" && as_dir=. |
| 4496 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4497 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4498 |
|
ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 4499 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4500 |
|
break 2 |
| 4501 |
|
fi |
| 4502 |
|
done |
| 4503 |
|
done |
| 4504 |
|
|
| 4505 |
|
fi |
| 4506 |
|
fi |
| 4507 |
|
F77=$ac_cv_prog_F77 |
| 4508 |
|
if test -n "$F77"; then |
| 4509 |
|
echo "$as_me:$LINENO: result: $F77" >&5 |
| 4510 |
|
echo "${ECHO_T}$F77" >&6 |
| 4511 |
|
else |
| 4512 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 4513 |
|
echo "${ECHO_T}no" >&6 |
| 4514 |
|
fi |
| 4515 |
|
|
| 4516 |
|
test -n "$F77" && break |
| 4517 |
done |
done |
|
IFS="$ac_save_ifs" |
|
|
MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
;; |
|
|
esac |
|
| 4518 |
fi |
fi |
| 4519 |
|
if test -z "$F77"; then |
| 4520 |
|
ac_ct_F77=$F77 |
| 4521 |
|
for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc |
| 4522 |
|
do |
| 4523 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4524 |
|
set dummy $ac_prog; ac_word=$2 |
| 4525 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4526 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4527 |
|
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 4528 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4529 |
|
else |
| 4530 |
|
if test -n "$ac_ct_F77"; then |
| 4531 |
|
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 4532 |
|
else |
| 4533 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4534 |
|
for as_dir in $PATH |
| 4535 |
|
do |
| 4536 |
|
IFS=$as_save_IFS |
| 4537 |
|
test -z "$as_dir" && as_dir=. |
| 4538 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4539 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4540 |
|
ac_cv_prog_ac_ct_F77="$ac_prog" |
| 4541 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4542 |
|
break 2 |
| 4543 |
|
fi |
| 4544 |
|
done |
| 4545 |
|
done |
| 4546 |
|
|
| 4547 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
fi |
| 4548 |
if test -n "$MAGIC_CMD"; then |
fi |
| 4549 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 4550 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
if test -n "$ac_ct_F77"; then |
| 4551 |
|
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 4552 |
|
echo "${ECHO_T}$ac_ct_F77" >&6 |
| 4553 |
else |
else |
| 4554 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$as_me:$LINENO: result: no" >&5 |
| 4555 |
echo "${ECHO_T}no" >&6 |
echo "${ECHO_T}no" >&6 |
| 4556 |
fi |
fi |
| 4557 |
|
|
| 4558 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
test -n "$ac_ct_F77" && break |
| 4559 |
if test -n "$ac_tool_prefix"; then |
done |
| 4560 |
echo "$as_me:$LINENO: checking for file" >&5 |
|
| 4561 |
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
F77=$ac_ct_F77 |
| 4562 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
fi |
| 4563 |
|
|
| 4564 |
|
|
| 4565 |
|
# Provide some information about the compiler. |
| 4566 |
|
echo "$as_me:4566:" \ |
| 4567 |
|
"checking for Fortran 77 compiler version" >&5 |
| 4568 |
|
ac_compiler=`set X $ac_compile; echo $2` |
| 4569 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 4570 |
|
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 4571 |
|
ac_status=$? |
| 4572 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4573 |
|
(exit $ac_status); } |
| 4574 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 4575 |
|
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 4576 |
|
ac_status=$? |
| 4577 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4578 |
|
(exit $ac_status); } |
| 4579 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 4580 |
|
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 4581 |
|
ac_status=$? |
| 4582 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4583 |
|
(exit $ac_status); } |
| 4584 |
|
|
| 4585 |
|
# If we don't use `.F' as extension, the preprocessor is not run on the |
| 4586 |
|
# input file. |
| 4587 |
|
ac_save_ext=$ac_ext |
| 4588 |
|
ac_ext=F |
| 4589 |
|
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 4590 |
|
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 4591 |
|
if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 4592 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4593 |
else |
else |
| 4594 |
case $MAGIC_CMD in |
cat >conftest.$ac_ext <<_ACEOF |
| 4595 |
/*) |
program main |
| 4596 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
#ifndef __GNUC__ |
| 4597 |
|
choke me |
| 4598 |
|
#endif |
| 4599 |
|
|
| 4600 |
|
end |
| 4601 |
|
_ACEOF |
| 4602 |
|
rm -f conftest.$ac_objext |
| 4603 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4604 |
|
(eval $ac_compile) 2>&5 |
| 4605 |
|
ac_status=$? |
| 4606 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4607 |
|
(exit $ac_status); } && |
| 4608 |
|
{ ac_try='test -s conftest.$ac_objext' |
| 4609 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4610 |
|
(eval $ac_try) 2>&5 |
| 4611 |
|
ac_status=$? |
| 4612 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4613 |
|
(exit $ac_status); }; }; then |
| 4614 |
|
ac_compiler_gnu=yes |
| 4615 |
|
else |
| 4616 |
|
echo "$as_me: failed program was:" >&5 |
| 4617 |
|
cat conftest.$ac_ext >&5 |
| 4618 |
|
ac_compiler_gnu=no |
| 4619 |
|
fi |
| 4620 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
| 4621 |
|
ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 4622 |
|
|
| 4623 |
|
fi |
| 4624 |
|
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 4625 |
|
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 4626 |
|
ac_ext=$ac_save_ext |
| 4627 |
|
G77=`test $ac_compiler_gnu = yes && echo yes` |
| 4628 |
|
ac_test_FFLAGS=${FFLAGS+set} |
| 4629 |
|
ac_save_FFLAGS=$FFLAGS |
| 4630 |
|
FFLAGS= |
| 4631 |
|
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 4632 |
|
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 4633 |
|
if test "${ac_cv_prog_f77_g+set}" = set; then |
| 4634 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4635 |
|
else |
| 4636 |
|
FFLAGS=-g |
| 4637 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 4638 |
|
program main |
| 4639 |
|
|
| 4640 |
|
end |
| 4641 |
|
_ACEOF |
| 4642 |
|
rm -f conftest.$ac_objext |
| 4643 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4644 |
|
(eval $ac_compile) 2>&5 |
| 4645 |
|
ac_status=$? |
| 4646 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4647 |
|
(exit $ac_status); } && |
| 4648 |
|
{ ac_try='test -s conftest.$ac_objext' |
| 4649 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4650 |
|
(eval $ac_try) 2>&5 |
| 4651 |
|
ac_status=$? |
| 4652 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4653 |
|
(exit $ac_status); }; }; then |
| 4654 |
|
ac_cv_prog_f77_g=yes |
| 4655 |
|
else |
| 4656 |
|
echo "$as_me: failed program was:" >&5 |
| 4657 |
|
cat conftest.$ac_ext >&5 |
| 4658 |
|
ac_cv_prog_f77_g=no |
| 4659 |
|
fi |
| 4660 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
| 4661 |
|
|
| 4662 |
|
fi |
| 4663 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 4664 |
|
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 4665 |
|
if test "$ac_test_FFLAGS" = set; then |
| 4666 |
|
FFLAGS=$ac_save_FFLAGS |
| 4667 |
|
elif test $ac_cv_prog_f77_g = yes; then |
| 4668 |
|
if test "$G77" = yes; then |
| 4669 |
|
FFLAGS="-g -O2" |
| 4670 |
|
else |
| 4671 |
|
FFLAGS="-g" |
| 4672 |
|
fi |
| 4673 |
|
else |
| 4674 |
|
if test "$G77" = yes; then |
| 4675 |
|
FFLAGS="-O2" |
| 4676 |
|
else |
| 4677 |
|
FFLAGS= |
| 4678 |
|
fi |
| 4679 |
|
fi |
| 4680 |
|
ac_ext=c |
| 4681 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 4682 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4683 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4684 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4685 |
|
|
| 4686 |
|
|
| 4687 |
|
|
| 4688 |
|
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 4689 |
|
|
| 4690 |
|
# find the maximum length of command line arguments |
| 4691 |
|
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 4692 |
|
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 4693 |
|
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 4694 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4695 |
|
else |
| 4696 |
|
i=0 |
| 4697 |
|
testring="ABCD" |
| 4698 |
|
|
| 4699 |
|
case $build_os in |
| 4700 |
|
msdosdjgpp*) |
| 4701 |
|
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4702 |
|
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4703 |
|
# during glob expansion). Even if it were fixed, the result of this |
| 4704 |
|
# check would be larger than it should be. |
| 4705 |
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4706 |
|
;; |
| 4707 |
|
|
| 4708 |
|
gnu*) |
| 4709 |
|
# Under GNU Hurd, this test is not required because there is |
| 4710 |
|
# no limit to the length of command line arguments. |
| 4711 |
|
# Libtool will interpret -1 as no limit whatsoever |
| 4712 |
|
lt_cv_sys_max_cmd_len=-1; |
| 4713 |
|
;; |
| 4714 |
|
|
| 4715 |
|
cygwin* | mingw*) |
| 4716 |
|
# On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4717 |
|
# about 5 minutes as the teststring grows exponentially. |
| 4718 |
|
# Worse, since 9x/ME are not pre-emptively multitasking, |
| 4719 |
|
# you end up with a "frozen" computer, even though with patience |
| 4720 |
|
# the test eventually succeeds (with a max line length of 256k). |
| 4721 |
|
# Instead, let's just punt: use the minimum linelength reported by |
| 4722 |
|
# all of the supported platforms: 8192 (on NT/2K/XP). |
| 4723 |
|
lt_cv_sys_max_cmd_len=8192; |
| 4724 |
|
;; |
| 4725 |
|
|
| 4726 |
|
*) |
| 4727 |
|
# If test is not a shell built-in, we'll probably end up computing a |
| 4728 |
|
# maximum length that is only half of the actual maximum length, but |
| 4729 |
|
# we can't tell. |
| 4730 |
|
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ |
| 4731 |
|
= "XX$testring") >/dev/null 2>&1 && |
| 4732 |
|
new_result=`expr "X$testring" : ".*" 2>&1` && |
| 4733 |
|
lt_cv_sys_max_cmd_len=$new_result && |
| 4734 |
|
test $i != 17 # 1/2 MB should be enough |
| 4735 |
|
do |
| 4736 |
|
i=`expr $i + 1` |
| 4737 |
|
testring=$testring$testring |
| 4738 |
|
done |
| 4739 |
|
testring= |
| 4740 |
|
# Add a significant safety factor because C++ compilers can tack on massive |
| 4741 |
|
# amounts of additional arguments before passing them to the linker. |
| 4742 |
|
# It appears as though 1/2 is a usable value. |
| 4743 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4744 |
|
;; |
| 4745 |
|
esac |
| 4746 |
|
|
| 4747 |
|
fi |
| 4748 |
|
|
| 4749 |
|
if test -n $lt_cv_sys_max_cmd_len ; then |
| 4750 |
|
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 4751 |
|
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 4752 |
|
else |
| 4753 |
|
echo "$as_me:$LINENO: result: none" >&5 |
| 4754 |
|
echo "${ECHO_T}none" >&6 |
| 4755 |
|
fi |
| 4756 |
|
|
| 4757 |
|
|
| 4758 |
|
|
| 4759 |
|
|
| 4760 |
|
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 4761 |
|
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 4762 |
|
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 4763 |
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 4764 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4765 |
|
else |
| 4766 |
|
|
| 4767 |
|
# These are sane defaults that work on at least a few old systems. |
| 4768 |
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 4769 |
|
|
| 4770 |
|
# Character class describing NM global symbol codes. |
| 4771 |
|
symcode='[BCDEGRST]' |
| 4772 |
|
|
| 4773 |
|
# Regexp to match symbols that can be accessed directly from C. |
| 4774 |
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 4775 |
|
|
| 4776 |
|
# Transform the above into a raw symbol and a C symbol. |
| 4777 |
|
symxfrm='\1 \2\3 \3' |
| 4778 |
|
|
| 4779 |
|
# Transform an extracted symbol line into a proper C declaration |
| 4780 |
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 4781 |
|
|
| 4782 |
|
# Transform an extracted symbol line into symbol name and symbol address |
| 4783 |
|
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'" |
| 4784 |
|
|
| 4785 |
|
# Define system-specific variables. |
| 4786 |
|
case $host_os in |
| 4787 |
|
aix*) |
| 4788 |
|
symcode='[BCDT]' |
| 4789 |
;; |
;; |
| 4790 |
?:/*) |
cygwin* | mingw* | pw32*) |
| 4791 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
symcode='[ABCDGISTW]' |
| 4792 |
;; |
;; |
| 4793 |
*) |
hpux*) # Its linker distinguishes data from code symbols |
| 4794 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
if test "$host_cpu" = ia64; then |
| 4795 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
symcode='[ABCDEGRST]' |
| 4796 |
ac_dummy="/usr/bin:$PATH" |
fi |
| 4797 |
for ac_dir in $ac_dummy; do |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4798 |
test -z "$ac_dir" && ac_dir=. |
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'" |
| 4799 |
if test -f $ac_dir/file; then |
;; |
| 4800 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
irix* | nonstopux*) |
| 4801 |
if test -n "$file_magic_test_file"; then |
symcode='[BCDEGRST]' |
| 4802 |
case $deplibs_check_method in |
;; |
| 4803 |
"file_magic "*) |
osf*) |
| 4804 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
symcode='[BCDEGQRST]' |
| 4805 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
;; |
| 4806 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
solaris* | sysv5*) |
| 4807 |
egrep "$file_magic_regex" > /dev/null; then |
symcode='[BDT]' |
| 4808 |
: |
;; |
| 4809 |
else |
sysv4) |
| 4810 |
cat <<EOF 1>&2 |
symcode='[DFNSTU]' |
| 4811 |
|
;; |
| 4812 |
|
esac |
| 4813 |
|
|
| 4814 |
*** Warning: the command libtool uses to detect shared libraries, |
# Handle CRLF in mingw tool chain |
| 4815 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
opt_cr= |
| 4816 |
*** The result is that libtool may fail to recognize shared libraries |
case $build_os in |
| 4817 |
*** as such. This will affect the creation of libtool libraries that |
mingw*) |
| 4818 |
*** depend on shared libraries, but programs linked with such libtool |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 4819 |
*** libraries will work regardless of this problem. Nevertheless, you |
;; |
| 4820 |
*** may want to report the problem to your system manager and/or to |
esac |
| 4821 |
*** bug-libtool@gnu.org |
|
| 4822 |
|
# If we're using GNU nm, then use its standard symbol codes. |
| 4823 |
|
case `$NM -V 2>&1` in |
| 4824 |
|
*GNU* | *'with BFD'*) |
| 4825 |
|
symcode='[ABCDGISTW]' ;; |
| 4826 |
|
esac |
| 4827 |
|
|
| 4828 |
|
# Try without a prefix undercore, then with it. |
| 4829 |
|
for ac_symprfx in "" "_"; do |
| 4830 |
|
|
| 4831 |
|
# Write the raw and C identifiers. |
| 4832 |
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 4833 |
|
|
| 4834 |
|
# Check to see that the pipe works correctly. |
| 4835 |
|
pipe_works=no |
| 4836 |
|
|
| 4837 |
|
rm -f conftest* |
| 4838 |
|
cat > conftest.$ac_ext <<EOF |
| 4839 |
|
#ifdef __cplusplus |
| 4840 |
|
extern "C" { |
| 4841 |
|
#endif |
| 4842 |
|
char nm_test_var; |
| 4843 |
|
void nm_test_func(){} |
| 4844 |
|
#ifdef __cplusplus |
| 4845 |
|
} |
| 4846 |
|
#endif |
| 4847 |
|
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 4848 |
EOF |
EOF |
| 4849 |
fi ;; |
|
| 4850 |
esac |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4851 |
|
(eval $ac_compile) 2>&5 |
| 4852 |
|
ac_status=$? |
| 4853 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4854 |
|
(exit $ac_status); }; then |
| 4855 |
|
# Now try to grab the symbols. |
| 4856 |
|
nlist=conftest.nm |
| 4857 |
|
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 4858 |
|
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 4859 |
|
ac_status=$? |
| 4860 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4861 |
|
(exit $ac_status); } && test -s "$nlist"; then |
| 4862 |
|
# Try sorting and uniquifying the output. |
| 4863 |
|
if sort "$nlist" | uniq > "$nlist"T; then |
| 4864 |
|
mv -f "$nlist"T "$nlist" |
| 4865 |
|
else |
| 4866 |
|
rm -f "$nlist"T |
| 4867 |
fi |
fi |
| 4868 |
break |
|
| 4869 |
|
# Make sure that we snagged all the symbols we need. |
| 4870 |
|
if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 4871 |
|
if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 4872 |
|
cat <<EOF > conftest.$ac_ext |
| 4873 |
|
#ifdef __cplusplus |
| 4874 |
|
extern "C" { |
| 4875 |
|
#endif |
| 4876 |
|
|
| 4877 |
|
EOF |
| 4878 |
|
# Now generate the symbol file. |
| 4879 |
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 4880 |
|
|
| 4881 |
|
cat <<EOF >> conftest.$ac_ext |
| 4882 |
|
#if defined (__STDC__) && __STDC__ |
| 4883 |
|
# define lt_ptr_t void * |
| 4884 |
|
#else |
| 4885 |
|
# define lt_ptr_t char * |
| 4886 |
|
# define const |
| 4887 |
|
#endif |
| 4888 |
|
|
| 4889 |
|
/* The mapping between symbol names and symbols. */ |
| 4890 |
|
const struct { |
| 4891 |
|
const char *name; |
| 4892 |
|
lt_ptr_t address; |
| 4893 |
|
} |
| 4894 |
|
lt_preloaded_symbols[] = |
| 4895 |
|
{ |
| 4896 |
|
EOF |
| 4897 |
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 4898 |
|
cat <<\EOF >> conftest.$ac_ext |
| 4899 |
|
{0, (lt_ptr_t) 0} |
| 4900 |
|
}; |
| 4901 |
|
|
| 4902 |
|
#ifdef __cplusplus |
| 4903 |
|
} |
| 4904 |
|
#endif |
| 4905 |
|
EOF |
| 4906 |
|
# Now try linking the two files. |
| 4907 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
| 4908 |
|
lt_save_LIBS="$LIBS" |
| 4909 |
|
lt_save_CFLAGS="$CFLAGS" |
| 4910 |
|
LIBS="conftstm.$ac_objext" |
| 4911 |
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 4912 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4913 |
|
(eval $ac_link) 2>&5 |
| 4914 |
|
ac_status=$? |
| 4915 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4916 |
|
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 4917 |
|
pipe_works=yes |
| 4918 |
|
fi |
| 4919 |
|
LIBS="$lt_save_LIBS" |
| 4920 |
|
CFLAGS="$lt_save_CFLAGS" |
| 4921 |
|
else |
| 4922 |
|
echo "cannot find nm_test_func in $nlist" >&5 |
| 4923 |
|
fi |
| 4924 |
|
else |
| 4925 |
|
echo "cannot find nm_test_var in $nlist" >&5 |
| 4926 |
|
fi |
| 4927 |
|
else |
| 4928 |
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 4929 |
fi |
fi |
| 4930 |
done |
else |
| 4931 |
IFS="$ac_save_ifs" |
echo "$progname: failed program was:" >&5 |
| 4932 |
MAGIC_CMD="$ac_save_MAGIC_CMD" |
cat conftest.$ac_ext >&5 |
| 4933 |
|
fi |
| 4934 |
|
rm -f conftest* conftst* |
| 4935 |
|
|
| 4936 |
|
# Do not use the global_symbol_pipe unless it works. |
| 4937 |
|
if test "$pipe_works" = yes; then |
| 4938 |
|
break |
| 4939 |
|
else |
| 4940 |
|
lt_cv_sys_global_symbol_pipe= |
| 4941 |
|
fi |
| 4942 |
|
done |
| 4943 |
|
|
| 4944 |
|
fi |
| 4945 |
|
|
| 4946 |
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 4947 |
|
lt_cv_sys_global_symbol_to_cdecl= |
| 4948 |
|
fi |
| 4949 |
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 4950 |
|
echo "$as_me:$LINENO: result: failed" >&5 |
| 4951 |
|
echo "${ECHO_T}failed" >&6 |
| 4952 |
|
else |
| 4953 |
|
echo "$as_me:$LINENO: result: ok" >&5 |
| 4954 |
|
echo "${ECHO_T}ok" >&6 |
| 4955 |
|
fi |
| 4956 |
|
|
| 4957 |
|
echo "$as_me:$LINENO: checking for objdir" >&5 |
| 4958 |
|
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 4959 |
|
if test "${lt_cv_objdir+set}" = set; then |
| 4960 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4961 |
|
else |
| 4962 |
|
rm -f .libs 2>/dev/null |
| 4963 |
|
mkdir .libs 2>/dev/null |
| 4964 |
|
if test -d .libs; then |
| 4965 |
|
lt_cv_objdir=.libs |
| 4966 |
|
else |
| 4967 |
|
# MS-DOS does not allow filenames that begin with a dot. |
| 4968 |
|
lt_cv_objdir=_libs |
| 4969 |
|
fi |
| 4970 |
|
rmdir .libs 2>/dev/null |
| 4971 |
|
fi |
| 4972 |
|
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 4973 |
|
echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 4974 |
|
objdir=$lt_cv_objdir |
| 4975 |
|
|
| 4976 |
|
|
| 4977 |
|
|
| 4978 |
|
|
| 4979 |
|
|
| 4980 |
|
case $host_os in |
| 4981 |
|
aix3*) |
| 4982 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
| 4983 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 4984 |
|
# vanish in a puff of smoke. |
| 4985 |
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 4986 |
|
COLLECT_NAMES= |
| 4987 |
|
export COLLECT_NAMES |
| 4988 |
|
fi |
| 4989 |
;; |
;; |
| 4990 |
esac |
esac |
|
fi |
|
| 4991 |
|
|
| 4992 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
# Sed substitution that helps us do robust quoting. It backslashifies |
| 4993 |
if test -n "$MAGIC_CMD"; then |
# metacharacters that are still active within double-quoted strings. |
| 4994 |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
Xsed='sed -e s/^X//' |
| 4995 |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 4996 |
|
|
| 4997 |
|
# Same as above, but do not quote variable references. |
| 4998 |
|
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 4999 |
|
|
| 5000 |
|
# Sed substitution to delay expansion of an escaped shell variable in a |
| 5001 |
|
# double_quote_subst'ed string. |
| 5002 |
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5003 |
|
|
| 5004 |
|
# Sed substitution to avoid accidental globbing in evaled expressions |
| 5005 |
|
no_glob_subst='s/\*/\\\*/g' |
| 5006 |
|
|
| 5007 |
|
# Constants: |
| 5008 |
|
rm="rm -f" |
| 5009 |
|
|
| 5010 |
|
# Global variables: |
| 5011 |
|
default_ofile=libtool |
| 5012 |
|
can_build_shared=yes |
| 5013 |
|
|
| 5014 |
|
# All known linkers require a `.a' archive for static linking (except M$VC, |
| 5015 |
|
# which needs '.lib'). |
| 5016 |
|
libext=a |
| 5017 |
|
ltmain="$ac_aux_dir/ltmain.sh" |
| 5018 |
|
ofile="$default_ofile" |
| 5019 |
|
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5020 |
|
|
| 5021 |
|
if test -n "$ac_tool_prefix"; then |
| 5022 |
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5023 |
|
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5024 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5025 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5026 |
|
if test "${ac_cv_prog_AR+set}" = set; then |
| 5027 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5028 |
|
else |
| 5029 |
|
if test -n "$AR"; then |
| 5030 |
|
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5031 |
|
else |
| 5032 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5033 |
|
for as_dir in $PATH |
| 5034 |
|
do |
| 5035 |
|
IFS=$as_save_IFS |
| 5036 |
|
test -z "$as_dir" && as_dir=. |
| 5037 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5038 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5039 |
|
ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5040 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5041 |
|
break 2 |
| 5042 |
|
fi |
| 5043 |
|
done |
| 5044 |
|
done |
| 5045 |
|
|
| 5046 |
|
fi |
| 5047 |
|
fi |
| 5048 |
|
AR=$ac_cv_prog_AR |
| 5049 |
|
if test -n "$AR"; then |
| 5050 |
|
echo "$as_me:$LINENO: result: $AR" >&5 |
| 5051 |
|
echo "${ECHO_T}$AR" >&6 |
| 5052 |
else |
else |
| 5053 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$as_me:$LINENO: result: no" >&5 |
| 5054 |
echo "${ECHO_T}no" >&6 |
echo "${ECHO_T}no" >&6 |
| 5055 |
fi |
fi |
| 5056 |
|
|
| 5057 |
else |
fi |
| 5058 |
MAGIC_CMD=: |
if test -z "$ac_cv_prog_AR"; then |
| 5059 |
|
ac_ct_AR=$AR |
| 5060 |
|
# Extract the first word of "ar", so it can be a program name with args. |
| 5061 |
|
set dummy ar; ac_word=$2 |
| 5062 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5063 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5064 |
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5065 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5066 |
|
else |
| 5067 |
|
if test -n "$ac_ct_AR"; then |
| 5068 |
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5069 |
|
else |
| 5070 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5071 |
|
for as_dir in $PATH |
| 5072 |
|
do |
| 5073 |
|
IFS=$as_save_IFS |
| 5074 |
|
test -z "$as_dir" && as_dir=. |
| 5075 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5076 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5077 |
|
ac_cv_prog_ac_ct_AR="ar" |
| 5078 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5079 |
|
break 2 |
| 5080 |
fi |
fi |
| 5081 |
|
done |
| 5082 |
|
done |
| 5083 |
|
|
| 5084 |
|
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 5085 |
|
fi |
| 5086 |
|
fi |
| 5087 |
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5088 |
|
if test -n "$ac_ct_AR"; then |
| 5089 |
|
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5090 |
|
echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5091 |
|
else |
| 5092 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 5093 |
|
echo "${ECHO_T}no" >&6 |
| 5094 |
fi |
fi |
| 5095 |
|
|
| 5096 |
fi |
AR=$ac_ct_AR |
| 5097 |
;; |
else |
| 5098 |
esac |
AR="$ac_cv_prog_AR" |
| 5099 |
|
fi |
| 5100 |
|
|
| 5101 |
if test -n "$ac_tool_prefix"; then |
if test -n "$ac_tool_prefix"; then |
| 5102 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5259 |
fi |
fi |
| 5260 |
|
|
| 5261 |
|
|
| 5262 |
|
old_CC="$CC" |
| 5263 |
|
old_CFLAGS="$CFLAGS" |
| 5264 |
|
|
| 5265 |
|
# Set sane defaults for various variables |
| 5266 |
|
test -z "$AR" && AR=ar |
| 5267 |
|
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5268 |
|
test -z "$AS" && AS=as |
| 5269 |
|
test -z "$CC" && CC=cc |
| 5270 |
|
test -z "$LTCC" && LTCC=$CC |
| 5271 |
|
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5272 |
|
test -z "$LD" && LD=ld |
| 5273 |
|
test -z "$LN_S" && LN_S="ln -s" |
| 5274 |
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 5275 |
|
test -z "$NM" && NM=nm |
| 5276 |
|
test -z "$SED" && SED=sed |
| 5277 |
|
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5278 |
|
test -z "$RANLIB" && RANLIB=: |
| 5279 |
|
test -z "$STRIP" && STRIP=: |
| 5280 |
|
test -z "$ac_objext" && ac_objext=o |
| 5281 |
|
|
| 5282 |
|
# Determine commands to create old-style static archives. |
| 5283 |
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 5284 |
|
old_postinstall_cmds='chmod 644 $oldlib' |
| 5285 |
|
old_postuninstall_cmds= |
| 5286 |
|
|
| 5287 |
|
if test -n "$RANLIB"; then |
| 5288 |
|
case $host_os in |
| 5289 |
|
openbsd*) |
| 5290 |
|
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
| 5291 |
|
;; |
| 5292 |
|
*) |
| 5293 |
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 5294 |
|
;; |
| 5295 |
|
esac |
| 5296 |
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5297 |
|
fi |
| 5298 |
|
|
| 5299 |
|
# Only perform the check for file, if the check method requires it |
| 5300 |
|
case $deplibs_check_method in |
| 5301 |
|
file_magic*) |
| 5302 |
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 5303 |
|
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5304 |
|
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 5305 |
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5306 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5307 |
|
else |
| 5308 |
|
case $MAGIC_CMD in |
| 5309 |
|
[\\/*] | ?:[\\/]*) |
| 5310 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5311 |
|
;; |
| 5312 |
|
*) |
| 5313 |
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5314 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5315 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5316 |
|
for ac_dir in $ac_dummy; do |
| 5317 |
|
IFS="$lt_save_ifs" |
| 5318 |
|
test -z "$ac_dir" && ac_dir=. |
| 5319 |
|
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5320 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5321 |
|
if test -n "$file_magic_test_file"; then |
| 5322 |
|
case $deplibs_check_method in |
| 5323 |
|
"file_magic "*) |
| 5324 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5325 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5326 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5327 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
| 5328 |
|
: |
| 5329 |
|
else |
| 5330 |
|
cat <<EOF 1>&2 |
| 5331 |
|
|
| 5332 |
|
*** Warning: the command libtool uses to detect shared libraries, |
| 5333 |
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5334 |
|
*** The result is that libtool may fail to recognize shared libraries |
| 5335 |
|
*** as such. This will affect the creation of libtool libraries that |
| 5336 |
|
*** depend on shared libraries, but programs linked with such libtool |
| 5337 |
|
*** libraries will work regardless of this problem. Nevertheless, you |
| 5338 |
|
*** may want to report the problem to your system manager and/or to |
| 5339 |
|
*** bug-libtool@gnu.org |
| 5340 |
|
|
| 5341 |
|
EOF |
| 5342 |
|
fi ;; |
| 5343 |
|
esac |
| 5344 |
|
fi |
| 5345 |
|
break |
| 5346 |
|
fi |
| 5347 |
|
done |
| 5348 |
|
IFS="$lt_save_ifs" |
| 5349 |
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5350 |
|
;; |
| 5351 |
|
esac |
| 5352 |
|
fi |
| 5353 |
|
|
| 5354 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5355 |
|
if test -n "$MAGIC_CMD"; then |
| 5356 |
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5357 |
|
echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5358 |
|
else |
| 5359 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 5360 |
|
echo "${ECHO_T}no" >&6 |
| 5361 |
|
fi |
| 5362 |
|
|
| 5363 |
|
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5364 |
|
if test -n "$ac_tool_prefix"; then |
| 5365 |
|
echo "$as_me:$LINENO: checking for file" >&5 |
| 5366 |
|
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 5367 |
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 5368 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5369 |
|
else |
| 5370 |
|
case $MAGIC_CMD in |
| 5371 |
|
[\\/*] | ?:[\\/]*) |
| 5372 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5373 |
|
;; |
| 5374 |
|
*) |
| 5375 |
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5376 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5377 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5378 |
|
for ac_dir in $ac_dummy; do |
| 5379 |
|
IFS="$lt_save_ifs" |
| 5380 |
|
test -z "$ac_dir" && ac_dir=. |
| 5381 |
|
if test -f $ac_dir/file; then |
| 5382 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 5383 |
|
if test -n "$file_magic_test_file"; then |
| 5384 |
|
case $deplibs_check_method in |
| 5385 |
|
"file_magic "*) |
| 5386 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 5387 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5388 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5389 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
| 5390 |
|
: |
| 5391 |
|
else |
| 5392 |
|
cat <<EOF 1>&2 |
| 5393 |
|
|
| 5394 |
|
*** Warning: the command libtool uses to detect shared libraries, |
| 5395 |
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5396 |
|
*** The result is that libtool may fail to recognize shared libraries |
| 5397 |
|
*** as such. This will affect the creation of libtool libraries that |
| 5398 |
|
*** depend on shared libraries, but programs linked with such libtool |
| 5399 |
|
*** libraries will work regardless of this problem. Nevertheless, you |
| 5400 |
|
*** may want to report the problem to your system manager and/or to |
| 5401 |
|
*** bug-libtool@gnu.org |
| 5402 |
|
|
| 5403 |
|
EOF |
| 5404 |
|
fi ;; |
| 5405 |
|
esac |
| 5406 |
|
fi |
| 5407 |
|
break |
| 5408 |
|
fi |
| 5409 |
|
done |
| 5410 |
|
IFS="$lt_save_ifs" |
| 5411 |
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5412 |
|
;; |
| 5413 |
|
esac |
| 5414 |
|
fi |
| 5415 |
|
|
| 5416 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5417 |
|
if test -n "$MAGIC_CMD"; then |
| 5418 |
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5419 |
|
echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 5420 |
|
else |
| 5421 |
|
echo "$as_me:$LINENO: result: no" >&5 |
| 5422 |
|
echo "${ECHO_T}no" >&6 |
| 5423 |
|
fi |
| 5424 |
|
|
| 5425 |
|
else |
| 5426 |
|
MAGIC_CMD=: |
| 5427 |
|
fi |
| 5428 |
|
fi |
| 5429 |
|
|
| 5430 |
|
fi |
| 5431 |
|
;; |
| 5432 |
|
esac |
| 5433 |
|
|
| 5434 |
enable_dlopen=no |
enable_dlopen=no |
| 5435 |
enable_win32_dll=no |
enable_win32_dll=no |
| 5436 |
|
|
| 5441 |
fi; |
fi; |
| 5442 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5443 |
|
|
|
# Some flags need to be propagated to the compiler or linker for good |
|
|
# libtool support. |
|
|
case $host in |
|
|
*-*-irix6*) |
|
|
# Find out which ABI we are using. |
|
|
echo '#line 4110 "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 |
|
|
*32-bit*) |
|
|
LD="${LD-ld} -32" |
|
|
;; |
|
|
*N32*) |
|
|
LD="${LD-ld} -n32" |
|
|
;; |
|
|
*64-bit*) |
|
|
LD="${LD-ld} -64" |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
rm -rf conftest* |
|
|
;; |
|
| 5444 |
|
|
| 5445 |
*-*-sco3.2v5*) |
# Check whether --with-pic or --without-pic was given. |
| 5446 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
if test "${with_pic+set}" = set; then |
| 5447 |
SAVE_CFLAGS="$CFLAGS" |
withval="$with_pic" |
| 5448 |
CFLAGS="$CFLAGS -belf" |
pic_mode="$withval" |
|
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
| 5449 |
else |
else |
| 5450 |
|
pic_mode=default |
| 5451 |
|
fi; |
| 5452 |
|
test -z "$pic_mode" && pic_mode=default |
| 5453 |
|
|
| 5454 |
|
# Use C for the default configuration in the libtool script |
| 5455 |
ac_ext=c |
tagname= |
| 5456 |
|
lt_save_CC="$CC" |
| 5457 |
|
ac_ext=c |
| 5458 |
ac_cpp='$CPP $CPPFLAGS' |
ac_cpp='$CPP $CPPFLAGS' |
| 5459 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5460 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5461 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5462 |
|
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
#line $LINENO "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef F77_DUMMY_MAIN |
|
|
# ifdef __cplusplus |
|
|
extern "C" |
|
|
# endif |
|
|
int F77_DUMMY_MAIN() { return 1; } |
|
|
#endif |
|
|
int |
|
|
main () |
|
|
{ |
|
| 5463 |
|
|
| 5464 |
; |
# Source file extension for C test sources. |
| 5465 |
return 0; |
ac_ext=c |
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
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); } && |
|
|
{ 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 |
|
|
lt_cv_cc_needs_belf=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
lt_cv_cc_needs_belf=no |
|
|
fi |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
|
ac_ext=c |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
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 |
|
| 5466 |
|
|
| 5467 |
fi |
# Object file extension for compiled C test sources. |
| 5468 |
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
objext=o |
| 5469 |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
objext=$objext |
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
CFLAGS="$SAVE_CFLAGS" |
|
|
fi |
|
|
;; |
|
| 5470 |
|
|
| 5471 |
|
# Code to be used in simple compile tests |
| 5472 |
|
lt_simple_compile_test_code="int some_variable = 0;\n" |
| 5473 |
|
|
| 5474 |
esac |
# Code to be used in simple link tests |
| 5475 |
|
lt_simple_link_test_code='int main(){return(0);}\n' |
| 5476 |
|
|
|
# Sed substitution that helps us do robust quoting. It backslashifies |
|
|
# metacharacters that are still active within double-quoted strings. |
|
|
Xsed='sed -e s/^X//' |
|
|
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
| 5477 |
|
|
| 5478 |
# Same as above, but do not quote variable references. |
# If no C compiler was specified, use CC. |
| 5479 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
LTCC=${LTCC-"$CC"} |
| 5480 |
|
|
| 5481 |
# Sed substitution to delay expansion of an escaped shell variable in a |
# Allow CC to be a program name with arguments. |
| 5482 |
# double_quote_subst'ed string. |
compiler=$CC |
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
| 5483 |
|
|
|
# Constants: |
|
|
rm="rm -f" |
|
| 5484 |
|
|
| 5485 |
# Global variables: |
# |
| 5486 |
default_ofile=libtool |
# Check for any special shared library compilation flags. |
| 5487 |
can_build_shared=yes |
# |
| 5488 |
|
lt_prog_cc_shlib= |
| 5489 |
|
if test "$GCC" = no; then |
| 5490 |
|
case $host_os in |
| 5491 |
|
sco3.2v5*) |
| 5492 |
|
lt_prog_cc_shlib='-belf' |
| 5493 |
|
;; |
| 5494 |
|
esac |
| 5495 |
|
fi |
| 5496 |
|
if test -n "$lt_prog_cc_shlib"; then |
| 5497 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
| 5498 |
|
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
| 5499 |
|
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
| 5500 |
|
else |
| 5501 |
|
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
| 5502 |
|
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
| 5503 |
|
lt_cv_prog_cc_can_build_shared=no |
| 5504 |
|
fi |
| 5505 |
|
fi |
| 5506 |
|
|
|
# All known linkers require a `.a' archive for static linking (except M$VC, |
|
|
# which needs '.lib'). |
|
|
libext=a |
|
|
ltmain="$ac_aux_dir/ltmain.sh" |
|
|
ofile="$default_ofile" |
|
|
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
need_locks="$enable_libtool_lock" |
|
| 5507 |
|
|
| 5508 |
old_CC="$CC" |
# |
| 5509 |
old_CFLAGS="$CFLAGS" |
# Check to make sure the static flag actually works. |
| 5510 |
|
# |
| 5511 |
|
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
| 5512 |
|
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
| 5513 |
|
if test "${lt_prog_compiler_static_works+set}" = set; then |
| 5514 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5515 |
|
else |
| 5516 |
|
lt_prog_compiler_static_works=no |
| 5517 |
|
save_LDFLAGS="$LDFLAGS" |
| 5518 |
|
LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
| 5519 |
|
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 5520 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 5521 |
|
# The compiler can only warn and ignore the option if not recognized |
| 5522 |
|
# So say no if there are warnings |
| 5523 |
|
if test -s conftest.err; then |
| 5524 |
|
# Append any errors to the config.log. |
| 5525 |
|
cat conftest.err 1>&5 |
| 5526 |
|
else |
| 5527 |
|
lt_prog_compiler_static_works=yes |
| 5528 |
|
fi |
| 5529 |
|
fi |
| 5530 |
|
$rm conftest* |
| 5531 |
|
LDFLAGS="$save_LDFLAGS" |
| 5532 |
|
|
| 5533 |
# Set sane defaults for various variables |
fi |
| 5534 |
test -z "$AR" && AR=ar |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 5535 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
test -z "$AS" && AS=as |
|
|
test -z "$CC" && CC=cc |
|
|
test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
test -z "$LD" && LD=ld |
|
|
test -z "$LN_S" && LN_S="ln -s" |
|
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
test -z "$NM" && NM=nm |
|
|
test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
test -z "$RANLIB" && RANLIB=: |
|
|
test -z "$STRIP" && STRIP=: |
|
|
test -z "$ac_objext" && ac_objext=o |
|
| 5536 |
|
|
| 5537 |
if test x"$host" != x"$build"; then |
if test x"$lt_prog_compiler_static_works" = xyes; then |
| 5538 |
ac_tool_prefix=${host_alias}- |
: |
| 5539 |
else |
else |
| 5540 |
ac_tool_prefix= |
lt_prog_compiler_static= |
| 5541 |
fi |
fi |
| 5542 |
|
|
|
# Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
|
|
case $host_os in |
|
|
linux-gnu*) ;; |
|
|
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
|
|
esac |
|
| 5543 |
|
|
|
case $host_os in |
|
|
aix3*) |
|
|
# AIX sometimes has problems with the GCC collect2 program. For some |
|
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
# vanish in a puff of smoke. |
|
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
COLLECT_NAMES= |
|
|
export COLLECT_NAMES |
|
|
fi |
|
|
;; |
|
|
esac |
|
| 5544 |
|
|
|
# Determine commands to create old-style static archives. |
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
old_postinstall_cmds='chmod 644 $oldlib' |
|
|
old_postuninstall_cmds= |
|
| 5545 |
|
|
| 5546 |
if test -n "$RANLIB"; then |
lt_prog_compiler_no_builtin_flag= |
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
fi |
|
| 5547 |
|
|
| 5548 |
# Allow CC to be a program name with arguments. |
if test "$GCC" = yes; then |
| 5549 |
set dummy $CC |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
compiler="$2" |
|
| 5550 |
|
|
| 5551 |
echo "$as_me:$LINENO: checking for objdir" >&5 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5552 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 5553 |
rm -f .libs 2>/dev/null |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 5554 |
mkdir .libs 2>/dev/null |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
if test -d .libs; then |
|
|
objdir=.libs |
|
| 5555 |
else |
else |
| 5556 |
# MS-DOS does not allow filenames that begin with a dot. |
lt_cv_prog_compiler_rtti_exceptions=no |
| 5557 |
objdir=_libs |
ac_outfile=conftest.$ac_objext |
| 5558 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5559 |
|
lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 5560 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 5561 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 5562 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 5563 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5564 |
|
# The option is referenced via a variable to avoid confusing sed. |
| 5565 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
| 5566 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5567 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5568 |
|
-e 's:$: $lt_compiler_flag:'` |
| 5569 |
|
(eval echo "\"\$as_me:5569: $lt_compile\"" >&5) |
| 5570 |
|
(eval "$lt_compile" 2>conftest.err) |
| 5571 |
|
ac_status=$? |
| 5572 |
|
cat conftest.err >&5 |
| 5573 |
|
echo "$as_me:5573: \$? = $ac_status" >&5 |
| 5574 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5575 |
|
# The compiler can only warn and ignore the option if not recognized |
| 5576 |
|
# So say no if there are warnings |
| 5577 |
|
if test ! -s conftest.err; then |
| 5578 |
|
lt_cv_prog_compiler_rtti_exceptions=yes |
| 5579 |
|
fi |
| 5580 |
|
fi |
| 5581 |
|
$rm conftest* |
| 5582 |
|
|
| 5583 |
fi |
fi |
| 5584 |
rmdir .libs 2>/dev/null |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 5585 |
echo "$as_me:$LINENO: result: $objdir" >&5 |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
echo "${ECHO_T}$objdir" >&6 |
|
| 5586 |
|
|
| 5587 |
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 5588 |
|
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 5589 |
|
else |
| 5590 |
|
: |
| 5591 |
|
fi |
| 5592 |
|
|
| 5593 |
|
fi |
| 5594 |
|
|
| 5595 |
# Check whether --with-pic or --without-pic was given. |
lt_prog_compiler_wl= |
| 5596 |
if test "${with_pic+set}" = set; then |
lt_prog_compiler_pic= |
| 5597 |
withval="$with_pic" |
lt_prog_compiler_static= |
|
pic_mode="$withval" |
|
|
else |
|
|
pic_mode=default |
|
|
fi; |
|
|
test -z "$pic_mode" && pic_mode=default |
|
| 5598 |
|
|
|
# We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
# in isolation, and that seeing it set (from the cache) indicates that |
|
|
# the associated values are set (in the cache) correctly too. |
|
| 5599 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 5600 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
lt_cv_prog_cc_pic= |
|
|
lt_cv_prog_cc_shlib= |
|
|
lt_cv_prog_cc_wl= |
|
|
lt_cv_prog_cc_static= |
|
|
lt_cv_prog_cc_no_builtin= |
|
|
lt_cv_prog_cc_can_build_shared=$can_build_shared |
|
| 5601 |
|
|
| 5602 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
| 5603 |
lt_cv_prog_cc_wl='-Wl,' |
lt_prog_compiler_wl='-Wl,' |
| 5604 |
lt_cv_prog_cc_static='-static' |
lt_prog_compiler_static='-static' |
| 5605 |
|
|
| 5606 |
case $host_os in |
case $host_os in |
| 5607 |
aix*) |
aix*) |
| 5608 |
# Below there is a dirty hack to force normal static linking with -ldl |
# All AIX code is PIC. |
| 5609 |
# The problem is because libdl dynamically linked with both libc and |
if test "$host_cpu" = ia64; then |
| 5610 |
# libC (AIX C++ library), which obviously doesn't included in libraries |
# AIX 5 now supports IA64 processor |
| 5611 |
# list by gcc. This cause undefined symbols with -static flags. |
lt_prog_compiler_static='-Bstatic' |
| 5612 |
# This hack allows C programs to be linked with "-static -ldl", but |
fi |
|
# we not sure about C++ programs. |
|
|
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
| 5613 |
;; |
;; |
| 5614 |
|
|
| 5615 |
amigaos*) |
amigaos*) |
| 5616 |
# FIXME: we need at least 68020 code to build shared libraries, but |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 5617 |
# adding the `-m68020' flag to GCC prevents building anything better, |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 5618 |
# like `-m68040'. |
# like `-m68040'. |
| 5619 |
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 5620 |
;; |
;; |
| 5621 |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
|
| 5622 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 5623 |
# PIC is the default for these OSes. |
# PIC is the default for these OSes. |
| 5624 |
;; |
;; |
| 5625 |
|
|
| 5626 |
|
mingw* | pw32* | os2*) |
| 5627 |
|
# This hack is so that the source file can tell whether it is being |
| 5628 |
|
# built for inclusion in a dll (and should export symbols for example). |
| 5629 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5630 |
|
;; |
| 5631 |
|
|
| 5632 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
| 5633 |
# PIC is the default on this platform |
# PIC is the default on this platform |
| 5634 |
# Common symbols not allowed in MH_DYLIB files |
# Common symbols not allowed in MH_DYLIB files |
| 5635 |
lt_cv_prog_cc_pic='-fno-common' |
lt_prog_compiler_pic='-fno-common' |
| 5636 |
;; |
;; |
| 5637 |
cygwin* | mingw* | pw32* | os2*) |
|
| 5638 |
# This hack is so that the source file can tell whether it is being |
msdosdjgpp*) |
| 5639 |
# built for inclusion in a dll (and should export symbols for example). |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 5640 |
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
# on systems that don't support them. |
| 5641 |
|
lt_prog_compiler_can_build_shared=no |
| 5642 |
|
enable_shared=no |
| 5643 |
;; |
;; |
| 5644 |
|
|
| 5645 |
sysv4*MP*) |
sysv4*MP*) |
| 5646 |
if test -d /usr/nec; then |
if test -d /usr/nec; then |
| 5647 |
lt_cv_prog_cc_pic=-Kconform_pic |
lt_prog_compiler_pic=-Kconform_pic |
| 5648 |
fi |
fi |
| 5649 |
;; |
;; |
| 5650 |
|
|
| 5651 |
|
hpux*) |
| 5652 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5653 |
|
# not for PA HP-UX. |
| 5654 |
|
case "$host_cpu" in |
| 5655 |
|
hppa*64*|ia64*) |
| 5656 |
|
# +Z the default |
| 5657 |
|
;; |
| 5658 |
|
*) |
| 5659 |
|
lt_prog_compiler_pic='-fPIC' |
| 5660 |
|
;; |
| 5661 |
|
esac |
| 5662 |
|
;; |
| 5663 |
|
|
| 5664 |
*) |
*) |
| 5665 |
lt_cv_prog_cc_pic='-fPIC' |
lt_prog_compiler_pic='-fPIC' |
| 5666 |
;; |
;; |
| 5667 |
esac |
esac |
| 5668 |
else |
else |
| 5669 |
# PORTME Check for PIC flags for the system compiler. |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 5670 |
case $host_os in |
case $host_os in |
| 5671 |
aix3* | aix4* | aix5*) |
aix*) |
| 5672 |
# All AIX code is PIC. |
lt_prog_compiler_wl='-Wl,' |
| 5673 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
| 5674 |
# AIX 5 now supports IA64 processor |
# AIX 5 now supports IA64 processor |
| 5675 |
lt_cv_prog_cc_static='-Bstatic' |
lt_prog_compiler_static='-Bstatic' |
|
lt_cv_prog_cc_wl='-Wl,' |
|
| 5676 |
else |
else |
| 5677 |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 5678 |
fi |
fi |
| 5679 |
;; |
;; |
| 5680 |
|
|
| 5681 |
|
mingw* | pw32* | os2*) |
| 5682 |
|
# This hack is so that the source file can tell whether it is being |
| 5683 |
|
# built for inclusion in a dll (and should export symbols for example). |
| 5684 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5685 |
|
;; |
| 5686 |
|
|
| 5687 |
hpux9* | hpux10* | hpux11*) |
hpux9* | hpux10* | hpux11*) |
| 5688 |
# Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
lt_prog_compiler_wl='-Wl,' |
| 5689 |
lt_cv_prog_cc_wl='-Wl,' |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5690 |
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
# not for PA HP-UX. |
| 5691 |
lt_cv_prog_cc_pic='+Z' |
case "$host_cpu" in |
| 5692 |
|
hppa*64*|ia64*) |
| 5693 |
|
# +Z the default |
| 5694 |
|
;; |
| 5695 |
|
*) |
| 5696 |
|
lt_prog_compiler_pic='+Z' |
| 5697 |
|
;; |
| 5698 |
|
esac |
| 5699 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 5700 |
|
lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 5701 |
;; |
;; |
| 5702 |
|
|
| 5703 |
irix5* | irix6*) |
irix5* | irix6* | nonstopux*) |
| 5704 |
lt_cv_prog_cc_wl='-Wl,' |
lt_prog_compiler_wl='-Wl,' |
|
lt_cv_prog_cc_static='-non_shared' |
|
| 5705 |
# PIC (with -KPIC) is the default. |
# PIC (with -KPIC) is the default. |
| 5706 |
|
lt_prog_compiler_static='-non_shared' |
| 5707 |
;; |
;; |
| 5708 |
|
|
| 5709 |
cygwin* | mingw* | pw32* | os2*) |
newsos6) |
| 5710 |
# This hack is so that the source file can tell whether it is being |
lt_prog_compiler_pic='-KPIC' |
| 5711 |
# built for inclusion in a dll (and should export symbols for example). |
lt_prog_compiler_static='-Bstatic' |
|
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
| 5712 |
;; |
;; |
| 5713 |
|
|
| 5714 |
newsos6) |
linux*) |
| 5715 |
lt_cv_prog_cc_pic='-KPIC' |
case $CC in |
| 5716 |
lt_cv_prog_cc_static='-Bstatic' |
icc|ecc) |
| 5717 |
|
lt_prog_compiler_wl='-Wl,' |
| 5718 |
|
lt_prog_compiler_pic='-KPIC' |
| 5719 |
|
lt_prog_compiler_static='-static' |
| 5720 |
|
;; |
| 5721 |
|
ccc) |
| 5722 |
|
lt_prog_compiler_wl='-Wl,' |
| 5723 |
|
# All Alpha code is PIC. |
| 5724 |
|
lt_prog_compiler_static='-non_shared' |
| 5725 |
|
;; |
| 5726 |
|
esac |
| 5727 |
;; |
;; |
| 5728 |
|
|
| 5729 |
osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
| 5730 |
|
lt_prog_compiler_wl='-Wl,' |
| 5731 |
# All OSF/1 code is PIC. |
# All OSF/1 code is PIC. |
| 5732 |
lt_cv_prog_cc_wl='-Wl,' |
lt_prog_compiler_static='-non_shared' |
|
lt_cv_prog_cc_static='-non_shared' |
|
| 5733 |
;; |
;; |
| 5734 |
|
|
| 5735 |
sco3.2v5*) |
sco3.2v5*) |
| 5736 |
lt_cv_prog_cc_pic='-Kpic' |
lt_prog_compiler_pic='-Kpic' |
| 5737 |
lt_cv_prog_cc_static='-dn' |
lt_prog_compiler_static='-dn' |
|
lt_cv_prog_cc_shlib='-belf' |
|
| 5738 |
;; |
;; |
| 5739 |
|
|
| 5740 |
solaris*) |
solaris*) |
| 5741 |
lt_cv_prog_cc_pic='-KPIC' |
lt_prog_compiler_wl='-Wl,' |
| 5742 |
lt_cv_prog_cc_static='-Bstatic' |
lt_prog_compiler_pic='-KPIC' |
| 5743 |
lt_cv_prog_cc_wl='-Wl,' |
lt_prog_compiler_static='-Bstatic' |
| 5744 |
;; |
;; |
| 5745 |
|
|
| 5746 |
sunos4*) |
sunos4*) |
| 5747 |
lt_cv_prog_cc_pic='-PIC' |
lt_prog_compiler_wl='-Qoption ld ' |
| 5748 |
lt_cv_prog_cc_static='-Bstatic' |
lt_prog_compiler_pic='-PIC' |
| 5749 |
lt_cv_prog_cc_wl='-Qoption ld ' |
lt_prog_compiler_static='-Bstatic' |
| 5750 |
;; |
;; |
| 5751 |
|
|
| 5752 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 5753 |
lt_cv_prog_cc_pic='-KPIC' |
lt_prog_compiler_wl='-Wl,' |
| 5754 |
lt_cv_prog_cc_static='-Bstatic' |
lt_prog_compiler_pic='-KPIC' |
| 5755 |
if test "x$host_vendor" = xsni; then |
lt_prog_compiler_static='-Bstatic' |
|
lt_cv_prog_cc_wl='-LD' |
|
|
else |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
fi |
|
|
;; |
|
|
|
|
|
uts4*) |
|
|
lt_cv_prog_cc_pic='-pic' |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
| 5756 |
;; |
;; |
| 5757 |
|
|
| 5758 |
sysv4*MP*) |
sysv4*MP*) |
| 5759 |
if test -d /usr/nec ;then |
if test -d /usr/nec ;then |
| 5760 |
lt_cv_prog_cc_pic='-Kconform_pic' |
lt_prog_compiler_pic='-Kconform_pic' |
| 5761 |
lt_cv_prog_cc_static='-Bstatic' |
lt_prog_compiler_static='-Bstatic' |
| 5762 |
fi |
fi |
| 5763 |
;; |
;; |
| 5764 |
|
|
| 5765 |
|
uts4*) |
| 5766 |
|
lt_prog_compiler_pic='-pic' |
| 5767 |
|
lt_prog_compiler_static='-Bstatic' |
| 5768 |
|
;; |
| 5769 |
|
|
| 5770 |
*) |
*) |
| 5771 |
lt_cv_prog_cc_can_build_shared=no |
lt_prog_compiler_can_build_shared=no |
| 5772 |
;; |
;; |
| 5773 |
esac |
esac |
| 5774 |
fi |
fi |
| 5775 |
|
|
| 5776 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 5777 |
|
echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 5778 |
|
|
| 5779 |
|
# |
| 5780 |
|
# Check to make sure the PIC flag actually works. |
| 5781 |
|
# |
| 5782 |
|
if test -n "$lt_prog_compiler_pic"; then |
| 5783 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 5784 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 5785 |
|
if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 5786 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5787 |
|
else |
| 5788 |
|
lt_prog_compiler_pic_works=no |
| 5789 |
|
ac_outfile=conftest.$ac_objext |
| 5790 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5791 |
|
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 5792 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 5793 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 5794 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 5795 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5796 |
|
# The option is referenced via a variable to avoid confusing sed. |
| 5797 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
| 5798 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5799 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5800 |
|
-e 's:$: $lt_compiler_flag:'` |
| 5801 |
|
(eval echo "\"\$as_me:5801: $lt_compile\"" >&5) |
| 5802 |
|
(eval "$lt_compile" 2>conftest.err) |
| 5803 |
|
ac_status=$? |
| 5804 |
|
cat conftest.err >&5 |
| 5805 |
|
echo "$as_me:5805: \$? = $ac_status" >&5 |
| 5806 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5807 |
|
# The compiler can only warn and ignore the option if not recognized |
| 5808 |
|
# So say no if there are warnings |
| 5809 |
|
if test ! -s conftest.err; then |
| 5810 |
|
lt_prog_compiler_pic_works=yes |
| 5811 |
|
fi |
| 5812 |
|
fi |
| 5813 |
|
$rm conftest* |
| 5814 |
|
|
| 5815 |
fi |
fi |
| 5816 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 5817 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 5818 |
|
|
| 5819 |
if test -z "$lt_cv_prog_cc_pic"; then |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 5820 |
echo "$as_me:$LINENO: result: none" >&5 |
case $lt_prog_compiler_pic in |
| 5821 |
echo "${ECHO_T}none" >&6 |
"" | " "*) ;; |
| 5822 |
|
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 5823 |
|
esac |
| 5824 |
else |
else |
| 5825 |
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
lt_prog_compiler_pic= |
| 5826 |
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
lt_prog_compiler_can_build_shared=no |
| 5827 |
|
fi |
| 5828 |
|
|
| 5829 |
|
fi |
| 5830 |
|
case "$host_os" in |
| 5831 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
| 5832 |
|
*djgpp*) |
| 5833 |
|
lt_prog_compiler_pic= |
| 5834 |
|
;; |
| 5835 |
|
*) |
| 5836 |
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 5837 |
|
;; |
| 5838 |
|
esac |
| 5839 |
|
|
| 5840 |
# Check to make sure the pic_flag actually works. |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 5841 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 5842 |
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
|
if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
|
| 5843 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5844 |
else |
else |
| 5845 |
save_CFLAGS="$CFLAGS" |
lt_cv_prog_compiler_c_o=no |
| 5846 |
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
$rm -r conftest 2>/dev/null |
| 5847 |
cat >conftest.$ac_ext <<_ACEOF |
mkdir conftest |
| 5848 |
|
cd conftest |
| 5849 |
|
mkdir out |
| 5850 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 5851 |
|
|
| 5852 |
|
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 5853 |
|
# that will create temporary files in the current directory regardless of |
| 5854 |
|
# the output directory. Thus, making CWD read-only will cause this test |
| 5855 |
|
# to fail, enabling locking or at least warning the user not to do parallel |
| 5856 |
|
# builds. |
| 5857 |
|
chmod -w . |
| 5858 |
|
|
| 5859 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 5860 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
| 5861 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
| 5862 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
| 5863 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5864 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
| 5865 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
| 5866 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5867 |
|
-e 's:$: $lt_compiler_flag:'` |
| 5868 |
|
(eval echo "\"\$as_me:5868: $lt_compile\"" >&5) |
| 5869 |
|
(eval "$lt_compile" 2>out/conftest.err) |
| 5870 |
|
ac_status=$? |
| 5871 |
|
cat out/conftest.err >&5 |
| 5872 |
|
echo "$as_me:5872: \$? = $ac_status" >&5 |
| 5873 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 5874 |
|
then |
| 5875 |
|
# The compiler can only warn and ignore the option if not recognized |
| 5876 |
|
# So say no if there are warnings |
| 5877 |
|
if test ! -s out/conftest.err; then |
| 5878 |
|
lt_cv_prog_compiler_c_o=yes |
| 5879 |
|
fi |
| 5880 |
|
fi |
| 5881 |
|
chmod u+w . |
| 5882 |
|
$rm conftest* out/* |
| 5883 |
|
rmdir out |
| 5884 |
|
cd .. |
| 5885 |
|
rmdir conftest |
| 5886 |
|
$rm conftest* |
| 5887 |
|
|
| 5888 |
|
fi |
| 5889 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 5890 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 5891 |
|
|
| 5892 |
|
|
| 5893 |
|
hard_links="nottested" |
| 5894 |
|
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 5895 |
|
# do not overwrite the value of need_locks provided by the user |
| 5896 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 5897 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 5898 |
|
hard_links=yes |
| 5899 |
|
$rm conftest* |
| 5900 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5901 |
|
touch conftest.a |
| 5902 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 5903 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 5904 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 5905 |
|
echo "${ECHO_T}$hard_links" >&6 |
| 5906 |
|
if test "$hard_links" = no; then |
| 5907 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 5908 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 5909 |
|
need_locks=warn |
| 5910 |
|
fi |
| 5911 |
|
else |
| 5912 |
|
need_locks=no |
| 5913 |
|
fi |
| 5914 |
|
|
| 5915 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 5916 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 5917 |
|
|
| 5918 |
|
runpath_var= |
| 5919 |
|
allow_undefined_flag= |
| 5920 |
|
enable_shared_with_static_runtimes=no |
| 5921 |
|
archive_cmds= |
| 5922 |
|
archive_expsym_cmds= |
| 5923 |
|
old_archive_From_new_cmds= |
| 5924 |
|
old_archive_from_expsyms_cmds= |
| 5925 |
|
export_dynamic_flag_spec= |
| 5926 |
|
whole_archive_flag_spec= |
| 5927 |
|
thread_safe_flag_spec= |
| 5928 |
|
hardcode_libdir_flag_spec= |
| 5929 |
|
hardcode_libdir_flag_spec_ld= |
| 5930 |
|
hardcode_libdir_separator= |
| 5931 |
|
hardcode_direct=no |
| 5932 |
|
hardcode_minus_L=no |
| 5933 |
|
hardcode_shlibpath_var=unsupported |
| 5934 |
|
link_all_deplibs=unknown |
| 5935 |
|
hardcode_automatic=no |
| 5936 |
|
module_cmds= |
| 5937 |
|
module_expsym_cmds= |
| 5938 |
|
always_export_symbols=no |
| 5939 |
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 5940 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
| 5941 |
|
# included in the symbol list |
| 5942 |
|
include_expsyms= |
| 5943 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 5944 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 5945 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 5946 |
|
# as well as any symbol that contains `d'. |
| 5947 |
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 5948 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 5949 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 5950 |
|
# the symbol is explicitly referenced. Since portable code cannot |
| 5951 |
|
# rely on this symbol name, it's probably fine to never include it in |
| 5952 |
|
# preloaded symbol tables. |
| 5953 |
|
extract_expsyms_cmds= |
| 5954 |
|
|
| 5955 |
|
case $host_os in |
| 5956 |
|
cygwin* | mingw* | pw32*) |
| 5957 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 5958 |
|
# When not using gcc, we currently assume that we are using |
| 5959 |
|
# Microsoft Visual C++. |
| 5960 |
|
if test "$GCC" != yes; then |
| 5961 |
|
with_gnu_ld=no |
| 5962 |
|
fi |
| 5963 |
|
;; |
| 5964 |
|
openbsd*) |
| 5965 |
|
with_gnu_ld=no |
| 5966 |
|
;; |
| 5967 |
|
esac |
| 5968 |
|
|
| 5969 |
|
ld_shlibs=yes |
| 5970 |
|
if test "$with_gnu_ld" = yes; then |
| 5971 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 5972 |
|
wlarc='${wl}' |
| 5973 |
|
|
| 5974 |
|
# See if GNU ld supports shared libraries. |
| 5975 |
|
case $host_os in |
| 5976 |
|
aix3* | aix4* | aix5*) |
| 5977 |
|
# On AIX/PPC, the GNU linker is very broken |
| 5978 |
|
if test "$host_cpu" != ia64; then |
| 5979 |
|
ld_shlibs=no |
| 5980 |
|
cat <<EOF 1>&2 |
| 5981 |
|
|
| 5982 |
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 5983 |
|
*** to be unable to reliably create shared libraries on AIX. |
| 5984 |
|
*** Therefore, libtool is disabling shared libraries support. If you |
| 5985 |
|
*** really care for shared libraries, you may want to modify your PATH |
| 5986 |
|
*** so that a non-GNU linker is found, and then restart. |
| 5987 |
|
|
| 5988 |
|
EOF |
| 5989 |
|
fi |
| 5990 |
|
;; |
| 5991 |
|
|
| 5992 |
|
amigaos*) |
| 5993 |
|
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 5994 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 5995 |
|
hardcode_minus_L=yes |
| 5996 |
|
|
| 5997 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 5998 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
| 5999 |
|
# to version 4, is to share data among multiple programs linked |
| 6000 |
|
# with the same dynamic library. Since this doesn't match the |
| 6001 |
|
# behavior of shared libraries on other platforms, we can't use |
| 6002 |
|
# them. |
| 6003 |
|
ld_shlibs=no |
| 6004 |
|
;; |
| 6005 |
|
|
| 6006 |
|
beos*) |
| 6007 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6008 |
|
allow_undefined_flag=unsupported |
| 6009 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6010 |
|
# support --undefined. This deserves some investigation. FIXME |
| 6011 |
|
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6012 |
|
else |
| 6013 |
|
ld_shlibs=no |
| 6014 |
|
fi |
| 6015 |
|
;; |
| 6016 |
|
|
| 6017 |
|
cygwin* | mingw* | pw32*) |
| 6018 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 6019 |
|
# as there is no search path for DLLs. |
| 6020 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 6021 |
|
allow_undefined_flag=unsupported |
| 6022 |
|
always_export_symbols=no |
| 6023 |
|
enable_shared_with_static_runtimes=yes |
| 6024 |
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 6025 |
|
|
| 6026 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 6027 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6028 |
|
# If the export-symbols file already is a .def file (1st line |
| 6029 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
| 6030 |
|
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6031 |
|
cp $export_symbols $output_objdir/$soname.def; |
| 6032 |
|
else |
| 6033 |
|
echo EXPORTS > $output_objdir/$soname.def; |
| 6034 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
| 6035 |
|
fi~ |
| 6036 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| 6037 |
|
else |
| 6038 |
|
ld_shlibs=no |
| 6039 |
|
fi |
| 6040 |
|
;; |
| 6041 |
|
|
| 6042 |
|
netbsd*) |
| 6043 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6044 |
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6045 |
|
wlarc= |
| 6046 |
|
else |
| 6047 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6048 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6049 |
|
fi |
| 6050 |
|
;; |
| 6051 |
|
|
| 6052 |
|
solaris* | sysv5*) |
| 6053 |
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 6054 |
|
ld_shlibs=no |
| 6055 |
|
cat <<EOF 1>&2 |
| 6056 |
|
|
| 6057 |
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6058 |
|
*** create shared libraries on Solaris systems. Therefore, libtool |
| 6059 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 6060 |
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 6061 |
|
*** your PATH or compiler configuration so that the native linker is |
| 6062 |
|
*** used, and then restart. |
| 6063 |
|
|
| 6064 |
|
EOF |
| 6065 |
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6066 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6067 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6068 |
|
else |
| 6069 |
|
ld_shlibs=no |
| 6070 |
|
fi |
| 6071 |
|
;; |
| 6072 |
|
|
| 6073 |
|
sunos4*) |
| 6074 |
|
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6075 |
|
wlarc= |
| 6076 |
|
hardcode_direct=yes |
| 6077 |
|
hardcode_shlibpath_var=no |
| 6078 |
|
;; |
| 6079 |
|
|
| 6080 |
|
*) |
| 6081 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 6082 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6083 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6084 |
|
else |
| 6085 |
|
ld_shlibs=no |
| 6086 |
|
fi |
| 6087 |
|
;; |
| 6088 |
|
esac |
| 6089 |
|
|
| 6090 |
|
if test "$ld_shlibs" = yes; then |
| 6091 |
|
runpath_var=LD_RUN_PATH |
| 6092 |
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 6093 |
|
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6094 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
| 6095 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 6096 |
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6097 |
|
else |
| 6098 |
|
whole_archive_flag_spec= |
| 6099 |
|
fi |
| 6100 |
|
fi |
| 6101 |
|
else |
| 6102 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
| 6103 |
|
case $host_os in |
| 6104 |
|
aix3*) |
| 6105 |
|
allow_undefined_flag=unsupported |
| 6106 |
|
always_export_symbols=yes |
| 6107 |
|
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 6108 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
| 6109 |
|
# are no directories specified by -L. |
| 6110 |
|
hardcode_minus_L=yes |
| 6111 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 6112 |
|
# Neither direct hardcoding nor static linking is supported with a |
| 6113 |
|
# broken collect2. |
| 6114 |
|
hardcode_direct=unsupported |
| 6115 |
|
fi |
| 6116 |
|
;; |
| 6117 |
|
|
| 6118 |
|
aix4* | aix5*) |
| 6119 |
|
if test "$host_cpu" = ia64; then |
| 6120 |
|
# On IA64, the linker does run time linking by default, so we don't |
| 6121 |
|
# have to do anything special. |
| 6122 |
|
aix_use_runtimelinking=no |
| 6123 |
|
exp_sym_flag='-Bexport' |
| 6124 |
|
no_entry_flag="" |
| 6125 |
|
else |
| 6126 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
| 6127 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 6128 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 6129 |
|
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 6130 |
|
else |
| 6131 |
|
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 6132 |
|
fi |
| 6133 |
|
aix_use_runtimelinking=no |
| 6134 |
|
|
| 6135 |
|
# Test if we are trying to use run time linking or normal |
| 6136 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6137 |
|
# need to do runtime linking. |
| 6138 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 6139 |
|
for ld_flag in $LDFLAGS; do |
| 6140 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6141 |
|
aix_use_runtimelinking=yes |
| 6142 |
|
break |
| 6143 |
|
fi |
| 6144 |
|
done |
| 6145 |
|
esac |
| 6146 |
|
|
| 6147 |
|
exp_sym_flag='-bexport' |
| 6148 |
|
no_entry_flag='-bnoentry' |
| 6149 |
|
fi |
| 6150 |
|
|
| 6151 |
|
# When large executables or shared objects are built, AIX ld can |
| 6152 |
|
# have problems creating the table of contents. If linking a library |
| 6153 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
| 6154 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6155 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6156 |
|
|
| 6157 |
|
archive_cmds='' |
| 6158 |
|
hardcode_direct=yes |
| 6159 |
|
hardcode_libdir_separator=':' |
| 6160 |
|
link_all_deplibs=yes |
| 6161 |
|
|
| 6162 |
|
if test "$GCC" = yes; then |
| 6163 |
|
case $host_os in aix4.012|aix4.012.*) |
| 6164 |
|
# We only want to do this on AIX 4.2 and lower, the check |
| 6165 |
|
# below for broken collect2 doesn't work under 4.3+ |
| 6166 |
|
collect2name=`${CC} -print-prog-name=collect2` |
| 6167 |
|
if test -f "$collect2name" && \ |
| 6168 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 6169 |
|
then |
| 6170 |
|
# We have reworked collect2 |
| 6171 |
|
hardcode_direct=yes |
| 6172 |
|
else |
| 6173 |
|
# We have old collect2 |
| 6174 |
|
hardcode_direct=unsupported |
| 6175 |
|
# It fails to find uninstalled libraries when the uninstalled |
| 6176 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
| 6177 |
|
# to unsupported forces relinking |
| 6178 |
|
hardcode_minus_L=yes |
| 6179 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 6180 |
|
hardcode_libdir_separator= |
| 6181 |
|
fi |
| 6182 |
|
esac |
| 6183 |
|
shared_flag='-shared' |
| 6184 |
|
else |
| 6185 |
|
# not using gcc |
| 6186 |
|
if test "$host_cpu" = ia64; then |
| 6187 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6188 |
|
# chokes on -Wl,-G. The following line is correct: |
| 6189 |
|
shared_flag='-G' |
| 6190 |
|
else |
| 6191 |
|
if test "$aix_use_runtimelinking" = yes; then |
| 6192 |
|
shared_flag='${wl}-G' |
| 6193 |
|
else |
| 6194 |
|
shared_flag='${wl}-bM:SRE' |
| 6195 |
|
fi |
| 6196 |
|
fi |
| 6197 |
|
fi |
| 6198 |
|
|
| 6199 |
|
# It seems that -bexpall does not export symbols beginning with |
| 6200 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
| 6201 |
|
always_export_symbols=yes |
| 6202 |
|
if test "$aix_use_runtimelinking" = yes; then |
| 6203 |
|
# Warning - without using the other runtime loading flags (-brtl), |
| 6204 |
|
# -berok will link without error, but may produce a broken library. |
| 6205 |
|
allow_undefined_flag='-berok' |
| 6206 |
|
# Determine the default libpath from the value encoded in an empty executable. |
| 6207 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 6208 |
#line $LINENO "configure" |
#line $LINENO "configure" |
| 6209 |
#include "confdefs.h" |
#include "confdefs.h" |
| 6210 |
|
|
| 6222 |
return 0; |
return 0; |
| 6223 |
} |
} |
| 6224 |
_ACEOF |
_ACEOF |
| 6225 |
rm -f conftest.$ac_objext |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6226 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6227 |
(eval $ac_compile) 2>&5 |
(eval $ac_link) 2>&5 |
| 6228 |
ac_status=$? |
ac_status=$? |
| 6229 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6230 |
(exit $ac_status); } && |
(exit $ac_status); } && |
| 6231 |
{ ac_try='test -s conftest.$ac_objext' |
{ ac_try='test -s conftest$ac_exeext' |
| 6232 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6233 |
(eval $ac_try) 2>&5 |
(eval $ac_try) 2>&5 |
| 6234 |
ac_status=$? |
ac_status=$? |
| 6235 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6236 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
| 6237 |
case $host_os in |
|
| 6238 |
hpux9* | hpux10* | hpux11*) |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6239 |
# On HP-UX, both CC and GCC only warn that PIC is supported... then |
}'` |
| 6240 |
# they create non-PIC objects. So, if there were any warnings, we |
# Check for a 64-bit object if we didn't find anything. |
| 6241 |
# assume that PIC is not supported. |
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; } |
| 6242 |
if test -s conftest.err; then |
}'`; fi |
| 6243 |
lt_cv_prog_cc_pic_works=no |
else |
| 6244 |
|
echo "$as_me: failed program was:" >&5 |
| 6245 |
|
cat conftest.$ac_ext >&5 |
| 6246 |
|
fi |
| 6247 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6248 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 6249 |
|
|
| 6250 |
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6251 |
|
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" |
| 6252 |
|
else |
| 6253 |
|
if test "$host_cpu" = ia64; then |
| 6254 |
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6255 |
|
allow_undefined_flag="-z nodefs" |
| 6256 |
|
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" |
| 6257 |
else |
else |
| 6258 |
lt_cv_prog_cc_pic_works=yes |
# Determine the default libpath from the value encoded in an empty executable. |
| 6259 |
|
cat >conftest.$ac_ext <<_ACEOF |
| 6260 |
|
#line $LINENO "configure" |
| 6261 |
|
#include "confdefs.h" |
| 6262 |
|
|
| 6263 |
|
#ifdef F77_DUMMY_MAIN |
| 6264 |
|
# ifdef __cplusplus |
| 6265 |
|
extern "C" |
| 6266 |
|
# endif |
| 6267 |
|
int F77_DUMMY_MAIN() { return 1; } |
| 6268 |
|
#endif |
| 6269 |
|
int |
| 6270 |
|
main () |
| 6271 |
|
{ |
| 6272 |
|
|
| 6273 |
|
; |
| 6274 |
|
return 0; |
| 6275 |
|
} |
| 6276 |
|
_ACEOF |
| 6277 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
| 6278 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6279 |
|
(eval $ac_link) 2>&5 |
| 6280 |
|
ac_status=$? |
| 6281 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6282 |
|
(exit $ac_status); } && |
| 6283 |
|
{ ac_try='test -s conftest$ac_exeext' |
| 6284 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6285 |
|
(eval $ac_try) 2>&5 |
| 6286 |
|
ac_status=$? |
| 6287 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6288 |
|
(exit $ac_status); }; }; then |
| 6289 |
|
|
| 6290 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 6291 |
|
}'` |
| 6292 |
|
# Check for a 64-bit object if we didn't find anything. |
| 6293 |
|
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; } |
| 6294 |
|
}'`; fi |
| 6295 |
|
else |
| 6296 |
|
echo "$as_me: failed program was:" >&5 |
| 6297 |
|
cat conftest.$ac_ext >&5 |
| 6298 |
|
fi |
| 6299 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6300 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 6301 |
|
|
| 6302 |
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6303 |
|
# Warning - without using the other run time loading flags, |
| 6304 |
|
# -berok will link without error, but may produce a broken library. |
| 6305 |
|
no_undefined_flag=' ${wl}-bernotok' |
| 6306 |
|
allow_undefined_flag=' ${wl}-berok' |
| 6307 |
|
# -bexpall does not export symbols beginning with underscore (_) |
| 6308 |
|
always_export_symbols=yes |
| 6309 |
|
# Exported symbols can be pulled into shared objects from archives |
| 6310 |
|
whole_archive_flag_spec=' ' |
| 6311 |
|
archive_cmds_need_lc=yes |
| 6312 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
| 6313 |
|
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' |
| 6314 |
fi |
fi |
| 6315 |
|
fi |
| 6316 |
|
;; |
| 6317 |
|
|
| 6318 |
|
amigaos*) |
| 6319 |
|
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 6320 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 6321 |
|
hardcode_minus_L=yes |
| 6322 |
|
# see comment about different semantics on the GNU ld section |
| 6323 |
|
ld_shlibs=no |
| 6324 |
|
;; |
| 6325 |
|
|
| 6326 |
|
bsdi4*) |
| 6327 |
|
export_dynamic_flag_spec=-rdynamic |
| 6328 |
|
;; |
| 6329 |
|
|
| 6330 |
|
cygwin* | mingw* | pw32*) |
| 6331 |
|
# When not using gcc, we currently assume that we are using |
| 6332 |
|
# Microsoft Visual C++. |
| 6333 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6334 |
|
# no search path for DLLs. |
| 6335 |
|
hardcode_libdir_flag_spec=' ' |
| 6336 |
|
allow_undefined_flag=unsupported |
| 6337 |
|
# Tell ltmain to make .lib files, not .a files. |
| 6338 |
|
libext=lib |
| 6339 |
|
# Tell ltmain to make .dll files, not .so files. |
| 6340 |
|
shrext=".dll" |
| 6341 |
|
# FIXME: Setting linknames here is a bad hack. |
| 6342 |
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 6343 |
|
# The linker will automatically build a .lib file if we build a DLL. |
| 6344 |
|
old_archive_From_new_cmds='true' |
| 6345 |
|
# FIXME: Should let the user specify the lib program. |
| 6346 |
|
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 6347 |
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6348 |
|
enable_shared_with_static_runtimes=yes |
| 6349 |
|
;; |
| 6350 |
|
|
| 6351 |
|
darwin* | rhapsody*) |
| 6352 |
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
| 6353 |
|
archive_cmds_need_lc=no |
| 6354 |
|
case "$host_os" in |
| 6355 |
|
rhapsody* | darwin1.[012]) |
| 6356 |
|
allow_undefined_flag='-undefined suppress' |
| 6357 |
;; |
;; |
| 6358 |
*) |
*) # Darwin 1.3 on |
| 6359 |
lt_cv_prog_cc_pic_works=yes |
test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' |
| 6360 |
|
;; |
| 6361 |
|
esac |
| 6362 |
|
# FIXME: Relying on posixy $() will cause problems for |
| 6363 |
|
# cross-compilation, but unfortunately the echo tests do not |
| 6364 |
|
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
| 6365 |
|
# `"' quotes if we put them in here... so don't! |
| 6366 |
|
lt_int_apple_cc_single_mod=no |
| 6367 |
|
output_verbose_link_cmd='echo' |
| 6368 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| 6369 |
|
lt_int_apple_cc_single_mod=yes |
| 6370 |
|
fi |
| 6371 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6372 |
|
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 6373 |
|
else |
| 6374 |
|
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' |
| 6375 |
|
fi |
| 6376 |
|
module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
| 6377 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| 6378 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 6379 |
|
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}' |
| 6380 |
|
else |
| 6381 |
|
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}' |
| 6382 |
|
fi |
| 6383 |
|
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 6384 |
|
hardcode_direct=no |
| 6385 |
|
hardcode_automatic=yes |
| 6386 |
|
hardcode_shlibpath_var=unsupported |
| 6387 |
|
whole_archive_flag_spec='-all_load $convenience' |
| 6388 |
|
link_all_deplibs=yes |
| 6389 |
|
fi |
| 6390 |
|
;; |
| 6391 |
|
|
| 6392 |
|
dgux*) |
| 6393 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6394 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 6395 |
|
hardcode_shlibpath_var=no |
| 6396 |
|
;; |
| 6397 |
|
|
| 6398 |
|
freebsd1*) |
| 6399 |
|
ld_shlibs=no |
| 6400 |
|
;; |
| 6401 |
|
|
| 6402 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 6403 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 6404 |
|
# does not break anything, and helps significantly (at the cost of a little |
| 6405 |
|
# extra space). |
| 6406 |
|
freebsd2.2*) |
| 6407 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 6408 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 6409 |
|
hardcode_direct=yes |
| 6410 |
|
hardcode_shlibpath_var=no |
| 6411 |
|
;; |
| 6412 |
|
|
| 6413 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 6414 |
|
freebsd2*) |
| 6415 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6416 |
|
hardcode_direct=yes |
| 6417 |
|
hardcode_minus_L=yes |
| 6418 |
|
hardcode_shlibpath_var=no |
| 6419 |
|
;; |
| 6420 |
|
|
| 6421 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 6422 |
|
freebsd*) |
| 6423 |
|
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 6424 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 6425 |
|
hardcode_direct=yes |
| 6426 |
|
hardcode_shlibpath_var=no |
| 6427 |
|
;; |
| 6428 |
|
|
| 6429 |
|
hpux9*) |
| 6430 |
|
if test "$GCC" = yes; then |
| 6431 |
|
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 6432 |
|
else |
| 6433 |
|
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 6434 |
|
fi |
| 6435 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6436 |
|
hardcode_libdir_separator=: |
| 6437 |
|
hardcode_direct=yes |
| 6438 |
|
|
| 6439 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 6440 |
|
# but as the default location of the library. |
| 6441 |
|
hardcode_minus_L=yes |
| 6442 |
|
export_dynamic_flag_spec='${wl}-E' |
| 6443 |
|
;; |
| 6444 |
|
|
| 6445 |
|
hpux10* | hpux11*) |
| 6446 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 6447 |
|
case "$host_cpu" in |
| 6448 |
|
hppa*64*|ia64*) |
| 6449 |
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6450 |
|
;; |
| 6451 |
|
*) |
| 6452 |
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 6453 |
|
;; |
| 6454 |
|
esac |
| 6455 |
|
else |
| 6456 |
|
case "$host_cpu" in |
| 6457 |
|
hppa*64*|ia64*) |
| 6458 |
|
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6459 |
|
;; |
| 6460 |
|
*) |
| 6461 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 6462 |
|
;; |
| 6463 |
|
esac |
| 6464 |
|
fi |
| 6465 |
|
if test "$with_gnu_ld" = no; then |
| 6466 |
|
case "$host_cpu" in |
| 6467 |
|
hppa*64*) |
| 6468 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6469 |
|
hardcode_libdir_flag_spec_ld='+b $libdir' |
| 6470 |
|
hardcode_libdir_separator=: |
| 6471 |
|
hardcode_direct=no |
| 6472 |
|
hardcode_shlibpath_var=no |
| 6473 |
|
;; |
| 6474 |
|
ia64*) |
| 6475 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 6476 |
|
hardcode_direct=no |
| 6477 |
|
hardcode_shlibpath_var=no |
| 6478 |
|
|
| 6479 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 6480 |
|
# but as the default location of the library. |
| 6481 |
|
hardcode_minus_L=yes |
| 6482 |
|
;; |
| 6483 |
|
*) |
| 6484 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6485 |
|
hardcode_libdir_separator=: |
| 6486 |
|
hardcode_direct=yes |
| 6487 |
|
export_dynamic_flag_spec='${wl}-E' |
| 6488 |
|
|
| 6489 |
|
# hardcode_minus_L: Not really in the search PATH, |
| 6490 |
|
# but as the default location of the library. |
| 6491 |
|
hardcode_minus_L=yes |
| 6492 |
|
;; |
| 6493 |
|
esac |
| 6494 |
|
fi |
| 6495 |
|
;; |
| 6496 |
|
|
| 6497 |
|
irix5* | irix6* | nonstopux*) |
| 6498 |
|
if test "$GCC" = yes; then |
| 6499 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 6500 |
|
else |
| 6501 |
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 6502 |
|
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 6503 |
|
fi |
| 6504 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6505 |
|
hardcode_libdir_separator=: |
| 6506 |
|
link_all_deplibs=yes |
| 6507 |
|
;; |
| 6508 |
|
|
| 6509 |
|
netbsd*) |
| 6510 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 6511 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 6512 |
|
else |
| 6513 |
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 6514 |
|
fi |
| 6515 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 6516 |
|
hardcode_direct=yes |
| 6517 |
|
hardcode_shlibpath_var=no |
| 6518 |
|
;; |
| 6519 |
|
|
| 6520 |
|
newsos6) |
| 6521 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6522 |
|
hardcode_direct=yes |
| 6523 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6524 |
|
hardcode_libdir_separator=: |
| 6525 |
|
hardcode_shlibpath_var=no |
| 6526 |
|
;; |
| 6527 |
|
|
| 6528 |
|
openbsd*) |
| 6529 |
|
hardcode_direct=yes |
| 6530 |
|
hardcode_shlibpath_var=no |
| 6531 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6532 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6533 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6534 |
|
export_dynamic_flag_spec='${wl}-E' |
| 6535 |
|
else |
| 6536 |
|
case $host_os in |
| 6537 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 6538 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6539 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 6540 |
|
;; |
| 6541 |
|
*) |
| 6542 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 6543 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6544 |
|
;; |
| 6545 |
|
esac |
| 6546 |
|
fi |
| 6547 |
|
;; |
| 6548 |
|
|
| 6549 |
|
os2*) |
| 6550 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 6551 |
|
hardcode_minus_L=yes |
| 6552 |
|
allow_undefined_flag=unsupported |
| 6553 |
|
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 6554 |
|
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 6555 |
|
;; |
| 6556 |
|
|
| 6557 |
|
osf3*) |
| 6558 |
|
if test "$GCC" = yes; then |
| 6559 |
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6560 |
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 6561 |
|
else |
| 6562 |
|
allow_undefined_flag=' -expect_unresolved \*' |
| 6563 |
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 6564 |
|
fi |
| 6565 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6566 |
|
hardcode_libdir_separator=: |
| 6567 |
|
;; |
| 6568 |
|
|
| 6569 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 6570 |
|
if test "$GCC" = yes; then |
| 6571 |
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 6572 |
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 6573 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6574 |
|
else |
| 6575 |
|
allow_undefined_flag=' -expect_unresolved \*' |
| 6576 |
|
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' |
| 6577 |
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 6578 |
|
$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' |
| 6579 |
|
|
| 6580 |
|
# Both c and cxx compiler support -rpath directly |
| 6581 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
| 6582 |
|
fi |
| 6583 |
|
hardcode_libdir_separator=: |
| 6584 |
|
;; |
| 6585 |
|
|
| 6586 |
|
sco3.2v5*) |
| 6587 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6588 |
|
hardcode_shlibpath_var=no |
| 6589 |
|
export_dynamic_flag_spec='${wl}-Bexport' |
| 6590 |
|
runpath_var=LD_RUN_PATH |
| 6591 |
|
hardcode_runpath_var=yes |
| 6592 |
|
;; |
| 6593 |
|
|
| 6594 |
|
solaris*) |
| 6595 |
|
no_undefined_flag=' -z text' |
| 6596 |
|
if test "$GCC" = yes; then |
| 6597 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6598 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6599 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 6600 |
|
else |
| 6601 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6602 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6603 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6604 |
|
fi |
| 6605 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 6606 |
|
hardcode_shlibpath_var=no |
| 6607 |
|
case $host_os in |
| 6608 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 6609 |
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6610 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 6611 |
|
esac |
| 6612 |
|
link_all_deplibs=yes |
| 6613 |
|
;; |
| 6614 |
|
|
| 6615 |
|
sunos4*) |
| 6616 |
|
if test "x$host_vendor" = xsequent; then |
| 6617 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
| 6618 |
|
# files that make .init and .fini sections work. |
| 6619 |
|
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6620 |
|
else |
| 6621 |
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 6622 |
|
fi |
| 6623 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 6624 |
|
hardcode_direct=yes |
| 6625 |
|
hardcode_minus_L=yes |
| 6626 |
|
hardcode_shlibpath_var=no |
| 6627 |
|
;; |
| 6628 |
|
|
| 6629 |
|
sysv4) |
| 6630 |
|
case $host_vendor in |
| 6631 |
|
sni) |
| 6632 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6633 |
|
hardcode_direct=yes # is this really true??? |
| 6634 |
|
;; |
| 6635 |
|
siemens) |
| 6636 |
|
## LD is ld it makes a PLAMLIB |
| 6637 |
|
## CC just makes a GrossModule. |
| 6638 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6639 |
|
reload_cmds='$CC -r -o $output$reload_objs' |
| 6640 |
|
hardcode_direct=no |
| 6641 |
|
;; |
| 6642 |
|
motorola) |
| 6643 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6644 |
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 6645 |
;; |
;; |
| 6646 |
esac |
esac |
| 6647 |
|
runpath_var='LD_RUN_PATH' |
| 6648 |
|
hardcode_shlibpath_var=no |
| 6649 |
|
;; |
| 6650 |
|
|
| 6651 |
|
sysv4.3*) |
| 6652 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6653 |
|
hardcode_shlibpath_var=no |
| 6654 |
|
export_dynamic_flag_spec='-Bexport' |
| 6655 |
|
;; |
| 6656 |
|
|
| 6657 |
|
sysv4*MP*) |
| 6658 |
|
if test -d /usr/nec; then |
| 6659 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6660 |
|
hardcode_shlibpath_var=no |
| 6661 |
|
runpath_var=LD_RUN_PATH |
| 6662 |
|
hardcode_runpath_var=yes |
| 6663 |
|
ld_shlibs=yes |
| 6664 |
|
fi |
| 6665 |
|
;; |
| 6666 |
|
|
| 6667 |
|
sysv4.2uw2*) |
| 6668 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 6669 |
|
hardcode_direct=yes |
| 6670 |
|
hardcode_minus_L=no |
| 6671 |
|
hardcode_shlibpath_var=no |
| 6672 |
|
hardcode_runpath_var=yes |
| 6673 |
|
runpath_var=LD_RUN_PATH |
| 6674 |
|
;; |
| 6675 |
|
|
| 6676 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
| 6677 |
|
no_undefined_flag='${wl}-z ${wl}text' |
| 6678 |
|
if test "$GCC" = yes; then |
| 6679 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6680 |
|
else |
| 6681 |
|
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6682 |
|
fi |
| 6683 |
|
runpath_var='LD_RUN_PATH' |
| 6684 |
|
hardcode_shlibpath_var=no |
| 6685 |
|
;; |
| 6686 |
|
|
| 6687 |
|
sysv5*) |
| 6688 |
|
no_undefined_flag=' -z text' |
| 6689 |
|
# $CC -shared without GNU ld will not create a library from C++ |
| 6690 |
|
# object files and a static libstdc++, better avoid it by now |
| 6691 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6692 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6693 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 6694 |
|
hardcode_libdir_flag_spec= |
| 6695 |
|
hardcode_shlibpath_var=no |
| 6696 |
|
runpath_var='LD_RUN_PATH' |
| 6697 |
|
;; |
| 6698 |
|
|
| 6699 |
|
uts4*) |
| 6700 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6701 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 6702 |
|
hardcode_shlibpath_var=no |
| 6703 |
|
;; |
| 6704 |
|
|
| 6705 |
|
*) |
| 6706 |
|
ld_shlibs=no |
| 6707 |
|
;; |
| 6708 |
|
esac |
| 6709 |
|
fi |
| 6710 |
|
|
| 6711 |
|
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 6712 |
|
echo "${ECHO_T}$ld_shlibs" >&6 |
| 6713 |
|
test "$ld_shlibs" = no && can_build_shared=no |
| 6714 |
|
|
| 6715 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 6716 |
|
if test "$GCC" = yes; then |
| 6717 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 6718 |
|
fi |
| 6719 |
|
|
| 6720 |
|
# |
| 6721 |
|
# Do we need to explicitly link libc? |
| 6722 |
|
# |
| 6723 |
|
case "x$archive_cmds_need_lc" in |
| 6724 |
|
x|xyes) |
| 6725 |
|
# Assume -lc should be added |
| 6726 |
|
archive_cmds_need_lc=yes |
| 6727 |
|
|
| 6728 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 6729 |
|
case $archive_cmds in |
| 6730 |
|
*'~'*) |
| 6731 |
|
# FIXME: we may have to deal with multi-command sequences. |
| 6732 |
|
;; |
| 6733 |
|
'$CC '*) |
| 6734 |
|
# Test whether the compiler implicitly links with -lc since on some |
| 6735 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 6736 |
|
# to ld, don't add -lc before -lgcc. |
| 6737 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 6738 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 6739 |
|
$rm conftest* |
| 6740 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6741 |
|
|
| 6742 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6743 |
|
(eval $ac_compile) 2>&5 |
| 6744 |
|
ac_status=$? |
| 6745 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6746 |
|
(exit $ac_status); } 2>conftest.err; then |
| 6747 |
|
soname=conftest |
| 6748 |
|
lib=conftest |
| 6749 |
|
libobjs=conftest.$ac_objext |
| 6750 |
|
deplibs= |
| 6751 |
|
wl=$lt_prog_compiler_wl |
| 6752 |
|
compiler_flags=-v |
| 6753 |
|
linker_flags=-v |
| 6754 |
|
verstring= |
| 6755 |
|
output_objdir=. |
| 6756 |
|
libname=conftest |
| 6757 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag |
| 6758 |
|
allow_undefined_flag= |
| 6759 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep
| |