0 | 0 |
#! /bin/sh
|
1 | 1 |
# Guess values for system-dependent variables and create Makefiles.
|
2 | |
# Generated by GNU Autoconf 2.59 for eiciel 0.9.
|
|
2 |
# Generated by GNU Autoconf 2.59 for eiciel 0.9.1.
|
3 | 3 |
#
|
4 | 4 |
# Report bugs to <rofi@ya.com>.
|
5 | 5 |
#
|
|
422 | 422 |
# Identity of this package.
|
423 | 423 |
PACKAGE_NAME='eiciel'
|
424 | 424 |
PACKAGE_TARNAME='eiciel'
|
425 | |
PACKAGE_VERSION='0.9'
|
426 | |
PACKAGE_STRING='eiciel 0.9'
|
|
425 |
PACKAGE_VERSION='0.9.1'
|
|
426 |
PACKAGE_STRING='eiciel 0.9.1'
|
427 | 427 |
PACKAGE_BUGREPORT='rofi@ya.com'
|
428 | 428 |
|
429 | 429 |
ac_unique_file="src/eiciel_standalone.cpp"
|
|
464 | 464 |
# include <unistd.h>
|
465 | 465 |
#endif"
|
466 | 466 |
|
467 | |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG GTKMM_CFLAGS GTKMM_LIBS NAUTILUS_EXTENSIONS_DIR ENABLE_USER_XATTR_TRUE ENABLE_USER_XATTR_FALSE llibreria_acl LIBOBJS LTLIBOBJS'
|
|
467 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GTKMM_CFLAGS GTKMM_LIBS NAUTILUS_EXTENSIONS_DIR ENABLE_USER_XATTR_TRUE ENABLE_USER_XATTR_FALSE llibreria_acl LIBOBJS LTLIBOBJS'
|
468 | 468 |
ac_subst_files=''
|
469 | 469 |
|
470 | 470 |
# Initialize some variables set by options.
|
|
945 | 945 |
ac_env_FFLAGS_value=$FFLAGS
|
946 | 946 |
ac_cv_env_FFLAGS_set=${FFLAGS+set}
|
947 | 947 |
ac_cv_env_FFLAGS_value=$FFLAGS
|
948 | |
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
|
949 | |
ac_env_PKG_CONFIG_value=$PKG_CONFIG
|
950 | |
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
|
951 | |
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
|
952 | |
ac_env_GTKMM_CFLAGS_set=${GTKMM_CFLAGS+set}
|
953 | |
ac_env_GTKMM_CFLAGS_value=$GTKMM_CFLAGS
|
954 | |
ac_cv_env_GTKMM_CFLAGS_set=${GTKMM_CFLAGS+set}
|
955 | |
ac_cv_env_GTKMM_CFLAGS_value=$GTKMM_CFLAGS
|
956 | |
ac_env_GTKMM_LIBS_set=${GTKMM_LIBS+set}
|
957 | |
ac_env_GTKMM_LIBS_value=$GTKMM_LIBS
|
958 | |
ac_cv_env_GTKMM_LIBS_set=${GTKMM_LIBS+set}
|
959 | |
ac_cv_env_GTKMM_LIBS_value=$GTKMM_LIBS
|
960 | 948 |
|
961 | 949 |
#
|
962 | 950 |
# Report the --help message.
|
|
965 | 953 |
# Omit some internal or obsolete options to make the list less imposing.
|
966 | 954 |
# This message is too long to be a string in the A/UX 3.1 sh.
|
967 | 955 |
cat <<_ACEOF
|
968 | |
\`configure' configures eiciel 0.9 to adapt to many kinds of systems.
|
|
956 |
\`configure' configures eiciel 0.9.1 to adapt to many kinds of systems.
|
969 | 957 |
|
970 | 958 |
Usage: $0 [OPTION]... [VAR=VALUE]...
|
971 | 959 |
|
|
1032 | 1020 |
|
1033 | 1021 |
if test -n "$ac_init_help"; then
|
1034 | 1022 |
case $ac_init_help in
|
1035 | |
short | recursive ) echo "Configuration of eiciel 0.9:";;
|
|
1023 |
short | recursive ) echo "Configuration of eiciel 0.9.1:";;
|
1036 | 1024 |
esac
|
1037 | 1025 |
cat <<\_ACEOF
|
1038 | 1026 |
|
|
1085 | 1073 |
CXXCPP C++ preprocessor
|
1086 | 1074 |
F77 Fortran 77 compiler command
|
1087 | 1075 |
FFLAGS Fortran 77 compiler flags
|
1088 | |
PKG_CONFIG path to pkg-config utility
|
1089 | |
GTKMM_CFLAGS
|
1090 | |
C compiler flags for GTKMM, overriding pkg-config
|
1091 | |
GTKMM_LIBS linker flags for GTKMM, overriding pkg-config
|
1092 | 1076 |
|
1093 | 1077 |
Use these variables to override the choices made by `configure' or to help
|
1094 | 1078 |
it to find libraries and programs with nonstandard names/locations.
|
|
1189 | 1173 |
test -n "$ac_init_help" && exit 0
|
1190 | 1174 |
if $ac_init_version; then
|
1191 | 1175 |
cat <<\_ACEOF
|
1192 | |
eiciel configure 0.9
|
|
1176 |
eiciel configure 0.9.1
|
1193 | 1177 |
generated by GNU Autoconf 2.59
|
1194 | 1178 |
|
1195 | 1179 |
Copyright (C) 2003 Free Software Foundation, Inc.
|
|
1203 | 1187 |
This file contains any messages produced by compilers while
|
1204 | 1188 |
running configure, to aid debugging if configure makes a mistake.
|
1205 | 1189 |
|
1206 | |
It was created by eiciel $as_me 0.9, which was
|
|
1190 |
It was created by eiciel $as_me 0.9.1, which was
|
1207 | 1191 |
generated by GNU Autoconf 2.59. Invocation command line was
|
1208 | 1192 |
|
1209 | 1193 |
$ $0 $@
|
|
1900 | 1884 |
|
1901 | 1885 |
# Define the identity of the package.
|
1902 | 1886 |
PACKAGE='eiciel'
|
1903 | |
VERSION='0.9'
|
|
1887 |
VERSION='0.9.1'
|
1904 | 1888 |
|
1905 | 1889 |
|
1906 | 1890 |
cat >>confdefs.h <<_ACEOF
|
|
2028 | 2012 |
|
2029 | 2013 |
|
2030 | 2014 |
|
2031 | |
|
2032 | 2015 |
MKINSTALLDIRS=
|
2033 | 2016 |
if test -n "$ac_aux_dir"; then
|
2034 | 2017 |
case "$ac_aux_dir" in
|
|
2105 | 2088 |
test -z "$ac_dir" && ac_dir=.
|
2106 | 2089 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2107 | 2090 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
|
2108 | |
echo "$as_me: trying $ac_dir/$ac_word..." >&5
|
2109 | |
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
|
|
2091 |
if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
|
2110 | 2092 |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
|
2111 | 2093 |
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
|
2112 | 2094 |
break 2
|
|
2216 | 2198 |
test -z "$ac_dir" && ac_dir=.
|
2217 | 2199 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2218 | 2200 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
|
2219 | |
echo "$as_me: trying $ac_dir/$ac_word..." >&5
|
2220 | |
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
|
|
2201 |
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
|
2221 | 2202 |
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
|
2222 | 2203 |
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
|
2223 | 2204 |
break 2
|
|
2288 | 2269 |
test -z "$ac_dir" && ac_dir=.
|
2289 | 2270 |
for ac_exec_ext in '' $ac_executable_extensions; do
|
2290 | 2271 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
|
2291 | |
echo "$as_me: trying $ac_dir/$ac_word..." >&5
|
2292 | |
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
|
|
2272 |
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
|
2293 | 2273 |
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
|
2294 | 2274 |
break 2
|
2295 | 2275 |
fi
|
|
3523 | 3503 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
3524 | 3504 |
# but apparently some GNU ld's only accept -v.
|
3525 | 3505 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
3526 | |
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
|
3527 | |
*GNU* | *'with BFD'*)
|
3528 | |
test "$with_gnu_ld" != no && break ;;
|
3529 | |
*)
|
3530 | |
test "$with_gnu_ld" != yes && break ;;
|
3531 | |
esac
|
|
3506 |
if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
|
|
3507 |
test "$with_gnu_ld" != no && break
|
|
3508 |
else
|
|
3509 |
test "$with_gnu_ld" != yes && break
|
|
3510 |
fi
|
3532 | 3511 |
fi
|
3533 | 3512 |
done
|
3534 | 3513 |
IFS="$ac_save_ifs"
|
|
3554 | 3533 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3555 | 3534 |
else
|
3556 | 3535 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
3557 | |
case `$LD -v 2>&1 </dev/null` in
|
3558 | |
*GNU* | *'with BFD'*)
|
3559 | |
acl_cv_prog_gnu_ld=yes ;;
|
3560 | |
*)
|
3561 | |
acl_cv_prog_gnu_ld=no ;;
|
3562 | |
esac
|
|
3536 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
|
|
3537 |
acl_cv_prog_gnu_ld=yes
|
|
3538 |
else
|
|
3539 |
acl_cv_prog_gnu_ld=no
|
|
3540 |
fi
|
3563 | 3541 |
fi
|
3564 | 3542 |
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
|
3565 | 3543 |
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
|
3566 | 3544 |
with_gnu_ld=$acl_cv_prog_gnu_ld
|
3567 | |
|
3568 | 3545 |
|
3569 | 3546 |
|
3570 | 3547 |
|
|
3813 | 3790 |
if test "X$additional_includedir" = "X/usr/local/include"; then
|
3814 | 3791 |
if test -n "$GCC"; then
|
3815 | 3792 |
case $host_os in
|
3816 | |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
|
3793 |
linux*) haveit=yes;;
|
3817 | 3794 |
esac
|
3818 | 3795 |
fi
|
3819 | 3796 |
fi
|
|
3857 | 3834 |
if test "X$additional_libdir" = "X/usr/local/lib"; then
|
3858 | 3835 |
if test -n "$GCC"; then
|
3859 | 3836 |
case $host_os in
|
3860 | |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
|
3837 |
linux*) haveit=yes;;
|
3861 | 3838 |
esac
|
3862 | 3839 |
fi
|
3863 | 3840 |
fi
|
|
3998 | 3975 |
|
3999 | 3976 |
|
4000 | 3977 |
|
4001 | |
echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
|
4002 | |
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
|
4003 | |
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
|
4004 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4005 | |
else
|
4006 | |
gt_save_CPPFLAGS="$CPPFLAGS"
|
4007 | |
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
|
4008 | |
gt_save_LIBS="$LIBS"
|
4009 | |
LIBS="$LIBS -framework CoreFoundation"
|
4010 | |
cat >conftest.$ac_ext <<_ACEOF
|
4011 | |
/* confdefs.h. */
|
4012 | |
_ACEOF
|
4013 | |
cat confdefs.h >>conftest.$ac_ext
|
4014 | |
cat >>conftest.$ac_ext <<_ACEOF
|
4015 | |
/* end confdefs.h. */
|
4016 | |
#include <CFPreferences.h>
|
4017 | |
int
|
4018 | |
main ()
|
4019 | |
{
|
4020 | |
CFPreferencesCopyAppValue(NULL, NULL)
|
4021 | |
;
|
4022 | |
return 0;
|
4023 | |
}
|
4024 | |
_ACEOF
|
4025 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
4026 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4027 | |
(eval $ac_link) 2>conftest.er1
|
4028 | |
ac_status=$?
|
4029 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
4030 | |
rm -f conftest.er1
|
4031 | |
cat conftest.err >&5
|
4032 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4033 | |
(exit $ac_status); } &&
|
4034 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
4035 | |
|| test ! -s conftest.err'
|
4036 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4037 | |
(eval $ac_try) 2>&5
|
4038 | |
ac_status=$?
|
4039 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4040 | |
(exit $ac_status); }; } &&
|
4041 | |
{ ac_try='test -s conftest$ac_exeext'
|
4042 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4043 | |
(eval $ac_try) 2>&5
|
4044 | |
ac_status=$?
|
4045 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4046 | |
(exit $ac_status); }; }; then
|
4047 | |
gt_cv_func_CFPreferencesCopyAppValue=yes
|
4048 | |
else
|
4049 | |
echo "$as_me: failed program was:" >&5
|
4050 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
4051 | |
|
4052 | |
gt_cv_func_CFPreferencesCopyAppValue=no
|
4053 | |
fi
|
4054 | |
rm -f conftest.err conftest.$ac_objext \
|
4055 | |
conftest$ac_exeext conftest.$ac_ext
|
4056 | |
CPPFLAGS="$gt_save_CPPFLAGS"
|
4057 | |
LIBS="$gt_save_LIBS"
|
4058 | |
fi
|
4059 | |
echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
|
4060 | |
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
|
4061 | |
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
|
4062 | |
|
4063 | |
cat >>confdefs.h <<\_ACEOF
|
4064 | |
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
|
4065 | |
_ACEOF
|
4066 | |
|
4067 | |
fi
|
4068 | |
echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
|
4069 | |
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
|
4070 | |
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
|
4071 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4072 | |
else
|
4073 | |
gt_save_CPPFLAGS="$CPPFLAGS"
|
4074 | |
CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
|
4075 | |
gt_save_LIBS="$LIBS"
|
4076 | |
LIBS="$LIBS -framework CoreFoundation"
|
4077 | |
cat >conftest.$ac_ext <<_ACEOF
|
4078 | |
/* confdefs.h. */
|
4079 | |
_ACEOF
|
4080 | |
cat confdefs.h >>conftest.$ac_ext
|
4081 | |
cat >>conftest.$ac_ext <<_ACEOF
|
4082 | |
/* end confdefs.h. */
|
4083 | |
#include <CFLocale.h>
|
4084 | |
int
|
4085 | |
main ()
|
4086 | |
{
|
4087 | |
CFLocaleCopyCurrent();
|
4088 | |
;
|
4089 | |
return 0;
|
4090 | |
}
|
4091 | |
_ACEOF
|
4092 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
4093 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4094 | |
(eval $ac_link) 2>conftest.er1
|
4095 | |
ac_status=$?
|
4096 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
4097 | |
rm -f conftest.er1
|
4098 | |
cat conftest.err >&5
|
4099 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4100 | |
(exit $ac_status); } &&
|
4101 | |
{ ac_try='test -z "$ac_c_werror_flag"
|
4102 | |
|| test ! -s conftest.err'
|
4103 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4104 | |
(eval $ac_try) 2>&5
|
4105 | |
ac_status=$?
|
4106 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4107 | |
(exit $ac_status); }; } &&
|
4108 | |
{ ac_try='test -s conftest$ac_exeext'
|
4109 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4110 | |
(eval $ac_try) 2>&5
|
4111 | |
ac_status=$?
|
4112 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4113 | |
(exit $ac_status); }; }; then
|
4114 | |
gt_cv_func_CFLocaleCopyCurrent=yes
|
4115 | |
else
|
4116 | |
echo "$as_me: failed program was:" >&5
|
4117 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
4118 | |
|
4119 | |
gt_cv_func_CFLocaleCopyCurrent=no
|
4120 | |
fi
|
4121 | |
rm -f conftest.err conftest.$ac_objext \
|
4122 | |
conftest$ac_exeext conftest.$ac_ext
|
4123 | |
CPPFLAGS="$gt_save_CPPFLAGS"
|
4124 | |
LIBS="$gt_save_LIBS"
|
4125 | |
fi
|
4126 | |
echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
|
4127 | |
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
|
4128 | |
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
|
4129 | |
|
4130 | |
cat >>confdefs.h <<\_ACEOF
|
4131 | |
#define HAVE_CFLOCALECOPYCURRENT 1
|
4132 | |
_ACEOF
|
4133 | |
|
4134 | |
fi
|
4135 | |
INTL_MACOSX_LIBS=
|
4136 | |
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
|
4137 | |
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
|
4138 | |
fi
|
4139 | |
|
4140 | |
|
4141 | |
|
4142 | |
|
4143 | 3978 |
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
|
4144 | 3979 |
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
|
4145 | 3980 |
# Check whether --enable-nls or --disable-nls was given.
|
|
4185 | 4020 |
main ()
|
4186 | 4021 |
{
|
4187 | 4022 |
bindtextdomain ("", "");
|
4188 | |
return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
|
|
4023 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
|
4189 | 4024 |
;
|
4190 | 4025 |
return 0;
|
4191 | 4026 |
}
|
|
4602 | 4437 |
if test "X$additional_includedir" = "X/usr/local/include"; then
|
4603 | 4438 |
if test -n "$GCC"; then
|
4604 | 4439 |
case $host_os in
|
4605 | |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
|
4440 |
linux*) haveit=yes;;
|
4606 | 4441 |
esac
|
4607 | 4442 |
fi
|
4608 | 4443 |
fi
|
|
4646 | 4481 |
if test "X$additional_libdir" = "X/usr/local/lib"; then
|
4647 | 4482 |
if test -n "$GCC"; then
|
4648 | 4483 |
case $host_os in
|
4649 | |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
|
4484 |
linux*) haveit=yes;;
|
4650 | 4485 |
esac
|
4651 | 4486 |
fi
|
4652 | 4487 |
fi
|
|
4790 | 4625 |
#ifdef __cplusplus
|
4791 | 4626 |
"C"
|
4792 | 4627 |
#endif
|
4793 | |
const char *_nl_expand_alias (const char *);
|
|
4628 |
const char *_nl_expand_alias ();
|
4794 | 4629 |
int
|
4795 | 4630 |
main ()
|
4796 | 4631 |
{
|
4797 | 4632 |
bindtextdomain ("", "");
|
4798 | |
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
|
|
4633 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
|
4799 | 4634 |
;
|
4800 | 4635 |
return 0;
|
4801 | 4636 |
}
|
|
4845 | 4680 |
#ifdef __cplusplus
|
4846 | 4681 |
"C"
|
4847 | 4682 |
#endif
|
4848 | |
const char *_nl_expand_alias (const char *);
|
|
4683 |
const char *_nl_expand_alias ();
|
4849 | 4684 |
int
|
4850 | 4685 |
main ()
|
4851 | 4686 |
{
|
4852 | 4687 |
bindtextdomain ("", "");
|
4853 | |
return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
|
|
4688 |
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
|
4854 | 4689 |
;
|
4855 | 4690 |
return 0;
|
4856 | 4691 |
}
|
|
4908 | 4743 |
fi
|
4909 | 4744 |
|
4910 | 4745 |
|
4911 | |
|
4912 | |
if test -n "$INTL_MACOSX_LIBS"; then
|
4913 | |
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
4914 | |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
|
4915 | |
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
|
4916 | |
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
|
4917 | |
fi
|
4918 | |
fi
|
4919 | 4746 |
|
4920 | 4747 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
4921 | 4748 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
6062 | 5889 |
case $host_os in
|
6063 | 5890 |
darwin*)
|
6064 | 5891 |
if test "$GCC" = yes; then
|
6065 | |
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
|
|
5892 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
|
6066 | 5893 |
else
|
6067 | 5894 |
reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
6068 | 5895 |
fi
|
|
6078 | 5905 |
# Let the user override the test.
|
6079 | 5906 |
lt_cv_path_NM="$NM"
|
6080 | 5907 |
else
|
6081 | |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
6082 | |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
|
6083 | |
IFS="$lt_save_ifs"
|
6084 | |
test -z "$ac_dir" && ac_dir=.
|
6085 | |
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
|
6086 | |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
6087 | |
# Check to see if the nm accepts a BSD-compat flag.
|
6088 | |
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
6089 | |
# nm: unknown option "B" ignored
|
6090 | |
# Tru64's nm complains that /dev/null is an invalid object file
|
6091 | |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
6092 | |
*/dev/null* | *'Invalid file or object type'*)
|
6093 | |
lt_cv_path_NM="$tmp_nm -B"
|
6094 | |
break
|
6095 | |
;;
|
6096 | |
*)
|
6097 | |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
6098 | |
*/dev/null*)
|
6099 | |
lt_cv_path_NM="$tmp_nm -p"
|
|
5908 |
lt_nm_to_check="${ac_tool_prefix}nm"
|
|
5909 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
|
5910 |
lt_nm_to_check="$lt_nm_to_check nm"
|
|
5911 |
fi
|
|
5912 |
for lt_tmp_nm in $lt_nm_to_check; do
|
|
5913 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
5914 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
|
5915 |
IFS="$lt_save_ifs"
|
|
5916 |
test -z "$ac_dir" && ac_dir=.
|
|
5917 |
tmp_nm="$ac_dir/$lt_tmp_nm"
|
|
5918 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
|
|
5919 |
# Check to see if the nm accepts a BSD-compat flag.
|
|
5920 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
|
|
5921 |
# nm: unknown option "B" ignored
|
|
5922 |
# Tru64's nm complains that /dev/null is an invalid object file
|
|
5923 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
|
|
5924 |
*/dev/null* | *'Invalid file or object type'*)
|
|
5925 |
lt_cv_path_NM="$tmp_nm -B"
|
6100 | 5926 |
break
|
6101 | 5927 |
;;
|
6102 | 5928 |
*)
|
6103 | |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
6104 | |
continue # so that we can try to find one that supports BSD flags
|
|
5929 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
|
5930 |
*/dev/null*)
|
|
5931 |
lt_cv_path_NM="$tmp_nm -p"
|
|
5932 |
break
|
|
5933 |
;;
|
|
5934 |
*)
|
|
5935 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
|
5936 |
continue # so that we can try to find one that supports BSD flags
|
|
5937 |
;;
|
|
5938 |
esac
|
6105 | 5939 |
;;
|
6106 | 5940 |
esac
|
6107 | |
esac
|
6108 | |
fi
|
|
5941 |
fi
|
|
5942 |
done
|
|
5943 |
IFS="$lt_save_ifs"
|
6109 | 5944 |
done
|
6110 | |
IFS="$lt_save_ifs"
|
6111 | 5945 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
|
6112 | 5946 |
fi
|
6113 | 5947 |
fi
|
|
6215 | 6049 |
esac
|
6216 | 6050 |
;;
|
6217 | 6051 |
|
|
6052 |
interix3*)
|
|
6053 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
|
6054 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
|
6055 |
;;
|
|
6056 |
|
6218 | 6057 |
irix5* | irix6* | nonstopux*)
|
6219 | 6058 |
case $LD in
|
6220 | 6059 |
*-32|*"-32 ") libmagic=32-bit;;
|
|
6260 | 6099 |
lt_cv_deplibs_check_method=pass_all
|
6261 | 6100 |
;;
|
6262 | 6101 |
|
6263 | |
sco3.2v5*)
|
6264 | |
lt_cv_deplibs_check_method=pass_all
|
6265 | |
;;
|
6266 | |
|
6267 | 6102 |
solaris*)
|
6268 | 6103 |
lt_cv_deplibs_check_method=pass_all
|
6269 | 6104 |
;;
|
6270 | 6105 |
|
6271 | |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
6106 |
sysv4 | sysv4.3*)
|
6272 | 6107 |
case $host_vendor in
|
6273 | 6108 |
motorola)
|
6274 | 6109 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
|
|
6289 | 6124 |
siemens)
|
6290 | 6125 |
lt_cv_deplibs_check_method=pass_all
|
6291 | 6126 |
;;
|
|
6127 |
pc)
|
|
6128 |
lt_cv_deplibs_check_method=pass_all
|
|
6129 |
;;
|
6292 | 6130 |
esac
|
6293 | 6131 |
;;
|
6294 | 6132 |
|
6295 | |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
|
|
6133 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
6296 | 6134 |
lt_cv_deplibs_check_method=pass_all
|
6297 | 6135 |
;;
|
6298 | 6136 |
esac
|
|
6309 | 6147 |
|
6310 | 6148 |
# If no C compiler was specified, use CC.
|
6311 | 6149 |
LTCC=${LTCC-"$CC"}
|
|
6150 |
|
|
6151 |
# If no C compiler flags were specified, use CFLAGS.
|
|
6152 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
6312 | 6153 |
|
6313 | 6154 |
# Allow CC to be a program name with arguments.
|
6314 | 6155 |
compiler=$CC
|
|
6344 | 6185 |
;;
|
6345 | 6186 |
*-*-irix6*)
|
6346 | 6187 |
# Find out which ABI we are using.
|
6347 | |
echo '#line 6348 "configure"' > conftest.$ac_ext
|
|
6188 |
echo '#line 6189 "configure"' > conftest.$ac_ext
|
6348 | 6189 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6349 | 6190 |
(eval $ac_compile) 2>&5
|
6350 | 6191 |
ac_status=$?
|
|
6419 | 6260 |
LD="${LD-ld} -m elf64_sparc"
|
6420 | 6261 |
;;
|
6421 | 6262 |
esac
|
6422 | |
;;
|
6423 | |
esac
|
6424 | |
fi
|
6425 | |
rm -rf conftest*
|
6426 | |
;;
|
6427 | |
|
6428 | |
*-*-linux*)
|
6429 | |
# Test if the compiler is 64bit
|
6430 | |
echo 'int i;' > conftest.$ac_ext
|
6431 | |
lt_cv_cc_64bit_output=no
|
6432 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6433 | |
(eval $ac_compile) 2>&5
|
6434 | |
ac_status=$?
|
6435 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6436 | |
(exit $ac_status); }; then
|
6437 | |
case `/usr/bin/file conftest.$ac_objext` in
|
6438 | |
*"ELF 64"*)
|
6439 | |
lt_cv_cc_64bit_output=yes
|
6440 | 6263 |
;;
|
6441 | 6264 |
esac
|
6442 | 6265 |
fi
|
|
6518 | 6341 |
CFLAGS="$SAVE_CFLAGS"
|
6519 | 6342 |
fi
|
6520 | 6343 |
;;
|
|
6344 |
sparc*-*solaris*)
|
|
6345 |
# Find out which ABI we are using.
|
|
6346 |
echo 'int i;' > conftest.$ac_ext
|
|
6347 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
|
6348 |
(eval $ac_compile) 2>&5
|
|
6349 |
ac_status=$?
|
|
6350 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
6351 |
(exit $ac_status); }; then
|
|
6352 |
case `/usr/bin/file conftest.o` in
|
|
6353 |
*64-bit*)
|
|
6354 |
case $lt_cv_prog_gnu_ld in
|
|
6355 |
yes*) LD="${LD-ld} -m elf64_sparc" ;;
|
|
6356 |
*) LD="${LD-ld} -64" ;;
|
|
6357 |
esac
|
|
6358 |
;;
|
|
6359 |
esac
|
|
6360 |
fi
|
|
6361 |
rm -rf conftest*
|
|
6362 |
;;
|
|
6363 |
|
6521 | 6364 |
|
6522 | 6365 |
esac
|
6523 | 6366 |
|
|
7243 | 7086 |
|
7244 | 7087 |
|
7245 | 7088 |
# Provide some information about the compiler.
|
7246 | |
echo "$as_me:7247:" \
|
|
7089 |
echo "$as_me:7090:" \
|
7247 | 7090 |
"checking for Fortran 77 compiler version" >&5
|
7248 | 7091 |
ac_compiler=`set X $ac_compile; echo $2`
|
7249 | 7092 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
|
7446 | 7289 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
7447 | 7290 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
7448 | 7291 |
;;
|
|
7292 |
|
|
7293 |
interix*)
|
|
7294 |
# We know the value 262144 and hardcode it with a safety zone (like BSD)
|
|
7295 |
lt_cv_sys_max_cmd_len=196608
|
|
7296 |
;;
|
|
7297 |
|
7449 | 7298 |
osf*)
|
7450 | 7299 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
7451 | 7300 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
|
7457 | 7306 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
7458 | 7307 |
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
7459 | 7308 |
esac
|
|
7309 |
fi
|
|
7310 |
;;
|
|
7311 |
sco3.2v5*)
|
|
7312 |
lt_cv_sys_max_cmd_len=102400
|
|
7313 |
;;
|
|
7314 |
sysv5* | sco5v6* | sysv4.2uw2*)
|
|
7315 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
|
7316 |
if test -n "$kargmax"; then
|
|
7317 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
|
7318 |
else
|
|
7319 |
lt_cv_sys_max_cmd_len=32768
|
7460 | 7320 |
fi
|
7461 | 7321 |
;;
|
7462 | 7322 |
*)
|
|
7544 | 7404 |
osf*)
|
7545 | 7405 |
symcode='[BCDEGQRST]'
|
7546 | 7406 |
;;
|
7547 | |
solaris* | sysv5*)
|
|
7407 |
solaris*)
|
7548 | 7408 |
symcode='[BDRT]'
|
|
7409 |
;;
|
|
7410 |
sco3.2v5*)
|
|
7411 |
symcode='[DT]'
|
|
7412 |
;;
|
|
7413 |
sysv4.2uw2*)
|
|
7414 |
symcode='[DT]'
|
|
7415 |
;;
|
|
7416 |
sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
|
7417 |
symcode='[ABDT]'
|
7549 | 7418 |
;;
|
7550 | 7419 |
sysv4)
|
7551 | 7420 |
symcode='[DFNSTU]'
|
|
8012 | 7881 |
test -z "$AS" && AS=as
|
8013 | 7882 |
test -z "$CC" && CC=cc
|
8014 | 7883 |
test -z "$LTCC" && LTCC=$CC
|
|
7884 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
8015 | 7885 |
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
8016 | 7886 |
test -z "$LD" && LD=ld
|
8017 | 7887 |
test -z "$LN_S" && LN_S="ln -s"
|
|
8031 | 7901 |
if test -n "$RANLIB"; then
|
8032 | 7902 |
case $host_os in
|
8033 | 7903 |
openbsd*)
|
8034 | |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
|
|
7904 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
|
8035 | 7905 |
;;
|
8036 | 7906 |
*)
|
8037 | |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
|
|
7907 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
|
8038 | 7908 |
;;
|
8039 | 7909 |
esac
|
8040 | 7910 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
|
|
8229 | 8099 |
" >&2;}
|
8230 | 8100 |
{ (exit 1); exit 1; }; }
|
8231 | 8101 |
fi
|
8232 | |
gentoo_lt_version="1.5.20"
|
8233 | |
gentoo_ltmain_version=`grep '^[ ]*VERSION=' $ltmain | sed -e 's|^[ ]*VERSION=||'`
|
|
8102 |
gentoo_lt_version="1.5.22"
|
|
8103 |
gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
|
8234 | 8104 |
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
|
8235 | 8105 |
echo "$as_me:$LINENO: result: no" >&5
|
8236 | 8106 |
echo "${ECHO_T}no" >&6
|
|
8294 | 8164 |
# If no C compiler was specified, use CC.
|
8295 | 8165 |
LTCC=${LTCC-"$CC"}
|
8296 | 8166 |
|
|
8167 |
# If no C compiler flags were specified, use CFLAGS.
|
|
8168 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
8169 |
|
8297 | 8170 |
# Allow CC to be a program name with arguments.
|
8298 | 8171 |
compiler=$CC
|
8299 | 8172 |
|
|
8301 | 8174 |
# save warnings/boilerplate of simple test code
|
8302 | 8175 |
ac_outfile=conftest.$ac_objext
|
8303 | 8176 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
8304 | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
8177 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
8305 | 8178 |
_lt_compiler_boilerplate=`cat conftest.err`
|
8306 | 8179 |
$rm conftest*
|
8307 | 8180 |
|
8308 | 8181 |
ac_outfile=conftest.$ac_objext
|
8309 | 8182 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
8310 | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
8183 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
8311 | 8184 |
_lt_linker_boilerplate=`cat conftest.err`
|
8312 | 8185 |
$rm conftest*
|
8313 | |
|
8314 | |
|
8315 | |
#
|
8316 | |
# Check for any special shared library compilation flags.
|
8317 | |
#
|
8318 | |
lt_prog_cc_shlib=
|
8319 | |
if test "$GCC" = no; then
|
8320 | |
case $host_os in
|
8321 | |
sco3.2v5*)
|
8322 | |
lt_prog_cc_shlib='-belf'
|
8323 | |
;;
|
8324 | |
esac
|
8325 | |
fi
|
8326 | |
if test -n "$lt_prog_cc_shlib"; then
|
8327 | |
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
|
8328 | |
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
|
8329 | |
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
|
8330 | |
else
|
8331 | |
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
|
8332 | |
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
|
8333 | |
lt_cv_prog_cc_can_build_shared=no
|
8334 | |
fi
|
8335 | |
fi
|
8336 | |
|
8337 | |
|
8338 | |
#
|
8339 | |
# Check to make sure the static flag actually works.
|
8340 | |
#
|
8341 | |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
|
8342 | |
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
|
8343 | |
if test "${lt_prog_compiler_static_works+set}" = set; then
|
8344 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
8345 | |
else
|
8346 | |
lt_prog_compiler_static_works=no
|
8347 | |
save_LDFLAGS="$LDFLAGS"
|
8348 | |
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
|
8349 | |
printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
8350 | |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
8351 | |
# The linker can only warn and ignore the option if not recognized
|
8352 | |
# So say no if there are warnings
|
8353 | |
if test -s conftest.err; then
|
8354 | |
# Append any errors to the config.log.
|
8355 | |
cat conftest.err 1>&5
|
8356 | |
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
|
8357 | |
$SED '/^$/d' conftest.err >conftest.er2
|
8358 | |
if diff conftest.exp conftest.er2 >/dev/null; then
|
8359 | |
lt_prog_compiler_static_works=yes
|
8360 | |
fi
|
8361 | |
else
|
8362 | |
lt_prog_compiler_static_works=yes
|
8363 | |
fi
|
8364 | |
fi
|
8365 | |
$rm conftest*
|
8366 | |
LDFLAGS="$save_LDFLAGS"
|
8367 | |
|
8368 | |
fi
|
8369 | |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
|
8370 | |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
|
8371 | |
|
8372 | |
if test x"$lt_prog_compiler_static_works" = xyes; then
|
8373 | |
:
|
8374 | |
else
|
8375 | |
lt_prog_compiler_static=
|
8376 | |
fi
|
8377 | |
|
8378 | 8186 |
|
8379 | 8187 |
|
8380 | 8188 |
|
|
8402 | 8210 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
8403 | 8211 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
8404 | 8212 |
-e 's:$: $lt_compiler_flag:'`
|
8405 | |
(eval echo "\"\$as_me:8406: $lt_compile\"" >&5)
|
|
8213 |
(eval echo "\"\$as_me:8214: $lt_compile\"" >&5)
|
8406 | 8214 |
(eval "$lt_compile" 2>conftest.err)
|
8407 | 8215 |
ac_status=$?
|
8408 | 8216 |
cat conftest.err >&5
|
8409 | |
echo "$as_me:8410: \$? = $ac_status" >&5
|
|
8217 |
echo "$as_me:8218: \$? = $ac_status" >&5
|
8410 | 8218 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
8411 | 8219 |
# The compiler can only warn and ignore the option if not recognized
|
8412 | 8220 |
# So say no if there are warnings other than the usual output.
|
8413 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
8414 | |
$SED '/^$/d' conftest.err >conftest.er2
|
8415 | |
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
|
8221 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
8222 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
8223 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
8416 | 8224 |
lt_cv_prog_compiler_rtti_exceptions=yes
|
8417 | 8225 |
fi
|
8418 | 8226 |
fi
|
|
8471 | 8279 |
# PIC is the default on this platform
|
8472 | 8280 |
# Common symbols not allowed in MH_DYLIB files
|
8473 | 8281 |
lt_prog_compiler_pic='-fno-common'
|
|
8282 |
;;
|
|
8283 |
|
|
8284 |
interix3*)
|
|
8285 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
8286 |
# Instead, we relocate shared libraries at runtime.
|
8474 | 8287 |
;;
|
8475 | 8288 |
|
8476 | 8289 |
msdosdjgpp*)
|
|
8587 | 8400 |
lt_prog_compiler_static='-non_shared'
|
8588 | 8401 |
;;
|
8589 | 8402 |
|
8590 | |
sco3.2v5*)
|
8591 | |
lt_prog_compiler_pic='-Kpic'
|
8592 | |
lt_prog_compiler_static='-dn'
|
8593 | |
;;
|
8594 | |
|
8595 | 8403 |
solaris*)
|
8596 | 8404 |
lt_prog_compiler_pic='-KPIC'
|
8597 | 8405 |
lt_prog_compiler_static='-Bstatic'
|
|
8609 | 8417 |
lt_prog_compiler_static='-Bstatic'
|
8610 | 8418 |
;;
|
8611 | 8419 |
|
8612 | |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
8420 |
sysv4 | sysv4.2uw2* | sysv4.3*)
|
8613 | 8421 |
lt_prog_compiler_wl='-Wl,'
|
8614 | 8422 |
lt_prog_compiler_pic='-KPIC'
|
8615 | 8423 |
lt_prog_compiler_static='-Bstatic'
|
|
8620 | 8428 |
lt_prog_compiler_pic='-Kconform_pic'
|
8621 | 8429 |
lt_prog_compiler_static='-Bstatic'
|
8622 | 8430 |
fi
|
|
8431 |
;;
|
|
8432 |
|
|
8433 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
8434 |
lt_prog_compiler_wl='-Wl,'
|
|
8435 |
lt_prog_compiler_pic='-KPIC'
|
|
8436 |
lt_prog_compiler_static='-Bstatic'
|
8623 | 8437 |
;;
|
8624 | 8438 |
|
8625 | 8439 |
unicos*)
|
|
8664 | 8478 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
8665 | 8479 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
8666 | 8480 |
-e 's:$: $lt_compiler_flag:'`
|
8667 | |
(eval echo "\"\$as_me:8668: $lt_compile\"" >&5)
|
|
8481 |
(eval echo "\"\$as_me:8482: $lt_compile\"" >&5)
|
8668 | 8482 |
(eval "$lt_compile" 2>conftest.err)
|
8669 | 8483 |
ac_status=$?
|
8670 | 8484 |
cat conftest.err >&5
|
8671 | |
echo "$as_me:8672: \$? = $ac_status" >&5
|
|
8485 |
echo "$as_me:8486: \$? = $ac_status" >&5
|
8672 | 8486 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
8673 | 8487 |
# The compiler can only warn and ignore the option if not recognized
|
8674 | 8488 |
# So say no if there are warnings other than the usual output.
|
8675 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
8676 | |
$SED '/^$/d' conftest.err >conftest.er2
|
8677 | |
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
|
8489 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
8490 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
8491 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
8678 | 8492 |
lt_prog_compiler_pic_works=yes
|
8679 | 8493 |
fi
|
8680 | 8494 |
fi
|
|
8705 | 8519 |
;;
|
8706 | 8520 |
esac
|
8707 | 8521 |
|
|
8522 |
#
|
|
8523 |
# Check to make sure the static flag actually works.
|
|
8524 |
#
|
|
8525 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
|
8526 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
8527 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
|
8528 |
if test "${lt_prog_compiler_static_works+set}" = set; then
|
|
8529 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
8530 |
else
|
|
8531 |
lt_prog_compiler_static_works=no
|
|
8532 |
save_LDFLAGS="$LDFLAGS"
|
|
8533 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
8534 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
8535 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
8536 |
# The linker can only warn and ignore the option if not recognized
|
|
8537 |
# So say no if there are warnings
|
|
8538 |
if test -s conftest.err; then
|
|
8539 |
# Append any errors to the config.log.
|
|
8540 |
cat conftest.err 1>&5
|
|
8541 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
8542 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
8543 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
8544 |
lt_prog_compiler_static_works=yes
|
|
8545 |
fi
|
|
8546 |
else
|
|
8547 |
lt_prog_compiler_static_works=yes
|
|
8548 |
fi
|
|
8549 |
fi
|
|
8550 |
$rm conftest*
|
|
8551 |
LDFLAGS="$save_LDFLAGS"
|
|
8552 |
|
|
8553 |
fi
|
|
8554 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
|
|
8555 |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
|
|
8556 |
|
|
8557 |
if test x"$lt_prog_compiler_static_works" = xyes; then
|
|
8558 |
:
|
|
8559 |
else
|
|
8560 |
lt_prog_compiler_static=
|
|
8561 |
fi
|
|
8562 |
|
|
8563 |
|
8708 | 8564 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
8709 | 8565 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
8710 | 8566 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
|
|
8726 | 8582 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
8727 | 8583 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
8728 | 8584 |
-e 's:$: $lt_compiler_flag:'`
|
8729 | |
(eval echo "\"\$as_me:8730: $lt_compile\"" >&5)
|
|
8585 |
(eval echo "\"\$as_me:8586: $lt_compile\"" >&5)
|
8730 | 8586 |
(eval "$lt_compile" 2>out/conftest.err)
|
8731 | 8587 |
ac_status=$?
|
8732 | 8588 |
cat out/conftest.err >&5
|
8733 | |
echo "$as_me:8734: \$? = $ac_status" >&5
|
|
8589 |
echo "$as_me:8590: \$? = $ac_status" >&5
|
8734 | 8590 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
8735 | 8591 |
then
|
8736 | 8592 |
# The compiler can only warn and ignore the option if not recognized
|
8737 | 8593 |
# So say no if there are warnings
|
8738 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
8739 | |
$SED '/^$/d' out/conftest.err >out/conftest.er2
|
8740 | |
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
8594 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
8595 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
8596 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
8741 | 8597 |
lt_cv_prog_compiler_c_o=yes
|
8742 | 8598 |
fi
|
8743 | 8599 |
fi
|
|
8837 | 8693 |
with_gnu_ld=no
|
8838 | 8694 |
fi
|
8839 | 8695 |
;;
|
|
8696 |
interix*)
|
|
8697 |
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
8698 |
with_gnu_ld=yes
|
|
8699 |
;;
|
8840 | 8700 |
openbsd*)
|
8841 | 8701 |
with_gnu_ld=no
|
8842 | 8702 |
;;
|
|
8921 | 8781 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
8922 | 8782 |
|
8923 | 8783 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
8924 | |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
8784 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
8925 | 8785 |
# If the export-symbols file already is a .def file (1st line
|
8926 | 8786 |
# is EXPORTS), use it as is; otherwise, prepend...
|
8927 | 8787 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
8930 | 8790 |
echo EXPORTS > $output_objdir/$soname.def;
|
8931 | 8791 |
cat $export_symbols >> $output_objdir/$soname.def;
|
8932 | 8792 |
fi~
|
8933 | |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
8793 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
8934 | 8794 |
else
|
8935 | 8795 |
ld_shlibs=no
|
8936 | 8796 |
fi
|
|
8797 |
;;
|
|
8798 |
|
|
8799 |
interix3*)
|
|
8800 |
hardcode_direct=no
|
|
8801 |
hardcode_shlibpath_var=no
|
|
8802 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
|
8803 |
export_dynamic_flag_spec='${wl}-E'
|
|
8804 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
8805 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
8806 |
# default) and relocated if they conflict, which is a slow very memory
|
|
8807 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
8808 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
8809 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
8810 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
8811 |
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
8937 | 8812 |
;;
|
8938 | 8813 |
|
8939 | 8814 |
linux*)
|
|
8977 | 8852 |
fi
|
8978 | 8853 |
;;
|
8979 | 8854 |
|
8980 | |
solaris* | sysv5*)
|
|
8855 |
solaris*)
|
8981 | 8856 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
8982 | 8857 |
ld_shlibs=no
|
8983 | 8858 |
cat <<EOF 1>&2
|
|
8996 | 8871 |
else
|
8997 | 8872 |
ld_shlibs=no
|
8998 | 8873 |
fi
|
|
8874 |
;;
|
|
8875 |
|
|
8876 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
8877 |
case `$LD -v 2>&1` in
|
|
8878 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
|
8879 |
ld_shlibs=no
|
|
8880 |
cat <<_LT_EOF 1>&2
|
|
8881 |
|
|
8882 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
8883 |
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
8884 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
8885 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
8886 |
*** your PATH or compiler configuration so that the native linker is
|
|
8887 |
*** used, and then restart.
|
|
8888 |
|
|
8889 |
_LT_EOF
|
|
8890 |
;;
|
|
8891 |
*)
|
|
8892 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
8893 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
|
8894 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
|
8895 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
|
8896 |
else
|
|
8897 |
ld_shlibs=no
|
|
8898 |
fi
|
|
8899 |
;;
|
|
8900 |
esac
|
8999 | 8901 |
;;
|
9000 | 8902 |
|
9001 | 8903 |
sunos4*)
|
|
9031 | 8933 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
9032 | 8934 |
# are no directories specified by -L.
|
9033 | 8935 |
hardcode_minus_L=yes
|
9034 | |
if test "$GCC" = yes && test -z "$link_static_flag"; then
|
|
8936 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
9035 | 8937 |
# Neither direct hardcoding nor static linking is supported with a
|
9036 | 8938 |
# broken collect2.
|
9037 | 8939 |
hardcode_direct=unsupported
|
|
9065 | 8967 |
break
|
9066 | 8968 |
fi
|
9067 | 8969 |
done
|
|
8970 |
;;
|
9068 | 8971 |
esac
|
9069 | 8972 |
|
9070 | 8973 |
exp_sym_flag='-bexport'
|
|
9102 | 9005 |
hardcode_libdir_flag_spec='-L$libdir'
|
9103 | 9006 |
hardcode_libdir_separator=
|
9104 | 9007 |
fi
|
|
9008 |
;;
|
9105 | 9009 |
esac
|
9106 | 9010 |
shared_flag='-shared'
|
9107 | 9011 |
if test "$aix_use_runtimelinking" = yes; then
|
|
9114 | 9018 |
# chokes on -Wl,-G. The following line is correct:
|
9115 | 9019 |
shared_flag='-G'
|
9116 | 9020 |
else
|
9117 | |
if test "$aix_use_runtimelinking" = yes; then
|
|
9021 |
if test "$aix_use_runtimelinking" = yes; then
|
9118 | 9022 |
shared_flag='${wl}-G'
|
9119 | 9023 |
else
|
9120 | 9024 |
shared_flag='${wl}-bM:SRE'
|
9121 | |
fi
|
|
9025 |
fi
|
9122 | 9026 |
fi
|
9123 | 9027 |
fi
|
9124 | 9028 |
|
|
9183 | 9087 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
9184 | 9088 |
|
9185 | 9089 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
|
9186 | |
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"
|
|
9090 |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
9187 | 9091 |
else
|
9188 | 9092 |
if test "$host_cpu" = ia64; then
|
9189 | 9093 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
|
9190 | 9094 |
allow_undefined_flag="-z nodefs"
|
9191 | |
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"
|
|
9095 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
9192 | 9096 |
else
|
9193 | 9097 |
# Determine the default libpath from the value encoded in an empty executable.
|
9194 | 9098 |
cat >conftest.$ac_ext <<_ACEOF
|
|
9248 | 9152 |
# -berok will link without error, but may produce a broken library.
|
9249 | 9153 |
no_undefined_flag=' ${wl}-bernotok'
|
9250 | 9154 |
allow_undefined_flag=' ${wl}-berok'
|
9251 | |
# -bexpall does not export symbols beginning with underscore (_)
|
9252 | |
always_export_symbols=yes
|
9253 | 9155 |
# Exported symbols can be pulled into shared objects from archives
|
9254 | |
whole_archive_flag_spec=' '
|
|
9156 |
whole_archive_flag_spec='$convenience'
|
9255 | 9157 |
archive_cmds_need_lc=yes
|
9256 | 9158 |
# This is similar to how AIX traditionally builds its shared libraries.
|
9257 | |
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'
|
|
9159 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
9258 | 9160 |
fi
|
9259 | 9161 |
fi
|
9260 | 9162 |
;;
|
|
9395 | 9297 |
export_dynamic_flag_spec='${wl}-E'
|
9396 | 9298 |
;;
|
9397 | 9299 |
|
9398 | |
hpux10* | hpux11*)
|
|
9300 |
hpux10*)
|
|
9301 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
9302 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
9303 |
else
|
|
9304 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
9305 |
fi
|
|
9306 |
if test "$with_gnu_ld" = no; then
|
|
9307 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
|
9308 |
hardcode_libdir_separator=:
|
|
9309 |
|
|
9310 |
hardcode_direct=yes
|
|
9311 |
export_dynamic_flag_spec='${wl}-E'
|
|
9312 |
|
|
9313 |
# hardcode_minus_L: Not really in the search PATH,
|
|
9314 |
# but as the default location of the library.
|
|
9315 |
hardcode_minus_L=yes
|
|
9316 |
fi
|
|
9317 |
;;
|
|
9318 |
|
|
9319 |
hpux11*)
|
9399 | 9320 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
9400 | 9321 |
case $host_cpu in
|
9401 | |
hppa*64*|ia64*)
|
|
9322 |
hppa*64*)
|
9402 | 9323 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9324 |
;;
|
|
9325 |
ia64*)
|
|
9326 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
9403 | 9327 |
;;
|
9404 | 9328 |
*)
|
9405 | 9329 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
9407 | 9331 |
esac
|
9408 | 9332 |
else
|
9409 | 9333 |
case $host_cpu in
|
9410 | |
hppa*64*|ia64*)
|
9411 | |
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
9334 |
hppa*64*)
|
|
9335 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9336 |
;;
|
|
9337 |
ia64*)
|
|
9338 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
9412 | 9339 |
;;
|
9413 | 9340 |
*)
|
9414 | |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
9341 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
9415 | 9342 |
;;
|
9416 | 9343 |
esac
|
9417 | 9344 |
fi
|
9418 | 9345 |
if test "$with_gnu_ld" = no; then
|
|
9346 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
|
9347 |
hardcode_libdir_separator=:
|
|
9348 |
|
9419 | 9349 |
case $host_cpu in
|
9420 | |
hppa*64*)
|
9421 | |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
|
9350 |
hppa*64*|ia64*)
|
9422 | 9351 |
hardcode_libdir_flag_spec_ld='+b $libdir'
|
9423 | |
hardcode_libdir_separator=:
|
9424 | 9352 |
hardcode_direct=no
|
9425 | 9353 |
hardcode_shlibpath_var=no
|
9426 | 9354 |
;;
|
9427 | |
ia64*)
|
9428 | |
hardcode_libdir_flag_spec='-L$libdir'
|
9429 | |
hardcode_direct=no
|
9430 | |
hardcode_shlibpath_var=no
|
9431 | |
|
9432 | |
# hardcode_minus_L: Not really in the search PATH,
|
9433 | |
# but as the default location of the library.
|
9434 | |
hardcode_minus_L=yes
|
9435 | |
;;
|
9436 | 9355 |
*)
|
9437 | |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
|
9438 | |
hardcode_libdir_separator=:
|
9439 | 9356 |
hardcode_direct=yes
|
9440 | 9357 |
export_dynamic_flag_spec='${wl}-E'
|
9441 | 9358 |
|
|
9535 | 9452 |
hardcode_libdir_flag_spec='-rpath $libdir'
|
9536 | 9453 |
fi
|
9537 | 9454 |
hardcode_libdir_separator=:
|
9538 | |
;;
|
9539 | |
|
9540 | |
sco3.2v5*)
|
9541 | |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9542 | |
hardcode_shlibpath_var=no
|
9543 | |
export_dynamic_flag_spec='${wl}-Bexport'
|
9544 | |
runpath_var=LD_RUN_PATH
|
9545 | |
hardcode_runpath_var=yes
|
9546 | 9455 |
;;
|
9547 | 9456 |
|
9548 | 9457 |
solaris*)
|
|
9630 | 9539 |
fi
|
9631 | 9540 |
;;
|
9632 | 9541 |
|
9633 | |
sysv4.2uw2*)
|
9634 | |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
9635 | |
hardcode_direct=yes
|
9636 | |
hardcode_minus_L=no
|
9637 | |
hardcode_shlibpath_var=no
|
9638 | |
hardcode_runpath_var=yes
|
9639 | |
runpath_var=LD_RUN_PATH
|
9640 | |
;;
|
9641 | |
|
9642 | |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
9643 | |
no_undefined_flag='${wl}-z ${wl}text'
|
9644 | |
if test "$GCC" = yes; then
|
9645 | |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9646 | |
else
|
9647 | |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
9648 | |
fi
|
9649 | |
runpath_var='LD_RUN_PATH'
|
9650 | |
hardcode_shlibpath_var=no
|
9651 | |
;;
|
9652 | |
|
9653 | |
sysv5*)
|
9654 | |
no_undefined_flag=' -z text'
|
9655 | |
# $CC -shared without GNU ld will not create a library from C++
|
9656 | |
# object files and a static libstdc++, better avoid it by now
|
9657 | |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
9658 | |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
9659 | |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
9660 | |
hardcode_libdir_flag_spec=
|
|
9542 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
|
9543 |
no_undefined_flag='${wl}-z,text'
|
|
9544 |
archive_cmds_need_lc=no
|
9661 | 9545 |
hardcode_shlibpath_var=no
|
9662 | 9546 |
runpath_var='LD_RUN_PATH'
|
|
9547 |
|
|
9548 |
if test "$GCC" = yes; then
|
|
9549 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9550 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9551 |
else
|
|
9552 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9553 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9554 |
fi
|
|
9555 |
;;
|
|
9556 |
|
|
9557 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
9558 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
9559 |
# link with -lc, and that would cause any symbols used from libc to
|
|
9560 |
# always be unresolved, which means just about no library would
|
|
9561 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
9562 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
9563 |
# as -z defs.
|
|
9564 |
no_undefined_flag='${wl}-z,text'
|
|
9565 |
allow_undefined_flag='${wl}-z,nodefs'
|
|
9566 |
archive_cmds_need_lc=no
|
|
9567 |
hardcode_shlibpath_var=no
|
|
9568 |
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
9569 |
hardcode_libdir_separator=':'
|
|
9570 |
link_all_deplibs=yes
|
|
9571 |
export_dynamic_flag_spec='${wl}-Bexport'
|
|
9572 |
runpath_var='LD_RUN_PATH'
|
|
9573 |
|
|
9574 |
if test "$GCC" = yes; then
|
|
9575 |
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9576 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9577 |
else
|
|
9578 |
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9579 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
9580 |
fi
|
9663 | 9581 |
;;
|
9664 | 9582 |
|
9665 | 9583 |
uts4*)
|
|
9677 | 9595 |
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
|
9678 | 9596 |
echo "${ECHO_T}$ld_shlibs" >&6
|
9679 | 9597 |
test "$ld_shlibs" = no && can_build_shared=no
|
9680 | |
|
9681 | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
9682 | |
if test "$GCC" = yes; then
|
9683 | |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
9684 | |
fi
|
9685 | 9598 |
|
9686 | 9599 |
#
|
9687 | 9600 |
# Do we need to explicitly link libc?
|
|
9715 | 9628 |
libobjs=conftest.$ac_objext
|
9716 | 9629 |
deplibs=
|
9717 | 9630 |
wl=$lt_prog_compiler_wl
|
|
9631 |
pic_flag=$lt_prog_compiler_pic
|
9718 | 9632 |
compiler_flags=-v
|
9719 | 9633 |
linker_flags=-v
|
9720 | 9634 |
verstring=
|
|
10033 | 9947 |
shlibpath_overrides_runpath=yes
|
10034 | 9948 |
hardcode_into_libs=yes
|
10035 | 9949 |
;;
|
10036 | |
*) # from 3.2 on
|
|
9950 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
9951 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
10037 | 9952 |
shlibpath_overrides_runpath=no
|
|
9953 |
hardcode_into_libs=yes
|
|
9954 |
;;
|
|
9955 |
freebsd*) # from 4.6 on
|
|
9956 |
shlibpath_overrides_runpath=yes
|
10038 | 9957 |
hardcode_into_libs=yes
|
10039 | 9958 |
;;
|
10040 | 9959 |
esac
|
|
10096 | 10015 |
postinstall_cmds='chmod 555 $lib'
|
10097 | 10016 |
;;
|
10098 | 10017 |
|
|
10018 |
interix3*)
|
|
10019 |
version_type=linux
|
|
10020 |
need_lib_prefix=no
|
|
10021 |
need_version=no
|
|
10022 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
10023 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
10024 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
10025 |
shlibpath_var=LD_LIBRARY_PATH
|
|
10026 |
shlibpath_overrides_runpath=no
|
|
10027 |
hardcode_into_libs=yes
|
|
10028 |
;;
|
|
10029 |
|
10099 | 10030 |
irix5* | irix6* | nonstopux*)
|
10100 | 10031 |
case $host_os in
|
10101 | 10032 |
nonstopux*) version_type=nonstopux ;;
|
|
10159 | 10090 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
10160 | 10091 |
fi
|
10161 | 10092 |
|
10162 | |
case $host_cpu:$lt_cv_cc_64bit_output in
|
10163 | |
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
|
10164 | |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
|
10165 | |
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
|
10166 | |
;;
|
10167 | |
esac
|
10168 | |
|
10169 | 10093 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
10170 | 10094 |
# powerpc, because MkLinux only supported shared libraries with the
|
10171 | 10095 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
10173 | 10097 |
# people can always --disable-shared, the test was removed, and we
|
10174 | 10098 |
# assume the GNU/Linux dynamic linker is in use.
|
10175 | 10099 |
dynamic_linker='GNU/Linux ld.so'
|
10176 | |
|
10177 | |
# Find out which ABI we are using (multilib Linux x86_64 hack).
|
10178 | |
libsuff=
|
10179 | |
case "$host_cpu" in
|
10180 | |
x86_64*)
|
10181 | |
echo '#line 10182 "configure"' > conftest.$ac_ext
|
10182 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
10183 | |
(eval $ac_compile) 2>&5
|
10184 | |
ac_status=$?
|
10185 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
10186 | |
(exit $ac_status); }; then
|
10187 | |
case `/usr/bin/file conftest.$ac_objext` in
|
10188 | |
*64-bit*)
|
10189 | |
libsuff=64
|
10190 | |
;;
|
10191 | |
esac
|
10192 | |
fi
|
10193 | |
rm -rf conftest*
|
10194 | |
;;
|
10195 | |
*)
|
10196 | |
;;
|
10197 | |
esac
|
10198 | |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
10199 | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
10200 | 10100 |
;;
|
10201 | 10101 |
|
10202 | 10102 |
knetbsd*-gnu)
|
|
10248 | 10148 |
|
10249 | 10149 |
openbsd*)
|
10250 | 10150 |
version_type=sunos
|
|
10151 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
10251 | 10152 |
need_lib_prefix=no
|
10252 | 10153 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
10253 | 10154 |
case $host_os in
|
|
10291 | 10192 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
10292 | 10193 |
;;
|
10293 | 10194 |
|
10294 | |
sco3.2v5*)
|
10295 | |
version_type=osf
|
10296 | |
soname_spec='${libname}${release}${shared_ext}$major'
|
10297 | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10298 | |
shlibpath_var=LD_LIBRARY_PATH
|
10299 | |
;;
|
10300 | |
|
10301 | 10195 |
solaris*)
|
10302 | 10196 |
version_type=linux
|
10303 | 10197 |
need_lib_prefix=no
|
|
10323 | 10217 |
need_version=yes
|
10324 | 10218 |
;;
|
10325 | 10219 |
|
10326 | |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
10220 |
sysv4 | sysv4.3*)
|
10327 | 10221 |
version_type=linux
|
10328 | 10222 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
10329 | 10223 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
10356 | 10250 |
fi
|
10357 | 10251 |
;;
|
10358 | 10252 |
|
|
10253 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
10254 |
version_type=freebsd-elf
|
|
10255 |
need_lib_prefix=no
|
|
10256 |
need_version=no
|
|
10257 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
10258 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
10259 |
shlibpath_var=LD_LIBRARY_PATH
|
|
10260 |
hardcode_into_libs=yes
|
|
10261 |
if test "$with_gnu_ld" = yes; then
|
|
10262 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
10263 |
shlibpath_overrides_runpath=no
|
|
10264 |
else
|
|
10265 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
10266 |
shlibpath_overrides_runpath=yes
|
|
10267 |
case $host_os in
|
|
10268 |
sco3.2v5*)
|
|
10269 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
10270 |
;;
|
|
10271 |
esac
|
|
10272 |
fi
|
|
10273 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
10274 |
;;
|
|
10275 |
|
10359 | 10276 |
uts4*)
|
10360 | 10277 |
version_type=linux
|
10361 | 10278 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
10370 | 10287 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
10371 | 10288 |
echo "${ECHO_T}$dynamic_linker" >&6
|
10372 | 10289 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
10290 |
|
|
10291 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
10292 |
if test "$GCC" = yes; then
|
|
10293 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
10294 |
fi
|
10373 | 10295 |
|
10374 | 10296 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
10375 | 10297 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
|
11026 | 10948 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
11027 | 10949 |
|
11028 | 10950 |
save_LDFLAGS="$LDFLAGS"
|
11029 | |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
|
10951 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
11030 | 10952 |
|
11031 | 10953 |
save_LIBS="$LIBS"
|
11032 | 10954 |
LIBS="$lt_cv_dlopen_libs $LIBS"
|
|
11042 | 10964 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
11043 | 10965 |
lt_status=$lt_dlunknown
|
11044 | 10966 |
cat > conftest.$ac_ext <<EOF
|
11045 | |
#line 11046 "configure"
|
|
10967 |
#line 10968 "configure"
|
11046 | 10968 |
#include "confdefs.h"
|
11047 | 10969 |
|
11048 | 10970 |
#if HAVE_DLFCN_H
|
|
11099 | 11021 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
11100 | 11022 |
/* dlclose (self); */
|
11101 | 11023 |
}
|
|
11024 |
else
|
|
11025 |
puts (dlerror ());
|
11102 | 11026 |
|
11103 | 11027 |
exit (status);
|
11104 | 11028 |
}
|
|
11113 | 11037 |
case x$lt_status in
|
11114 | 11038 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
11115 | 11039 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
11116 | |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
|
|
11040 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
11117 | 11041 |
esac
|
11118 | 11042 |
else :
|
11119 | 11043 |
# compilation failed
|
|
11128 | 11052 |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
|
11129 | 11053 |
|
11130 | 11054 |
if test "x$lt_cv_dlopen_self" = xyes; then
|
11131 | |
LDFLAGS="$LDFLAGS $link_static_flag"
|
|
11055 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
11132 | 11056 |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
11133 | 11057 |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
|
11134 | 11058 |
if test "${lt_cv_dlopen_self_static+set}" = set; then
|
|
11140 | 11064 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
11141 | 11065 |
lt_status=$lt_dlunknown
|
11142 | 11066 |
cat > conftest.$ac_ext <<EOF
|
11143 | |
#line 11144 "configure"
|
|
11067 |
#line 11068 "configure"
|
11144 | 11068 |
#include "confdefs.h"
|
11145 | 11069 |
|
11146 | 11070 |
#if HAVE_DLFCN_H
|
|
11197 | 11121 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
11198 | 11122 |
/* dlclose (self); */
|
11199 | 11123 |
}
|
|
11124 |
else
|
|
11125 |
puts (dlerror ());
|
11200 | 11126 |
|
11201 | 11127 |
exit (status);
|
11202 | 11128 |
}
|
|
11211 | 11137 |
case x$lt_status in
|
11212 | 11138 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
11213 | 11139 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
11214 | |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
|
|
11140 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
11215 | 11141 |
esac
|
11216 | 11142 |
else :
|
11217 | 11143 |
# compilation failed
|
|
11244 | 11170 |
fi
|
11245 | 11171 |
|
11246 | 11172 |
|
11247 | |
# Report which librarie types wil actually be built
|
|
11173 |
# Report which library types will actually be built
|
11248 | 11174 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
|
11249 | 11175 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
|
11250 | 11176 |
echo "$as_me:$LINENO: result: $can_build_shared" >&5
|
|
11294 | 11220 |
# Now quote all the things that may contain metacharacters while being
|
11295 | 11221 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
11296 | 11222 |
# variables and quote the copies for generation of the libtool script.
|
11297 | |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
|
11223 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
11298 | 11224 |
SED SHELL STRIP \
|
11299 | 11225 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
11300 | 11226 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
11460 | 11386 |
# A C compiler.
|
11461 | 11387 |
LTCC=$lt_LTCC
|
11462 | 11388 |
|
|
11389 |
# LTCC compiler flags.
|
|
11390 |
LTCFLAGS=$lt_LTCFLAGS
|
|
11391 |
|
11463 | 11392 |
# A language-specific compiler.
|
11464 | 11393 |
CC=$lt_compiler
|
11465 | 11394 |
|
|
11789 | 11718 |
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
|
11790 | 11719 |
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
|
11791 | 11720 |
fi
|
|
11721 |
fi
|
|
11722 |
if test -z "$LTCFLAGS"; then
|
|
11723 |
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
|
11792 | 11724 |
fi
|
11793 | 11725 |
|
11794 | 11726 |
# Extract list of available tagged configurations in $ofile.
|
|
11842 | 11774 |
hardcode_libdir_flag_spec_ld_CXX=
|
11843 | 11775 |
hardcode_libdir_separator_CXX=
|
11844 | 11776 |
hardcode_minus_L_CXX=no
|
|
11777 |
hardcode_shlibpath_var_CXX=unsupported
|
11845 | 11778 |
hardcode_automatic_CXX=no
|
11846 | 11779 |
module_cmds_CXX=
|
11847 | 11780 |
module_expsym_cmds_CXX=
|
|
11869 | 11802 |
lt_simple_compile_test_code="int some_variable = 0;\n"
|
11870 | 11803 |
|
11871 | 11804 |
# Code to be used in simple link tests
|
11872 | |
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
|
|
11805 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
|
11873 | 11806 |
|
11874 | 11807 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
11875 | 11808 |
|
11876 | 11809 |
# If no C compiler was specified, use CC.
|
11877 | 11810 |
LTCC=${LTCC-"$CC"}
|
|
11811 |
|
|
11812 |
# If no C compiler flags were specified, use CFLAGS.
|
|
11813 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
11878 | 11814 |
|
11879 | 11815 |
# Allow CC to be a program name with arguments.
|
11880 | 11816 |
compiler=$CC
|
|
11883 | 11819 |
# save warnings/boilerplate of simple test code
|
11884 | 11820 |
ac_outfile=conftest.$ac_objext
|
11885 | 11821 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
11886 | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
11822 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
11887 | 11823 |
_lt_compiler_boilerplate=`cat conftest.err`
|
11888 | 11824 |
$rm conftest*
|
11889 | 11825 |
|
11890 | 11826 |
ac_outfile=conftest.$ac_objext
|
11891 | 11827 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
11892 | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
11828 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
11893 | 11829 |
_lt_linker_boilerplate=`cat conftest.err`
|
11894 | 11830 |
$rm conftest*
|
11895 | 11831 |
|
|
11904 | 11840 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
|
11905 | 11841 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
|
11906 | 11842 |
else
|
11907 | |
unset lt_cv_prog_gnu_ld
|
|
11843 |
$as_unset lt_cv_prog_gnu_ld
|
11908 | 11844 |
fi
|
11909 | 11845 |
if test -n "${lt_cv_path_LDCXX+set}"; then
|
11910 | 11846 |
lt_cv_path_LD=$lt_cv_path_LDCXX
|
11911 | 11847 |
else
|
11912 | |
unset lt_cv_path_LD
|
|
11848 |
$as_unset lt_cv_path_LD
|
11913 | 11849 |
fi
|
11914 | 11850 |
test -z "${LDCXX+set}" || LD=$LDCXX
|
11915 | 11851 |
CC=${CXX-"c++"}
|
|
12120 | 12056 |
;;
|
12121 | 12057 |
esac
|
12122 | 12058 |
done
|
|
12059 |
;;
|
12123 | 12060 |
esac
|
12124 | 12061 |
|
12125 | 12062 |
exp_sym_flag='-bexport'
|
|
12157 | 12094 |
hardcode_libdir_flag_spec_CXX='-L$libdir'
|
12158 | 12095 |
hardcode_libdir_separator_CXX=
|
12159 | 12096 |
fi
|
|
12097 |
;;
|
12160 | 12098 |
esac
|
12161 | 12099 |
shared_flag='-shared'
|
12162 | 12100 |
if test "$aix_use_runtimelinking" = yes; then
|
|
12239 | 12177 |
|
12240 | 12178 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
|
12241 | 12179 |
|
12242 | |
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
12180 |
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
12243 | 12181 |
else
|
12244 | 12182 |
if test "$host_cpu" = ia64; then
|
12245 | 12183 |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
|
12246 | 12184 |
allow_undefined_flag_CXX="-z nodefs"
|
12247 | |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
|
12185 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
12248 | 12186 |
else
|
12249 | 12187 |
# Determine the default libpath from the value encoded in an empty executable.
|
12250 | 12188 |
cat >conftest.$ac_ext <<_ACEOF
|
|
12304 | 12242 |
# -berok will link without error, but may produce a broken library.
|
12305 | 12243 |
no_undefined_flag_CXX=' ${wl}-bernotok'
|
12306 | 12244 |
allow_undefined_flag_CXX=' ${wl}-berok'
|
12307 | |
# -bexpall does not export symbols beginning with underscore (_)
|
12308 | |
always_export_symbols_CXX=yes
|
12309 | 12245 |
# Exported symbols can be pulled into shared objects from archives
|
12310 | |
whole_archive_flag_spec_CXX=' '
|
|
12246 |
whole_archive_flag_spec_CXX='$convenience'
|
12311 | 12247 |
archive_cmds_need_lc_CXX=yes
|
12312 | 12248 |
# This is similar to how AIX traditionally builds its shared libraries.
|
12313 | |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
12249 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
12314 | 12250 |
fi
|
12315 | 12251 |
fi
|
12316 | 12252 |
;;
|
|
12253 |
|
|
12254 |
beos*)
|
|
12255 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
12256 |
allow_undefined_flag_CXX=unsupported
|
|
12257 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
|
12258 |
# support --undefined. This deserves some investigation. FIXME
|
|
12259 |
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
12260 |
else
|
|
12261 |
ld_shlibs_CXX=no
|
|
12262 |
fi
|
|
12263 |
;;
|
|
12264 |
|
12317 | 12265 |
chorus*)
|
12318 | 12266 |
case $cc_basename in
|
12319 | 12267 |
*)
|
|
12323 | 12271 |
esac
|
12324 | 12272 |
;;
|
12325 | 12273 |
|
12326 | |
|
12327 | 12274 |
cygwin* | mingw* | pw32*)
|
12328 | 12275 |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
|
12329 | 12276 |
# as there is no search path for DLLs.
|
|
12333 | 12280 |
enable_shared_with_static_runtimes_CXX=yes
|
12334 | 12281 |
|
12335 | 12282 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
12336 | |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
12283 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
12337 | 12284 |
# If the export-symbols file already is a .def file (1st line
|
12338 | 12285 |
# is EXPORTS), use it as is; otherwise, prepend...
|
12339 | 12286 |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
12342 | 12289 |
echo EXPORTS > $output_objdir/$soname.def;
|
12343 | 12290 |
cat $export_symbols >> $output_objdir/$soname.def;
|
12344 | 12291 |
fi~
|
12345 | |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
12292 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
12346 | 12293 |
else
|
12347 | 12294 |
ld_shlibs_CXX=no
|
12348 | 12295 |
fi
|
|
12479 | 12426 |
;;
|
12480 | 12427 |
hpux10*|hpux11*)
|
12481 | 12428 |
if test $with_gnu_ld = no; then
|
|
12429 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
|
12430 |
hardcode_libdir_separator_CXX=:
|
|
12431 |
|
12482 | 12432 |
case $host_cpu in
|
12483 | |
hppa*64*)
|
12484 | |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
|
12433 |
hppa*64*|ia64*)
|
12485 | 12434 |
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
|
12486 | |
hardcode_libdir_separator_CXX=:
|
12487 | |
;;
|
12488 | |
ia64*)
|
12489 | |
hardcode_libdir_flag_spec_CXX='-L$libdir'
|
12490 | 12435 |
;;
|
12491 | 12436 |
*)
|
12492 | |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
|
12493 | |
hardcode_libdir_separator_CXX=:
|
12494 | 12437 |
export_dynamic_flag_spec_CXX='${wl}-E'
|
12495 | 12438 |
;;
|
12496 | 12439 |
esac
|
12497 | 12440 |
fi
|
12498 | 12441 |
case $host_cpu in
|
12499 | |
hppa*64*)
|
|
12442 |
hppa*64*|ia64*)
|
12500 | 12443 |
hardcode_direct_CXX=no
|
12501 | 12444 |
hardcode_shlibpath_var_CXX=no
|
12502 | |
;;
|
12503 | |
ia64*)
|
12504 | |
hardcode_direct_CXX=no
|
12505 | |
hardcode_shlibpath_var_CXX=no
|
12506 | |
hardcode_minus_L_CXX=yes # Not in the search PATH,
|
12507 | |
# but as the default
|
12508 | |
# location of the library.
|
12509 | 12445 |
;;
|
12510 | 12446 |
*)
|
12511 | 12447 |
hardcode_direct_CXX=yes
|
|
12522 | 12458 |
;;
|
12523 | 12459 |
aCC*)
|
12524 | 12460 |
case $host_cpu in
|
12525 | |
hppa*64*|ia64*)
|
12526 | |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
|
12461 |
hppa*64*)
|
|
12462 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
12463 |
;;
|
|
12464 |
ia64*)
|
|
12465 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
12527 | 12466 |
;;
|
12528 | 12467 |
*)
|
12529 | 12468 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
12543 | 12482 |
if test "$GXX" = yes; then
|
12544 | 12483 |
if test $with_gnu_ld = no; then
|
12545 | 12484 |
case $host_cpu in
|
12546 | |
ia64*|hppa*64*)
|
12547 | |
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
|
|
12485 |
hppa*64*)
|
|
12486 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
12487 |
;;
|
|
12488 |
ia64*)
|
|
12489 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
12548 | 12490 |
;;
|
12549 | 12491 |
*)
|
12550 | 12492 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
|
|
12557 | 12499 |
fi
|
12558 | 12500 |
;;
|
12559 | 12501 |
esac
|
|
12502 |
;;
|
|
12503 |
interix3*)
|
|
12504 |
hardcode_direct_CXX=no
|
|
12505 |
hardcode_shlibpath_var_CXX=no
|
|
12506 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
|
|
12507 |
export_dynamic_flag_spec_CXX='${wl}-E'
|
|
12508 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
12509 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
12510 |
# default) and relocated if they conflict, which is a slow very memory
|
|
12511 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
12512 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
12513 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
12514 |
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
12515 |
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
12560 | 12516 |
;;
|
12561 | 12517 |
irix5* | irix6*)
|
12562 | 12518 |
case $cc_basename in
|
|
12840 | 12796 |
# FIXME: insert proper C++ library support
|
12841 | 12797 |
ld_shlibs_CXX=no
|
12842 | 12798 |
;;
|
12843 | |
sco*)
|
12844 | |
archive_cmds_need_lc_CXX=no
|
12845 | |
case $cc_basename in
|
12846 | |
CC*)
|
12847 | |
# FIXME: insert proper C++ library support
|
12848 | |
ld_shlibs_CXX=no
|
12849 | |
;;
|
12850 | |
*)
|
12851 | |
# FIXME: insert proper C++ library support
|
12852 | |
ld_shlibs_CXX=no
|
12853 | |
;;
|
12854 | |
esac
|
12855 | |
;;
|
12856 | 12799 |
sunos4*)
|
12857 | 12800 |
case $cc_basename in
|
12858 | 12801 |
CC*)
|
|
12945 | 12888 |
;;
|
12946 | 12889 |
esac
|
12947 | 12890 |
;;
|
12948 | |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
|
12891 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
|
12892 |
no_undefined_flag_CXX='${wl}-z,text'
|
12949 | 12893 |
archive_cmds_need_lc_CXX=no
|
|
12894 |
hardcode_shlibpath_var_CXX=no
|
|
12895 |
runpath_var='LD_RUN_PATH'
|
|
12896 |
|
|
12897 |
case $cc_basename in
|
|
12898 |
CC*)
|
|
12899 |
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
12900 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
12901 |
;;
|
|
12902 |
*)
|
|
12903 |
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
12904 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
12905 |
;;
|
|
12906 |
esac
|
|
12907 |
;;
|
|
12908 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
12909 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
12910 |
# link with -lc, and that would cause any symbols used from libc to
|
|
12911 |
# always be unresolved, which means just about no library would
|
|
12912 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
12913 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
12914 |
# as -z defs.
|
|
12915 |
# For security reasons, it is highly recommended that you always
|
|
12916 |
# use absolute paths for naming shared libraries, and exclude the
|
|
12917 |
# DT_RUNPATH tag from executables and libraries. But doing so
|
|
12918 |
# requires that you compile everything twice, which is a pain.
|
|
12919 |
# So that behaviour is only enabled if SCOABSPATH is set to a
|
|
12920 |
# non-empty value in the environment. Most likely only useful for
|
|
12921 |
# creating official distributions of packages.
|
|
12922 |
# This is a hack until libtool officially supports absolute path
|
|
12923 |
# names for shared libraries.
|
|
12924 |
no_undefined_flag_CXX='${wl}-z,text'
|
|
12925 |
allow_undefined_flag_CXX='${wl}-z,nodefs'
|
|
12926 |
archive_cmds_need_lc_CXX=no
|
|
12927 |
hardcode_shlibpath_var_CXX=no
|
|
12928 |
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
12929 |
hardcode_libdir_separator_CXX=':'
|
|
12930 |
link_all_deplibs_CXX=yes
|
|
12931 |
export_dynamic_flag_spec_CXX='${wl}-Bexport'
|
|
12932 |
runpath_var='LD_RUN_PATH'
|
|
12933 |
|
|
12934 |
case $cc_basename in
|
|
12935 |
CC*)
|
|
12936 |
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
12937 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
12938 |
;;
|
|
12939 |
*)
|
|
12940 |
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
12941 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
12942 |
;;
|
|
12943 |
esac
|
12950 | 12944 |
;;
|
12951 | 12945 |
tandem*)
|
12952 | 12946 |
case $cc_basename in
|
|
13081 | 13075 |
|
13082 | 13076 |
# PORTME: override above test on systems where it is broken
|
13083 | 13077 |
case $host_os in
|
|
13078 |
interix3*)
|
|
13079 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than
|
|
13080 |
# hack all around it, let's just trust "g++" to DTRT.
|
|
13081 |
predep_objects_CXX=
|
|
13082 |
postdep_objects_CXX=
|
|
13083 |
postdeps_CXX=
|
|
13084 |
;;
|
|
13085 |
|
13084 | 13086 |
solaris*)
|
13085 | 13087 |
case $cc_basename in
|
13086 | 13088 |
CC*)
|
|
13090 | 13092 |
postdeps_CXX='-lCstd -lCrun'
|
13091 | 13093 |
;;
|
13092 | 13094 |
esac
|
|
13095 |
;;
|
13093 | 13096 |
esac
|
13094 | 13097 |
|
13095 | 13098 |
|
|
13139 | 13142 |
*djgpp*)
|
13140 | 13143 |
# DJGPP does not support shared libraries at all
|
13141 | 13144 |
lt_prog_compiler_pic_CXX=
|
|
13145 |
;;
|
|
13146 |
interix3*)
|
|
13147 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
13148 |
# Instead, we relocate shared libraries at runtime.
|
13142 | 13149 |
;;
|
13143 | 13150 |
sysv4*MP*)
|
13144 | 13151 |
if test -d /usr/nec; then
|
|
13209 | 13216 |
case $cc_basename in
|
13210 | 13217 |
CC*)
|
13211 | 13218 |
lt_prog_compiler_wl_CXX='-Wl,'
|
13212 | |
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
|
13219 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
13213 | 13220 |
if test "$host_cpu" != ia64; then
|
13214 | 13221 |
lt_prog_compiler_pic_CXX='+Z'
|
13215 | 13222 |
fi
|
13216 | 13223 |
;;
|
13217 | 13224 |
aCC*)
|
13218 | 13225 |
lt_prog_compiler_wl_CXX='-Wl,'
|
13219 | |
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
|
|
13226 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
|
13220 | 13227 |
case $host_cpu in
|
13221 | 13228 |
hppa*64*|ia64*)
|
13222 | 13229 |
# +Z the default
|
|
13229 | 13236 |
*)
|
13230 | 13237 |
;;
|
13231 | 13238 |
esac
|
|
13239 |
;;
|
|
13240 |
interix*)
|
|
13241 |
# This is c89, which is MS Visual C++ (no shared libs)
|
|
13242 |
# Anyone wants to do a port?
|
13232 | 13243 |
;;
|
13233 | 13244 |
irix5* | irix6* | nonstopux*)
|
13234 | 13245 |
case $cc_basename in
|
|
13309 | 13320 |
;;
|
13310 | 13321 |
psos*)
|
13311 | 13322 |
;;
|
13312 | |
sco*)
|
13313 | |
case $cc_basename in
|
13314 | |
CC*)
|
13315 | |
lt_prog_compiler_pic_CXX='-fPIC'
|
13316 | |
;;
|
13317 | |
*)
|
13318 | |
;;
|
13319 | |
esac
|
13320 | |
;;
|
13321 | 13323 |
solaris*)
|
13322 | 13324 |
case $cc_basename in
|
13323 | 13325 |
CC*)
|
|
13359 | 13361 |
;;
|
13360 | 13362 |
esac
|
13361 | 13363 |
;;
|
13362 | |
unixware*)
|
|
13364 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
13365 |
case $cc_basename in
|
|
13366 |
CC*)
|
|
13367 |
lt_prog_compiler_wl_CXX='-Wl,'
|
|
13368 |
lt_prog_compiler_pic_CXX='-KPIC'
|
|
13369 |
lt_prog_compiler_static_CXX='-Bstatic'
|
|
13370 |
;;
|
|
13371 |
esac
|
13363 | 13372 |
;;
|
13364 | 13373 |
vxworks*)
|
13365 | 13374 |
;;
|
|
13395 | 13404 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
13396 | 13405 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
13397 | 13406 |
-e 's:$: $lt_compiler_flag:'`
|
13398 | |
(eval echo "\"\$as_me:13399: $lt_compile\"" >&5)
|
|
13407 |
(eval echo "\"\$as_me:13408: $lt_compile\"" >&5)
|
13399 | 13408 |
(eval "$lt_compile" 2>conftest.err)
|
13400 | 13409 |
ac_status=$?
|
13401 | 13410 |
cat conftest.err >&5
|
13402 | |
echo "$as_me:13403: \$? = $ac_status" >&5
|
|
13411 |
echo "$as_me:13412: \$? = $ac_status" >&5
|
13403 | 13412 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
13404 | 13413 |
# The compiler can only warn and ignore the option if not recognized
|
13405 | 13414 |
# So say no if there are warnings other than the usual output.
|
13406 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
13407 | |
$SED '/^$/d' conftest.err >conftest.er2
|
13408 | |
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
|
13415 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
13416 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
13417 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
13409 | 13418 |
lt_prog_compiler_pic_works_CXX=yes
|
13410 | 13419 |
fi
|
13411 | 13420 |
fi
|
|
13436 | 13445 |
;;
|
13437 | 13446 |
esac
|
13438 | 13447 |
|
|
13448 |
#
|
|
13449 |
# Check to make sure the static flag actually works.
|
|
13450 |
#
|
|
13451 |
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
|
|
13452 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
13453 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
|
13454 |
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
|
|
13455 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
13456 |
else
|
|
13457 |
lt_prog_compiler_static_works_CXX=no
|
|
13458 |
save_LDFLAGS="$LDFLAGS"
|
|
13459 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
13460 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
13461 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
13462 |
# The linker can only warn and ignore the option if not recognized
|
|
13463 |
# So say no if there are warnings
|
|
13464 |
if test -s conftest.err; then
|
|
13465 |
# Append any errors to the config.log.
|
|
13466 |
cat conftest.err 1>&5
|
|
13467 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
13468 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
13469 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
13470 |
lt_prog_compiler_static_works_CXX=yes
|
|
13471 |
fi
|
|
13472 |
else
|
|
13473 |
lt_prog_compiler_static_works_CXX=yes
|
|
13474 |
fi
|
|
13475 |
fi
|
|
13476 |
$rm conftest*
|
|
13477 |
LDFLAGS="$save_LDFLAGS"
|
|
13478 |
|
|
13479 |
fi
|
|
13480 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
|
|
13481 |
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
|
|
13482 |
|
|
13483 |
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
|
|
13484 |
:
|
|
13485 |
else
|
|
13486 |
lt_prog_compiler_static_CXX=
|
|
13487 |
fi
|
|
13488 |
|
|
13489 |
|
13439 | 13490 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
13440 | 13491 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
13441 | 13492 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
|
|
13457 | 13508 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
13458 | 13509 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
13459 | 13510 |
-e 's:$: $lt_compiler_flag:'`
|
13460 | |
(eval echo "\"\$as_me:13461: $lt_compile\"" >&5)
|
|
13511 |
(eval echo "\"\$as_me:13512: $lt_compile\"" >&5)
|
13461 | 13512 |
(eval "$lt_compile" 2>out/conftest.err)
|
13462 | 13513 |
ac_status=$?
|
13463 | 13514 |
cat out/conftest.err >&5
|
13464 | |
echo "$as_me:13465: \$? = $ac_status" >&5
|
|
13515 |
echo "$as_me:13516: \$? = $ac_status" >&5
|
13465 | 13516 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
13466 | 13517 |
then
|
13467 | 13518 |
# The compiler can only warn and ignore the option if not recognized
|
13468 | 13519 |
# So say no if there are warnings
|
13469 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
13470 | |
$SED '/^$/d' out/conftest.err >out/conftest.er2
|
13471 | |
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
13520 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
13521 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
13522 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
13472 | 13523 |
lt_cv_prog_compiler_c_o_CXX=yes
|
13473 | 13524 |
fi
|
13474 | 13525 |
fi
|
|
13538 | 13589 |
echo "${ECHO_T}$ld_shlibs_CXX" >&6
|
13539 | 13590 |
test "$ld_shlibs_CXX" = no && can_build_shared=no
|
13540 | 13591 |
|
13541 | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
13542 | |
if test "$GCC" = yes; then
|
13543 | |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
13544 | |
fi
|
13545 | |
|
13546 | 13592 |
#
|
13547 | 13593 |
# Do we need to explicitly link libc?
|
13548 | 13594 |
#
|
|
13575 | 13621 |
libobjs=conftest.$ac_objext
|
13576 | 13622 |
deplibs=
|
13577 | 13623 |
wl=$lt_prog_compiler_wl_CXX
|
|
13624 |
pic_flag=$lt_prog_compiler_pic_CXX
|
13578 | 13625 |
compiler_flags=-v
|
13579 | 13626 |
linker_flags=-v
|
13580 | 13627 |
verstring=
|
|
13893 | 13940 |
shlibpath_overrides_runpath=yes
|
13894 | 13941 |
hardcode_into_libs=yes
|
13895 | 13942 |
;;
|
13896 | |
*) # from 3.2 on
|
|
13943 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
13944 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
13897 | 13945 |
shlibpath_overrides_runpath=no
|
|
13946 |
hardcode_into_libs=yes
|
|
13947 |
;;
|
|
13948 |
freebsd*) # from 4.6 on
|
|
13949 |
shlibpath_overrides_runpath=yes
|
13898 | 13950 |
hardcode_into_libs=yes
|
13899 | 13951 |
;;
|
13900 | 13952 |
esac
|
|
13956 | 14008 |
postinstall_cmds='chmod 555 $lib'
|
13957 | 14009 |
;;
|
13958 | 14010 |
|
|
14011 |
interix3*)
|
|
14012 |
version_type=linux
|
|
14013 |
need_lib_prefix=no
|
|
14014 |
need_version=no
|
|
14015 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
14016 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
14017 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
14018 |
shlibpath_var=LD_LIBRARY_PATH
|
|
14019 |
shlibpath_overrides_runpath=no
|
|
14020 |
hardcode_into_libs=yes
|
|
14021 |
;;
|
|
14022 |
|
13959 | 14023 |
irix5* | irix6* | nonstopux*)
|
13960 | 14024 |
case $host_os in
|
13961 | 14025 |
nonstopux*) version_type=nonstopux ;;
|
|
14019 | 14083 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
14020 | 14084 |
fi
|
14021 | 14085 |
|
14022 | |
case $host_cpu:$lt_cv_cc_64bit_output in
|
14023 | |
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
|
14024 | |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
|
14025 | |
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
|
14026 | |
;;
|
14027 | |
esac
|
14028 | |
|
14029 | 14086 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
14030 | 14087 |
# powerpc, because MkLinux only supported shared libraries with the
|
14031 | 14088 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
14033 | 14090 |
# people can always --disable-shared, the test was removed, and we
|
14034 | 14091 |
# assume the GNU/Linux dynamic linker is in use.
|
14035 | 14092 |
dynamic_linker='GNU/Linux ld.so'
|
14036 | |
|
14037 | |
# Find out which ABI we are using (multilib Linux x86_64 hack).
|
14038 | |
libsuff=
|
14039 | |
case "$host_cpu" in
|
14040 | |
x86_64*)
|
14041 | |
echo '#line 14042 "configure"' > conftest.$ac_ext
|
14042 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
14043 | |
(eval $ac_compile) 2>&5
|
14044 | |
ac_status=$?
|
14045 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14046 | |
(exit $ac_status); }; then
|
14047 | |
case `/usr/bin/file conftest.$ac_objext` in
|
14048 | |
*64-bit*)
|
14049 | |
libsuff=64
|
14050 | |
;;
|
14051 | |
esac
|
14052 | |
fi
|
14053 | |
rm -rf conftest*
|
14054 | |
;;
|
14055 | |
*)
|
14056 | |
;;
|
14057 | |
esac
|
14058 | |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
14059 | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
14060 | 14093 |
;;
|
14061 | 14094 |
|
14062 | 14095 |
knetbsd*-gnu)
|
|
14108 | 14141 |
|
14109 | 14142 |
openbsd*)
|
14110 | 14143 |
version_type=sunos
|
|
14144 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
14111 | 14145 |
need_lib_prefix=no
|
14112 | 14146 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
14113 | 14147 |
case $host_os in
|
|
14151 | 14185 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
14152 | 14186 |
;;
|
14153 | 14187 |
|
14154 | |
sco3.2v5*)
|
14155 | |
version_type=osf
|
14156 | |
soname_spec='${libname}${release}${shared_ext}$major'
|
14157 | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14158 | |
shlibpath_var=LD_LIBRARY_PATH
|
14159 | |
;;
|
14160 | |
|
14161 | 14188 |
solaris*)
|
14162 | 14189 |
version_type=linux
|
14163 | 14190 |
need_lib_prefix=no
|
|
14183 | 14210 |
need_version=yes
|
14184 | 14211 |
;;
|
14185 | 14212 |
|
14186 | |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
14213 |
sysv4 | sysv4.3*)
|
14187 | 14214 |
version_type=linux
|
14188 | 14215 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
14189 | 14216 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
14216 | 14243 |
fi
|
14217 | 14244 |
;;
|
14218 | 14245 |
|
|
14246 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
14247 |
version_type=freebsd-elf
|
|
14248 |
need_lib_prefix=no
|
|
14249 |
need_version=no
|
|
14250 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
14251 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
14252 |
shlibpath_var=LD_LIBRARY_PATH
|
|
14253 |
hardcode_into_libs=yes
|
|
14254 |
if test "$with_gnu_ld" = yes; then
|
|
14255 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
14256 |
shlibpath_overrides_runpath=no
|
|
14257 |
else
|
|
14258 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
14259 |
shlibpath_overrides_runpath=yes
|
|
14260 |
case $host_os in
|
|
14261 |
sco3.2v5*)
|
|
14262 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
14263 |
;;
|
|
14264 |
esac
|
|
14265 |
fi
|
|
14266 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
14267 |
;;
|
|
14268 |
|
14219 | 14269 |
uts4*)
|
14220 | 14270 |
version_type=linux
|
14221 | 14271 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
14230 | 14280 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
14231 | 14281 |
echo "${ECHO_T}$dynamic_linker" >&6
|
14232 | 14282 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
14283 |
|
|
14284 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
14285 |
if test "$GCC" = yes; then
|
|
14286 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
14287 |
fi
|
14233 | 14288 |
|
14234 | 14289 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
14235 | 14290 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
|
14268 | 14323 |
enable_fast_install=needless
|
14269 | 14324 |
fi
|
14270 | 14325 |
|
14271 | |
striplib=
|
14272 | |
old_striplib=
|
14273 | |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
14274 | |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
14275 | |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
14276 | |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
14277 | |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
14278 | |
echo "$as_me:$LINENO: result: yes" >&5
|
14279 | |
echo "${ECHO_T}yes" >&6
|
14280 | |
else
|
14281 | |
# FIXME - insert some real tests, host_os isn't really good enough
|
14282 | |
case $host_os in
|
14283 | |
darwin*)
|
14284 | |
if test -n "$STRIP" ; then
|
14285 | |
striplib="$STRIP -x"
|
14286 | |
echo "$as_me:$LINENO: result: yes" >&5
|
14287 | |
echo "${ECHO_T}yes" >&6
|
14288 | |
else
|
14289 | |
echo "$as_me:$LINENO: result: no" >&5
|
14290 | |
echo "${ECHO_T}no" >&6
|
14291 | |
fi
|
14292 | |
;;
|
14293 | |
*)
|
14294 | |
echo "$as_me:$LINENO: result: no" >&5
|
14295 | |
echo "${ECHO_T}no" >&6
|
14296 | |
;;
|
14297 | |
esac
|
14298 | |
fi
|
14299 | |
|
14300 | |
if test "x$enable_dlopen" != xyes; then
|
14301 | |
enable_dlopen=unknown
|
14302 | |
enable_dlopen_self=unknown
|
14303 | |
enable_dlopen_self_static=unknown
|
14304 | |
else
|
14305 | |
lt_cv_dlopen=no
|
14306 | |
lt_cv_dlopen_libs=
|
14307 | |
|
14308 | |
case $host_os in
|
14309 | |
beos*)
|
14310 | |
lt_cv_dlopen="load_add_on"
|
14311 | |
lt_cv_dlopen_libs=
|
14312 | |
lt_cv_dlopen_self=yes
|
14313 | |
;;
|
14314 | |
|
14315 | |
mingw* | pw32*)
|
14316 | |
lt_cv_dlopen="LoadLibrary"
|
14317 | |
lt_cv_dlopen_libs=
|
14318 | |
;;
|
14319 | |
|
14320 | |
cygwin*)
|
14321 | |
lt_cv_dlopen="dlopen"
|
14322 | |
lt_cv_dlopen_libs=
|
14323 | |
;;
|
14324 | |
|
14325 | |
darwin*)
|
14326 | |
# if libdl is installed we need to link against it
|
14327 | |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
14328 | |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
14329 | |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
14330 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14331 | |
else
|
14332 | |
ac_check_lib_save_LIBS=$LIBS
|
14333 | |
LIBS="-ldl $LIBS"
|
14334 | |
cat >conftest.$ac_ext <<_ACEOF
|
14335 | |
/* confdefs.h. */
|
14336 | |
_ACEOF
|
14337 | |
cat confdefs.h >>conftest.$ac_ext
|
14338 | |
cat >>conftest.$ac_ext <<_ACEOF
|
14339 | |
/* end confdefs.h. */
|
14340 | |
|
14341 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
14342 | |
#ifdef __cplusplus
|
14343 | |
extern "C"
|
14344 | |
#endif
|
14345 | |
/* We use char because int might match the return type of a gcc2
|
14346 | |
builtin and then its argument prototype would still apply. */
|
14347 | |
char dlopen ();
|
14348 | |
int
|
14349 | |
main ()
|
14350 | |
{
|
14351 | |
dlopen ();
|
14352 | |
;
|
14353 | |
return 0;
|
14354 | |
}
|
14355 | |
_ACEOF
|
14356 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
14357 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
14358 | |
(eval $ac_link) 2>conftest.er1
|
14359 | |
ac_status=$?
|
14360 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
14361 | |
rm -f conftest.er1
|
14362 | |
cat conftest.err >&5
|
14363 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14364 | |
(exit $ac_status); } &&
|
14365 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
14366 | |
|| test ! -s conftest.err'
|
14367 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14368 | |
(eval $ac_try) 2>&5
|
14369 | |
ac_status=$?
|
14370 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14371 | |
(exit $ac_status); }; } &&
|
14372 | |
{ ac_try='test -s conftest$ac_exeext'
|
14373 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14374 | |
(eval $ac_try) 2>&5
|
14375 | |
ac_status=$?
|
14376 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14377 | |
(exit $ac_status); }; }; then
|
14378 | |
ac_cv_lib_dl_dlopen=yes
|
14379 | |
else
|
14380 | |
echo "$as_me: failed program was:" >&5
|
14381 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
14382 | |
|
14383 | |
ac_cv_lib_dl_dlopen=no
|
14384 | |
fi
|
14385 | |
rm -f conftest.err conftest.$ac_objext \
|
14386 | |
conftest$ac_exeext conftest.$ac_ext
|
14387 | |
LIBS=$ac_check_lib_save_LIBS
|
14388 | |
fi
|
14389 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
14390 | |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
14391 | |
if test $ac_cv_lib_dl_dlopen = yes; then
|
14392 | |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
14393 | |
else
|
14394 | |
|
14395 | |
lt_cv_dlopen="dyld"
|
14396 | |
lt_cv_dlopen_libs=
|
14397 | |
lt_cv_dlopen_self=yes
|
14398 | |
|
14399 | |
fi
|
14400 | |
|
14401 | |
;;
|
14402 | |
|
14403 | |
*)
|
14404 | |
echo "$as_me:$LINENO: checking for shl_load" >&5
|
14405 | |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
|
14406 | |
if test "${ac_cv_func_shl_load+set}" = set; then
|
14407 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14408 | |
else
|
14409 | |
cat >conftest.$ac_ext <<_ACEOF
|
14410 | |
/* confdefs.h. */
|
14411 | |
_ACEOF
|
14412 | |
cat confdefs.h >>conftest.$ac_ext
|
14413 | |
cat >>conftest.$ac_ext <<_ACEOF
|
14414 | |
/* end confdefs.h. */
|
14415 | |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|
14416 | |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
14417 | |
#define shl_load innocuous_shl_load
|
14418 | |
|
14419 | |
/* System header to define __stub macros and hopefully few prototypes,
|
14420 | |
which can conflict with char shl_load (); below.
|
14421 | |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
14422 | |
<limits.h> exists even on freestanding compilers. */
|
14423 | |
|
14424 | |
#ifdef __STDC__
|
14425 | |
# include <limits.h>
|
14426 | |
#else
|
14427 | |
# include <assert.h>
|
14428 | |
#endif
|
14429 | |
|
14430 | |
#undef shl_load
|
14431 | |
|
14432 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
14433 | |
#ifdef __cplusplus
|
14434 | |
extern "C"
|
14435 | |
{
|
14436 | |
#endif
|
14437 | |
/* We use char because int might match the return type of a gcc2
|
14438 | |
builtin and then its argument prototype would still apply. */
|
14439 | |
char shl_load ();
|
14440 | |
/* The GNU C library defines this for functions which it implements
|
14441 | |
to always fail with ENOSYS. Some functions are actually named
|
14442 | |
something starting with __ and the normal name is an alias. */
|
14443 | |
#if defined (__stub_shl_load) || defined (__stub___shl_load)
|
14444 | |
choke me
|
14445 | |
#else
|
14446 | |
char (*f) () = shl_load;
|
14447 | |
#endif
|
14448 | |
#ifdef __cplusplus
|
14449 | |
}
|
14450 | |
#endif
|
14451 | |
|
14452 | |
int
|
14453 | |
main ()
|
14454 | |
{
|
14455 | |
return f != shl_load;
|
14456 | |
;
|
14457 | |
return 0;
|
14458 | |
}
|
14459 | |
_ACEOF
|
14460 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
14461 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
14462 | |
(eval $ac_link) 2>conftest.er1
|
14463 | |
ac_status=$?
|
14464 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
14465 | |
rm -f conftest.er1
|
14466 | |
cat conftest.err >&5
|
14467 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14468 | |
(exit $ac_status); } &&
|
14469 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
14470 | |
|| test ! -s conftest.err'
|
14471 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14472 | |
(eval $ac_try) 2>&5
|
14473 | |
ac_status=$?
|
14474 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14475 | |
(exit $ac_status); }; } &&
|
14476 | |
{ ac_try='test -s conftest$ac_exeext'
|
14477 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14478 | |
(eval $ac_try) 2>&5
|
14479 | |
ac_status=$?
|
14480 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14481 | |
(exit $ac_status); }; }; then
|
14482 | |
ac_cv_func_shl_load=yes
|
14483 | |
else
|
14484 | |
echo "$as_me: failed program was:" >&5
|
14485 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
14486 | |
|
14487 | |
ac_cv_func_shl_load=no
|
14488 | |
fi
|
14489 | |
rm -f conftest.err conftest.$ac_objext \
|
14490 | |
conftest$ac_exeext conftest.$ac_ext
|
14491 | |
fi
|
14492 | |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
14493 | |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
|
14494 | |
if test $ac_cv_func_shl_load = yes; then
|
14495 | |
lt_cv_dlopen="shl_load"
|
14496 | |
else
|
14497 | |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
14498 | |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
|
14499 | |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
14500 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14501 | |
else
|
14502 | |
ac_check_lib_save_LIBS=$LIBS
|
14503 | |
LIBS="-ldld $LIBS"
|
14504 | |
cat >conftest.$ac_ext <<_ACEOF
|
14505 | |
/* confdefs.h. */
|
14506 | |
_ACEOF
|
14507 | |
cat confdefs.h >>conftest.$ac_ext
|
14508 | |
cat >>conftest.$ac_ext <<_ACEOF
|
14509 | |
/* end confdefs.h. */
|
14510 | |
|
14511 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
14512 | |
#ifdef __cplusplus
|
14513 | |
extern "C"
|
14514 | |
#endif
|
14515 | |
/* We use char because int might match the return type of a gcc2
|
14516 | |
builtin and then its argument prototype would still apply. */
|
14517 | |
char shl_load ();
|
14518 | |
int
|
14519 | |
main ()
|
14520 | |
{
|
14521 | |
shl_load ();
|
14522 | |
;
|
14523 | |
return 0;
|
14524 | |
}
|
14525 | |
_ACEOF
|
14526 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
14527 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
14528 | |
(eval $ac_link) 2>conftest.er1
|
14529 | |
ac_status=$?
|
14530 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
14531 | |
rm -f conftest.er1
|
14532 | |
cat conftest.err >&5
|
14533 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14534 | |
(exit $ac_status); } &&
|
14535 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
14536 | |
|| test ! -s conftest.err'
|
14537 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14538 | |
(eval $ac_try) 2>&5
|
14539 | |
ac_status=$?
|
14540 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14541 | |
(exit $ac_status); }; } &&
|
14542 | |
{ ac_try='test -s conftest$ac_exeext'
|
14543 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14544 | |
(eval $ac_try) 2>&5
|
14545 | |
ac_status=$?
|
14546 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14547 | |
(exit $ac_status); }; }; then
|
14548 | |
ac_cv_lib_dld_shl_load=yes
|
14549 | |
else
|
14550 | |
echo "$as_me: failed program was:" >&5
|
14551 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
14552 | |
|
14553 | |
ac_cv_lib_dld_shl_load=no
|
14554 | |
fi
|
14555 | |
rm -f conftest.err conftest.$ac_objext \
|
14556 | |
conftest$ac_exeext conftest.$ac_ext
|
14557 | |
LIBS=$ac_check_lib_save_LIBS
|
14558 | |
fi
|
14559 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
14560 | |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
|
14561 | |
if test $ac_cv_lib_dld_shl_load = yes; then
|
14562 | |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
14563 | |
else
|
14564 | |
echo "$as_me:$LINENO: checking for dlopen" >&5
|
14565 | |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
|
14566 | |
if test "${ac_cv_func_dlopen+set}" = set; then
|
14567 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14568 | |
else
|
14569 | |
cat >conftest.$ac_ext <<_ACEOF
|
14570 | |
/* confdefs.h. */
|
14571 | |
_ACEOF
|
14572 | |
cat confdefs.h >>conftest.$ac_ext
|
14573 | |
cat >>conftest.$ac_ext <<_ACEOF
|
14574 | |
/* end confdefs.h. */
|
14575 | |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|
14576 | |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
14577 | |
#define dlopen innocuous_dlopen
|
14578 | |
|
14579 | |
/* System header to define __stub macros and hopefully few prototypes,
|
14580 | |
which can conflict with char dlopen (); below.
|
14581 | |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
14582 | |
<limits.h> exists even on freestanding compilers. */
|
14583 | |
|
14584 | |
#ifdef __STDC__
|
14585 | |
# include <limits.h>
|
14586 | |
#else
|
14587 | |
# include <assert.h>
|
14588 | |
#endif
|
14589 | |
|
14590 | |
#undef dlopen
|
14591 | |
|
14592 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
14593 | |
#ifdef __cplusplus
|
14594 | |
extern "C"
|
14595 | |
{
|
14596 | |
#endif
|
14597 | |
/* We use char because int might match the return type of a gcc2
|
14598 | |
builtin and then its argument prototype would still apply. */
|
14599 | |
char dlopen ();
|
14600 | |
/* The GNU C library defines this for functions which it implements
|
14601 | |
to always fail with ENOSYS. Some functions are actually named
|
14602 | |
something starting with __ and the normal name is an alias. */
|
14603 | |
#if defined (__stub_dlopen) || defined (__stub___dlopen)
|
14604 | |
choke me
|
14605 | |
#else
|
14606 | |
char (*f) () = dlopen;
|
14607 | |
#endif
|
14608 | |
#ifdef __cplusplus
|
14609 | |
}
|
14610 | |
#endif
|
14611 | |
|
14612 | |
int
|
14613 | |
main ()
|
14614 | |
{
|
14615 | |
return f != dlopen;
|
14616 | |
;
|
14617 | |
return 0;
|
14618 | |
}
|
14619 | |
_ACEOF
|
14620 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
14621 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
14622 | |
(eval $ac_link) 2>conftest.er1
|
14623 | |
ac_status=$?
|
14624 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
14625 | |
rm -f conftest.er1
|
14626 | |
cat conftest.err >&5
|
14627 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14628 | |
(exit $ac_status); } &&
|
14629 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
14630 | |
|| test ! -s conftest.err'
|
14631 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14632 | |
(eval $ac_try) 2>&5
|
14633 | |
ac_status=$?
|
14634 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14635 | |
(exit $ac_status); }; } &&
|
14636 | |
{ ac_try='test -s conftest$ac_exeext'
|
14637 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14638 | |
(eval $ac_try) 2>&5
|
14639 | |
ac_status=$?
|
14640 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14641 | |
(exit $ac_status); }; }; then
|
14642 | |
ac_cv_func_dlopen=yes
|
14643 | |
else
|
14644 | |
echo "$as_me: failed program was:" >&5
|
14645 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
14646 | |
|
14647 | |
ac_cv_func_dlopen=no
|
14648 | |
fi
|
14649 | |
rm -f conftest.err conftest.$ac_objext \
|
14650 | |
conftest$ac_exeext conftest.$ac_ext
|
14651 | |
fi
|
14652 | |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
14653 | |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
|
14654 | |
if test $ac_cv_func_dlopen = yes; then
|
14655 | |
lt_cv_dlopen="dlopen"
|
14656 | |
else
|
14657 | |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
14658 | |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
14659 | |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
14660 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14661 | |
else
|
14662 | |
ac_check_lib_save_LIBS=$LIBS
|
14663 | |
LIBS="-ldl $LIBS"
|
14664 | |
cat >conftest.$ac_ext <<_ACEOF
|
14665 | |
/* confdefs.h. */
|
14666 | |
_ACEOF
|
14667 | |
cat confdefs.h >>conftest.$ac_ext
|
14668 | |
cat >>conftest.$ac_ext <<_ACEOF
|
14669 | |
/* end confdefs.h. */
|
14670 | |
|
14671 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
14672 | |
#ifdef __cplusplus
|
14673 | |
extern "C"
|
14674 | |
#endif
|
14675 | |
/* We use char because int might match the return type of a gcc2
|
14676 | |
builtin and then its argument prototype would still apply. */
|
14677 | |
char dlopen ();
|
14678 | |
int
|
14679 | |
main ()
|
14680 | |
{
|
14681 | |
dlopen ();
|
14682 | |
;
|
14683 | |
return 0;
|
14684 | |
}
|
14685 | |
_ACEOF
|
14686 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
14687 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
14688 | |
(eval $ac_link) 2>conftest.er1
|
14689 | |
ac_status=$?
|
14690 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
14691 | |
rm -f conftest.er1
|
14692 | |
cat conftest.err >&5
|
14693 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14694 | |
(exit $ac_status); } &&
|
14695 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
14696 | |
|| test ! -s conftest.err'
|
14697 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14698 | |
(eval $ac_try) 2>&5
|
14699 | |
ac_status=$?
|
14700 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14701 | |
(exit $ac_status); }; } &&
|
14702 | |
{ ac_try='test -s conftest$ac_exeext'
|
14703 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14704 | |
(eval $ac_try) 2>&5
|
14705 | |
ac_status=$?
|
14706 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14707 | |
(exit $ac_status); }; }; then
|
14708 | |
ac_cv_lib_dl_dlopen=yes
|
14709 | |
else
|
14710 | |
echo "$as_me: failed program was:" >&5
|
14711 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
14712 | |
|
14713 | |
ac_cv_lib_dl_dlopen=no
|
14714 | |
fi
|
14715 | |
rm -f conftest.err conftest.$ac_objext \
|
14716 | |
conftest$ac_exeext conftest.$ac_ext
|
14717 | |
LIBS=$ac_check_lib_save_LIBS
|
14718 | |
fi
|
14719 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
14720 | |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
14721 | |
if test $ac_cv_lib_dl_dlopen = yes; then
|
14722 | |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
14723 | |
else
|
14724 | |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
14725 | |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
|
14726 | |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
14727 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14728 | |
else
|
14729 | |
ac_check_lib_save_LIBS=$LIBS
|
14730 | |
LIBS="-lsvld $LIBS"
|
14731 | |
cat >conftest.$ac_ext <<_ACEOF
|
14732 | |
/* confdefs.h. */
|
14733 | |
_ACEOF
|
14734 | |
cat confdefs.h >>conftest.$ac_ext
|
14735 | |
cat >>conftest.$ac_ext <<_ACEOF
|
14736 | |
/* end confdefs.h. */
|
14737 | |
|
14738 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
14739 | |
#ifdef __cplusplus
|
14740 | |
extern "C"
|
14741 | |
#endif
|
14742 | |
/* We use char because int might match the return type of a gcc2
|
14743 | |
builtin and then its argument prototype would still apply. */
|
14744 | |
char dlopen ();
|
14745 | |
int
|
14746 | |
main ()
|
14747 | |
{
|
14748 | |
dlopen ();
|
14749 | |
;
|
14750 | |
return 0;
|
14751 | |
}
|
14752 | |
_ACEOF
|
14753 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
14754 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
14755 | |
(eval $ac_link) 2>conftest.er1
|
14756 | |
ac_status=$?
|
14757 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
14758 | |
rm -f conftest.er1
|
14759 | |
cat conftest.err >&5
|
14760 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14761 | |
(exit $ac_status); } &&
|
14762 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
14763 | |
|| test ! -s conftest.err'
|
14764 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14765 | |
(eval $ac_try) 2>&5
|
14766 | |
ac_status=$?
|
14767 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14768 | |
(exit $ac_status); }; } &&
|
14769 | |
{ ac_try='test -s conftest$ac_exeext'
|
14770 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14771 | |
(eval $ac_try) 2>&5
|
14772 | |
ac_status=$?
|
14773 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14774 | |
(exit $ac_status); }; }; then
|
14775 | |
ac_cv_lib_svld_dlopen=yes
|
14776 | |
else
|
14777 | |
echo "$as_me: failed program was:" >&5
|
14778 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
14779 | |
|
14780 | |
ac_cv_lib_svld_dlopen=no
|
14781 | |
fi
|
14782 | |
rm -f conftest.err conftest.$ac_objext \
|
14783 | |
conftest$ac_exeext conftest.$ac_ext
|
14784 | |
LIBS=$ac_check_lib_save_LIBS
|
14785 | |
fi
|
14786 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
14787 | |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
|
14788 | |
if test $ac_cv_lib_svld_dlopen = yes; then
|
14789 | |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
14790 | |
else
|
14791 | |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
14792 | |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
|
14793 | |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
14794 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14795 | |
else
|
14796 | |
ac_check_lib_save_LIBS=$LIBS
|
14797 | |
LIBS="-ldld $LIBS"
|
14798 | |
cat >conftest.$ac_ext <<_ACEOF
|
14799 | |
/* confdefs.h. */
|
14800 | |
_ACEOF
|
14801 | |
cat confdefs.h >>conftest.$ac_ext
|
14802 | |
cat >>conftest.$ac_ext <<_ACEOF
|
14803 | |
/* end confdefs.h. */
|
14804 | |
|
14805 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
14806 | |
#ifdef __cplusplus
|
14807 | |
extern "C"
|
14808 | |
#endif
|
14809 | |
/* We use char because int might match the return type of a gcc2
|
14810 | |
builtin and then its argument prototype would still apply. */
|
14811 | |
char dld_link ();
|
14812 | |
int
|
14813 | |
main ()
|
14814 | |
{
|
14815 | |
dld_link ();
|
14816 | |
;
|
14817 | |
return 0;
|
14818 | |
}
|
14819 | |
_ACEOF
|
14820 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
14821 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
14822 | |
(eval $ac_link) 2>conftest.er1
|
14823 | |
ac_status=$?
|
14824 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
14825 | |
rm -f conftest.er1
|
14826 | |
cat conftest.err >&5
|
14827 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14828 | |
(exit $ac_status); } &&
|
14829 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
14830 | |
|| test ! -s conftest.err'
|
14831 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14832 | |
(eval $ac_try) 2>&5
|
14833 | |
ac_status=$?
|
14834 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14835 | |
(exit $ac_status); }; } &&
|
14836 | |
{ ac_try='test -s conftest$ac_exeext'
|
14837 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
14838 | |
(eval $ac_try) 2>&5
|
14839 | |
ac_status=$?
|
14840 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14841 | |
(exit $ac_status); }; }; then
|
14842 | |
ac_cv_lib_dld_dld_link=yes
|
14843 | |
else
|
14844 | |
echo "$as_me: failed program was:" >&5
|
14845 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
14846 | |
|
14847 | |
ac_cv_lib_dld_dld_link=no
|
14848 | |
fi
|
14849 | |
rm -f conftest.err conftest.$ac_objext \
|
14850 | |
conftest$ac_exeext conftest.$ac_ext
|
14851 | |
LIBS=$ac_check_lib_save_LIBS
|
14852 | |
fi
|
14853 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
14854 | |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
|
14855 | |
if test $ac_cv_lib_dld_dld_link = yes; then
|
14856 | |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
14857 | |
fi
|
14858 | |
|
14859 | |
|
14860 | |
fi
|
14861 | |
|
14862 | |
|
14863 | |
fi
|
14864 | |
|
14865 | |
|
14866 | |
fi
|
14867 | |
|
14868 | |
|
14869 | |
fi
|
14870 | |
|
14871 | |
|
14872 | |
fi
|
14873 | |
|
14874 | |
;;
|
14875 | |
esac
|
14876 | |
|
14877 | |
if test "x$lt_cv_dlopen" != xno; then
|
14878 | |
enable_dlopen=yes
|
14879 | |
else
|
14880 | |
enable_dlopen=no
|
14881 | |
fi
|
14882 | |
|
14883 | |
case $lt_cv_dlopen in
|
14884 | |
dlopen)
|
14885 | |
save_CPPFLAGS="$CPPFLAGS"
|
14886 | |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
14887 | |
|
14888 | |
save_LDFLAGS="$LDFLAGS"
|
14889 | |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
14890 | |
|
14891 | |
save_LIBS="$LIBS"
|
14892 | |
LIBS="$lt_cv_dlopen_libs $LIBS"
|
14893 | |
|
14894 | |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
14895 | |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
|
14896 | |
if test "${lt_cv_dlopen_self+set}" = set; then
|
14897 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14898 | |
else
|
14899 | |
if test "$cross_compiling" = yes; then :
|
14900 | |
lt_cv_dlopen_self=cross
|
14901 | |
else
|
14902 | |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
14903 | |
lt_status=$lt_dlunknown
|
14904 | |
cat > conftest.$ac_ext <<EOF
|
14905 | |
#line 14906 "configure"
|
14906 | |
#include "confdefs.h"
|
14907 | |
|
14908 | |
#if HAVE_DLFCN_H
|
14909 | |
#include <dlfcn.h>
|
14910 | |
#endif
|
14911 | |
|
14912 | |
#include <stdio.h>
|
14913 | |
|
14914 | |
#ifdef RTLD_GLOBAL
|
14915 | |
# define LT_DLGLOBAL RTLD_GLOBAL
|
14916 | |
#else
|
14917 | |
# ifdef DL_GLOBAL
|
14918 | |
# define LT_DLGLOBAL DL_GLOBAL
|
14919 | |
# else
|
14920 | |
# define LT_DLGLOBAL 0
|
14921 | |
# endif
|
14922 | |
#endif
|
14923 | |
|
14924 | |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
14925 | |
find out it does not work in some platform. */
|
14926 | |
#ifndef LT_DLLAZY_OR_NOW
|
14927 | |
# ifdef RTLD_LAZY
|
14928 | |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
14929 | |
# else
|
14930 | |
# ifdef DL_LAZY
|
14931 | |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
14932 | |
# else
|
14933 | |
# ifdef RTLD_NOW
|
14934 | |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
14935 | |
# else
|
14936 | |
# ifdef DL_NOW
|
14937 | |
# define LT_DLLAZY_OR_NOW DL_NOW
|
14938 | |
# else
|
14939 | |
# define LT_DLLAZY_OR_NOW 0
|
14940 | |
# endif
|
14941 | |
# endif
|
14942 | |
# endif
|
14943 | |
# endif
|
14944 | |
#endif
|
14945 | |
|
14946 | |
#ifdef __cplusplus
|
14947 | |
extern "C" void exit (int);
|
14948 | |
#endif
|
14949 | |
|
14950 | |
void fnord() { int i=42;}
|
14951 | |
int main ()
|
14952 | |
{
|
14953 | |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
14954 | |
int status = $lt_dlunknown;
|
14955 | |
|
14956 | |
if (self)
|
14957 | |
{
|
14958 | |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
14959 | |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
14960 | |
/* dlclose (self); */
|
14961 | |
}
|
14962 | |
|
14963 | |
exit (status);
|
14964 | |
}
|
14965 | |
EOF
|
14966 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
14967 | |
(eval $ac_link) 2>&5
|
14968 | |
ac_status=$?
|
14969 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
14970 | |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
14971 | |
(./conftest; exit; ) >&5 2>/dev/null
|
14972 | |
lt_status=$?
|
14973 | |
case x$lt_status in
|
14974 | |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
14975 | |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
14976 | |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
|
14977 | |
esac
|
14978 | |
else :
|
14979 | |
# compilation failed
|
14980 | |
lt_cv_dlopen_self=no
|
14981 | |
fi
|
14982 | |
fi
|
14983 | |
rm -fr conftest*
|
14984 | |
|
14985 | |
|
14986 | |
fi
|
14987 | |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
14988 | |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
|
14989 | |
|
14990 | |
if test "x$lt_cv_dlopen_self" = xyes; then
|
14991 | |
LDFLAGS="$LDFLAGS $link_static_flag"
|
14992 | |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
14993 | |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
|
14994 | |
if test "${lt_cv_dlopen_self_static+set}" = set; then
|
14995 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
14996 | |
else
|
14997 | |
if test "$cross_compiling" = yes; then :
|
14998 | |
lt_cv_dlopen_self_static=cross
|
14999 | |
else
|
15000 | |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
15001 | |
lt_status=$lt_dlunknown
|
15002 | |
cat > conftest.$ac_ext <<EOF
|
15003 | |
#line 15004 "configure"
|
15004 | |
#include "confdefs.h"
|
15005 | |
|
15006 | |
#if HAVE_DLFCN_H
|
15007 | |
#include <dlfcn.h>
|
15008 | |
#endif
|
15009 | |
|
15010 | |
#include <stdio.h>
|
15011 | |
|
15012 | |
#ifdef RTLD_GLOBAL
|
15013 | |
# define LT_DLGLOBAL RTLD_GLOBAL
|
15014 | |
#else
|
15015 | |
# ifdef DL_GLOBAL
|
15016 | |
# define LT_DLGLOBAL DL_GLOBAL
|
15017 | |
# else
|
15018 | |
# define LT_DLGLOBAL 0
|
15019 | |
# endif
|
15020 | |
#endif
|
15021 | |
|
15022 | |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
15023 | |
find out it does not work in some platform. */
|
15024 | |
#ifndef LT_DLLAZY_OR_NOW
|
15025 | |
# ifdef RTLD_LAZY
|
15026 | |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
15027 | |
# else
|
15028 | |
# ifdef DL_LAZY
|
15029 | |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
15030 | |
# else
|
15031 | |
# ifdef RTLD_NOW
|
15032 | |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
15033 | |
# else
|
15034 | |
# ifdef DL_NOW
|
15035 | |
# define LT_DLLAZY_OR_NOW DL_NOW
|
15036 | |
# else
|
15037 | |
# define LT_DLLAZY_OR_NOW 0
|
15038 | |
# endif
|
15039 | |
# endif
|
15040 | |
# endif
|
15041 | |
# endif
|
15042 | |
#endif
|
15043 | |
|
15044 | |
#ifdef __cplusplus
|
15045 | |
extern "C" void exit (int);
|
15046 | |
#endif
|
15047 | |
|
15048 | |
void fnord() { int i=42;}
|
15049 | |
int main ()
|
15050 | |
{
|
15051 | |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
15052 | |
int status = $lt_dlunknown;
|
15053 | |
|
15054 | |
if (self)
|
15055 | |
{
|
15056 | |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
15057 | |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
15058 | |
/* dlclose (self); */
|
15059 | |
}
|
15060 | |
|
15061 | |
exit (status);
|
15062 | |
}
|
15063 | |
EOF
|
15064 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
15065 | |
(eval $ac_link) 2>&5
|
15066 | |
ac_status=$?
|
15067 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
15068 | |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
15069 | |
(./conftest; exit; ) >&5 2>/dev/null
|
15070 | |
lt_status=$?
|
15071 | |
case x$lt_status in
|
15072 | |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
15073 | |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
15074 | |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
|
15075 | |
esac
|
15076 | |
else :
|
15077 | |
# compilation failed
|
15078 | |
lt_cv_dlopen_self_static=no
|
15079 | |
fi
|
15080 | |
fi
|
15081 | |
rm -fr conftest*
|
15082 | |
|
15083 | |
|
15084 | |
fi
|
15085 | |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
15086 | |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
|
15087 | |
fi
|
15088 | |
|
15089 | |
CPPFLAGS="$save_CPPFLAGS"
|
15090 | |
LDFLAGS="$save_LDFLAGS"
|
15091 | |
LIBS="$save_LIBS"
|
15092 | |
;;
|
15093 | |
esac
|
15094 | |
|
15095 | |
case $lt_cv_dlopen_self in
|
15096 | |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
15097 | |
*) enable_dlopen_self=unknown ;;
|
15098 | |
esac
|
15099 | |
|
15100 | |
case $lt_cv_dlopen_self_static in
|
15101 | |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
15102 | |
*) enable_dlopen_self_static=unknown ;;
|
15103 | |
esac
|
15104 | |
fi
|
15105 | |
|
15106 | 14326 |
|
15107 | 14327 |
# The else clause should only fire when bootstrapping the
|
15108 | 14328 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
15117 | 14337 |
# Now quote all the things that may contain metacharacters while being
|
15118 | 14338 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
15119 | 14339 |
# variables and quote the copies for generation of the libtool script.
|
15120 | |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
|
14340 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
15121 | 14341 |
SED SHELL STRIP \
|
15122 | 14342 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
15123 | 14343 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
15235 | 14455 |
# A C compiler.
|
15236 | 14456 |
LTCC=$lt_LTCC
|
15237 | 14457 |
|
|
14458 |
# LTCC compiler flags.
|
|
14459 |
LTCFLAGS=$lt_LTCFLAGS
|
|
14460 |
|
15238 | 14461 |
# A language-specific compiler.
|
15239 | 14462 |
CC=$lt_compiler_CXX
|
15240 | 14463 |
|
|
15577 | 14800 |
# If no C compiler was specified, use CC.
|
15578 | 14801 |
LTCC=${LTCC-"$CC"}
|
15579 | 14802 |
|
|
14803 |
# If no C compiler flags were specified, use CFLAGS.
|
|
14804 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
14805 |
|
15580 | 14806 |
# Allow CC to be a program name with arguments.
|
15581 | 14807 |
compiler=$CC
|
15582 | 14808 |
|
|
15584 | 14810 |
# save warnings/boilerplate of simple test code
|
15585 | 14811 |
ac_outfile=conftest.$ac_objext
|
15586 | 14812 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
15587 | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
14813 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
15588 | 14814 |
_lt_compiler_boilerplate=`cat conftest.err`
|
15589 | 14815 |
$rm conftest*
|
15590 | 14816 |
|
15591 | 14817 |
ac_outfile=conftest.$ac_objext
|
15592 | 14818 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
15593 | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
14819 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
15594 | 14820 |
_lt_linker_boilerplate=`cat conftest.err`
|
15595 | 14821 |
$rm conftest*
|
15596 | 14822 |
|
|
15646 | 14872 |
echo "$as_me:$LINENO: result: $enable_static" >&5
|
15647 | 14873 |
echo "${ECHO_T}$enable_static" >&6
|
15648 | 14874 |
|
15649 | |
test "$ld_shlibs_F77" = no && can_build_shared=no
|
15650 | |
|
15651 | 14875 |
GCC_F77="$G77"
|
15652 | 14876 |
LD_F77="$LD"
|
15653 | 14877 |
|
|
15692 | 14916 |
# PIC is the default on this platform
|
15693 | 14917 |
# Common symbols not allowed in MH_DYLIB files
|
15694 | 14918 |
lt_prog_compiler_pic_F77='-fno-common'
|
|
14919 |
;;
|
|
14920 |
|
|
14921 |
interix3*)
|
|
14922 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
14923 |
# Instead, we relocate shared libraries at runtime.
|
15695 | 14924 |
;;
|
15696 | 14925 |
|
15697 | 14926 |
msdosdjgpp*)
|
|
15808 | 15037 |
lt_prog_compiler_static_F77='-non_shared'
|
15809 | 15038 |
;;
|
15810 | 15039 |
|
15811 | |
sco3.2v5*)
|
15812 | |
lt_prog_compiler_pic_F77='-Kpic'
|
15813 | |
lt_prog_compiler_static_F77='-dn'
|
15814 | |
;;
|
15815 | |
|
15816 | 15040 |
solaris*)
|
15817 | 15041 |
lt_prog_compiler_pic_F77='-KPIC'
|
15818 | 15042 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
15830 | 15054 |
lt_prog_compiler_static_F77='-Bstatic'
|
15831 | 15055 |
;;
|
15832 | 15056 |
|
15833 | |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
15057 |
sysv4 | sysv4.2uw2* | sysv4.3*)
|
15834 | 15058 |
lt_prog_compiler_wl_F77='-Wl,'
|
15835 | 15059 |
lt_prog_compiler_pic_F77='-KPIC'
|
15836 | 15060 |
lt_prog_compiler_static_F77='-Bstatic'
|
|
15841 | 15065 |
lt_prog_compiler_pic_F77='-Kconform_pic'
|
15842 | 15066 |
lt_prog_compiler_static_F77='-Bstatic'
|
15843 | 15067 |
fi
|
|
15068 |
;;
|
|
15069 |
|
|
15070 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
15071 |
lt_prog_compiler_wl_F77='-Wl,'
|
|
15072 |
lt_prog_compiler_pic_F77='-KPIC'
|
|
15073 |
lt_prog_compiler_static_F77='-Bstatic'
|
15844 | 15074 |
;;
|
15845 | 15075 |
|
15846 | 15076 |
unicos*)
|
|
15885 | 15115 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15886 | 15116 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15887 | 15117 |
-e 's:$: $lt_compiler_flag:'`
|
15888 | |
(eval echo "\"\$as_me:15889: $lt_compile\"" >&5)
|
|
15118 |
(eval echo "\"\$as_me:15119: $lt_compile\"" >&5)
|
15889 | 15119 |
(eval "$lt_compile" 2>conftest.err)
|
15890 | 15120 |
ac_status=$?
|
15891 | 15121 |
cat conftest.err >&5
|
15892 | |
echo "$as_me:15893: \$? = $ac_status" >&5
|
|
15122 |
echo "$as_me:15123: \$? = $ac_status" >&5
|
15893 | 15123 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
15894 | 15124 |
# The compiler can only warn and ignore the option if not recognized
|
15895 | 15125 |
# So say no if there are warnings other than the usual output.
|
15896 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
15897 | |
$SED '/^$/d' conftest.err >conftest.er2
|
15898 | |
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
|
15126 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
15127 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
15128 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
15899 | 15129 |
lt_prog_compiler_pic_works_F77=yes
|
15900 | 15130 |
fi
|
15901 | 15131 |
fi
|
|
15926 | 15156 |
;;
|
15927 | 15157 |
esac
|
15928 | 15158 |
|
|
15159 |
#
|
|
15160 |
# Check to make sure the static flag actually works.
|
|
15161 |
#
|
|
15162 |
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
|
|
15163 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
15164 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
|
15165 |
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
|
|
15166 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
15167 |
else
|
|
15168 |
lt_prog_compiler_static_works_F77=no
|
|
15169 |
save_LDFLAGS="$LDFLAGS"
|
|
15170 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
15171 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
15172 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
15173 |
# The linker can only warn and ignore the option if not recognized
|
|
15174 |
# So say no if there are warnings
|
|
15175 |
if test -s conftest.err; then
|
|
15176 |
# Append any errors to the config.log.
|
|
15177 |
cat conftest.err 1>&5
|
|
15178 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
15179 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
15180 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
15181 |
lt_prog_compiler_static_works_F77=yes
|
|
15182 |
fi
|
|
15183 |
else
|
|
15184 |
lt_prog_compiler_static_works_F77=yes
|
|
15185 |
fi
|
|
15186 |
fi
|
|
15187 |
$rm conftest*
|
|
15188 |
LDFLAGS="$save_LDFLAGS"
|
|
15189 |
|
|
15190 |
fi
|
|
15191 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
|
|
15192 |
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
|
|
15193 |
|
|
15194 |
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
|
|
15195 |
:
|
|
15196 |
else
|
|
15197 |
lt_prog_compiler_static_F77=
|
|
15198 |
fi
|
|
15199 |
|
|
15200 |
|
15929 | 15201 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
15930 | 15202 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
15931 | 15203 |
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
|
|
15947 | 15219 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
15948 | 15220 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
15949 | 15221 |
-e 's:$: $lt_compiler_flag:'`
|
15950 | |
(eval echo "\"\$as_me:15951: $lt_compile\"" >&5)
|
|
15222 |
(eval echo "\"\$as_me:15223: $lt_compile\"" >&5)
|
15951 | 15223 |
(eval "$lt_compile" 2>out/conftest.err)
|
15952 | 15224 |
ac_status=$?
|
15953 | 15225 |
cat out/conftest.err >&5
|
15954 | |
echo "$as_me:15955: \$? = $ac_status" >&5
|
|
15226 |
echo "$as_me:15227: \$? = $ac_status" >&5
|
15955 | 15227 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
15956 | 15228 |
then
|
15957 | 15229 |
# The compiler can only warn and ignore the option if not recognized
|
15958 | 15230 |
# So say no if there are warnings
|
15959 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
15960 | |
$SED '/^$/d' out/conftest.err >out/conftest.er2
|
15961 | |
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
15231 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
15232 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
15233 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
15962 | 15234 |
lt_cv_prog_compiler_c_o_F77=yes
|
15963 | 15235 |
fi
|
15964 | 15236 |
fi
|
|
16058 | 15330 |
with_gnu_ld=no
|
16059 | 15331 |
fi
|
16060 | 15332 |
;;
|
|
15333 |
interix*)
|
|
15334 |
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
15335 |
with_gnu_ld=yes
|
|
15336 |
;;
|
16061 | 15337 |
openbsd*)
|
16062 | 15338 |
with_gnu_ld=no
|
16063 | 15339 |
;;
|
|
16142 | 15418 |
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
16143 | 15419 |
|
16144 | 15420 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
16145 | |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
15421 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
16146 | 15422 |
# If the export-symbols file already is a .def file (1st line
|
16147 | 15423 |
# is EXPORTS), use it as is; otherwise, prepend...
|
16148 | 15424 |
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
16151 | 15427 |
echo EXPORTS > $output_objdir/$soname.def;
|
16152 | 15428 |
cat $export_symbols >> $output_objdir/$soname.def;
|
16153 | 15429 |
fi~
|
16154 | |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
15430 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
16155 | 15431 |
else
|
16156 | 15432 |
ld_shlibs_F77=no
|
16157 | 15433 |
fi
|
|
15434 |
;;
|
|
15435 |
|
|
15436 |
interix3*)
|
|
15437 |
hardcode_direct_F77=no
|
|
15438 |
hardcode_shlibpath_var_F77=no
|
|
15439 |
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
|
|
15440 |
export_dynamic_flag_spec_F77='${wl}-E'
|
|
15441 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
15442 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
15443 |
# default) and relocated if they conflict, which is a slow very memory
|
|
15444 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
15445 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
15446 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
15447 |
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
15448 |
archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
16158 | 15449 |
;;
|
16159 | 15450 |
|
16160 | 15451 |
linux*)
|
|
16198 | 15489 |
fi
|
16199 | 15490 |
;;
|
16200 | 15491 |
|
16201 | |
solaris* | sysv5*)
|
|
15492 |
solaris*)
|
16202 | 15493 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
16203 | 15494 |
ld_shlibs_F77=no
|
16204 | 15495 |
cat <<EOF 1>&2
|
|
16217 | 15508 |
else
|
16218 | 15509 |
ld_shlibs_F77=no
|
16219 | 15510 |
fi
|
|
15511 |
;;
|
|
15512 |
|
|
15513 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
15514 |
case `$LD -v 2>&1` in
|
|
15515 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
|
15516 |
ld_shlibs_F77=no
|
|
15517 |
cat <<_LT_EOF 1>&2
|
|
15518 |
|
|
15519 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
15520 |
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
15521 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
15522 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
15523 |
*** your PATH or compiler configuration so that the native linker is
|
|
15524 |
*** used, and then restart.
|
|
15525 |
|
|
15526 |
_LT_EOF
|
|
15527 |
;;
|
|
15528 |
*)
|
|
15529 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
15530 |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
|
15531 |
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
|
15532 |
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
|
15533 |
else
|
|
15534 |
ld_shlibs_F77=no
|
|
15535 |
fi
|
|
15536 |
;;
|
|
15537 |
esac
|
16220 | 15538 |
;;
|
16221 | 15539 |
|
16222 | 15540 |
sunos4*)
|
|
16252 | 15570 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
16253 | 15571 |
# are no directories specified by -L.
|
16254 | 15572 |
hardcode_minus_L_F77=yes
|
16255 | |
if test "$GCC" = yes && test -z "$link_static_flag"; then
|
|
15573 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
16256 | 15574 |
# Neither direct hardcoding nor static linking is supported with a
|
16257 | 15575 |
# broken collect2.
|
16258 | 15576 |
hardcode_direct_F77=unsupported
|
|
16286 | 15604 |
break
|
16287 | 15605 |
fi
|
16288 | 15606 |
done
|
|
15607 |
;;
|
16289 | 15608 |
esac
|
16290 | 15609 |
|
16291 | 15610 |
exp_sym_flag='-bexport'
|
|
16323 | 15642 |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
16324 | 15643 |
hardcode_libdir_separator_F77=
|
16325 | 15644 |
fi
|
|
15645 |
;;
|
16326 | 15646 |
esac
|
16327 | 15647 |
shared_flag='-shared'
|
16328 | 15648 |
if test "$aix_use_runtimelinking" = yes; then
|
|
16335 | 15655 |
# chokes on -Wl,-G. The following line is correct:
|
16336 | 15656 |
shared_flag='-G'
|
16337 | 15657 |
else
|
16338 | |
if test "$aix_use_runtimelinking" = yes; then
|
|
15658 |
if test "$aix_use_runtimelinking" = yes; then
|
16339 | 15659 |
shared_flag='${wl}-G'
|
16340 | 15660 |
else
|
16341 | 15661 |
shared_flag='${wl}-bM:SRE'
|
16342 | |
fi
|
|
15662 |
fi
|
16343 | 15663 |
fi
|
16344 | 15664 |
fi
|
16345 | 15665 |
|
|
16394 | 15714 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
16395 | 15715 |
|
16396 | 15716 |
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
|
16397 | |
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
15717 |
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
16398 | 15718 |
else
|
16399 | 15719 |
if test "$host_cpu" = ia64; then
|
16400 | 15720 |
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
|
16401 | 15721 |
allow_undefined_flag_F77="-z nodefs"
|
16402 | |
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
|
15722 |
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
16403 | 15723 |
else
|
16404 | 15724 |
# Determine the default libpath from the value encoded in an empty executable.
|
16405 | 15725 |
cat >conftest.$ac_ext <<_ACEOF
|
|
16449 | 15769 |
# -berok will link without error, but may produce a broken library.
|
16450 | 15770 |
no_undefined_flag_F77=' ${wl}-bernotok'
|
16451 | 15771 |
allow_undefined_flag_F77=' ${wl}-berok'
|
16452 | |
# -bexpall does not export symbols beginning with underscore (_)
|
16453 | |
always_export_symbols_F77=yes
|
16454 | 15772 |
# Exported symbols can be pulled into shared objects from archives
|
16455 | |
whole_archive_flag_spec_F77=' '
|
|
15773 |
whole_archive_flag_spec_F77='$convenience'
|
16456 | 15774 |
archive_cmds_need_lc_F77=yes
|
16457 | 15775 |
# This is similar to how AIX traditionally builds its shared libraries.
|
16458 | |
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
15776 |
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
16459 | 15777 |
fi
|
16460 | 15778 |
fi
|
16461 | 15779 |
;;
|
|
16596 | 15914 |
export_dynamic_flag_spec_F77='${wl}-E'
|
16597 | 15915 |
;;
|
16598 | 15916 |
|
16599 | |
hpux10* | hpux11*)
|
|
15917 |
hpux10*)
|
|
15918 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
15919 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
15920 |
else
|
|
15921 |
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
15922 |
fi
|
|
15923 |
if test "$with_gnu_ld" = no; then
|
|
15924 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
|
15925 |
hardcode_libdir_separator_F77=:
|
|
15926 |
|
|
15927 |
hardcode_direct_F77=yes
|
|
15928 |
export_dynamic_flag_spec_F77='${wl}-E'
|
|
15929 |
|
|
15930 |
# hardcode_minus_L: Not really in the search PATH,
|
|
15931 |
# but as the default location of the library.
|
|
15932 |
hardcode_minus_L_F77=yes
|
|
15933 |
fi
|
|
15934 |
;;
|
|
15935 |
|
|
15936 |
hpux11*)
|
16600 | 15937 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
16601 | 15938 |
case $host_cpu in
|
16602 | |
hppa*64*|ia64*)
|
|
15939 |
hppa*64*)
|
16603 | 15940 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
15941 |
;;
|
|
15942 |
ia64*)
|
|
15943 |
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
16604 | 15944 |
;;
|
16605 | 15945 |
*)
|
16606 | 15946 |
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
16608 | 15948 |
esac
|
16609 | 15949 |
else
|
16610 | 15950 |
case $host_cpu in
|
16611 | |
hppa*64*|ia64*)
|
16612 | |
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
15951 |
hppa*64*)
|
|
15952 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
15953 |
;;
|
|
15954 |
ia64*)
|
|
15955 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
16613 | 15956 |
;;
|
16614 | 15957 |
*)
|
16615 | |
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
15958 |
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
16616 | 15959 |
;;
|
16617 | 15960 |
esac
|
16618 | 15961 |
fi
|
16619 | 15962 |
if test "$with_gnu_ld" = no; then
|
|
15963 |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
|
15964 |
hardcode_libdir_separator_F77=:
|
|
15965 |
|
16620 | 15966 |
case $host_cpu in
|
16621 | |
hppa*64*)
|
16622 | |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
|
15967 |
hppa*64*|ia64*)
|
16623 | 15968 |
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
|
16624 | |
hardcode_libdir_separator_F77=:
|
16625 | 15969 |
hardcode_direct_F77=no
|
16626 | 15970 |
hardcode_shlibpath_var_F77=no
|
16627 | 15971 |
;;
|
16628 | |
ia64*)
|
16629 | |
hardcode_libdir_flag_spec_F77='-L$libdir'
|
16630 | |
hardcode_direct_F77=no
|
16631 | |
hardcode_shlibpath_var_F77=no
|
16632 | |
|
16633 | |
# hardcode_minus_L: Not really in the search PATH,
|
16634 | |
# but as the default location of the library.
|
16635 | |
hardcode_minus_L_F77=yes
|
16636 | |
;;
|
16637 | 15972 |
*)
|
16638 | |
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
|
16639 | |
hardcode_libdir_separator_F77=:
|
16640 | 15973 |
hardcode_direct_F77=yes
|
16641 | 15974 |
export_dynamic_flag_spec_F77='${wl}-E'
|
16642 | 15975 |
|
|
16736 | 16069 |
hardcode_libdir_flag_spec_F77='-rpath $libdir'
|
16737 | 16070 |
fi
|
16738 | 16071 |
hardcode_libdir_separator_F77=:
|
16739 | |
;;
|
16740 | |
|
16741 | |
sco3.2v5*)
|
16742 | |
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16743 | |
hardcode_shlibpath_var_F77=no
|
16744 | |
export_dynamic_flag_spec_F77='${wl}-Bexport'
|
16745 | |
runpath_var=LD_RUN_PATH
|
16746 | |
hardcode_runpath_var=yes
|
16747 | 16072 |
;;
|
16748 | 16073 |
|
16749 | 16074 |
solaris*)
|
|
16831 | 16156 |
fi
|
16832 | 16157 |
;;
|
16833 | 16158 |
|
16834 | |
sysv4.2uw2*)
|
16835 | |
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
16836 | |
hardcode_direct_F77=yes
|
16837 | |
hardcode_minus_L_F77=no
|
16838 | |
hardcode_shlibpath_var_F77=no
|
16839 | |
hardcode_runpath_var=yes
|
16840 | |
runpath_var=LD_RUN_PATH
|
16841 | |
;;
|
16842 | |
|
16843 | |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
16844 | |
no_undefined_flag_F77='${wl}-z ${wl}text'
|
16845 | |
if test "$GCC" = yes; then
|
16846 | |
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
16847 | |
else
|
16848 | |
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
16849 | |
fi
|
16850 | |
runpath_var='LD_RUN_PATH'
|
16851 | |
hardcode_shlibpath_var_F77=no
|
16852 | |
;;
|
16853 | |
|
16854 | |
sysv5*)
|
16855 | |
no_undefined_flag_F77=' -z text'
|
16856 | |
# $CC -shared without GNU ld will not create a library from C++
|
16857 | |
# object files and a static libstdc++, better avoid it by now
|
16858 | |
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
16859 | |
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
16860 | |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
16861 | |
hardcode_libdir_flag_spec_F77=
|
|
16159 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
|
16160 |
no_undefined_flag_F77='${wl}-z,text'
|
|
16161 |
archive_cmds_need_lc_F77=no
|
16862 | 16162 |
hardcode_shlibpath_var_F77=no
|
16863 | 16163 |
runpath_var='LD_RUN_PATH'
|
|
16164 |
|
|
16165 |
if test "$GCC" = yes; then
|
|
16166 |
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
16167 |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
16168 |
else
|
|
16169 |
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
16170 |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
16171 |
fi
|
|
16172 |
;;
|
|
16173 |
|
|
16174 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
16175 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
16176 |
# link with -lc, and that would cause any symbols used from libc to
|
|
16177 |
# always be unresolved, which means just about no library would
|
|
16178 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
16179 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
16180 |
# as -z defs.
|
|
16181 |
no_undefined_flag_F77='${wl}-z,text'
|
|
16182 |
allow_undefined_flag_F77='${wl}-z,nodefs'
|
|
16183 |
archive_cmds_need_lc_F77=no
|
|
16184 |
hardcode_shlibpath_var_F77=no
|
|
16185 |
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
16186 |
hardcode_libdir_separator_F77=':'
|
|
16187 |
link_all_deplibs_F77=yes
|
|
16188 |
export_dynamic_flag_spec_F77='${wl}-Bexport'
|
|
16189 |
runpath_var='LD_RUN_PATH'
|
|
16190 |
|
|
16191 |
if test "$GCC" = yes; then
|
|
16192 |
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
16193 |
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
16194 |
else
|
|
16195 |
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
16196 |
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
16197 |
fi
|
16864 | 16198 |
;;
|
16865 | 16199 |
|
16866 | 16200 |
uts4*)
|
|
16878 | 16212 |
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
|
16879 | 16213 |
echo "${ECHO_T}$ld_shlibs_F77" >&6
|
16880 | 16214 |
test "$ld_shlibs_F77" = no && can_build_shared=no
|
16881 | |
|
16882 | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
16883 | |
if test "$GCC" = yes; then
|
16884 | |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
16885 | |
fi
|
16886 | 16215 |
|
16887 | 16216 |
#
|
16888 | 16217 |
# Do we need to explicitly link libc?
|
|
16916 | 16245 |
libobjs=conftest.$ac_objext
|
16917 | 16246 |
deplibs=
|
16918 | 16247 |
wl=$lt_prog_compiler_wl_F77
|
|
16248 |
pic_flag=$lt_prog_compiler_pic_F77
|
16919 | 16249 |
compiler_flags=-v
|
16920 | 16250 |
linker_flags=-v
|
16921 | 16251 |
verstring=
|
|
17234 | 16564 |
shlibpath_overrides_runpath=yes
|
17235 | 16565 |
hardcode_into_libs=yes
|
17236 | 16566 |
;;
|
17237 | |
*) # from 3.2 on
|
|
16567 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
16568 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
17238 | 16569 |
shlibpath_overrides_runpath=no
|
|
16570 |
hardcode_into_libs=yes
|
|
16571 |
;;
|
|
16572 |
freebsd*) # from 4.6 on
|
|
16573 |
shlibpath_overrides_runpath=yes
|
17239 | 16574 |
hardcode_into_libs=yes
|
17240 | 16575 |
;;
|
17241 | 16576 |
esac
|
|
17297 | 16632 |
postinstall_cmds='chmod 555 $lib'
|
17298 | 16633 |
;;
|
17299 | 16634 |
|
|
16635 |
interix3*)
|
|
16636 |
version_type=linux
|
|
16637 |
need_lib_prefix=no
|
|
16638 |
need_version=no
|
|
16639 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
16640 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
16641 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
16642 |
shlibpath_var=LD_LIBRARY_PATH
|
|
16643 |
shlibpath_overrides_runpath=no
|
|
16644 |
hardcode_into_libs=yes
|
|
16645 |
;;
|
|
16646 |
|
17300 | 16647 |
irix5* | irix6* | nonstopux*)
|
17301 | 16648 |
case $host_os in
|
17302 | 16649 |
nonstopux*) version_type=nonstopux ;;
|
|
17360 | 16707 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
17361 | 16708 |
fi
|
17362 | 16709 |
|
17363 | |
case $host_cpu:$lt_cv_cc_64bit_output in
|
17364 | |
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
|
17365 | |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
|
17366 | |
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
|
17367 | |
;;
|
17368 | |
esac
|
17369 | |
|
17370 | 16710 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
17371 | 16711 |
# powerpc, because MkLinux only supported shared libraries with the
|
17372 | 16712 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
17374 | 16714 |
# people can always --disable-shared, the test was removed, and we
|
17375 | 16715 |
# assume the GNU/Linux dynamic linker is in use.
|
17376 | 16716 |
dynamic_linker='GNU/Linux ld.so'
|
17377 | |
|
17378 | |
# Find out which ABI we are using (multilib Linux x86_64 hack).
|
17379 | |
libsuff=
|
17380 | |
case "$host_cpu" in
|
17381 | |
x86_64*)
|
17382 | |
echo '#line 17383 "configure"' > conftest.$ac_ext
|
17383 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
17384 | |
(eval $ac_compile) 2>&5
|
17385 | |
ac_status=$?
|
17386 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
17387 | |
(exit $ac_status); }; then
|
17388 | |
case `/usr/bin/file conftest.$ac_objext` in
|
17389 | |
*64-bit*)
|
17390 | |
libsuff=64
|
17391 | |
;;
|
17392 | |
esac
|
17393 | |
fi
|
17394 | |
rm -rf conftest*
|
17395 | |
;;
|
17396 | |
*)
|
17397 | |
;;
|
17398 | |
esac
|
17399 | |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
17400 | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
17401 | 16717 |
;;
|
17402 | 16718 |
|
17403 | 16719 |
knetbsd*-gnu)
|
|
17449 | 16765 |
|
17450 | 16766 |
openbsd*)
|
17451 | 16767 |
version_type=sunos
|
|
16768 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
17452 | 16769 |
need_lib_prefix=no
|
17453 | 16770 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
17454 | 16771 |
case $host_os in
|
|
17492 | 16809 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
17493 | 16810 |
;;
|
17494 | 16811 |
|
17495 | |
sco3.2v5*)
|
17496 | |
version_type=osf
|
17497 | |
soname_spec='${libname}${release}${shared_ext}$major'
|
17498 | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17499 | |
shlibpath_var=LD_LIBRARY_PATH
|
17500 | |
;;
|
17501 | |
|
17502 | 16812 |
solaris*)
|
17503 | 16813 |
version_type=linux
|
17504 | 16814 |
need_lib_prefix=no
|
|
17524 | 16834 |
need_version=yes
|
17525 | 16835 |
;;
|
17526 | 16836 |
|
17527 | |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
16837 |
sysv4 | sysv4.3*)
|
17528 | 16838 |
version_type=linux
|
17529 | 16839 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
17530 | 16840 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
17557 | 16867 |
fi
|
17558 | 16868 |
;;
|
17559 | 16869 |
|
|
16870 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
16871 |
version_type=freebsd-elf
|
|
16872 |
need_lib_prefix=no
|
|
16873 |
need_version=no
|
|
16874 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
16875 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
16876 |
shlibpath_var=LD_LIBRARY_PATH
|
|
16877 |
hardcode_into_libs=yes
|
|
16878 |
if test "$with_gnu_ld" = yes; then
|
|
16879 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
16880 |
shlibpath_overrides_runpath=no
|
|
16881 |
else
|
|
16882 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
16883 |
shlibpath_overrides_runpath=yes
|
|
16884 |
case $host_os in
|
|
16885 |
sco3.2v5*)
|
|
16886 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
16887 |
;;
|
|
16888 |
esac
|
|
16889 |
fi
|
|
16890 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
16891 |
;;
|
|
16892 |
|
17560 | 16893 |
uts4*)
|
17561 | 16894 |
version_type=linux
|
17562 | 16895 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
17571 | 16904 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
17572 | 16905 |
echo "${ECHO_T}$dynamic_linker" >&6
|
17573 | 16906 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
16907 |
|
|
16908 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
16909 |
if test "$GCC" = yes; then
|
|
16910 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
16911 |
fi
|
17574 | 16912 |
|
17575 | 16913 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
17576 | 16914 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
|
17609 | 16947 |
enable_fast_install=needless
|
17610 | 16948 |
fi
|
17611 | 16949 |
|
17612 | |
striplib=
|
17613 | |
old_striplib=
|
17614 | |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
17615 | |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
17616 | |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
17617 | |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
17618 | |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
17619 | |
echo "$as_me:$LINENO: result: yes" >&5
|
17620 | |
echo "${ECHO_T}yes" >&6
|
17621 | |
else
|
17622 | |
# FIXME - insert some real tests, host_os isn't really good enough
|
17623 | |
case $host_os in
|
17624 | |
darwin*)
|
17625 | |
if test -n "$STRIP" ; then
|
17626 | |
striplib="$STRIP -x"
|
17627 | |
echo "$as_me:$LINENO: result: yes" >&5
|
17628 | |
echo "${ECHO_T}yes" >&6
|
17629 | |
else
|
17630 | |
echo "$as_me:$LINENO: result: no" >&5
|
17631 | |
echo "${ECHO_T}no" >&6
|
17632 | |
fi
|
17633 | |
;;
|
17634 | |
*)
|
17635 | |
echo "$as_me:$LINENO: result: no" >&5
|
17636 | |
echo "${ECHO_T}no" >&6
|
17637 | |
;;
|
17638 | |
esac
|
17639 | |
fi
|
17640 | |
|
17641 | |
|
17642 | 16950 |
|
17643 | 16951 |
# The else clause should only fire when bootstrapping the
|
17644 | 16952 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
17653 | 16961 |
# Now quote all the things that may contain metacharacters while being
|
17654 | 16962 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
17655 | 16963 |
# variables and quote the copies for generation of the libtool script.
|
17656 | |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
|
16964 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
17657 | 16965 |
SED SHELL STRIP \
|
17658 | 16966 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
17659 | 16967 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
17771 | 17079 |
# A C compiler.
|
17772 | 17080 |
LTCC=$lt_LTCC
|
17773 | 17081 |
|
|
17082 |
# LTCC compiler flags.
|
|
17083 |
LTCFLAGS=$lt_LTCFLAGS
|
|
17084 |
|
17774 | 17085 |
# A language-specific compiler.
|
17775 | 17086 |
CC=$lt_compiler_F77
|
17776 | 17087 |
|
|
18081 | 17392 |
# If no C compiler was specified, use CC.
|
18082 | 17393 |
LTCC=${LTCC-"$CC"}
|
18083 | 17394 |
|
|
17395 |
# If no C compiler flags were specified, use CFLAGS.
|
|
17396 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
17397 |
|
18084 | 17398 |
# Allow CC to be a program name with arguments.
|
18085 | 17399 |
compiler=$CC
|
18086 | 17400 |
|
|
18088 | 17402 |
# save warnings/boilerplate of simple test code
|
18089 | 17403 |
ac_outfile=conftest.$ac_objext
|
18090 | 17404 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
18091 | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
17405 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
18092 | 17406 |
_lt_compiler_boilerplate=`cat conftest.err`
|
18093 | 17407 |
$rm conftest*
|
18094 | 17408 |
|
18095 | 17409 |
ac_outfile=conftest.$ac_objext
|
18096 | 17410 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
18097 | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
17411 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
18098 | 17412 |
_lt_linker_boilerplate=`cat conftest.err`
|
18099 | 17413 |
$rm conftest*
|
18100 | 17414 |
|
|
18145 | 17459 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
18146 | 17460 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
18147 | 17461 |
-e 's:$: $lt_compiler_flag:'`
|
18148 | |
(eval echo "\"\$as_me:18149: $lt_compile\"" >&5)
|
|
17462 |
(eval echo "\"\$as_me:17463: $lt_compile\"" >&5)
|
18149 | 17463 |
(eval "$lt_compile" 2>conftest.err)
|
18150 | 17464 |
ac_status=$?
|
18151 | 17465 |
cat conftest.err >&5
|
18152 | |
echo "$as_me:18153: \$? = $ac_status" >&5
|
|
17466 |
echo "$as_me:17467: \$? = $ac_status" >&5
|
18153 | 17467 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
18154 | 17468 |
# The compiler can only warn and ignore the option if not recognized
|
18155 | 17469 |
# So say no if there are warnings other than the usual output.
|
18156 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
18157 | |
$SED '/^$/d' conftest.err >conftest.er2
|
18158 | |
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
|
17470 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
17471 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
17472 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
18159 | 17473 |
lt_cv_prog_compiler_rtti_exceptions=yes
|
18160 | 17474 |
fi
|
18161 | 17475 |
fi
|
|
18214 | 17528 |
# PIC is the default on this platform
|
18215 | 17529 |
# Common symbols not allowed in MH_DYLIB files
|
18216 | 17530 |
lt_prog_compiler_pic_GCJ='-fno-common'
|
|
17531 |
;;
|
|
17532 |
|
|
17533 |
interix3*)
|
|
17534 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
|
17535 |
# Instead, we relocate shared libraries at runtime.
|
18217 | 17536 |
;;
|
18218 | 17537 |
|
18219 | 17538 |
msdosdjgpp*)
|
|
18330 | 17649 |
lt_prog_compiler_static_GCJ='-non_shared'
|
18331 | 17650 |
;;
|
18332 | 17651 |
|
18333 | |
sco3.2v5*)
|
18334 | |
lt_prog_compiler_pic_GCJ='-Kpic'
|
18335 | |
lt_prog_compiler_static_GCJ='-dn'
|
18336 | |
;;
|
18337 | |
|
18338 | 17652 |
solaris*)
|
18339 | 17653 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
18340 | 17654 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
18352 | 17666 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
18353 | 17667 |
;;
|
18354 | 17668 |
|
18355 | |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
17669 |
sysv4 | sysv4.2uw2* | sysv4.3*)
|
18356 | 17670 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
18357 | 17671 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
18358 | 17672 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
|
18363 | 17677 |
lt_prog_compiler_pic_GCJ='-Kconform_pic'
|
18364 | 17678 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
18365 | 17679 |
fi
|
|
17680 |
;;
|
|
17681 |
|
|
17682 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
|
17683 |
lt_prog_compiler_wl_GCJ='-Wl,'
|
|
17684 |
lt_prog_compiler_pic_GCJ='-KPIC'
|
|
17685 |
lt_prog_compiler_static_GCJ='-Bstatic'
|
18366 | 17686 |
;;
|
18367 | 17687 |
|
18368 | 17688 |
unicos*)
|
|
18407 | 17727 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
18408 | 17728 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
18409 | 17729 |
-e 's:$: $lt_compiler_flag:'`
|
18410 | |
(eval echo "\"\$as_me:18411: $lt_compile\"" >&5)
|
|
17730 |
(eval echo "\"\$as_me:17731: $lt_compile\"" >&5)
|
18411 | 17731 |
(eval "$lt_compile" 2>conftest.err)
|
18412 | 17732 |
ac_status=$?
|
18413 | 17733 |
cat conftest.err >&5
|
18414 | |
echo "$as_me:18415: \$? = $ac_status" >&5
|
|
17734 |
echo "$as_me:17735: \$? = $ac_status" >&5
|
18415 | 17735 |
if (exit $ac_status) && test -s "$ac_outfile"; then
|
18416 | 17736 |
# The compiler can only warn and ignore the option if not recognized
|
18417 | 17737 |
# So say no if there are warnings other than the usual output.
|
18418 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
|
18419 | |
$SED '/^$/d' conftest.err >conftest.er2
|
18420 | |
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
|
|
17738 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
|
|
17739 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
17740 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
18421 | 17741 |
lt_prog_compiler_pic_works_GCJ=yes
|
18422 | 17742 |
fi
|
18423 | 17743 |
fi
|
|
18448 | 17768 |
;;
|
18449 | 17769 |
esac
|
18450 | 17770 |
|
|
17771 |
#
|
|
17772 |
# Check to make sure the static flag actually works.
|
|
17773 |
#
|
|
17774 |
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
|
|
17775 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
|
17776 |
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
|
|
17777 |
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
|
|
17778 |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
17779 |
else
|
|
17780 |
lt_prog_compiler_static_works_GCJ=no
|
|
17781 |
save_LDFLAGS="$LDFLAGS"
|
|
17782 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
|
17783 |
printf "$lt_simple_link_test_code" > conftest.$ac_ext
|
|
17784 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
|
17785 |
# The linker can only warn and ignore the option if not recognized
|
|
17786 |
# So say no if there are warnings
|
|
17787 |
if test -s conftest.err; then
|
|
17788 |
# Append any errors to the config.log.
|
|
17789 |
cat conftest.err 1>&5
|
|
17790 |
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
|
|
17791 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
|
17792 |
if diff conftest.exp conftest.er2 >/dev/null; then
|
|
17793 |
lt_prog_compiler_static_works_GCJ=yes
|
|
17794 |
fi
|
|
17795 |
else
|
|
17796 |
lt_prog_compiler_static_works_GCJ=yes
|
|
17797 |
fi
|
|
17798 |
fi
|
|
17799 |
$rm conftest*
|
|
17800 |
LDFLAGS="$save_LDFLAGS"
|
|
17801 |
|
|
17802 |
fi
|
|
17803 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
|
|
17804 |
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
|
|
17805 |
|
|
17806 |
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
|
|
17807 |
:
|
|
17808 |
else
|
|
17809 |
lt_prog_compiler_static_GCJ=
|
|
17810 |
fi
|
|
17811 |
|
|
17812 |
|
18451 | 17813 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
|
18452 | 17814 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
|
18453 | 17815 |
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
|
|
18469 | 17831 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
18470 | 17832 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
18471 | 17833 |
-e 's:$: $lt_compiler_flag:'`
|
18472 | |
(eval echo "\"\$as_me:18473: $lt_compile\"" >&5)
|
|
17834 |
(eval echo "\"\$as_me:17835: $lt_compile\"" >&5)
|
18473 | 17835 |
(eval "$lt_compile" 2>out/conftest.err)
|
18474 | 17836 |
ac_status=$?
|
18475 | 17837 |
cat out/conftest.err >&5
|
18476 | |
echo "$as_me:18477: \$? = $ac_status" >&5
|
|
17838 |
echo "$as_me:17839: \$? = $ac_status" >&5
|
18477 | 17839 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
18478 | 17840 |
then
|
18479 | 17841 |
# The compiler can only warn and ignore the option if not recognized
|
18480 | 17842 |
# So say no if there are warnings
|
18481 | |
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
|
18482 | |
$SED '/^$/d' out/conftest.err >out/conftest.er2
|
18483 | |
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
|
17843 |
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
|
|
17844 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
|
17845 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
18484 | 17846 |
lt_cv_prog_compiler_c_o_GCJ=yes
|
18485 | 17847 |
fi
|
18486 | 17848 |
fi
|
|
18580 | 17942 |
with_gnu_ld=no
|
18581 | 17943 |
fi
|
18582 | 17944 |
;;
|
|
17945 |
interix*)
|
|
17946 |
# we just hope/assume this is gcc and not c89 (= MSVC++)
|
|
17947 |
with_gnu_ld=yes
|
|
17948 |
;;
|
18583 | 17949 |
openbsd*)
|
18584 | 17950 |
with_gnu_ld=no
|
18585 | 17951 |
;;
|
|
18664 | 18030 |
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
18665 | 18031 |
|
18666 | 18032 |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
18667 | |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
18033 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
18668 | 18034 |
# If the export-symbols file already is a .def file (1st line
|
18669 | 18035 |
# is EXPORTS), use it as is; otherwise, prepend...
|
18670 | 18036 |
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
|
|
18673 | 18039 |
echo EXPORTS > $output_objdir/$soname.def;
|
18674 | 18040 |
cat $export_symbols >> $output_objdir/$soname.def;
|
18675 | 18041 |
fi~
|
18676 | |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
|
18042 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
18677 | 18043 |
else
|
18678 | 18044 |
ld_shlibs_GCJ=no
|
18679 | 18045 |
fi
|
|
18046 |
;;
|
|
18047 |
|
|
18048 |
interix3*)
|
|
18049 |
hardcode_direct_GCJ=no
|
|
18050 |
hardcode_shlibpath_var_GCJ=no
|
|
18051 |
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
|
|
18052 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
18053 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
|
18054 |
# Instead, shared libraries are loaded at an image base (0x10000000 by
|
|
18055 |
# default) and relocated if they conflict, which is a slow very memory
|
|
18056 |
# consuming and fragmenting process. To avoid this, we pick a random,
|
|
18057 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
|
18058 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
|
18059 |
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
|
18060 |
archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
18680 | 18061 |
;;
|
18681 | 18062 |
|
18682 | 18063 |
linux*)
|
|
18720 | 18101 |
fi
|
18721 | 18102 |
;;
|
18722 | 18103 |
|
18723 | |
solaris* | sysv5*)
|
|
18104 |
solaris*)
|
18724 | 18105 |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
|
18725 | 18106 |
ld_shlibs_GCJ=no
|
18726 | 18107 |
cat <<EOF 1>&2
|
|
18739 | 18120 |
else
|
18740 | 18121 |
ld_shlibs_GCJ=no
|
18741 | 18122 |
fi
|
|
18123 |
;;
|
|
18124 |
|
|
18125 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
|
18126 |
case `$LD -v 2>&1` in
|
|
18127 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
|
18128 |
ld_shlibs_GCJ=no
|
|
18129 |
cat <<_LT_EOF 1>&2
|
|
18130 |
|
|
18131 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
|
|
18132 |
*** reliably create shared libraries on SCO systems. Therefore, libtool
|
|
18133 |
*** is disabling shared libraries support. We urge you to upgrade GNU
|
|
18134 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
|
18135 |
*** your PATH or compiler configuration so that the native linker is
|
|
18136 |
*** used, and then restart.
|
|
18137 |
|
|
18138 |
_LT_EOF
|
|
18139 |
;;
|
|
18140 |
*)
|
|
18141 |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
|
18142 |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
|
|
18143 |
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
|
|
18144 |
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
|
|
18145 |
else
|
|
18146 |
ld_shlibs_GCJ=no
|
|
18147 |
fi
|
|
18148 |
;;
|
|
18149 |
esac
|
18742 | 18150 |
;;
|
18743 | 18151 |
|
18744 | 18152 |
sunos4*)
|
|
18774 | 18182 |
# Note: this linker hardcodes the directories in LIBPATH if there
|
18775 | 18183 |
# are no directories specified by -L.
|
18776 | 18184 |
hardcode_minus_L_GCJ=yes
|
18777 | |
if test "$GCC" = yes && test -z "$link_static_flag"; then
|
|
18185 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
|
18778 | 18186 |
# Neither direct hardcoding nor static linking is supported with a
|
18779 | 18187 |
# broken collect2.
|
18780 | 18188 |
hardcode_direct_GCJ=unsupported
|
|
18808 | 18216 |
break
|
18809 | 18217 |
fi
|
18810 | 18218 |
done
|
|
18219 |
;;
|
18811 | 18220 |
esac
|
18812 | 18221 |
|
18813 | 18222 |
exp_sym_flag='-bexport'
|
|
18845 | 18254 |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
18846 | 18255 |
hardcode_libdir_separator_GCJ=
|
18847 | 18256 |
fi
|
|
18257 |
;;
|
18848 | 18258 |
esac
|
18849 | 18259 |
shared_flag='-shared'
|
18850 | 18260 |
if test "$aix_use_runtimelinking" = yes; then
|
|
18857 | 18267 |
# chokes on -Wl,-G. The following line is correct:
|
18858 | 18268 |
shared_flag='-G'
|
18859 | 18269 |
else
|
18860 | |
if test "$aix_use_runtimelinking" = yes; then
|
|
18270 |
if test "$aix_use_runtimelinking" = yes; then
|
18861 | 18271 |
shared_flag='${wl}-G'
|
18862 | 18272 |
else
|
18863 | 18273 |
shared_flag='${wl}-bM:SRE'
|
18864 | |
fi
|
|
18274 |
fi
|
18865 | 18275 |
fi
|
18866 | 18276 |
fi
|
18867 | 18277 |
|
|
18926 | 18336 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
18927 | 18337 |
|
18928 | 18338 |
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
|
18929 | |
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
|
18339 |
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
|
18930 | 18340 |
else
|
18931 | 18341 |
if test "$host_cpu" = ia64; then
|
18932 | 18342 |
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
|
18933 | 18343 |
allow_undefined_flag_GCJ="-z nodefs"
|
18934 | |
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
|
|
18344 |
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
|
18935 | 18345 |
else
|
18936 | 18346 |
# Determine the default libpath from the value encoded in an empty executable.
|
18937 | 18347 |
cat >conftest.$ac_ext <<_ACEOF
|
|
18991 | 18401 |
# -berok will link without error, but may produce a broken library.
|
18992 | 18402 |
no_undefined_flag_GCJ=' ${wl}-bernotok'
|
18993 | 18403 |
allow_undefined_flag_GCJ=' ${wl}-berok'
|
18994 | |
# -bexpall does not export symbols beginning with underscore (_)
|
18995 | |
always_export_symbols_GCJ=yes
|
18996 | 18404 |
# Exported symbols can be pulled into shared objects from archives
|
18997 | |
whole_archive_flag_spec_GCJ=' '
|
|
18405 |
whole_archive_flag_spec_GCJ='$convenience'
|
18998 | 18406 |
archive_cmds_need_lc_GCJ=yes
|
18999 | 18407 |
# This is similar to how AIX traditionally builds its shared libraries.
|
19000 | |
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
|
18408 |
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
|
19001 | 18409 |
fi
|
19002 | 18410 |
fi
|
19003 | 18411 |
;;
|
|
19138 | 18546 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
19139 | 18547 |
;;
|
19140 | 18548 |
|
19141 | |
hpux10* | hpux11*)
|
|
18549 |
hpux10*)
|
|
18550 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
|
18551 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
18552 |
else
|
|
18553 |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
18554 |
fi
|
|
18555 |
if test "$with_gnu_ld" = no; then
|
|
18556 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
|
18557 |
hardcode_libdir_separator_GCJ=:
|
|
18558 |
|
|
18559 |
hardcode_direct_GCJ=yes
|
|
18560 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
|
18561 |
|
|
18562 |
# hardcode_minus_L: Not really in the search PATH,
|
|
18563 |
# but as the default location of the library.
|
|
18564 |
hardcode_minus_L_GCJ=yes
|
|
18565 |
fi
|
|
18566 |
;;
|
|
18567 |
|
|
18568 |
hpux11*)
|
19142 | 18569 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
|
19143 | 18570 |
case $host_cpu in
|
19144 | |
hppa*64*|ia64*)
|
|
18571 |
hppa*64*)
|
19145 | 18572 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18573 |
;;
|
|
18574 |
ia64*)
|
|
18575 |
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
19146 | 18576 |
;;
|
19147 | 18577 |
*)
|
19148 | 18578 |
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
|
19150 | 18580 |
esac
|
19151 | 18581 |
else
|
19152 | 18582 |
case $host_cpu in
|
19153 | |
hppa*64*|ia64*)
|
19154 | |
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
|
|
18583 |
hppa*64*)
|
|
18584 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18585 |
;;
|
|
18586 |
ia64*)
|
|
18587 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
19155 | 18588 |
;;
|
19156 | 18589 |
*)
|
19157 | |
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
|
18590 |
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
19158 | 18591 |
;;
|
19159 | 18592 |
esac
|
19160 | 18593 |
fi
|
19161 | 18594 |
if test "$with_gnu_ld" = no; then
|
|
18595 |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
|
18596 |
hardcode_libdir_separator_GCJ=:
|
|
18597 |
|
19162 | 18598 |
case $host_cpu in
|
19163 | |
hppa*64*)
|
19164 | |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
|
18599 |
hppa*64*|ia64*)
|
19165 | 18600 |
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
|
19166 | |
hardcode_libdir_separator_GCJ=:
|
19167 | 18601 |
hardcode_direct_GCJ=no
|
19168 | 18602 |
hardcode_shlibpath_var_GCJ=no
|
19169 | 18603 |
;;
|
19170 | |
ia64*)
|
19171 | |
hardcode_libdir_flag_spec_GCJ='-L$libdir'
|
19172 | |
hardcode_direct_GCJ=no
|
19173 | |
hardcode_shlibpath_var_GCJ=no
|
19174 | |
|
19175 | |
# hardcode_minus_L: Not really in the search PATH,
|
19176 | |
# but as the default location of the library.
|
19177 | |
hardcode_minus_L_GCJ=yes
|
19178 | |
;;
|
19179 | 18604 |
*)
|
19180 | |
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
|
19181 | |
hardcode_libdir_separator_GCJ=:
|
19182 | 18605 |
hardcode_direct_GCJ=yes
|
19183 | 18606 |
export_dynamic_flag_spec_GCJ='${wl}-E'
|
19184 | 18607 |
|
|
19278 | 18701 |
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
|
19279 | 18702 |
fi
|
19280 | 18703 |
hardcode_libdir_separator_GCJ=:
|
19281 | |
;;
|
19282 | |
|
19283 | |
sco3.2v5*)
|
19284 | |
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
19285 | |
hardcode_shlibpath_var_GCJ=no
|
19286 | |
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
|
19287 | |
runpath_var=LD_RUN_PATH
|
19288 | |
hardcode_runpath_var=yes
|
19289 | 18704 |
;;
|
19290 | 18705 |
|
19291 | 18706 |
solaris*)
|
|
19373 | 18788 |
fi
|
19374 | 18789 |
;;
|
19375 | 18790 |
|
19376 | |
sysv4.2uw2*)
|
19377 | |
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
19378 | |
hardcode_direct_GCJ=yes
|
19379 | |
hardcode_minus_L_GCJ=no
|
19380 | |
hardcode_shlibpath_var_GCJ=no
|
19381 | |
hardcode_runpath_var=yes
|
19382 | |
runpath_var=LD_RUN_PATH
|
19383 | |
;;
|
19384 | |
|
19385 | |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
|
19386 | |
no_undefined_flag_GCJ='${wl}-z ${wl}text'
|
19387 | |
if test "$GCC" = yes; then
|
19388 | |
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
19389 | |
else
|
19390 | |
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
19391 | |
fi
|
19392 | |
runpath_var='LD_RUN_PATH'
|
19393 | |
hardcode_shlibpath_var_GCJ=no
|
19394 | |
;;
|
19395 | |
|
19396 | |
sysv5*)
|
19397 | |
no_undefined_flag_GCJ=' -z text'
|
19398 | |
# $CC -shared without GNU ld will not create a library from C++
|
19399 | |
# object files and a static libstdc++, better avoid it by now
|
19400 | |
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
19401 | |
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
|
19402 | |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
|
19403 | |
hardcode_libdir_flag_spec_GCJ=
|
|
18791 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
|
|
18792 |
no_undefined_flag_GCJ='${wl}-z,text'
|
|
18793 |
archive_cmds_need_lc_GCJ=no
|
19404 | 18794 |
hardcode_shlibpath_var_GCJ=no
|
19405 | 18795 |
runpath_var='LD_RUN_PATH'
|
|
18796 |
|
|
18797 |
if test "$GCC" = yes; then
|
|
18798 |
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18799 |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18800 |
else
|
|
18801 |
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18802 |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18803 |
fi
|
|
18804 |
;;
|
|
18805 |
|
|
18806 |
sysv5* | sco3.2v5* | sco5v6*)
|
|
18807 |
# Note: We can NOT use -z defs as we might desire, because we do not
|
|
18808 |
# link with -lc, and that would cause any symbols used from libc to
|
|
18809 |
# always be unresolved, which means just about no library would
|
|
18810 |
# ever link correctly. If we're not using GNU ld we use -z text
|
|
18811 |
# though, which does catch some bad symbols but isn't as heavy-handed
|
|
18812 |
# as -z defs.
|
|
18813 |
no_undefined_flag_GCJ='${wl}-z,text'
|
|
18814 |
allow_undefined_flag_GCJ='${wl}-z,nodefs'
|
|
18815 |
archive_cmds_need_lc_GCJ=no
|
|
18816 |
hardcode_shlibpath_var_GCJ=no
|
|
18817 |
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
|
|
18818 |
hardcode_libdir_separator_GCJ=':'
|
|
18819 |
link_all_deplibs_GCJ=yes
|
|
18820 |
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
|
|
18821 |
runpath_var='LD_RUN_PATH'
|
|
18822 |
|
|
18823 |
if test "$GCC" = yes; then
|
|
18824 |
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18825 |
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18826 |
else
|
|
18827 |
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18828 |
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
|
|
18829 |
fi
|
19406 | 18830 |
;;
|
19407 | 18831 |
|
19408 | 18832 |
uts4*)
|
|
19420 | 18844 |
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
|
19421 | 18845 |
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
|
19422 | 18846 |
test "$ld_shlibs_GCJ" = no && can_build_shared=no
|
19423 | |
|
19424 | |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
19425 | |
if test "$GCC" = yes; then
|
19426 | |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
19427 | |
fi
|
19428 | 18847 |
|
19429 | 18848 |
#
|
19430 | 18849 |
# Do we need to explicitly link libc?
|
|
19458 | 18877 |
libobjs=conftest.$ac_objext
|
19459 | 18878 |
deplibs=
|
19460 | 18879 |
wl=$lt_prog_compiler_wl_GCJ
|
|
18880 |
pic_flag=$lt_prog_compiler_pic_GCJ
|
19461 | 18881 |
compiler_flags=-v
|
19462 | 18882 |
linker_flags=-v
|
19463 | 18883 |
verstring=
|
|
19776 | 19196 |
shlibpath_overrides_runpath=yes
|
19777 | 19197 |
hardcode_into_libs=yes
|
19778 | 19198 |
;;
|
19779 | |
*) # from 3.2 on
|
|
19199 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
|
19200 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
19780 | 19201 |
shlibpath_overrides_runpath=no
|
|
19202 |
hardcode_into_libs=yes
|
|
19203 |
;;
|
|
19204 |
freebsd*) # from 4.6 on
|
|
19205 |
shlibpath_overrides_runpath=yes
|
19781 | 19206 |
hardcode_into_libs=yes
|
19782 | 19207 |
;;
|
19783 | 19208 |
esac
|
|
19839 | 19264 |
postinstall_cmds='chmod 555 $lib'
|
19840 | 19265 |
;;
|
19841 | 19266 |
|
|
19267 |
interix3*)
|
|
19268 |
version_type=linux
|
|
19269 |
need_lib_prefix=no
|
|
19270 |
need_version=no
|
|
19271 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
19272 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
19273 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
|
19274 |
shlibpath_var=LD_LIBRARY_PATH
|
|
19275 |
shlibpath_overrides_runpath=no
|
|
19276 |
hardcode_into_libs=yes
|
|
19277 |
;;
|
|
19278 |
|
19842 | 19279 |
irix5* | irix6* | nonstopux*)
|
19843 | 19280 |
case $host_os in
|
19844 | 19281 |
nonstopux*) version_type=nonstopux ;;
|
|
19902 | 19339 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
19903 | 19340 |
fi
|
19904 | 19341 |
|
19905 | |
case $host_cpu:$lt_cv_cc_64bit_output in
|
19906 | |
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
|
19907 | |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
|
19908 | |
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
|
19909 | |
;;
|
19910 | |
esac
|
19911 | |
|
19912 | 19342 |
# We used to test for /lib/ld.so.1 and disable shared libraries on
|
19913 | 19343 |
# powerpc, because MkLinux only supported shared libraries with the
|
19914 | 19344 |
# GNU dynamic linker. Since this was broken with cross compilers,
|
|
19916 | 19346 |
# people can always --disable-shared, the test was removed, and we
|
19917 | 19347 |
# assume the GNU/Linux dynamic linker is in use.
|
19918 | 19348 |
dynamic_linker='GNU/Linux ld.so'
|
19919 | |
|
19920 | |
# Find out which ABI we are using (multilib Linux x86_64 hack).
|
19921 | |
libsuff=
|
19922 | |
case "$host_cpu" in
|
19923 | |
x86_64*)
|
19924 | |
echo '#line 19925 "configure"' > conftest.$ac_ext
|
19925 | |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
19926 | |
(eval $ac_compile) 2>&5
|
19927 | |
ac_status=$?
|
19928 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
19929 | |
(exit $ac_status); }; then
|
19930 | |
case `/usr/bin/file conftest.$ac_objext` in
|
19931 | |
*64-bit*)
|
19932 | |
libsuff=64
|
19933 | |
;;
|
19934 | |
esac
|
19935 | |
fi
|
19936 | |
rm -rf conftest*
|
19937 | |
;;
|
19938 | |
*)
|
19939 | |
;;
|
19940 | |
esac
|
19941 | |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
|
19942 | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
|
19943 | 19349 |
;;
|
19944 | 19350 |
|
19945 | 19351 |
knetbsd*-gnu)
|
|
19991 | 19397 |
|
19992 | 19398 |
openbsd*)
|
19993 | 19399 |
version_type=sunos
|
|
19400 |
sys_lib_dlsearch_path_spec="/usr/lib"
|
19994 | 19401 |
need_lib_prefix=no
|
19995 | 19402 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
19996 | 19403 |
case $host_os in
|
|
20034 | 19441 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
|
20035 | 19442 |
;;
|
20036 | 19443 |
|
20037 | |
sco3.2v5*)
|
20038 | |
version_type=osf
|
20039 | |
soname_spec='${libname}${release}${shared_ext}$major'
|
20040 | |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
20041 | |
shlibpath_var=LD_LIBRARY_PATH
|
20042 | |
;;
|
20043 | |
|
20044 | 19444 |
solaris*)
|
20045 | 19445 |
version_type=linux
|
20046 | 19446 |
need_lib_prefix=no
|
|
20066 | 19466 |
need_version=yes
|
20067 | 19467 |
;;
|
20068 | 19468 |
|
20069 | |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
|
19469 |
sysv4 | sysv4.3*)
|
20070 | 19470 |
version_type=linux
|
20071 | 19471 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
20072 | 19472 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
20099 | 19499 |
fi
|
20100 | 19500 |
;;
|
20101 | 19501 |
|
|
19502 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
19503 |
version_type=freebsd-elf
|
|
19504 |
need_lib_prefix=no
|
|
19505 |
need_version=no
|
|
19506 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
19507 |
soname_spec='${libname}${release}${shared_ext}$major'
|
|
19508 |
shlibpath_var=LD_LIBRARY_PATH
|
|
19509 |
hardcode_into_libs=yes
|
|
19510 |
if test "$with_gnu_ld" = yes; then
|
|
19511 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
|
19512 |
shlibpath_overrides_runpath=no
|
|
19513 |
else
|
|
19514 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
|
19515 |
shlibpath_overrides_runpath=yes
|
|
19516 |
case $host_os in
|
|
19517 |
sco3.2v5*)
|
|
19518 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
|
19519 |
;;
|
|
19520 |
esac
|
|
19521 |
fi
|
|
19522 |
sys_lib_dlsearch_path_spec='/usr/lib'
|
|
19523 |
;;
|
|
19524 |
|
20102 | 19525 |
uts4*)
|
20103 | 19526 |
version_type=linux
|
20104 | 19527 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
20113 | 19536 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
|
20114 | 19537 |
echo "${ECHO_T}$dynamic_linker" >&6
|
20115 | 19538 |
test "$dynamic_linker" = no && can_build_shared=no
|
|
19539 |
|
|
19540 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
|
19541 |
if test "$GCC" = yes; then
|
|
19542 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
|
19543 |
fi
|
20116 | 19544 |
|
20117 | 19545 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
|
20118 | 19546 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
|
|
20151 | 19579 |
enable_fast_install=needless
|
20152 | 19580 |
fi
|
20153 | 19581 |
|
20154 | |
striplib=
|
20155 | |
old_striplib=
|
20156 | |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
|
20157 | |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
|
20158 | |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
|
20159 | |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
20160 | |
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
20161 | |
echo "$as_me:$LINENO: result: yes" >&5
|
20162 | |
echo "${ECHO_T}yes" >&6
|
20163 | |
else
|
20164 | |
# FIXME - insert some real tests, host_os isn't really good enough
|
20165 | |
case $host_os in
|
20166 | |
darwin*)
|
20167 | |
if test -n "$STRIP" ; then
|
20168 | |
striplib="$STRIP -x"
|
20169 | |
echo "$as_me:$LINENO: result: yes" >&5
|
20170 | |
echo "${ECHO_T}yes" >&6
|
20171 | |
else
|
20172 | |
echo "$as_me:$LINENO: result: no" >&5
|
20173 | |
echo "${ECHO_T}no" >&6
|
20174 | |
fi
|
20175 | |
;;
|
20176 | |
*)
|
20177 | |
echo "$as_me:$LINENO: result: no" >&5
|
20178 | |
echo "${ECHO_T}no" >&6
|
20179 | |
;;
|
20180 | |
esac
|
20181 | |
fi
|
20182 | |
|
20183 | |
if test "x$enable_dlopen" != xyes; then
|
20184 | |
enable_dlopen=unknown
|
20185 | |
enable_dlopen_self=unknown
|
20186 | |
enable_dlopen_self_static=unknown
|
20187 | |
else
|
20188 | |
lt_cv_dlopen=no
|
20189 | |
lt_cv_dlopen_libs=
|
20190 | |
|
20191 | |
case $host_os in
|
20192 | |
beos*)
|
20193 | |
lt_cv_dlopen="load_add_on"
|
20194 | |
lt_cv_dlopen_libs=
|
20195 | |
lt_cv_dlopen_self=yes
|
20196 | |
;;
|
20197 | |
|
20198 | |
mingw* | pw32*)
|
20199 | |
lt_cv_dlopen="LoadLibrary"
|
20200 | |
lt_cv_dlopen_libs=
|
20201 | |
;;
|
20202 | |
|
20203 | |
cygwin*)
|
20204 | |
lt_cv_dlopen="dlopen"
|
20205 | |
lt_cv_dlopen_libs=
|
20206 | |
;;
|
20207 | |
|
20208 | |
darwin*)
|
20209 | |
# if libdl is installed we need to link against it
|
20210 | |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
20211 | |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
20212 | |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
20213 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20214 | |
else
|
20215 | |
ac_check_lib_save_LIBS=$LIBS
|
20216 | |
LIBS="-ldl $LIBS"
|
20217 | |
cat >conftest.$ac_ext <<_ACEOF
|
20218 | |
/* confdefs.h. */
|
20219 | |
_ACEOF
|
20220 | |
cat confdefs.h >>conftest.$ac_ext
|
20221 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20222 | |
/* end confdefs.h. */
|
20223 | |
|
20224 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
20225 | |
#ifdef __cplusplus
|
20226 | |
extern "C"
|
20227 | |
#endif
|
20228 | |
/* We use char because int might match the return type of a gcc2
|
20229 | |
builtin and then its argument prototype would still apply. */
|
20230 | |
char dlopen ();
|
20231 | |
int
|
20232 | |
main ()
|
20233 | |
{
|
20234 | |
dlopen ();
|
20235 | |
;
|
20236 | |
return 0;
|
20237 | |
}
|
20238 | |
_ACEOF
|
20239 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20240 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20241 | |
(eval $ac_link) 2>conftest.er1
|
20242 | |
ac_status=$?
|
20243 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20244 | |
rm -f conftest.er1
|
20245 | |
cat conftest.err >&5
|
20246 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20247 | |
(exit $ac_status); } &&
|
20248 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
20249 | |
|| test ! -s conftest.err'
|
20250 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20251 | |
(eval $ac_try) 2>&5
|
20252 | |
ac_status=$?
|
20253 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20254 | |
(exit $ac_status); }; } &&
|
20255 | |
{ ac_try='test -s conftest$ac_exeext'
|
20256 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20257 | |
(eval $ac_try) 2>&5
|
20258 | |
ac_status=$?
|
20259 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20260 | |
(exit $ac_status); }; }; then
|
20261 | |
ac_cv_lib_dl_dlopen=yes
|
20262 | |
else
|
20263 | |
echo "$as_me: failed program was:" >&5
|
20264 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20265 | |
|
20266 | |
ac_cv_lib_dl_dlopen=no
|
20267 | |
fi
|
20268 | |
rm -f conftest.err conftest.$ac_objext \
|
20269 | |
conftest$ac_exeext conftest.$ac_ext
|
20270 | |
LIBS=$ac_check_lib_save_LIBS
|
20271 | |
fi
|
20272 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
20273 | |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
20274 | |
if test $ac_cv_lib_dl_dlopen = yes; then
|
20275 | |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
20276 | |
else
|
20277 | |
|
20278 | |
lt_cv_dlopen="dyld"
|
20279 | |
lt_cv_dlopen_libs=
|
20280 | |
lt_cv_dlopen_self=yes
|
20281 | |
|
20282 | |
fi
|
20283 | |
|
20284 | |
;;
|
20285 | |
|
20286 | |
*)
|
20287 | |
echo "$as_me:$LINENO: checking for shl_load" >&5
|
20288 | |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
|
20289 | |
if test "${ac_cv_func_shl_load+set}" = set; then
|
20290 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20291 | |
else
|
20292 | |
cat >conftest.$ac_ext <<_ACEOF
|
20293 | |
/* confdefs.h. */
|
20294 | |
_ACEOF
|
20295 | |
cat confdefs.h >>conftest.$ac_ext
|
20296 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20297 | |
/* end confdefs.h. */
|
20298 | |
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|
20299 | |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
20300 | |
#define shl_load innocuous_shl_load
|
20301 | |
|
20302 | |
/* System header to define __stub macros and hopefully few prototypes,
|
20303 | |
which can conflict with char shl_load (); below.
|
20304 | |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
20305 | |
<limits.h> exists even on freestanding compilers. */
|
20306 | |
|
20307 | |
#ifdef __STDC__
|
20308 | |
# include <limits.h>
|
20309 | |
#else
|
20310 | |
# include <assert.h>
|
20311 | |
#endif
|
20312 | |
|
20313 | |
#undef shl_load
|
20314 | |
|
20315 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
20316 | |
#ifdef __cplusplus
|
20317 | |
extern "C"
|
20318 | |
{
|
20319 | |
#endif
|
20320 | |
/* We use char because int might match the return type of a gcc2
|
20321 | |
builtin and then its argument prototype would still apply. */
|
20322 | |
char shl_load ();
|
20323 | |
/* The GNU C library defines this for functions which it implements
|
20324 | |
to always fail with ENOSYS. Some functions are actually named
|
20325 | |
something starting with __ and the normal name is an alias. */
|
20326 | |
#if defined (__stub_shl_load) || defined (__stub___shl_load)
|
20327 | |
choke me
|
20328 | |
#else
|
20329 | |
char (*f) () = shl_load;
|
20330 | |
#endif
|
20331 | |
#ifdef __cplusplus
|
20332 | |
}
|
20333 | |
#endif
|
20334 | |
|
20335 | |
int
|
20336 | |
main ()
|
20337 | |
{
|
20338 | |
return f != shl_load;
|
20339 | |
;
|
20340 | |
return 0;
|
20341 | |
}
|
20342 | |
_ACEOF
|
20343 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20344 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20345 | |
(eval $ac_link) 2>conftest.er1
|
20346 | |
ac_status=$?
|
20347 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20348 | |
rm -f conftest.er1
|
20349 | |
cat conftest.err >&5
|
20350 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20351 | |
(exit $ac_status); } &&
|
20352 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
20353 | |
|| test ! -s conftest.err'
|
20354 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20355 | |
(eval $ac_try) 2>&5
|
20356 | |
ac_status=$?
|
20357 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20358 | |
(exit $ac_status); }; } &&
|
20359 | |
{ ac_try='test -s conftest$ac_exeext'
|
20360 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20361 | |
(eval $ac_try) 2>&5
|
20362 | |
ac_status=$?
|
20363 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20364 | |
(exit $ac_status); }; }; then
|
20365 | |
ac_cv_func_shl_load=yes
|
20366 | |
else
|
20367 | |
echo "$as_me: failed program was:" >&5
|
20368 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20369 | |
|
20370 | |
ac_cv_func_shl_load=no
|
20371 | |
fi
|
20372 | |
rm -f conftest.err conftest.$ac_objext \
|
20373 | |
conftest$ac_exeext conftest.$ac_ext
|
20374 | |
fi
|
20375 | |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
|
20376 | |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
|
20377 | |
if test $ac_cv_func_shl_load = yes; then
|
20378 | |
lt_cv_dlopen="shl_load"
|
20379 | |
else
|
20380 | |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
|
20381 | |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
|
20382 | |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
|
20383 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20384 | |
else
|
20385 | |
ac_check_lib_save_LIBS=$LIBS
|
20386 | |
LIBS="-ldld $LIBS"
|
20387 | |
cat >conftest.$ac_ext <<_ACEOF
|
20388 | |
/* confdefs.h. */
|
20389 | |
_ACEOF
|
20390 | |
cat confdefs.h >>conftest.$ac_ext
|
20391 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20392 | |
/* end confdefs.h. */
|
20393 | |
|
20394 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
20395 | |
#ifdef __cplusplus
|
20396 | |
extern "C"
|
20397 | |
#endif
|
20398 | |
/* We use char because int might match the return type of a gcc2
|
20399 | |
builtin and then its argument prototype would still apply. */
|
20400 | |
char shl_load ();
|
20401 | |
int
|
20402 | |
main ()
|
20403 | |
{
|
20404 | |
shl_load ();
|
20405 | |
;
|
20406 | |
return 0;
|
20407 | |
}
|
20408 | |
_ACEOF
|
20409 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20410 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20411 | |
(eval $ac_link) 2>conftest.er1
|
20412 | |
ac_status=$?
|
20413 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20414 | |
rm -f conftest.er1
|
20415 | |
cat conftest.err >&5
|
20416 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20417 | |
(exit $ac_status); } &&
|
20418 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
20419 | |
|| test ! -s conftest.err'
|
20420 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20421 | |
(eval $ac_try) 2>&5
|
20422 | |
ac_status=$?
|
20423 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20424 | |
(exit $ac_status); }; } &&
|
20425 | |
{ ac_try='test -s conftest$ac_exeext'
|
20426 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20427 | |
(eval $ac_try) 2>&5
|
20428 | |
ac_status=$?
|
20429 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20430 | |
(exit $ac_status); }; }; then
|
20431 | |
ac_cv_lib_dld_shl_load=yes
|
20432 | |
else
|
20433 | |
echo "$as_me: failed program was:" >&5
|
20434 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20435 | |
|
20436 | |
ac_cv_lib_dld_shl_load=no
|
20437 | |
fi
|
20438 | |
rm -f conftest.err conftest.$ac_objext \
|
20439 | |
conftest$ac_exeext conftest.$ac_ext
|
20440 | |
LIBS=$ac_check_lib_save_LIBS
|
20441 | |
fi
|
20442 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
|
20443 | |
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
|
20444 | |
if test $ac_cv_lib_dld_shl_load = yes; then
|
20445 | |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
|
20446 | |
else
|
20447 | |
echo "$as_me:$LINENO: checking for dlopen" >&5
|
20448 | |
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
|
20449 | |
if test "${ac_cv_func_dlopen+set}" = set; then
|
20450 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20451 | |
else
|
20452 | |
cat >conftest.$ac_ext <<_ACEOF
|
20453 | |
/* confdefs.h. */
|
20454 | |
_ACEOF
|
20455 | |
cat confdefs.h >>conftest.$ac_ext
|
20456 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20457 | |
/* end confdefs.h. */
|
20458 | |
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
|
20459 | |
For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
20460 | |
#define dlopen innocuous_dlopen
|
20461 | |
|
20462 | |
/* System header to define __stub macros and hopefully few prototypes,
|
20463 | |
which can conflict with char dlopen (); below.
|
20464 | |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
20465 | |
<limits.h> exists even on freestanding compilers. */
|
20466 | |
|
20467 | |
#ifdef __STDC__
|
20468 | |
# include <limits.h>
|
20469 | |
#else
|
20470 | |
# include <assert.h>
|
20471 | |
#endif
|
20472 | |
|
20473 | |
#undef dlopen
|
20474 | |
|
20475 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
20476 | |
#ifdef __cplusplus
|
20477 | |
extern "C"
|
20478 | |
{
|
20479 | |
#endif
|
20480 | |
/* We use char because int might match the return type of a gcc2
|
20481 | |
builtin and then its argument prototype would still apply. */
|
20482 | |
char dlopen ();
|
20483 | |
/* The GNU C library defines this for functions which it implements
|
20484 | |
to always fail with ENOSYS. Some functions are actually named
|
20485 | |
something starting with __ and the normal name is an alias. */
|
20486 | |
#if defined (__stub_dlopen) || defined (__stub___dlopen)
|
20487 | |
choke me
|
20488 | |
#else
|
20489 | |
char (*f) () = dlopen;
|
20490 | |
#endif
|
20491 | |
#ifdef __cplusplus
|
20492 | |
}
|
20493 | |
#endif
|
20494 | |
|
20495 | |
int
|
20496 | |
main ()
|
20497 | |
{
|
20498 | |
return f != dlopen;
|
20499 | |
;
|
20500 | |
return 0;
|
20501 | |
}
|
20502 | |
_ACEOF
|
20503 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20504 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20505 | |
(eval $ac_link) 2>conftest.er1
|
20506 | |
ac_status=$?
|
20507 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20508 | |
rm -f conftest.er1
|
20509 | |
cat conftest.err >&5
|
20510 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20511 | |
(exit $ac_status); } &&
|
20512 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
20513 | |
|| test ! -s conftest.err'
|
20514 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20515 | |
(eval $ac_try) 2>&5
|
20516 | |
ac_status=$?
|
20517 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20518 | |
(exit $ac_status); }; } &&
|
20519 | |
{ ac_try='test -s conftest$ac_exeext'
|
20520 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20521 | |
(eval $ac_try) 2>&5
|
20522 | |
ac_status=$?
|
20523 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20524 | |
(exit $ac_status); }; }; then
|
20525 | |
ac_cv_func_dlopen=yes
|
20526 | |
else
|
20527 | |
echo "$as_me: failed program was:" >&5
|
20528 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20529 | |
|
20530 | |
ac_cv_func_dlopen=no
|
20531 | |
fi
|
20532 | |
rm -f conftest.err conftest.$ac_objext \
|
20533 | |
conftest$ac_exeext conftest.$ac_ext
|
20534 | |
fi
|
20535 | |
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
|
20536 | |
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
|
20537 | |
if test $ac_cv_func_dlopen = yes; then
|
20538 | |
lt_cv_dlopen="dlopen"
|
20539 | |
else
|
20540 | |
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
|
20541 | |
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
|
20542 | |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
|
20543 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20544 | |
else
|
20545 | |
ac_check_lib_save_LIBS=$LIBS
|
20546 | |
LIBS="-ldl $LIBS"
|
20547 | |
cat >conftest.$ac_ext <<_ACEOF
|
20548 | |
/* confdefs.h. */
|
20549 | |
_ACEOF
|
20550 | |
cat confdefs.h >>conftest.$ac_ext
|
20551 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20552 | |
/* end confdefs.h. */
|
20553 | |
|
20554 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
20555 | |
#ifdef __cplusplus
|
20556 | |
extern "C"
|
20557 | |
#endif
|
20558 | |
/* We use char because int might match the return type of a gcc2
|
20559 | |
builtin and then its argument prototype would still apply. */
|
20560 | |
char dlopen ();
|
20561 | |
int
|
20562 | |
main ()
|
20563 | |
{
|
20564 | |
dlopen ();
|
20565 | |
;
|
20566 | |
return 0;
|
20567 | |
}
|
20568 | |
_ACEOF
|
20569 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20570 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20571 | |
(eval $ac_link) 2>conftest.er1
|
20572 | |
ac_status=$?
|
20573 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20574 | |
rm -f conftest.er1
|
20575 | |
cat conftest.err >&5
|
20576 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20577 | |
(exit $ac_status); } &&
|
20578 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
20579 | |
|| test ! -s conftest.err'
|
20580 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20581 | |
(eval $ac_try) 2>&5
|
20582 | |
ac_status=$?
|
20583 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20584 | |
(exit $ac_status); }; } &&
|
20585 | |
{ ac_try='test -s conftest$ac_exeext'
|
20586 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20587 | |
(eval $ac_try) 2>&5
|
20588 | |
ac_status=$?
|
20589 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20590 | |
(exit $ac_status); }; }; then
|
20591 | |
ac_cv_lib_dl_dlopen=yes
|
20592 | |
else
|
20593 | |
echo "$as_me: failed program was:" >&5
|
20594 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20595 | |
|
20596 | |
ac_cv_lib_dl_dlopen=no
|
20597 | |
fi
|
20598 | |
rm -f conftest.err conftest.$ac_objext \
|
20599 | |
conftest$ac_exeext conftest.$ac_ext
|
20600 | |
LIBS=$ac_check_lib_save_LIBS
|
20601 | |
fi
|
20602 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
|
20603 | |
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
|
20604 | |
if test $ac_cv_lib_dl_dlopen = yes; then
|
20605 | |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
|
20606 | |
else
|
20607 | |
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
|
20608 | |
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
|
20609 | |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
|
20610 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20611 | |
else
|
20612 | |
ac_check_lib_save_LIBS=$LIBS
|
20613 | |
LIBS="-lsvld $LIBS"
|
20614 | |
cat >conftest.$ac_ext <<_ACEOF
|
20615 | |
/* confdefs.h. */
|
20616 | |
_ACEOF
|
20617 | |
cat confdefs.h >>conftest.$ac_ext
|
20618 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20619 | |
/* end confdefs.h. */
|
20620 | |
|
20621 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
20622 | |
#ifdef __cplusplus
|
20623 | |
extern "C"
|
20624 | |
#endif
|
20625 | |
/* We use char because int might match the return type of a gcc2
|
20626 | |
builtin and then its argument prototype would still apply. */
|
20627 | |
char dlopen ();
|
20628 | |
int
|
20629 | |
main ()
|
20630 | |
{
|
20631 | |
dlopen ();
|
20632 | |
;
|
20633 | |
return 0;
|
20634 | |
}
|
20635 | |
_ACEOF
|
20636 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20637 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20638 | |
(eval $ac_link) 2>conftest.er1
|
20639 | |
ac_status=$?
|
20640 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20641 | |
rm -f conftest.er1
|
20642 | |
cat conftest.err >&5
|
20643 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20644 | |
(exit $ac_status); } &&
|
20645 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
20646 | |
|| test ! -s conftest.err'
|
20647 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20648 | |
(eval $ac_try) 2>&5
|
20649 | |
ac_status=$?
|
20650 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20651 | |
(exit $ac_status); }; } &&
|
20652 | |
{ ac_try='test -s conftest$ac_exeext'
|
20653 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20654 | |
(eval $ac_try) 2>&5
|
20655 | |
ac_status=$?
|
20656 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20657 | |
(exit $ac_status); }; }; then
|
20658 | |
ac_cv_lib_svld_dlopen=yes
|
20659 | |
else
|
20660 | |
echo "$as_me: failed program was:" >&5
|
20661 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20662 | |
|
20663 | |
ac_cv_lib_svld_dlopen=no
|
20664 | |
fi
|
20665 | |
rm -f conftest.err conftest.$ac_objext \
|
20666 | |
conftest$ac_exeext conftest.$ac_ext
|
20667 | |
LIBS=$ac_check_lib_save_LIBS
|
20668 | |
fi
|
20669 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
|
20670 | |
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
|
20671 | |
if test $ac_cv_lib_svld_dlopen = yes; then
|
20672 | |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
|
20673 | |
else
|
20674 | |
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
|
20675 | |
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
|
20676 | |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
|
20677 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20678 | |
else
|
20679 | |
ac_check_lib_save_LIBS=$LIBS
|
20680 | |
LIBS="-ldld $LIBS"
|
20681 | |
cat >conftest.$ac_ext <<_ACEOF
|
20682 | |
/* confdefs.h. */
|
20683 | |
_ACEOF
|
20684 | |
cat confdefs.h >>conftest.$ac_ext
|
20685 | |
cat >>conftest.$ac_ext <<_ACEOF
|
20686 | |
/* end confdefs.h. */
|
20687 | |
|
20688 | |
/* Override any gcc2 internal prototype to avoid an error. */
|
20689 | |
#ifdef __cplusplus
|
20690 | |
extern "C"
|
20691 | |
#endif
|
20692 | |
/* We use char because int might match the return type of a gcc2
|
20693 | |
builtin and then its argument prototype would still apply. */
|
20694 | |
char dld_link ();
|
20695 | |
int
|
20696 | |
main ()
|
20697 | |
{
|
20698 | |
dld_link ();
|
20699 | |
;
|
20700 | |
return 0;
|
20701 | |
}
|
20702 | |
_ACEOF
|
20703 | |
rm -f conftest.$ac_objext conftest$ac_exeext
|
20704 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20705 | |
(eval $ac_link) 2>conftest.er1
|
20706 | |
ac_status=$?
|
20707 | |
grep -v '^ *+' conftest.er1 >conftest.err
|
20708 | |
rm -f conftest.er1
|
20709 | |
cat conftest.err >&5
|
20710 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20711 | |
(exit $ac_status); } &&
|
20712 | |
{ ac_try='test -z "$ac_cxx_werror_flag"
|
20713 | |
|| test ! -s conftest.err'
|
20714 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20715 | |
(eval $ac_try) 2>&5
|
20716 | |
ac_status=$?
|
20717 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20718 | |
(exit $ac_status); }; } &&
|
20719 | |
{ ac_try='test -s conftest$ac_exeext'
|
20720 | |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
20721 | |
(eval $ac_try) 2>&5
|
20722 | |
ac_status=$?
|
20723 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20724 | |
(exit $ac_status); }; }; then
|
20725 | |
ac_cv_lib_dld_dld_link=yes
|
20726 | |
else
|
20727 | |
echo "$as_me: failed program was:" >&5
|
20728 | |
sed 's/^/| /' conftest.$ac_ext >&5
|
20729 | |
|
20730 | |
ac_cv_lib_dld_dld_link=no
|
20731 | |
fi
|
20732 | |
rm -f conftest.err conftest.$ac_objext \
|
20733 | |
conftest$ac_exeext conftest.$ac_ext
|
20734 | |
LIBS=$ac_check_lib_save_LIBS
|
20735 | |
fi
|
20736 | |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
|
20737 | |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
|
20738 | |
if test $ac_cv_lib_dld_dld_link = yes; then
|
20739 | |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
|
20740 | |
fi
|
20741 | |
|
20742 | |
|
20743 | |
fi
|
20744 | |
|
20745 | |
|
20746 | |
fi
|
20747 | |
|
20748 | |
|
20749 | |
fi
|
20750 | |
|
20751 | |
|
20752 | |
fi
|
20753 | |
|
20754 | |
|
20755 | |
fi
|
20756 | |
|
20757 | |
;;
|
20758 | |
esac
|
20759 | |
|
20760 | |
if test "x$lt_cv_dlopen" != xno; then
|
20761 | |
enable_dlopen=yes
|
20762 | |
else
|
20763 | |
enable_dlopen=no
|
20764 | |
fi
|
20765 | |
|
20766 | |
case $lt_cv_dlopen in
|
20767 | |
dlopen)
|
20768 | |
save_CPPFLAGS="$CPPFLAGS"
|
20769 | |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
20770 | |
|
20771 | |
save_LDFLAGS="$LDFLAGS"
|
20772 | |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
20773 | |
|
20774 | |
save_LIBS="$LIBS"
|
20775 | |
LIBS="$lt_cv_dlopen_libs $LIBS"
|
20776 | |
|
20777 | |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
|
20778 | |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
|
20779 | |
if test "${lt_cv_dlopen_self+set}" = set; then
|
20780 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20781 | |
else
|
20782 | |
if test "$cross_compiling" = yes; then :
|
20783 | |
lt_cv_dlopen_self=cross
|
20784 | |
else
|
20785 | |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
20786 | |
lt_status=$lt_dlunknown
|
20787 | |
cat > conftest.$ac_ext <<EOF
|
20788 | |
#line 20789 "configure"
|
20789 | |
#include "confdefs.h"
|
20790 | |
|
20791 | |
#if HAVE_DLFCN_H
|
20792 | |
#include <dlfcn.h>
|
20793 | |
#endif
|
20794 | |
|
20795 | |
#include <stdio.h>
|
20796 | |
|
20797 | |
#ifdef RTLD_GLOBAL
|
20798 | |
# define LT_DLGLOBAL RTLD_GLOBAL
|
20799 | |
#else
|
20800 | |
# ifdef DL_GLOBAL
|
20801 | |
# define LT_DLGLOBAL DL_GLOBAL
|
20802 | |
# else
|
20803 | |
# define LT_DLGLOBAL 0
|
20804 | |
# endif
|
20805 | |
#endif
|
20806 | |
|
20807 | |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
20808 | |
find out it does not work in some platform. */
|
20809 | |
#ifndef LT_DLLAZY_OR_NOW
|
20810 | |
# ifdef RTLD_LAZY
|
20811 | |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
20812 | |
# else
|
20813 | |
# ifdef DL_LAZY
|
20814 | |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
20815 | |
# else
|
20816 | |
# ifdef RTLD_NOW
|
20817 | |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
20818 | |
# else
|
20819 | |
# ifdef DL_NOW
|
20820 | |
# define LT_DLLAZY_OR_NOW DL_NOW
|
20821 | |
# else
|
20822 | |
# define LT_DLLAZY_OR_NOW 0
|
20823 | |
# endif
|
20824 | |
# endif
|
20825 | |
# endif
|
20826 | |
# endif
|
20827 | |
#endif
|
20828 | |
|
20829 | |
#ifdef __cplusplus
|
20830 | |
extern "C" void exit (int);
|
20831 | |
#endif
|
20832 | |
|
20833 | |
void fnord() { int i=42;}
|
20834 | |
int main ()
|
20835 | |
{
|
20836 | |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
20837 | |
int status = $lt_dlunknown;
|
20838 | |
|
20839 | |
if (self)
|
20840 | |
{
|
20841 | |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
20842 | |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
20843 | |
/* dlclose (self); */
|
20844 | |
}
|
20845 | |
|
20846 | |
exit (status);
|
20847 | |
}
|
20848 | |
EOF
|
20849 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20850 | |
(eval $ac_link) 2>&5
|
20851 | |
ac_status=$?
|
20852 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20853 | |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
20854 | |
(./conftest; exit; ) >&5 2>/dev/null
|
20855 | |
lt_status=$?
|
20856 | |
case x$lt_status in
|
20857 | |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
20858 | |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
20859 | |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
|
20860 | |
esac
|
20861 | |
else :
|
20862 | |
# compilation failed
|
20863 | |
lt_cv_dlopen_self=no
|
20864 | |
fi
|
20865 | |
fi
|
20866 | |
rm -fr conftest*
|
20867 | |
|
20868 | |
|
20869 | |
fi
|
20870 | |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
|
20871 | |
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
|
20872 | |
|
20873 | |
if test "x$lt_cv_dlopen_self" = xyes; then
|
20874 | |
LDFLAGS="$LDFLAGS $link_static_flag"
|
20875 | |
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
|
20876 | |
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
|
20877 | |
if test "${lt_cv_dlopen_self_static+set}" = set; then
|
20878 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
20879 | |
else
|
20880 | |
if test "$cross_compiling" = yes; then :
|
20881 | |
lt_cv_dlopen_self_static=cross
|
20882 | |
else
|
20883 | |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
20884 | |
lt_status=$lt_dlunknown
|
20885 | |
cat > conftest.$ac_ext <<EOF
|
20886 | |
#line 20887 "configure"
|
20887 | |
#include "confdefs.h"
|
20888 | |
|
20889 | |
#if HAVE_DLFCN_H
|
20890 | |
#include <dlfcn.h>
|
20891 | |
#endif
|
20892 | |
|
20893 | |
#include <stdio.h>
|
20894 | |
|
20895 | |
#ifdef RTLD_GLOBAL
|
20896 | |
# define LT_DLGLOBAL RTLD_GLOBAL
|
20897 | |
#else
|
20898 | |
# ifdef DL_GLOBAL
|
20899 | |
# define LT_DLGLOBAL DL_GLOBAL
|
20900 | |
# else
|
20901 | |
# define LT_DLGLOBAL 0
|
20902 | |
# endif
|
20903 | |
#endif
|
20904 | |
|
20905 | |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
20906 | |
find out it does not work in some platform. */
|
20907 | |
#ifndef LT_DLLAZY_OR_NOW
|
20908 | |
# ifdef RTLD_LAZY
|
20909 | |
# define LT_DLLAZY_OR_NOW RTLD_LAZY
|
20910 | |
# else
|
20911 | |
# ifdef DL_LAZY
|
20912 | |
# define LT_DLLAZY_OR_NOW DL_LAZY
|
20913 | |
# else
|
20914 | |
# ifdef RTLD_NOW
|
20915 | |
# define LT_DLLAZY_OR_NOW RTLD_NOW
|
20916 | |
# else
|
20917 | |
# ifdef DL_NOW
|
20918 | |
# define LT_DLLAZY_OR_NOW DL_NOW
|
20919 | |
# else
|
20920 | |
# define LT_DLLAZY_OR_NOW 0
|
20921 | |
# endif
|
20922 | |
# endif
|
20923 | |
# endif
|
20924 | |
# endif
|
20925 | |
#endif
|
20926 | |
|
20927 | |
#ifdef __cplusplus
|
20928 | |
extern "C" void exit (int);
|
20929 | |
#endif
|
20930 | |
|
20931 | |
void fnord() { int i=42;}
|
20932 | |
int main ()
|
20933 | |
{
|
20934 | |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
20935 | |
int status = $lt_dlunknown;
|
20936 | |
|
20937 | |
if (self)
|
20938 | |
{
|
20939 | |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
20940 | |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
20941 | |
/* dlclose (self); */
|
20942 | |
}
|
20943 | |
|
20944 | |
exit (status);
|
20945 | |
}
|
20946 | |
EOF
|
20947 | |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
20948 | |
(eval $ac_link) 2>&5
|
20949 | |
ac_status=$?
|
20950 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
20951 | |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
|
20952 | |
(./conftest; exit; ) >&5 2>/dev/null
|
20953 | |
lt_status=$?
|
20954 | |
case x$lt_status in
|
20955 | |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
20956 | |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
20957 | |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
|
20958 | |
esac
|
20959 | |
else :
|
20960 | |
# compilation failed
|
20961 | |
lt_cv_dlopen_self_static=no
|
20962 | |
fi
|
20963 | |
fi
|
20964 | |
rm -fr conftest*
|
20965 | |
|
20966 | |
|
20967 | |
fi
|
20968 | |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
|
20969 | |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
|
20970 | |
fi
|
20971 | |
|
20972 | |
CPPFLAGS="$save_CPPFLAGS"
|
20973 | |
LDFLAGS="$save_LDFLAGS"
|
20974 | |
LIBS="$save_LIBS"
|
20975 | |
;;
|
20976 | |
esac
|
20977 | |
|
20978 | |
case $lt_cv_dlopen_self in
|
20979 | |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
20980 | |
*) enable_dlopen_self=unknown ;;
|
20981 | |
esac
|
20982 | |
|
20983 | |
case $lt_cv_dlopen_self_static in
|
20984 | |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
20985 | |
*) enable_dlopen_self_static=unknown ;;
|
20986 | |
esac
|
20987 | |
fi
|
20988 | |
|
20989 | 19582 |
|
20990 | 19583 |
# The else clause should only fire when bootstrapping the
|
20991 | 19584 |
# libtool distribution, otherwise you forgot to ship ltmain.sh
|
|
21000 | 19593 |
# Now quote all the things that may contain metacharacters while being
|
21001 | 19594 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
21002 | 19595 |
# variables and quote the copies for generation of the libtool script.
|
21003 | |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
|
19596 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
21004 | 19597 |
SED SHELL STRIP \
|
21005 | 19598 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
21006 | 19599 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
21118 | 19711 |
# A C compiler.
|
21119 | 19712 |
LTCC=$lt_LTCC
|
21120 | 19713 |
|
|
19714 |
# LTCC compiler flags.
|
|
19715 |
LTCFLAGS=$lt_LTCFLAGS
|
|
19716 |
|
21121 | 19717 |
# A language-specific compiler.
|
21122 | 19718 |
CC=$lt_compiler_GCJ
|
21123 | 19719 |
|
|
21427 | 20023 |
# If no C compiler was specified, use CC.
|
21428 | 20024 |
LTCC=${LTCC-"$CC"}
|
21429 | 20025 |
|
|
20026 |
# If no C compiler flags were specified, use CFLAGS.
|
|
20027 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
|
20028 |
|
21430 | 20029 |
# Allow CC to be a program name with arguments.
|
21431 | 20030 |
compiler=$CC
|
21432 | 20031 |
|
|
21434 | 20033 |
# save warnings/boilerplate of simple test code
|
21435 | 20034 |
ac_outfile=conftest.$ac_objext
|
21436 | 20035 |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
|
21437 | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
20036 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
21438 | 20037 |
_lt_compiler_boilerplate=`cat conftest.err`
|
21439 | 20038 |
$rm conftest*
|
21440 | 20039 |
|
21441 | 20040 |
ac_outfile=conftest.$ac_objext
|
21442 | 20041 |
printf "$lt_simple_link_test_code" >conftest.$ac_ext
|
21443 | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
|
|
20042 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
21444 | 20043 |
_lt_linker_boilerplate=`cat conftest.err`
|
21445 | 20044 |
$rm conftest*
|
21446 | 20045 |
|
|
21475 | 20074 |
# Now quote all the things that may contain metacharacters while being
|
21476 | 20075 |
# careful not to overquote the AC_SUBSTed values. We take copies of the
|
21477 | 20076 |
# variables and quote the copies for generation of the libtool script.
|
21478 | |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
|
|
20077 |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
|
21479 | 20078 |
SED SHELL STRIP \
|
21480 | 20079 |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
|
21481 | 20080 |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
|
|
21593 | 20192 |
# A C compiler.
|
21594 | 20193 |
LTCC=$lt_LTCC
|
21595 | 20194 |
|
|
20195 |
# LTCC compiler flags.
|
|
20196 |
LTCFLAGS=$lt_LTCFLAGS
|
|
20197 |
|
21596 | 20198 |
# A language-specific compiler.
|
21597 | 20199 |
CC=$lt_compiler_RC
|
21598 | 20200 |
|
|
21935 | 20537 |
|
21936 | 20538 |
|
21937 | 20539 |
|
21938 | |
|
21939 | |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
21940 | |
if test -n "$ac_tool_prefix"; then
|
21941 | |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
21942 | |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
|
20540 |
succeeded=no
|
|
20541 |
|
|
20542 |
if test -z "$PKG_CONFIG"; then
|
|
20543 |
# Extract the first word of "pkg-config", so it can be a program name with args.
|
|
20544 |
set dummy pkg-config; ac_word=$2
|
21943 | 20545 |
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
21944 | 20546 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
21945 | 20547 |
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
|
|
21964 | 20566 |
done
|
21965 | 20567 |
done
|
21966 | 20568 |
|
|
20569 |
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
|
21967 | 20570 |
;;
|
21968 | 20571 |
esac
|
21969 | 20572 |
fi
|
|
21977 | 20580 |
echo "${ECHO_T}no" >&6
|
21978 | 20581 |
fi
|
21979 | 20582 |
|
21980 | |
fi
|
21981 | |
if test -z "$ac_cv_path_PKG_CONFIG"; then
|
21982 | |
ac_pt_PKG_CONFIG=$PKG_CONFIG
|
21983 | |
# Extract the first word of "pkg-config", so it can be a program name with args.
|
21984 | |
set dummy pkg-config; ac_word=$2
|
21985 | |
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
21986 | |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
21987 | |
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
|
21988 | |
echo $ECHO_N "(cached) $ECHO_C" >&6
|
21989 | |
else
|
21990 | |
case $ac_pt_PKG_CONFIG in
|
21991 | |
[\\/]* | ?:[\\/]*)
|
21992 | |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
21993 | |
;;
|
21994 | |
*)
|
21995 | |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
21996 | |
for as_dir in $PATH
|
21997 | |
do
|
21998 | |
IFS=$as_save_IFS
|
21999 | |
test -z "$as_dir" && as_dir=.
|
22000 | |
for ac_exec_ext in '' $ac_executable_extensions; do
|
22001 | |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
22002 | |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
22003 | |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
22004 | |
break 2
|
22005 | 20583 |
fi
|
22006 | |
done
|
22007 | |
done
|
22008 | |
|
22009 | |
;;
|
22010 | |
esac
|
22011 | |
fi
|
22012 | |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
22013 | |
|
22014 | |
if test -n "$ac_pt_PKG_CONFIG"; then
|
22015 | |
echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
|
22016 | |
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
|
22017 | |
else
|
22018 | |
echo "$as_me:$LINENO: result: no" >&5
|
22019 | |
echo "${ECHO_T}no" >&6
|
22020 | |
fi
|
22021 | |
|
22022 | |
PKG_CONFIG=$ac_pt_PKG_CONFIG
|
22023 | |
else
|
22024 | |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
22025 | |
fi
|
22026 | |
|
22027 | |
fi
|
22028 | |
if test -n "$PKG_CONFIG"; then
|
22029 | |
_pkg_min_version=0.9.0
|
22030 | |
echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
|
22031 | |
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
|
22032 | |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
22033 | |
echo "$as_me:$LINENO: result: yes" >&5
|
|
20584 |
|
|
20585 |
if test "$PKG_CONFIG" = "no" ; then
|
|
20586 |
echo "*** The pkg-config script could not be found. Make sure it is"
|
|
20587 |
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
|
20588 |
echo "*** to the full path to pkg-config."
|
|
20589 |
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
|
20590 |
else
|
|
20591 |
PKG_CONFIG_MIN_VERSION=0.9.0
|
|
20592 |
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
|
20593 |
echo "$as_me:$LINENO: checking for gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0" >&5
|
|
20594 |
echo $ECHO_N "checking for gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0... $ECHO_C" >&6
|
|
20595 |
|
|
20596 |
if $PKG_CONFIG --exists "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0" ; then
|
|
20597 |
echo "$as_me:$LINENO: result: yes" >&5
|
22034 | 20598 |
echo "${ECHO_T}yes" >&6
|
22035 | |
else
|
22036 | |
echo "$as_me:$LINENO: result: no" >&5
|
22037 | |
echo "${ECHO_T}no" >&6
|
22038 | |
PKG_CONFIG=""
|
22039 | |
fi
|
22040 | |
|
22041 | |
fi
|
22042 | |
|
22043 | |
pkg_failed=no
|
22044 | |
echo "$as_me:$LINENO: checking for GTKMM" >&5
|
22045 | |
echo $ECHO_N "checking for GTKMM... $ECHO_C" >&6
|
22046 | |
|
22047 | |
if test -n "$PKG_CONFIG"; then
|
22048 | |
if test -n "$PKG_CONFIG" && \
|
22049 | |
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0\"") >&5
|
22050 | |
($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0") 2>&5
|
22051 | |
ac_status=$?
|
22052 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22053 | |
(exit $ac_status); }; then
|
22054 | |
pkg_cv_GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0" 2>/dev/null`
|
22055 | |
else
|
22056 | |
pkg_failed=yes
|
22057 | |
fi
|
22058 | |
else
|
22059 | |
pkg_failed=untried
|
22060 | |
fi
|
22061 | |
if test -n "$PKG_CONFIG"; then
|
22062 | |
if test -n "$PKG_CONFIG" && \
|
22063 | |
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0\"") >&5
|
22064 | |
($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0") 2>&5
|
22065 | |
ac_status=$?
|
22066 | |
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
22067 | |
(exit $ac_status); }; then
|
22068 | |
pkg_cv_GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0" 2>/dev/null`
|
22069 | |
else
|
22070 | |
pkg_failed=yes
|
22071 | |
fi
|
22072 | |
else
|
22073 | |
pkg_failed=untried
|
22074 | |
fi
|
22075 | |
|
22076 | |
if test $pkg_failed = yes; then
|
22077 | |
GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0"`
|
22078 | |
# Put the nasty error message in config.log where it belongs
|
22079 | |
echo "$GTKMM_PKG_ERRORS" 1>&5
|
22080 | |
|
22081 | |
{ { echo "$as_me:$LINENO: error: Package requirements (gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0) were not met.
|
22082 | |
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
22083 | |
installed software in a non-standard prefix.
|
22084 | |
|
22085 | |
Alternatively you may set the GTKMM_CFLAGS and GTKMM_LIBS environment variables
|
22086 | |
to avoid the need to call pkg-config. See the pkg-config man page for
|
22087 | |
more details." >&5
|
22088 | |
echo "$as_me: error: Package requirements (gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0) were not met.
|
22089 | |
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
22090 | |
installed software in a non-standard prefix.
|
22091 | |
|
22092 | |
Alternatively you may set the GTKMM_CFLAGS and GTKMM_LIBS environment variables
|
22093 | |
to avoid the need to call pkg-config. See the pkg-config man page for
|
22094 | |
more details." >&2;}
|
|
20599 |
succeeded=yes
|
|
20600 |
|
|
20601 |
echo "$as_me:$LINENO: checking GTKMM_CFLAGS" >&5
|
|
20602 |
echo $ECHO_N "checking GTKMM_CFLAGS... $ECHO_C" >&6
|
|
20603 |
GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0"`
|
|
20604 |
echo "$as_me:$LINENO: result: $GTKMM_CFLAGS" >&5
|
|
20605 |
echo "${ECHO_T}$GTKMM_CFLAGS" >&6
|
|
20606 |
|
|
20607 |
echo "$as_me:$LINENO: checking GTKMM_LIBS" >&5
|
|
20608 |
echo $ECHO_N "checking GTKMM_LIBS... $ECHO_C" >&6
|
|
20609 |
GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0"`
|
|
20610 |
echo "$as_me:$LINENO: result: $GTKMM_LIBS" >&5
|
|
20611 |
echo "${ECHO_T}$GTKMM_LIBS" >&6
|
|
20612 |
else
|
|
20613 |
GTKMM_CFLAGS=""
|
|
20614 |
GTKMM_LIBS=""
|
|
20615 |
## If we have a custom action on failure, don't print errors, but
|
|
20616 |
## do set a variable so people can do so.
|
|
20617 |
GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0"`
|
|
20618 |
echo $GTKMM_PKG_ERRORS
|
|
20619 |
fi
|
|
20620 |
|
|
20621 |
|
|
20622 |
|
|
20623 |
else
|
|
20624 |
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
|
20625 |
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
|
20626 |
fi
|
|
20627 |
fi
|
|
20628 |
|
|
20629 |
if test $succeeded = yes; then
|
|
20630 |
:
|
|
20631 |
else
|
|
20632 |
{ { echo "$as_me:$LINENO: error: Library requirements (gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
|
|
20633 |
echo "$as_me: error: Library requirements (gtkmm-2.4 >= 2.4.0 libgnome-2.0 >= 2.10.0 gnome-vfs-2.0 >= 2.10.0 libnautilus-extension >= 2.10.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
|
22095 | 20634 |
{ (exit 1); exit 1; }; }
|
22096 | |
elif test $pkg_failed = untried; then
|
22097 | |
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
|
22098 | |
is in your PATH or set the PKG_CONFIG environment variable to the full
|
22099 | |
path to pkg-config.
|
22100 | |
|
22101 | |
Alternatively you may set the GTKMM_CFLAGS and GTKMM_LIBS environment variables
|
22102 | |
to avoid the need to call pkg-config. See the pkg-config man page for
|
22103 | |
more details.
|
22104 | |
|
22105 | |
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
22106 | |
See \`config.log' for more details." >&5
|
22107 | |
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
|
22108 | |
is in your PATH or set the PKG_CONFIG environment variable to the full
|
22109 | |
path to pkg-config.
|
22110 | |
|
22111 | |
Alternatively you may set the GTKMM_CFLAGS and GTKMM_LIBS environment variables
|
22112 | |
to avoid the need to call pkg-config. See the pkg-config man page for
|
22113 | |
more details.
|
22114 | |
|
22115 | |
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
|
22116 | |
See \`config.log' for more details." >&2;}
|
22117 | |
{ (exit 1); exit 1; }; }
|
22118 | |
else
|
22119 | |
GTKMM_CFLAGS=$pkg_cv_GTKMM_CFLAGS
|
22120 | |
GTKMM_LIBS=$pkg_cv_GTKMM_LIBS
|
22121 | |
echo "$as_me:$LINENO: result: yes" >&5
|
22122 | |
echo "${ECHO_T}yes" >&6
|
22123 | |
:
|
22124 | |
fi
|
|
20635 |
fi
|
|
20636 |
|
22125 | 20637 |
|
22126 | 20638 |
echo "$as_me:$LINENO: checking for nautilus extensions directory" >&5
|
22127 | 20639 |
echo $ECHO_N "checking for nautilus extensions directory... $ECHO_C" >&6
|
|
23263 | 21775 |
} >&5
|
23264 | 21776 |
cat >&5 <<_CSEOF
|
23265 | 21777 |
|
23266 | |
This file was extended by eiciel $as_me 0.9, which was
|
|
21778 |
This file was extended by eiciel $as_me 0.9.1, which was
|
23267 | 21779 |
generated by GNU Autoconf 2.59. Invocation command line was
|
23268 | 21780 |
|
23269 | 21781 |
CONFIG_FILES = $CONFIG_FILES
|
|
23326 | 21838 |
|
23327 | 21839 |
cat >>$CONFIG_STATUS <<_ACEOF
|
23328 | 21840 |
ac_cs_version="\\
|
23329 | |
eiciel config.status 0.9
|
|
21841 |
eiciel config.status 0.9.1
|
23330 | 21842 |
configured by $0, generated by GNU Autoconf 2.59,
|
23331 | 21843 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
23332 | 21844 |
|
|
23426 | 21938 |
#
|
23427 | 21939 |
|
23428 | 21940 |
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
|
23429 | |
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
|
|
21941 |
# POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
|
23430 | 21942 |
# from automake.
|
23431 | 21943 |
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
|
23432 | 21944 |
# Capture the value of LINGUAS because we need it to compute CATALOGS.
|
|
23593 | 22105 |
s,@CCDEPMODE@,$CCDEPMODE,;t t
|
23594 | 22106 |
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
|
23595 | 22107 |
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
|
23596 | |
s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
|
23597 | 22108 |
s,@LIBICONV@,$LIBICONV,;t t
|
23598 | 22109 |
s,@LTLIBICONV@,$LTLIBICONV,;t t
|
23599 | 22110 |
s,@INTLLIBS@,$INTLLIBS,;t t
|
|
23620 | 22131 |
s,@ac_ct_F77@,$ac_ct_F77,;t t
|
23621 | 22132 |
s,@LIBTOOL@,$LIBTOOL,;t t
|
23622 | 22133 |
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
|
23623 | |
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
|
23624 | 22134 |
s,@GTKMM_CFLAGS@,$GTKMM_CFLAGS,;t t
|
23625 | 22135 |
s,@GTKMM_LIBS@,$GTKMM_LIBS,;t t
|
23626 | 22136 |
s,@NAUTILUS_EXTENSIONS_DIR@,$NAUTILUS_EXTENSIONS_DIR,;t t
|
|
24246 | 22756 |
/*) top_srcdir="$ac_given_srcdir" ;;
|
24247 | 22757 |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
24248 | 22758 |
esac
|
24249 | |
# Treat a directory as a PO directory if and only if it has a
|
24250 | |
# POTFILES.in file. This allows packages to have multiple PO
|
24251 | |
# directories under different names or in different locations.
|
24252 | 22759 |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
|
24253 | 22760 |
rm -f "$ac_dir/POTFILES"
|
24254 | 22761 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
|
24255 | 22762 |
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
|
24256 | 22763 |
POMAKEFILEDEPS="POTFILES.in"
|
24257 | |
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
|
|
22764 |
# ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
|
24258 | 22765 |
# on $ac_dir but don't depend on user-specified configuration
|
24259 | 22766 |
# parameters.
|
24260 | 22767 |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
|
24262 | 22769 |
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
24263 | 22770 |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
|
24264 | 22771 |
fi
|
24265 | |
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
|
22772 |
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
24266 | 22773 |
# Hide the ALL_LINGUAS assigment from automake.
|
24267 | 22774 |
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
24268 | 22775 |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
|
24270 | 22777 |
# The set of available languages was given in configure.in.
|
24271 | 22778 |
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
|
24272 | 22779 |
fi
|
24273 | |
# Compute POFILES
|
24274 | |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
24275 | |
# Compute UPDATEPOFILES
|
24276 | |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
24277 | |
# Compute DUMMYPOFILES
|
24278 | |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
24279 | |
# Compute GMOFILES
|
24280 | |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
24281 | 22780 |
case "$ac_given_srcdir" in
|
24282 | 22781 |
.) srcdirpre= ;;
|
24283 | 22782 |
*) srcdirpre='$(srcdir)/' ;;
|
24284 | 22783 |
esac
|
24285 | 22784 |
POFILES=
|
|
22785 |
GMOFILES=
|
24286 | 22786 |
UPDATEPOFILES=
|
24287 | 22787 |
DUMMYPOFILES=
|
24288 | |
GMOFILES=
|
24289 | 22788 |
for lang in $ALL_LINGUAS; do
|
24290 | 22789 |
POFILES="$POFILES $srcdirpre$lang.po"
|
|
22790 |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
24291 | 22791 |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
24292 | 22792 |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
24293 | |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
24294 | 22793 |
done
|
24295 | 22794 |
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
24296 | 22795 |
# environment variable.
|
|
24325 | 22824 |
done
|
24326 | 22825 |
fi
|
24327 | 22826 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
|
24328 | |
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
|
|
22827 |
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
|
24329 | 22828 |
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
|
24330 | 22829 |
if test -f "$f"; then
|
24331 | 22830 |
case "$f" in
|