1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # From configure.ac Id: configure.ac. |
2 | # From configure.ac Id. |
3 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Guess values for system-dependent variables and create Makefiles. |
4 | # Generated by GNU Autoconf 2.59 for crossfire 1.8.0. |
4 | # Generated by GNU Autoconf 2.59 for crossfire 1.9.0. |
5 | # |
5 | # |
6 | # Report bugs to <crossfire-devel@listserv.real-time.com>. |
6 | # Report bugs to <crossfire-devel@listserv.real-time.com>. |
7 | # |
7 | # |
8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
9 | # This configure script is free software; the Free Software Foundation |
9 | # This configure script is free software; the Free Software Foundation |
… | |
… | |
271 | fi |
271 | fi |
272 | |
272 | |
273 | if test "X$1" = X--fallback-echo; then |
273 | if test "X$1" = X--fallback-echo; then |
274 | # used as fallback echo |
274 | # used as fallback echo |
275 | shift |
275 | shift |
276 | cat <<_LT_EOF |
276 | cat <<EOF |
277 | $* |
277 | $* |
278 | _LT_EOF |
278 | EOF |
279 | exit 0 |
279 | exit 0 |
280 | fi |
280 | fi |
281 | |
281 | |
282 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
282 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
283 | # if CDPATH is set. |
283 | # if CDPATH is set. |
… | |
… | |
392 | fi |
392 | fi |
393 | |
393 | |
394 | |
394 | |
395 | |
395 | |
396 | |
396 | |
|
|
397 | tagnames=${tagnames+${tagnames},}CXX |
|
|
398 | |
|
|
399 | tagnames=${tagnames+${tagnames},}F77 |
|
|
400 | |
397 | # Name of the host. |
401 | # Name of the host. |
398 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
402 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
399 | # so uname gets run too. |
403 | # so uname gets run too. |
400 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
404 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
401 | |
405 | |
… | |
… | |
418 | : ${ac_max_here_lines=38} |
422 | : ${ac_max_here_lines=38} |
419 | |
423 | |
420 | # Identity of this package. |
424 | # Identity of this package. |
421 | PACKAGE_NAME='crossfire' |
425 | PACKAGE_NAME='crossfire' |
422 | PACKAGE_TARNAME='crossfire' |
426 | PACKAGE_TARNAME='crossfire' |
423 | PACKAGE_VERSION='1.8.0' |
427 | PACKAGE_VERSION='1.9.0' |
424 | PACKAGE_STRING='crossfire 1.8.0' |
428 | PACKAGE_STRING='crossfire 1.9.0' |
425 | PACKAGE_BUGREPORT='crossfire-devel@listserv.real-time.com' |
429 | PACKAGE_BUGREPORT='crossfire-devel@listserv.real-time.com' |
426 | |
430 | |
427 | ac_unique_file="server/main.c" |
431 | ac_unique_file="server/main.c" |
428 | ac_default_prefix=/usr/games/crossfire |
432 | ac_default_prefix=/usr/games/crossfire |
429 | # Factoring default headers for most tests. |
433 | # Factoring default headers for most tests. |
… | |
… | |
461 | #endif |
465 | #endif |
462 | #if HAVE_UNISTD_H |
466 | #if HAVE_UNISTD_H |
463 | # include <unistd.h> |
467 | # include <unistd.h> |
464 | #endif" |
468 | #endif" |
465 | |
469 | |
466 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 SED EGREP LD NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB ECHO CPP LEX LEXLIB LEX_OUTPUT_ROOT LATEX GZIP GUNZIP TAR PERL BASENAME COMPRESS UNCOMPRESS BZIP BUNZIP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS x_includes x_libraries no_x HAVE_X_TRUE HAVE_X_FALSE X11LIBS pkgstatedir pkgconfdir PERLLIB PERLFLAGS PERLPRIVLIBEXP PERL_PLUGIN_TRUE PERL_PLUGIN_FALSE PERL_PLUGIN HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON LTLIBOBJS' |
470 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LEX LEXLIB LEX_OUTPUT_ROOT AWK LATEX GZIP GUNZIP TAR PERL BASENAME COMPRESS UNCOMPRESS BZIP BUNZIP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS x_includes x_libraries no_x HAVE_X_TRUE HAVE_X_FALSE X11LIBS pkgstatedir pkgconfdir PERLLIB PERLFLAGS PERLPRIVLIBEXP PERL_PLUGIN_TRUE PERL_PLUGIN_FALSE PERL_PLUGIN HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON LTLIBOBJS' |
467 | ac_subst_files='' |
471 | ac_subst_files='' |
468 | |
472 | |
469 | # Initialize some variables set by options. |
473 | # Initialize some variables set by options. |
470 | ac_init_help= |
474 | ac_init_help= |
471 | ac_init_version=false |
475 | ac_init_version=false |
… | |
… | |
922 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
926 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
923 | ac_env_CPP_set=${CPP+set} |
927 | ac_env_CPP_set=${CPP+set} |
924 | ac_env_CPP_value=$CPP |
928 | ac_env_CPP_value=$CPP |
925 | ac_cv_env_CPP_set=${CPP+set} |
929 | ac_cv_env_CPP_set=${CPP+set} |
926 | ac_cv_env_CPP_value=$CPP |
930 | ac_cv_env_CPP_value=$CPP |
|
|
931 | ac_env_CXX_set=${CXX+set} |
|
|
932 | ac_env_CXX_value=$CXX |
|
|
933 | ac_cv_env_CXX_set=${CXX+set} |
|
|
934 | ac_cv_env_CXX_value=$CXX |
|
|
935 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
|
|
936 | ac_env_CXXFLAGS_value=$CXXFLAGS |
|
|
937 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
|
|
938 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
|
|
939 | ac_env_CXXCPP_set=${CXXCPP+set} |
|
|
940 | ac_env_CXXCPP_value=$CXXCPP |
|
|
941 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
|
|
942 | ac_cv_env_CXXCPP_value=$CXXCPP |
|
|
943 | ac_env_F77_set=${F77+set} |
|
|
944 | ac_env_F77_value=$F77 |
|
|
945 | ac_cv_env_F77_set=${F77+set} |
|
|
946 | ac_cv_env_F77_value=$F77 |
|
|
947 | ac_env_FFLAGS_set=${FFLAGS+set} |
|
|
948 | ac_env_FFLAGS_value=$FFLAGS |
|
|
949 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
|
|
950 | ac_cv_env_FFLAGS_value=$FFLAGS |
927 | |
951 | |
928 | # |
952 | # |
929 | # Report the --help message. |
953 | # Report the --help message. |
930 | # |
954 | # |
931 | if test "$ac_init_help" = "long"; then |
955 | if test "$ac_init_help" = "long"; then |
932 | # Omit some internal or obsolete options to make the list less imposing. |
956 | # Omit some internal or obsolete options to make the list less imposing. |
933 | # This message is too long to be a string in the A/UX 3.1 sh. |
957 | # This message is too long to be a string in the A/UX 3.1 sh. |
934 | cat <<_ACEOF |
958 | cat <<_ACEOF |
935 | \`configure' configures crossfire 1.8.0 to adapt to many kinds of systems. |
959 | \`configure' configures crossfire 1.9.0 to adapt to many kinds of systems. |
936 | |
960 | |
937 | Usage: $0 [OPTION]... [VAR=VALUE]... |
961 | Usage: $0 [OPTION]... [VAR=VALUE]... |
938 | |
962 | |
939 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
963 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
940 | VAR=VALUE. See below for descriptions of some of the useful variables. |
964 | VAR=VALUE. See below for descriptions of some of the useful variables. |
… | |
… | |
1000 | _ACEOF |
1024 | _ACEOF |
1001 | fi |
1025 | fi |
1002 | |
1026 | |
1003 | if test -n "$ac_init_help"; then |
1027 | if test -n "$ac_init_help"; then |
1004 | case $ac_init_help in |
1028 | case $ac_init_help in |
1005 | short | recursive ) echo "Configuration of crossfire 1.8.0:";; |
1029 | short | recursive ) echo "Configuration of crossfire 1.9.0:";; |
1006 | esac |
1030 | esac |
1007 | cat <<\_ACEOF |
1031 | cat <<\_ACEOF |
1008 | |
1032 | |
1009 | Optional Features: |
1033 | Optional Features: |
1010 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1034 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1011 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1035 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1012 | --enable-maintainer-mode enable make rules and dependencies not useful |
1036 | --enable-maintainer-mode enable make rules and dependencies not useful |
1013 | (and sometimes confusing) to the casual installer |
1037 | (and sometimes confusing) to the casual installer |
1014 | --enable-shared[=PKGS] |
1038 | --enable-shared[=PKGS] |
1015 | build shared libraries [default=yes] |
1039 | build shared libraries [default=yes] |
1016 | --enable-static[=PKGS] |
1040 | --enable-static[=PKGS] |
1017 | build static libraries [default=yes] |
1041 | build static libraries [default=yes] |
1018 | --enable-fast-install[=PKGS] |
1042 | --enable-fast-install[=PKGS] |
1019 | optimize for fast installation [default=yes] |
1043 | optimize for fast installation [default=yes] |
1020 | --disable-dependency-tracking speeds up one-time build |
|
|
1021 | --enable-dependency-tracking do not reject slow dependency extractors |
|
|
1022 | --disable-libtool-lock avoid locking (might break parallel builds) |
1044 | --disable-libtool-lock avoid locking (might break parallel builds) |
1023 | --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working |
1045 | --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working |
1024 | |
1046 | |
1025 | Optional Packages: |
1047 | Optional Packages: |
1026 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1048 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1027 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1049 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
1050 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1028 | --with-pic try to use only PIC/non-PIC objects [default=use |
1051 | --with-pic try to use only PIC/non-PIC objects [default=use |
1029 | both] |
1052 | both] |
1030 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1053 | --with-tags[=TAGS] |
|
|
1054 | include additional configurations [automatic] |
1031 | --with-python=dir Directory to look for python headers/library (default=standard system location) |
1055 | --with-python=dir Directory to look for python headers/library (default=standard system location) |
1032 | --with-x use the X Window System |
1056 | --with-x use the X Window System |
1033 | |
1057 | |
1034 | Some influential environment variables: |
1058 | Some influential environment variables: |
1035 | CC C compiler command |
1059 | CC C compiler command |
… | |
… | |
1037 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1061 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1038 | nonstandard directory <lib dir> |
1062 | nonstandard directory <lib dir> |
1039 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1063 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1040 | headers in a nonstandard directory <include dir> |
1064 | headers in a nonstandard directory <include dir> |
1041 | CPP C preprocessor |
1065 | CPP C preprocessor |
|
|
1066 | CXX C++ compiler command |
|
|
1067 | CXXFLAGS C++ compiler flags |
|
|
1068 | CXXCPP C++ preprocessor |
|
|
1069 | F77 Fortran 77 compiler command |
|
|
1070 | FFLAGS Fortran 77 compiler flags |
1042 | |
1071 | |
1043 | Use these variables to override the choices made by `configure' or to help |
1072 | Use these variables to override the choices made by `configure' or to help |
1044 | it to find libraries and programs with nonstandard names/locations. |
1073 | it to find libraries and programs with nonstandard names/locations. |
1045 | |
1074 | |
1046 | Report bugs to <crossfire-devel@listserv.real-time.com>. |
1075 | Report bugs to <crossfire-devel@listserv.real-time.com>. |
… | |
… | |
1137 | fi |
1166 | fi |
1138 | |
1167 | |
1139 | test -n "$ac_init_help" && exit 0 |
1168 | test -n "$ac_init_help" && exit 0 |
1140 | if $ac_init_version; then |
1169 | if $ac_init_version; then |
1141 | cat <<\_ACEOF |
1170 | cat <<\_ACEOF |
1142 | crossfire configure 1.8.0 |
1171 | crossfire configure 1.9.0 |
1143 | generated by GNU Autoconf 2.59 |
1172 | generated by GNU Autoconf 2.59 |
1144 | |
1173 | |
1145 | Copyright (C) 2003 Free Software Foundation, Inc. |
1174 | Copyright (C) 2003 Free Software Foundation, Inc. |
1146 | This configure script is free software; the Free Software Foundation |
1175 | This configure script is free software; the Free Software Foundation |
1147 | gives unlimited permission to copy, distribute and modify it. |
1176 | gives unlimited permission to copy, distribute and modify it. |
… | |
… | |
1151 | exec 5>config.log |
1180 | exec 5>config.log |
1152 | cat >&5 <<_ACEOF |
1181 | cat >&5 <<_ACEOF |
1153 | This file contains any messages produced by compilers while |
1182 | This file contains any messages produced by compilers while |
1154 | running configure, to aid debugging if configure makes a mistake. |
1183 | running configure, to aid debugging if configure makes a mistake. |
1155 | |
1184 | |
1156 | It was created by crossfire $as_me 1.8.0, which was |
1185 | It was created by crossfire $as_me 1.9.0, which was |
1157 | generated by GNU Autoconf 2.59. Invocation command line was |
1186 | generated by GNU Autoconf 2.59. Invocation command line was |
1158 | |
1187 | |
1159 | $ $0 $@ |
1188 | $ $0 $@ |
1160 | |
1189 | |
1161 | _ACEOF |
1190 | _ACEOF |
… | |
… | |
1513 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1542 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1514 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1543 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1515 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1544 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1516 | |
1545 | |
1517 | |
1546 | |
1518 | am__api_version="1.9" |
1547 | am__api_version="1.4" |
1519 | # Find a good install program. We prefer a C program (faster), |
1548 | # Find a good install program. We prefer a C program (faster), |
1520 | # so one script is as good as another. But avoid the broken or |
1549 | # so one script is as good as another. But avoid the broken or |
1521 | # incompatible versions: |
1550 | # incompatible versions: |
1522 | # SysV /etc/install, /usr/sbin/install |
1551 | # SysV /etc/install, /usr/sbin/install |
1523 | # SunOS /usr/etc/install |
1552 | # SunOS /usr/etc/install |
… | |
… | |
1597 | |
1626 | |
1598 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1627 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1599 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1628 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1600 | # Just in case |
1629 | # Just in case |
1601 | sleep 1 |
1630 | sleep 1 |
1602 | echo timestamp > conftest.file |
1631 | echo timestamp > conftestfile |
1603 | # Do `set' in a subshell so we don't clobber the current shell's |
1632 | # Do `set' in a subshell so we don't clobber the current shell's |
1604 | # arguments. Must try -L first in case configure is actually a |
1633 | # arguments. Must try -L first in case configure is actually a |
1605 | # symlink; some systems play weird games with the mod time of symlinks |
1634 | # symlink; some systems play weird games with the mod time of symlinks |
1606 | # (eg FreeBSD returns the mod time of the symlink's containing |
1635 | # (eg FreeBSD returns the mod time of the symlink's containing |
1607 | # directory). |
1636 | # directory). |
1608 | if ( |
1637 | if ( |
1609 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1638 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
1610 | if test "$*" = "X"; then |
1639 | if test "$*" = "X"; then |
1611 | # -L didn't work. |
1640 | # -L didn't work. |
1612 | set X `ls -t $srcdir/configure conftest.file` |
1641 | set X `ls -t $srcdir/configure conftestfile` |
1613 | fi |
1642 | fi |
1614 | rm -f conftest.file |
|
|
1615 | if test "$*" != "X $srcdir/configure conftest.file" \ |
1643 | if test "$*" != "X $srcdir/configure conftestfile" \ |
1616 | && test "$*" != "X conftest.file $srcdir/configure"; then |
1644 | && test "$*" != "X conftestfile $srcdir/configure"; then |
1617 | |
1645 | |
1618 | # If neither matched, then we have a broken ls. This can happen |
1646 | # If neither matched, then we have a broken ls. This can happen |
1619 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1647 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
1620 | # broken ls alias from the environment. This has actually |
1648 | # broken ls alias from the environment. This has actually |
1621 | # happened. Such a system could not be considered "sane". |
1649 | # happened. Such a system could not be considered "sane". |
… | |
… | |
1624 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1652 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
1625 | alias in your environment" >&2;} |
1653 | alias in your environment" >&2;} |
1626 | { (exit 1); exit 1; }; } |
1654 | { (exit 1); exit 1; }; } |
1627 | fi |
1655 | fi |
1628 | |
1656 | |
1629 | test "$2" = conftest.file |
1657 | test "$2" = conftestfile |
1630 | ) |
1658 | ) |
1631 | then |
1659 | then |
1632 | # Ok. |
1660 | # Ok. |
1633 | : |
1661 | : |
1634 | else |
1662 | else |
… | |
… | |
1636 | Check your system clock" >&5 |
1664 | Check your system clock" >&5 |
1637 | echo "$as_me: error: newly created file is older than distributed files! |
1665 | echo "$as_me: error: newly created file is older than distributed files! |
1638 | Check your system clock" >&2;} |
1666 | Check your system clock" >&2;} |
1639 | { (exit 1); exit 1; }; } |
1667 | { (exit 1); exit 1; }; } |
1640 | fi |
1668 | fi |
|
|
1669 | rm -f conftest* |
1641 | echo "$as_me:$LINENO: result: yes" >&5 |
1670 | echo "$as_me:$LINENO: result: yes" >&5 |
1642 | echo "${ECHO_T}yes" >&6 |
1671 | echo "${ECHO_T}yes" >&6 |
1643 | test "$program_prefix" != NONE && |
1672 | test "$program_prefix" != NONE && |
1644 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1673 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1645 | # Use a double $ so make ignores it. |
1674 | # Use a double $ so make ignores it. |
… | |
… | |
1651 | s/[\\$]/&&/g;s/;s,x,x,$// |
1680 | s/[\\$]/&&/g;s/;s,x,x,$// |
1652 | _ACEOF |
1681 | _ACEOF |
1653 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1682 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1654 | rm conftest.sed |
1683 | rm conftest.sed |
1655 | |
1684 | |
1656 | # expand $ac_aux_dir to an absolute path |
|
|
1657 | am_aux_dir=`cd $ac_aux_dir && pwd` |
|
|
1658 | |
|
|
1659 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
|
|
1660 | # Use eval to expand $SHELL |
|
|
1661 | if eval "$MISSING --run true"; then |
|
|
1662 | am_missing_run="$MISSING --run " |
|
|
1663 | else |
|
|
1664 | am_missing_run= |
|
|
1665 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
|
|
1666 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
|
|
1667 | fi |
|
|
1668 | |
|
|
1669 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
|
|
1670 | # We used to keeping the `.' as first argument, in order to |
|
|
1671 | # allow $(mkdir_p) to be used without argument. As in |
|
|
1672 | # $(mkdir_p) $(somedir) |
|
|
1673 | # where $(somedir) is conditionally defined. However this is wrong |
|
|
1674 | # for two reasons: |
|
|
1675 | # 1. if the package is installed by a user who cannot write `.' |
|
|
1676 | # make install will fail, |
|
|
1677 | # 2. the above comment should most certainly read |
|
|
1678 | # $(mkdir_p) $(DESTDIR)$(somedir) |
|
|
1679 | # so it does not work when $(somedir) is undefined and |
|
|
1680 | # $(DESTDIR) is not. |
|
|
1681 | # To support the latter case, we have to write |
|
|
1682 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
|
|
1683 | # so the `.' trick is pointless. |
|
|
1684 | mkdir_p='mkdir -p --' |
|
|
1685 | else |
|
|
1686 | # On NextStep and OpenStep, the `mkdir' command does not |
|
|
1687 | # recognize any option. It will interpret all options as |
|
|
1688 | # directories to create, and then abort because `.' already |
|
|
1689 | # exists. |
|
|
1690 | for d in ./-p ./--version; |
|
|
1691 | do |
|
|
1692 | test -d $d && rmdir $d |
|
|
1693 | done |
|
|
1694 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
|
|
1695 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
|
|
1696 | mkdir_p='$(mkinstalldirs)' |
|
|
1697 | else |
|
|
1698 | mkdir_p='$(install_sh) -d' |
|
|
1699 | fi |
|
|
1700 | fi |
|
|
1701 | |
|
|
1702 | for ac_prog in gawk mawk nawk awk |
|
|
1703 | do |
|
|
1704 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
1705 | set dummy $ac_prog; ac_word=$2 |
|
|
1706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
1707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
1708 | if test "${ac_cv_prog_AWK+set}" = set; then |
|
|
1709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1710 | else |
|
|
1711 | if test -n "$AWK"; then |
|
|
1712 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
|
1713 | else |
|
|
1714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
1715 | for as_dir in $PATH |
|
|
1716 | do |
|
|
1717 | IFS=$as_save_IFS |
|
|
1718 | test -z "$as_dir" && as_dir=. |
|
|
1719 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
1720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
1721 | ac_cv_prog_AWK="$ac_prog" |
|
|
1722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
1723 | break 2 |
|
|
1724 | fi |
|
|
1725 | done |
|
|
1726 | done |
|
|
1727 | |
|
|
1728 | fi |
|
|
1729 | fi |
|
|
1730 | AWK=$ac_cv_prog_AWK |
|
|
1731 | if test -n "$AWK"; then |
|
|
1732 | echo "$as_me:$LINENO: result: $AWK" >&5 |
|
|
1733 | echo "${ECHO_T}$AWK" >&6 |
|
|
1734 | else |
|
|
1735 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
1736 | echo "${ECHO_T}no" >&6 |
|
|
1737 | fi |
|
|
1738 | |
|
|
1739 | test -n "$AWK" && break |
|
|
1740 | done |
|
|
1741 | |
|
|
1742 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1685 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1743 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1686 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1744 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1687 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1745 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1688 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
1766 | echo "$as_me:$LINENO: result: no" >&5 |
1709 | echo "$as_me:$LINENO: result: no" >&5 |
1767 | echo "${ECHO_T}no" >&6 |
1710 | echo "${ECHO_T}no" >&6 |
1768 | SET_MAKE="MAKE=${MAKE-make}" |
1711 | SET_MAKE="MAKE=${MAKE-make}" |
1769 | fi |
1712 | fi |
1770 | |
1713 | |
1771 | rm -rf .tst 2>/dev/null |
|
|
1772 | mkdir .tst 2>/dev/null |
|
|
1773 | if test -d .tst; then |
|
|
1774 | am__leading_dot=. |
|
|
1775 | else |
|
|
1776 | am__leading_dot=_ |
|
|
1777 | fi |
|
|
1778 | rmdir .tst 2>/dev/null |
|
|
1779 | |
1714 | |
1780 | # test to see if srcdir already configured |
1715 | PACKAGE= |
1781 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1716 | |
1782 | test -f $srcdir/config.status; then |
1717 | VERSION= |
|
|
1718 | |
|
|
1719 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
1783 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1720 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1784 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1721 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1785 | { (exit 1); exit 1; }; } |
1722 | { (exit 1); exit 1; }; } |
1786 | fi |
1723 | fi |
1787 | |
1724 | |
1788 | # test whether we have cygpath |
|
|
1789 | if test -z "$CYGPATH_W"; then |
|
|
1790 | if (cygpath --version) >/dev/null 2>/dev/null; then |
|
|
1791 | CYGPATH_W='cygpath -w' |
|
|
1792 | else |
|
|
1793 | CYGPATH_W=echo |
|
|
1794 | fi |
|
|
1795 | fi |
|
|
1796 | |
|
|
1797 | |
|
|
1798 | # Define the identity of the package. |
|
|
1799 | PACKAGE='crossfire' |
|
|
1800 | VERSION='1.8.0' |
|
|
1801 | |
|
|
1802 | |
|
|
1803 | cat >>confdefs.h <<_ACEOF |
1725 | cat >>confdefs.h <<_ACEOF |
1804 | #define PACKAGE "$PACKAGE" |
1726 | #define PACKAGE "$PACKAGE" |
1805 | _ACEOF |
1727 | _ACEOF |
1806 | |
1728 | |
1807 | |
1729 | |
1808 | cat >>confdefs.h <<_ACEOF |
1730 | cat >>confdefs.h <<_ACEOF |
1809 | #define VERSION "$VERSION" |
1731 | #define VERSION "$VERSION" |
1810 | _ACEOF |
1732 | _ACEOF |
1811 | |
1733 | |
1812 | # Some tools Automake needs. |
|
|
1813 | |
1734 | |
1814 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
|
|
1815 | |
1735 | |
1816 | |
1736 | missing_dir=`cd $ac_aux_dir && pwd` |
1817 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1737 | echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 |
1818 | |
1738 | echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 |
1819 | |
1739 | # Run test in a subshell; some versions of sh will print an error if |
1820 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1740 | # an executable is not found, even if stderr is redirected. |
1821 | |
1741 | # Redirect stdin to placate older versions of autoconf. Sigh. |
1822 | |
1742 | if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
1823 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1743 | ACLOCAL=aclocal-${am__api_version} |
1824 | |
|
|
1825 | |
|
|
1826 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
|
1827 | |
|
|
1828 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
|
|
1829 | |
|
|
1830 | # Installed binaries are usually stripped using `strip' when the user |
|
|
1831 | # run `make install-strip'. However `strip' might not be the right |
|
|
1832 | # tool to use in cross-compilation environments, therefore Automake |
|
|
1833 | # will honor the `STRIP' environment variable to overrule this program. |
|
|
1834 | if test "$cross_compiling" != no; then |
|
|
1835 | if test -n "$ac_tool_prefix"; then |
|
|
1836 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
1837 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
1838 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
1839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
1840 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
1841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1842 | else |
|
|
1843 | if test -n "$STRIP"; then |
|
|
1844 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
1845 | else |
|
|
1846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
1847 | for as_dir in $PATH |
|
|
1848 | do |
|
|
1849 | IFS=$as_save_IFS |
|
|
1850 | test -z "$as_dir" && as_dir=. |
|
|
1851 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
1852 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
1853 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
1854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
1855 | break 2 |
|
|
1856 | fi |
|
|
1857 | done |
|
|
1858 | done |
|
|
1859 | |
|
|
1860 | fi |
|
|
1861 | fi |
|
|
1862 | STRIP=$ac_cv_prog_STRIP |
|
|
1863 | if test -n "$STRIP"; then |
|
|
1864 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
1865 | echo "${ECHO_T}$STRIP" >&6 |
|
|
1866 | else |
|
|
1867 | echo "$as_me:$LINENO: result: no" >&5 |
1744 | echo "$as_me:$LINENO: result: found" >&5 |
1868 | echo "${ECHO_T}no" >&6 |
1745 | echo "${ECHO_T}found" >&6 |
|
|
1746 | else |
|
|
1747 | ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
|
|
1748 | echo "$as_me:$LINENO: result: missing" >&5 |
|
|
1749 | echo "${ECHO_T}missing" >&6 |
1869 | fi |
1750 | fi |
1870 | |
1751 | |
1871 | fi |
|
|
1872 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
1873 | ac_ct_STRIP=$STRIP |
|
|
1874 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
1875 | set dummy strip; ac_word=$2 |
|
|
1876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1752 | echo "$as_me:$LINENO: checking for working autoconf" >&5 |
1877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1753 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
1878 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1754 | # Run test in a subshell; some versions of sh will print an error if |
1879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1755 | # an executable is not found, even if stderr is redirected. |
1880 | else |
1756 | # Redirect stdin to placate older versions of autoconf. Sigh. |
1881 | if test -n "$ac_ct_STRIP"; then |
1757 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
1882 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1758 | AUTOCONF=autoconf |
1883 | else |
|
|
1884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
1885 | for as_dir in $PATH |
|
|
1886 | do |
|
|
1887 | IFS=$as_save_IFS |
|
|
1888 | test -z "$as_dir" && as_dir=. |
|
|
1889 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
1890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
1891 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
1892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
1893 | break 2 |
|
|
1894 | fi |
|
|
1895 | done |
|
|
1896 | done |
|
|
1897 | |
|
|
1898 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
1899 | fi |
|
|
1900 | fi |
|
|
1901 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
1902 | if test -n "$ac_ct_STRIP"; then |
|
|
1903 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
1904 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
1905 | else |
|
|
1906 | echo "$as_me:$LINENO: result: no" >&5 |
1759 | echo "$as_me:$LINENO: result: found" >&5 |
1907 | echo "${ECHO_T}no" >&6 |
1760 | echo "${ECHO_T}found" >&6 |
1908 | fi |
|
|
1909 | |
|
|
1910 | STRIP=$ac_ct_STRIP |
|
|
1911 | else |
1761 | else |
1912 | STRIP="$ac_cv_prog_STRIP" |
1762 | AUTOCONF="$missing_dir/missing autoconf" |
|
|
1763 | echo "$as_me:$LINENO: result: missing" >&5 |
|
|
1764 | echo "${ECHO_T}missing" >&6 |
1913 | fi |
1765 | fi |
1914 | |
1766 | |
|
|
1767 | echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 |
|
|
1768 | echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 |
|
|
1769 | # Run test in a subshell; some versions of sh will print an error if |
|
|
1770 | # an executable is not found, even if stderr is redirected. |
|
|
1771 | # Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
1772 | if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
|
|
1773 | AUTOMAKE=automake-${am__api_version} |
|
|
1774 | echo "$as_me:$LINENO: result: found" >&5 |
|
|
1775 | echo "${ECHO_T}found" >&6 |
|
|
1776 | else |
|
|
1777 | AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
|
|
1778 | echo "$as_me:$LINENO: result: missing" >&5 |
|
|
1779 | echo "${ECHO_T}missing" >&6 |
1915 | fi |
1780 | fi |
1916 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
|
|
1917 | |
1781 | |
1918 | # We need awk for the "check" target. The system "awk" is bad on |
1782 | echo "$as_me:$LINENO: checking for working autoheader" >&5 |
1919 | # some platforms. |
1783 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
1920 | # Always define AMTAR for backward compatibility. |
1784 | # Run test in a subshell; some versions of sh will print an error if |
|
|
1785 | # an executable is not found, even if stderr is redirected. |
|
|
1786 | # Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
1787 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
|
|
1788 | AUTOHEADER=autoheader |
|
|
1789 | echo "$as_me:$LINENO: result: found" >&5 |
|
|
1790 | echo "${ECHO_T}found" >&6 |
|
|
1791 | else |
|
|
1792 | AUTOHEADER="$missing_dir/missing autoheader" |
|
|
1793 | echo "$as_me:$LINENO: result: missing" >&5 |
|
|
1794 | echo "${ECHO_T}missing" >&6 |
|
|
1795 | fi |
1921 | |
1796 | |
1922 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1797 | echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
1923 | |
1798 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
1924 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
1799 | # Run test in a subshell; some versions of sh will print an error if |
1925 | |
1800 | # an executable is not found, even if stderr is redirected. |
1926 | |
1801 | # Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
1802 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
|
|
1803 | MAKEINFO=makeinfo |
|
|
1804 | echo "$as_me:$LINENO: result: found" >&5 |
|
|
1805 | echo "${ECHO_T}found" >&6 |
|
|
1806 | else |
|
|
1807 | MAKEINFO="$missing_dir/missing makeinfo" |
|
|
1808 | echo "$as_me:$LINENO: result: missing" >&5 |
|
|
1809 | echo "${ECHO_T}missing" >&6 |
|
|
1810 | fi |
1927 | |
1811 | |
1928 | |
1812 | |
1929 | |
1813 | |
1930 | ac_config_headers="$ac_config_headers include/autoconf.h" |
1814 | ac_config_headers="$ac_config_headers include/autoconf.h" |
|
|
1815 | |
|
|
1816 | ac_config_commands="$ac_config_commands default-1" |
1931 | |
1817 | |
1932 | |
1818 | |
1933 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1819 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1934 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
1820 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
1935 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1821 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
… | |
… | |
1948 | MAINTAINER_MODE_FALSE='#' |
1834 | MAINTAINER_MODE_FALSE='#' |
1949 | else |
1835 | else |
1950 | MAINTAINER_MODE_TRUE='#' |
1836 | MAINTAINER_MODE_TRUE='#' |
1951 | MAINTAINER_MODE_FALSE= |
1837 | MAINTAINER_MODE_FALSE= |
1952 | fi |
1838 | fi |
1953 | |
|
|
1954 | MAINT=$MAINTAINER_MODE_TRUE |
1839 | MAINT=$MAINTAINER_MODE_TRUE |
1955 | |
1840 | |
1956 | |
1841 | |
1957 | |
1842 | |
1958 | |
1843 | |
1959 | |
1844 | |
1960 | |
1845 | |
|
|
1846 | # Check whether --enable-shared or --disable-shared was given. |
|
|
1847 | if test "${enable_shared+set}" = set; then |
|
|
1848 | enableval="$enable_shared" |
|
|
1849 | p=${PACKAGE-default} |
|
|
1850 | case $enableval in |
|
|
1851 | yes) enable_shared=yes ;; |
|
|
1852 | no) enable_shared=no ;; |
|
|
1853 | *) |
|
|
1854 | enable_shared=no |
|
|
1855 | # Look at the argument we got. We use all the common list separators. |
|
|
1856 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
1857 | for pkg in $enableval; do |
|
|
1858 | IFS="$lt_save_ifs" |
|
|
1859 | if test "X$pkg" = "X$p"; then |
|
|
1860 | enable_shared=yes |
|
|
1861 | fi |
|
|
1862 | done |
|
|
1863 | IFS="$lt_save_ifs" |
|
|
1864 | ;; |
|
|
1865 | esac |
|
|
1866 | else |
|
|
1867 | enable_shared=yes |
|
|
1868 | fi; |
1961 | |
1869 | |
|
|
1870 | # Check whether --enable-static or --disable-static was given. |
|
|
1871 | if test "${enable_static+set}" = set; then |
|
|
1872 | enableval="$enable_static" |
|
|
1873 | p=${PACKAGE-default} |
|
|
1874 | case $enableval in |
|
|
1875 | yes) enable_static=yes ;; |
|
|
1876 | no) enable_static=no ;; |
|
|
1877 | *) |
|
|
1878 | enable_static=no |
|
|
1879 | # Look at the argument we got. We use all the common list separators. |
|
|
1880 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
1881 | for pkg in $enableval; do |
|
|
1882 | IFS="$lt_save_ifs" |
|
|
1883 | if test "X$pkg" = "X$p"; then |
|
|
1884 | enable_static=yes |
|
|
1885 | fi |
|
|
1886 | done |
|
|
1887 | IFS="$lt_save_ifs" |
|
|
1888 | ;; |
|
|
1889 | esac |
|
|
1890 | else |
|
|
1891 | enable_static=yes |
|
|
1892 | fi; |
1962 | |
1893 | |
1963 | macro_version='' |
1894 | # Check whether --enable-fast-install or --disable-fast-install was given. |
1964 | macro_revision='1.1467' |
1895 | if test "${enable_fast_install+set}" = set; then |
1965 | |
1896 | enableval="$enable_fast_install" |
1966 | |
1897 | p=${PACKAGE-default} |
1967 | |
1898 | case $enableval in |
1968 | |
1899 | yes) enable_fast_install=yes ;; |
1969 | |
1900 | no) enable_fast_install=no ;; |
1970 | |
1901 | *) |
1971 | |
1902 | enable_fast_install=no |
1972 | |
1903 | # Look at the argument we got. We use all the common list separators. |
1973 | |
1904 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
1974 | |
1905 | for pkg in $enableval; do |
1975 | |
1906 | IFS="$lt_save_ifs" |
1976 | |
1907 | if test "X$pkg" = "X$p"; then |
1977 | case $ac_aux_dir in |
1908 | enable_fast_install=yes |
1978 | $srcdir) ltmain=./ltmain.sh ;; |
1909 | fi |
1979 | $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;; |
1910 | done |
1980 | esac |
1911 | IFS="$lt_save_ifs" |
1981 | test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh" |
1912 | ;; |
|
|
1913 | esac |
|
|
1914 | else |
|
|
1915 | enable_fast_install=yes |
|
|
1916 | fi; |
1982 | |
1917 | |
1983 | # Make sure we can run config.sub. |
1918 | # Make sure we can run config.sub. |
1984 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1919 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1985 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1920 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1986 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1921 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
… | |
… | |
2030 | echo "${ECHO_T}$ac_cv_host" >&6 |
1965 | echo "${ECHO_T}$ac_cv_host" >&6 |
2031 | host=$ac_cv_host |
1966 | host=$ac_cv_host |
2032 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1967 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2033 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1968 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
2034 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1969 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
2035 | |
|
|
2036 | |
|
|
2037 | DEPDIR="${am__leading_dot}deps" |
|
|
2038 | |
|
|
2039 | ac_config_commands="$ac_config_commands depfiles" |
|
|
2040 | |
|
|
2041 | |
|
|
2042 | am_make=${MAKE-make} |
|
|
2043 | cat > confinc << 'END' |
|
|
2044 | am__doit: |
|
|
2045 | @echo done |
|
|
2046 | .PHONY: am__doit |
|
|
2047 | END |
|
|
2048 | # If we don't find an include directive, just comment out the code. |
|
|
2049 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
|
|
2050 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
|
|
2051 | am__include="#" |
|
|
2052 | am__quote= |
|
|
2053 | _am_result=none |
|
|
2054 | # First try GNU make style include. |
|
|
2055 | echo "include confinc" > confmf |
|
|
2056 | # We grep out `Entering directory' and `Leaving directory' |
|
|
2057 | # messages which can occur if `w' ends up in MAKEFLAGS. |
|
|
2058 | # In particular we don't look at `^make:' because GNU make might |
|
|
2059 | # be invoked under some other name (usually "gmake"), in which |
|
|
2060 | # case it prints its new name instead of `make'. |
|
|
2061 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
|
|
2062 | am__include=include |
|
|
2063 | am__quote= |
|
|
2064 | _am_result=GNU |
|
|
2065 | fi |
|
|
2066 | # Now try BSD make style include. |
|
|
2067 | if test "$am__include" = "#"; then |
|
|
2068 | echo '.include "confinc"' > confmf |
|
|
2069 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
|
|
2070 | am__include=.include |
|
|
2071 | am__quote="\"" |
|
|
2072 | _am_result=BSD |
|
|
2073 | fi |
|
|
2074 | fi |
|
|
2075 | |
|
|
2076 | |
|
|
2077 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
|
|
2078 | echo "${ECHO_T}$_am_result" >&6 |
|
|
2079 | rm -f confinc confmf |
|
|
2080 | |
|
|
2081 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
|
|
2082 | if test "${enable_dependency_tracking+set}" = set; then |
|
|
2083 | enableval="$enable_dependency_tracking" |
|
|
2084 | |
|
|
2085 | fi; |
|
|
2086 | if test "x$enable_dependency_tracking" != xno; then |
|
|
2087 | am_depcomp="$ac_aux_dir/depcomp" |
|
|
2088 | AMDEPBACKSLASH='\' |
|
|
2089 | fi |
|
|
2090 | |
|
|
2091 | |
|
|
2092 | if test "x$enable_dependency_tracking" != xno; then |
|
|
2093 | AMDEP_TRUE= |
|
|
2094 | AMDEP_FALSE='#' |
|
|
2095 | else |
|
|
2096 | AMDEP_TRUE='#' |
|
|
2097 | AMDEP_FALSE= |
|
|
2098 | fi |
|
|
2099 | |
|
|
2100 | |
1970 | |
2101 | |
1971 | |
2102 | ac_ext=c |
1972 | ac_ext=c |
2103 | ac_cpp='$CPP $CPPFLAGS' |
1973 | ac_cpp='$CPP $CPPFLAGS' |
2104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
3020 | ac_ext=c |
2890 | ac_ext=c |
3021 | ac_cpp='$CPP $CPPFLAGS' |
2891 | ac_cpp='$CPP $CPPFLAGS' |
3022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2892 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2893 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2894 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3025 | |
|
|
3026 | depcc="$CC" am_compiler_list= |
|
|
3027 | |
|
|
3028 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
|
3029 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
|
|
3030 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
|
3031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3032 | else |
|
|
3033 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
|
3034 | # We make a subdir and do the tests there. Otherwise we can end up |
|
|
3035 | # making bogus files that we don't know about and never remove. For |
|
|
3036 | # instance it was reported that on HP-UX the gcc test will end up |
|
|
3037 | # making a dummy file named `D' -- because `-MD' means `put the output |
|
|
3038 | # in D'. |
|
|
3039 | mkdir conftest.dir |
|
|
3040 | # Copy depcomp to subdir because otherwise we won't find it if we're |
|
|
3041 | # using a relative directory. |
|
|
3042 | cp "$am_depcomp" conftest.dir |
|
|
3043 | cd conftest.dir |
|
|
3044 | # We will build objects and dependencies in a subdirectory because |
|
|
3045 | # it helps to detect inapplicable dependency modes. For instance |
|
|
3046 | # both Tru64's cc and ICC support -MD to output dependencies as a |
|
|
3047 | # side effect of compilation, but ICC will put the dependencies in |
|
|
3048 | # the current directory while Tru64 will put them in the object |
|
|
3049 | # directory. |
|
|
3050 | mkdir sub |
|
|
3051 | |
|
|
3052 | am_cv_CC_dependencies_compiler_type=none |
|
|
3053 | if test "$am_compiler_list" = ""; then |
|
|
3054 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
|
3055 | fi |
|
|
3056 | for depmode in $am_compiler_list; do |
|
|
3057 | # Setup a source with many dependencies, because some compilers |
|
|
3058 | # like to wrap large dependency lists on column 80 (with \), and |
|
|
3059 | # we should not choose a depcomp mode which is confused by this. |
|
|
3060 | # |
|
|
3061 | # We need to recreate these files for each test, as the compiler may |
|
|
3062 | # overwrite some of them when testing with obscure command lines. |
|
|
3063 | # This happens at least with the AIX C compiler. |
|
|
3064 | : > sub/conftest.c |
|
|
3065 | for i in 1 2 3 4 5 6; do |
|
|
3066 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
|
3067 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
|
3068 | # Solaris 8's {/usr,}/bin/sh. |
|
|
3069 | touch sub/conftst$i.h |
|
|
3070 | done |
|
|
3071 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
|
3072 | |
|
|
3073 | case $depmode in |
|
|
3074 | nosideeffect) |
|
|
3075 | # after this tag, mechanisms are not by side-effect, so they'll |
|
|
3076 | # only be used when explicitly requested |
|
|
3077 | if test "x$enable_dependency_tracking" = xyes; then |
|
|
3078 | continue |
|
|
3079 | else |
|
|
3080 | break |
|
|
3081 | fi |
|
|
3082 | ;; |
|
|
3083 | none) break ;; |
|
|
3084 | esac |
|
|
3085 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
|
3086 | # mode. It turns out that the SunPro C++ compiler does not properly |
|
|
3087 | # handle `-M -o', and we need to detect this. |
|
|
3088 | if depmode=$depmode \ |
|
|
3089 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
|
3090 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
|
3091 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
|
3092 | >/dev/null 2>conftest.err && |
|
|
3093 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
|
3094 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
|
3095 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
|
3096 | # icc doesn't choke on unknown options, it will just issue warnings |
|
|
3097 | # or remarks (even with -Werror). So we grep stderr for any message |
|
|
3098 | # that says an option was ignored or not supported. |
|
|
3099 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
|
|
3100 | # icc: Command line warning: ignoring option '-M'; no argument required |
|
|
3101 | # The diagnosis changed in icc 8.0: |
|
|
3102 | # icc: Command line remark: option '-MP' not supported |
|
|
3103 | if (grep 'ignoring option' conftest.err || |
|
|
3104 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
|
3105 | am_cv_CC_dependencies_compiler_type=$depmode |
|
|
3106 | break |
|
|
3107 | fi |
|
|
3108 | fi |
|
|
3109 | done |
|
|
3110 | |
|
|
3111 | cd .. |
|
|
3112 | rm -rf conftest.dir |
|
|
3113 | else |
|
|
3114 | am_cv_CC_dependencies_compiler_type=none |
|
|
3115 | fi |
|
|
3116 | |
|
|
3117 | fi |
|
|
3118 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
|
3119 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
|
|
3120 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
|
3121 | |
|
|
3122 | |
|
|
3123 | |
|
|
3124 | if |
|
|
3125 | test "x$enable_dependency_tracking" != xno \ |
|
|
3126 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
|
3127 | am__fastdepCC_TRUE= |
|
|
3128 | am__fastdepCC_FALSE='#' |
|
|
3129 | else |
|
|
3130 | am__fastdepCC_TRUE='#' |
|
|
3131 | am__fastdepCC_FALSE= |
|
|
3132 | fi |
|
|
3133 | |
|
|
3134 | |
2895 | |
3135 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
2896 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3136 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
2897 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3137 | if test "${lt_cv_path_SED+set}" = set; then |
2898 | if test "${lt_cv_path_SED+set}" = set; then |
3138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
3182 | fi |
2943 | fi |
3183 | done |
2944 | done |
3184 | done |
2945 | done |
3185 | SED=$lt_cv_path_SED |
2946 | SED=$lt_cv_path_SED |
3186 | |
2947 | |
3187 | |
|
|
3188 | fi |
2948 | fi |
3189 | |
2949 | |
3190 | echo "$as_me:$LINENO: result: $SED" >&5 |
2950 | echo "$as_me:$LINENO: result: $SED" >&5 |
3191 | echo "${ECHO_T}$SED" >&6 |
2951 | echo "${ECHO_T}$SED" >&6 |
3192 | |
|
|
3193 | test -z "$SED" && SED=sed |
|
|
3194 | |
|
|
3195 | |
|
|
3196 | |
|
|
3197 | |
|
|
3198 | |
|
|
3199 | |
|
|
3200 | |
|
|
3201 | |
|
|
3202 | |
|
|
3203 | |
|
|
3204 | |
2952 | |
3205 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2953 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3206 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
2954 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3207 | if test "${ac_cv_prog_egrep+set}" = set; then |
2955 | if test "${ac_cv_prog_egrep+set}" = set; then |
3208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
3216 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
2964 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3217 | EGREP=$ac_cv_prog_egrep |
2965 | EGREP=$ac_cv_prog_egrep |
3218 | |
2966 | |
3219 | |
2967 | |
3220 | |
2968 | |
3221 | test -z "$GREP" && GREP=grep |
|
|
3222 | |
|
|
3223 | |
|
|
3224 | |
|
|
3225 | |
|
|
3226 | |
|
|
3227 | |
|
|
3228 | |
|
|
3229 | |
|
|
3230 | |
|
|
3231 | |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
2969 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3235 | if test "${with_gnu_ld+set}" = set; then |
2970 | if test "${with_gnu_ld+set}" = set; then |
3236 | withval="$with_gnu_ld" |
2971 | withval="$with_gnu_ld" |
3237 | test "$withval" = no || with_gnu_ld=yes |
2972 | test "$withval" = no || with_gnu_ld=yes |
3238 | else |
2973 | else |
3239 | with_gnu_ld=no |
2974 | with_gnu_ld=no |
3240 | fi; |
2975 | fi; |
3241 | |
|
|
3242 | ac_prog=ld |
2976 | ac_prog=ld |
3243 | if test "$GCC" = yes; then |
2977 | if test "$GCC" = yes; then |
3244 | # Check if gcc -print-prog-name=ld gives a path. |
2978 | # Check if gcc -print-prog-name=ld gives a path. |
3245 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
2979 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3246 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
2980 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
… | |
… | |
3255 | # Accept absolute paths. |
2989 | # Accept absolute paths. |
3256 | [\\/]* | ?:[\\/]*) |
2990 | [\\/]* | ?:[\\/]*) |
3257 | re_direlt='/[^/][^/]*/\.\./' |
2991 | re_direlt='/[^/][^/]*/\.\./' |
3258 | # Canonicalize the pathname of ld |
2992 | # Canonicalize the pathname of ld |
3259 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
2993 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3260 | while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do |
2994 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3261 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
2995 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3262 | done |
2996 | done |
3263 | test -z "$LD" && LD="$ac_prog" |
2997 | test -z "$LD" && LD="$ac_prog" |
3264 | ;; |
2998 | ;; |
3265 | "") |
2999 | "") |
… | |
… | |
3336 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3070 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3337 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3071 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3338 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3072 | with_gnu_ld=$lt_cv_prog_gnu_ld |
3339 | |
3073 | |
3340 | |
3074 | |
3341 | |
|
|
3342 | |
|
|
3343 | |
|
|
3344 | |
|
|
3345 | |
|
|
3346 | |
|
|
3347 | |
|
|
3348 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3075 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3349 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3076 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3350 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3077 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
3351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3352 | else |
3079 | else |
… | |
… | |
3358 | case $reload_flag in |
3085 | case $reload_flag in |
3359 | "" | " "*) ;; |
3086 | "" | " "*) ;; |
3360 | *) reload_flag=" $reload_flag" ;; |
3087 | *) reload_flag=" $reload_flag" ;; |
3361 | esac |
3088 | esac |
3362 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3089 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3363 | case $host_os in |
|
|
3364 | darwin*) |
|
|
3365 | if test "$GCC" = yes; then |
|
|
3366 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
|
|
3367 | else |
|
|
3368 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
3369 | fi |
|
|
3370 | ;; |
|
|
3371 | esac |
|
|
3372 | |
|
|
3373 | |
|
|
3374 | |
|
|
3375 | |
|
|
3376 | |
|
|
3377 | |
|
|
3378 | |
|
|
3379 | |
|
|
3380 | |
3090 | |
3381 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3091 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3382 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3092 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3383 | if test "${lt_cv_path_NM+set}" = set; then |
3093 | if test "${lt_cv_path_NM+set}" = set; then |
3384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
3421 | fi |
3131 | fi |
3422 | fi |
3132 | fi |
3423 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3133 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
3424 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3134 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3425 | NM="$lt_cv_path_NM" |
3135 | NM="$lt_cv_path_NM" |
3426 | test -z "$NM" && NM=nm |
|
|
3427 | |
|
|
3428 | |
|
|
3429 | |
|
|
3430 | |
|
|
3431 | |
|
|
3432 | |
3136 | |
3433 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3137 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3434 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3138 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3435 | LN_S=$as_ln_s |
3139 | LN_S=$as_ln_s |
3436 | if test "$LN_S" = "ln -s"; then |
3140 | if test "$LN_S" = "ln -s"; then |
… | |
… | |
3438 | echo "${ECHO_T}yes" >&6 |
3142 | echo "${ECHO_T}yes" >&6 |
3439 | else |
3143 | else |
3440 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3144 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3441 | echo "${ECHO_T}no, using $LN_S" >&6 |
3145 | echo "${ECHO_T}no, using $LN_S" >&6 |
3442 | fi |
3146 | fi |
3443 | |
|
|
3444 | |
3147 | |
3445 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3148 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
3446 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3149 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
3447 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
3150 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
3448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
3480 | # func_win32_libid is a shell function defined in ltmain.sh |
3183 | # func_win32_libid is a shell function defined in ltmain.sh |
3481 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3184 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3482 | lt_cv_file_magic_cmd='func_win32_libid' |
3185 | lt_cv_file_magic_cmd='func_win32_libid' |
3483 | ;; |
3186 | ;; |
3484 | |
3187 | |
|
|
3188 | mingw* | pw32*) |
3485 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3189 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3486 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3190 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3487 | mingw* | pw32*) |
|
|
3488 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3191 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3489 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3192 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3490 | ;; |
3193 | ;; |
3491 | |
3194 | |
3492 | darwin* | rhapsody*) |
3195 | darwin* | rhapsody*) |
3493 | lt_cv_deplibs_check_method=pass_all |
3196 | lt_cv_deplibs_check_method=pass_all |
3494 | ;; |
3197 | ;; |
3495 | |
3198 | |
3496 | freebsd* | kfreebsd*-gnu) |
3199 | freebsd* | kfreebsd*-gnu) |
3497 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3200 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3498 | case $host_cpu in |
3201 | case $host_cpu in |
3499 | i*86 ) |
3202 | i*86 ) |
3500 | # Not sure whether the presence of OpenBSD here was a mistake. |
3203 | # Not sure whether the presence of OpenBSD here was a mistake. |
3501 | # Let's accept both of them until this is cleared up. |
3204 | # Let's accept both of them until this is cleared up. |
3502 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3205 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
… | |
… | |
3541 | lt_cv_deplibs_check_method=pass_all |
3244 | lt_cv_deplibs_check_method=pass_all |
3542 | ;; |
3245 | ;; |
3543 | |
3246 | |
3544 | # This must be Linux ELF. |
3247 | # This must be Linux ELF. |
3545 | linux*) |
3248 | linux*) |
3546 | case $host_cpu in |
|
|
3547 | alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
|
|
3548 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
3549 | *) |
|
|
3550 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
3551 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
3552 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
3553 | esac |
|
|
3554 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
3555 | lt_cv_deplibs_check_method=pass_all |
3249 | lt_cv_deplibs_check_method=pass_all |
3556 | ;; |
3250 | ;; |
3557 | |
3251 | |
3558 | netbsd* | knetbsd*-gnu) |
3252 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
3559 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3253 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3560 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3254 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
3561 | else |
3255 | else |
3562 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3256 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
3563 | fi |
3257 | fi |
3564 | ;; |
3258 | ;; |
… | |
… | |
3574 | ;; |
3268 | ;; |
3575 | |
3269 | |
3576 | openbsd*) |
3270 | openbsd*) |
3577 | lt_cv_file_magic_cmd=/usr/bin/file |
3271 | lt_cv_file_magic_cmd=/usr/bin/file |
3578 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3272 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3579 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3273 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3580 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
3274 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
3581 | else |
3275 | else |
3582 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
3276 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
3583 | fi |
3277 | fi |
3584 | ;; |
3278 | ;; |
… | |
… | |
3632 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3326 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3633 | |
3327 | |
3634 | |
3328 | |
3635 | |
3329 | |
3636 | |
3330 | |
3637 | |
|
|
3638 | |
|
|
3639 | |
|
|
3640 | |
|
|
3641 | |
|
|
3642 | |
|
|
3643 | |
|
|
3644 | |
|
|
3645 | if test -n "$ac_tool_prefix"; then |
|
|
3646 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
|
3647 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
|
3648 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3650 | if test "${ac_cv_prog_AR+set}" = set; then |
|
|
3651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3652 | else |
|
|
3653 | if test -n "$AR"; then |
|
|
3654 | ac_cv_prog_AR="$AR" # Let the user override the test. |
|
|
3655 | else |
|
|
3656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3657 | for as_dir in $PATH |
|
|
3658 | do |
|
|
3659 | IFS=$as_save_IFS |
|
|
3660 | test -z "$as_dir" && as_dir=. |
|
|
3661 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3662 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3663 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
|
3664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3665 | break 2 |
|
|
3666 | fi |
|
|
3667 | done |
|
|
3668 | done |
|
|
3669 | |
|
|
3670 | fi |
|
|
3671 | fi |
|
|
3672 | AR=$ac_cv_prog_AR |
|
|
3673 | if test -n "$AR"; then |
|
|
3674 | echo "$as_me:$LINENO: result: $AR" >&5 |
|
|
3675 | echo "${ECHO_T}$AR" >&6 |
|
|
3676 | else |
|
|
3677 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3678 | echo "${ECHO_T}no" >&6 |
|
|
3679 | fi |
|
|
3680 | |
|
|
3681 | fi |
|
|
3682 | if test -z "$ac_cv_prog_AR"; then |
|
|
3683 | ac_ct_AR=$AR |
|
|
3684 | # Extract the first word of "ar", so it can be a program name with args. |
|
|
3685 | set dummy ar; ac_word=$2 |
|
|
3686 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3688 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|
|
3689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3690 | else |
|
|
3691 | if test -n "$ac_ct_AR"; then |
|
|
3692 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
|
3693 | else |
|
|
3694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3695 | for as_dir in $PATH |
|
|
3696 | do |
|
|
3697 | IFS=$as_save_IFS |
|
|
3698 | test -z "$as_dir" && as_dir=. |
|
|
3699 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3700 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3701 | ac_cv_prog_ac_ct_AR="ar" |
|
|
3702 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3703 | break 2 |
|
|
3704 | fi |
|
|
3705 | done |
|
|
3706 | done |
|
|
3707 | |
|
|
3708 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
|
|
3709 | fi |
|
|
3710 | fi |
|
|
3711 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
|
3712 | if test -n "$ac_ct_AR"; then |
|
|
3713 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
|
|
3714 | echo "${ECHO_T}$ac_ct_AR" >&6 |
|
|
3715 | else |
|
|
3716 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3717 | echo "${ECHO_T}no" >&6 |
|
|
3718 | fi |
|
|
3719 | |
|
|
3720 | AR=$ac_ct_AR |
|
|
3721 | else |
|
|
3722 | AR="$ac_cv_prog_AR" |
|
|
3723 | fi |
|
|
3724 | |
|
|
3725 | test -z "$AR" && AR=ar |
|
|
3726 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
3727 | |
|
|
3728 | |
|
|
3729 | |
|
|
3730 | |
|
|
3731 | |
|
|
3732 | |
|
|
3733 | |
|
|
3734 | |
|
|
3735 | |
|
|
3736 | |
|
|
3737 | |
|
|
3738 | if test -n "$ac_tool_prefix"; then |
|
|
3739 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
3740 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
3741 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3743 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
3744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3745 | else |
|
|
3746 | if test -n "$STRIP"; then |
|
|
3747 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
3748 | else |
|
|
3749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3750 | for as_dir in $PATH |
|
|
3751 | do |
|
|
3752 | IFS=$as_save_IFS |
|
|
3753 | test -z "$as_dir" && as_dir=. |
|
|
3754 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3756 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
3757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3758 | break 2 |
|
|
3759 | fi |
|
|
3760 | done |
|
|
3761 | done |
|
|
3762 | |
|
|
3763 | fi |
|
|
3764 | fi |
|
|
3765 | STRIP=$ac_cv_prog_STRIP |
|
|
3766 | if test -n "$STRIP"; then |
|
|
3767 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
3768 | echo "${ECHO_T}$STRIP" >&6 |
|
|
3769 | else |
|
|
3770 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3771 | echo "${ECHO_T}no" >&6 |
|
|
3772 | fi |
|
|
3773 | |
|
|
3774 | fi |
|
|
3775 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
3776 | ac_ct_STRIP=$STRIP |
|
|
3777 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
3778 | set dummy strip; ac_word=$2 |
|
|
3779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3781 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
3782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3783 | else |
|
|
3784 | if test -n "$ac_ct_STRIP"; then |
|
|
3785 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
3786 | else |
|
|
3787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3788 | for as_dir in $PATH |
|
|
3789 | do |
|
|
3790 | IFS=$as_save_IFS |
|
|
3791 | test -z "$as_dir" && as_dir=. |
|
|
3792 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3794 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
3795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3796 | break 2 |
|
|
3797 | fi |
|
|
3798 | done |
|
|
3799 | done |
|
|
3800 | |
|
|
3801 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
3802 | fi |
|
|
3803 | fi |
|
|
3804 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
3805 | if test -n "$ac_ct_STRIP"; then |
|
|
3806 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
3807 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
3808 | else |
|
|
3809 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3810 | echo "${ECHO_T}no" >&6 |
|
|
3811 | fi |
|
|
3812 | |
|
|
3813 | STRIP=$ac_ct_STRIP |
|
|
3814 | else |
|
|
3815 | STRIP="$ac_cv_prog_STRIP" |
|
|
3816 | fi |
|
|
3817 | |
|
|
3818 | test -z "$STRIP" && STRIP=: |
|
|
3819 | |
|
|
3820 | |
|
|
3821 | |
|
|
3822 | |
|
|
3823 | |
|
|
3824 | |
|
|
3825 | if test -n "$ac_tool_prefix"; then |
|
|
3826 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
3827 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
3828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3830 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
3831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3832 | else |
|
|
3833 | if test -n "$RANLIB"; then |
|
|
3834 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
3835 | else |
|
|
3836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3837 | for as_dir in $PATH |
|
|
3838 | do |
|
|
3839 | IFS=$as_save_IFS |
|
|
3840 | test -z "$as_dir" && as_dir=. |
|
|
3841 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3843 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
3844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3845 | break 2 |
|
|
3846 | fi |
|
|
3847 | done |
|
|
3848 | done |
|
|
3849 | |
|
|
3850 | fi |
|
|
3851 | fi |
|
|
3852 | RANLIB=$ac_cv_prog_RANLIB |
|
|
3853 | if test -n "$RANLIB"; then |
|
|
3854 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
3855 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
3856 | else |
|
|
3857 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3858 | echo "${ECHO_T}no" >&6 |
|
|
3859 | fi |
|
|
3860 | |
|
|
3861 | fi |
|
|
3862 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
3863 | ac_ct_RANLIB=$RANLIB |
|
|
3864 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
3865 | set dummy ranlib; ac_word=$2 |
|
|
3866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3868 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
3869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3870 | else |
|
|
3871 | if test -n "$ac_ct_RANLIB"; then |
|
|
3872 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
3873 | else |
|
|
3874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3875 | for as_dir in $PATH |
|
|
3876 | do |
|
|
3877 | IFS=$as_save_IFS |
|
|
3878 | test -z "$as_dir" && as_dir=. |
|
|
3879 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3881 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
3882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3883 | break 2 |
|
|
3884 | fi |
|
|
3885 | done |
|
|
3886 | done |
|
|
3887 | |
|
|
3888 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
3889 | fi |
|
|
3890 | fi |
|
|
3891 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
3892 | if test -n "$ac_ct_RANLIB"; then |
|
|
3893 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
3894 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
3895 | else |
|
|
3896 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3897 | echo "${ECHO_T}no" >&6 |
|
|
3898 | fi |
|
|
3899 | |
|
|
3900 | RANLIB=$ac_ct_RANLIB |
|
|
3901 | else |
|
|
3902 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
3903 | fi |
|
|
3904 | |
|
|
3905 | test -z "$RANLIB" && RANLIB=: |
|
|
3906 | |
|
|
3907 | |
|
|
3908 | |
|
|
3909 | |
|
|
3910 | |
|
|
3911 | |
|
|
3912 | # Determine commands to create old-style static archives. |
|
|
3913 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
3914 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
3915 | old_postuninstall_cmds= |
|
|
3916 | |
|
|
3917 | if test -n "$RANLIB"; then |
|
|
3918 | case $host_os in |
|
|
3919 | openbsd*) |
|
|
3920 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
|
3921 | ;; |
|
|
3922 | *) |
|
|
3923 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
3924 | ;; |
|
|
3925 | esac |
|
|
3926 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
3927 | fi |
|
|
3928 | |
|
|
3929 | |
|
|
3930 | |
|
|
3931 | |
|
|
3932 | |
|
|
3933 | |
|
|
3934 | |
|
|
3935 | |
|
|
3936 | |
|
|
3937 | |
|
|
3938 | |
|
|
3939 | |
|
|
3940 | |
|
|
3941 | |
|
|
3942 | |
|
|
3943 | |
|
|
3944 | # find the maximum length of command line arguments |
|
|
3945 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
|
|
3946 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
|
|
3947 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
|
3948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3949 | else |
|
|
3950 | i=0 |
|
|
3951 | teststring="ABCD" |
|
|
3952 | |
|
|
3953 | case $build_os in |
|
|
3954 | msdosdjgpp*) |
|
|
3955 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
|
|
3956 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
|
|
3957 | # during glob expansion). Even if it were fixed, the result of this |
|
|
3958 | # check would be larger than it should be. |
|
|
3959 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
|
3960 | ;; |
|
|
3961 | |
|
|
3962 | gnu*) |
|
|
3963 | # Under GNU Hurd, this test is not required because there is |
|
|
3964 | # no limit to the length of command line arguments. |
|
|
3965 | # Libtool will interpret -1 as no limit whatsoever |
|
|
3966 | lt_cv_sys_max_cmd_len=-1; |
|
|
3967 | ;; |
|
|
3968 | |
|
|
3969 | cygwin* | mingw*) |
|
|
3970 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
|
|
3971 | # about 5 minutes as the teststring grows exponentially. |
|
|
3972 | # Worse, since 9x/ME are not pre-emptively multitasking, |
|
|
3973 | # you end up with a "frozen" computer, even though with patience |
|
|
3974 | # the test eventually succeeds (with a max line length of 256k). |
|
|
3975 | # Instead, let's just punt: use the minimum linelength reported by |
|
|
3976 | # all of the supported platforms: 8192 (on NT/2K/XP). |
|
|
3977 | lt_cv_sys_max_cmd_len=8192; |
|
|
3978 | ;; |
|
|
3979 | |
|
|
3980 | amigaos*) |
|
|
3981 | # On AmigaOS with pdksh, this test takes hours, literally. |
|
|
3982 | # So we just punt and use a minimum line length of 8192. |
|
|
3983 | lt_cv_sys_max_cmd_len=8192; |
|
|
3984 | ;; |
|
|
3985 | |
|
|
3986 | *) |
|
|
3987 | # Make teststring a little bigger before we do anything with it. |
|
|
3988 | # a 1K string should be a reasonable start. |
|
|
3989 | for i in 1 2 3 4 5 6 7 8 ; do |
|
|
3990 | teststring=$teststring$teststring |
|
|
3991 | done |
|
|
3992 | # If test is not a shell built-in, we'll probably end up computing a |
|
|
3993 | # maximum length that is only half of the actual maximum length, but |
|
|
3994 | # we can't tell. |
|
|
3995 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
|
|
3996 | = "XX$teststring$teststring") >/dev/null 2>&1 && |
|
|
3997 | test $i != 17 # 1/2 MB should be enough |
|
|
3998 | do |
|
|
3999 | i=`expr $i + 1` |
|
|
4000 | teststring=$teststring$teststring |
|
|
4001 | done |
|
|
4002 | # Only check the string length outside the loop. |
|
|
4003 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
|
|
4004 | teststring= |
|
|
4005 | # Add a significant safety factor because C++ compilers can tack on massive |
|
|
4006 | # amounts of additional arguments before passing them to the linker. |
|
|
4007 | # It appears as though 1/2 is a usable value. |
|
|
4008 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
|
4009 | ;; |
|
|
4010 | esac |
|
|
4011 | |
|
|
4012 | fi |
|
|
4013 | |
|
|
4014 | if test -n $lt_cv_sys_max_cmd_len ; then |
|
|
4015 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
|
|
4016 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
|
|
4017 | else |
|
|
4018 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
4019 | echo "${ECHO_T}none" >&6 |
|
|
4020 | fi |
|
|
4021 | |
|
|
4022 | |
|
|
4023 | |
|
|
4024 | |
|
|
4025 | |
|
|
4026 | |
|
|
4027 | |
|
|
4028 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
4029 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
|
|
4030 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
|
|
4031 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
4032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4033 | else |
|
|
4034 | |
|
|
4035 | # These are sane defaults that work on at least a few old systems. |
|
|
4036 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
4037 | |
|
|
4038 | # Character class describing NM global symbol codes. |
|
|
4039 | symcode='[BCDEGRST]' |
|
|
4040 | |
|
|
4041 | # Regexp to match symbols that can be accessed directly from C. |
|
|
4042 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
4043 | |
|
|
4044 | # Transform the above into a raw symbol and a C symbol. |
|
|
4045 | symxfrm='\1 \2\3 \3' |
|
|
4046 | |
|
|
4047 | # Transform an extracted symbol line into a proper C declaration |
|
|
4048 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
|
4049 | |
|
|
4050 | # Transform an extracted symbol line into symbol name and symbol address |
|
|
4051 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
4052 | |
|
|
4053 | # Define system-specific variables. |
|
|
4054 | case $host_os in |
|
|
4055 | aix*) |
|
|
4056 | symcode='[BCDT]' |
|
|
4057 | ;; |
|
|
4058 | cygwin* | mingw* | pw32*) |
|
|
4059 | symcode='[ABCDGISTW]' |
|
|
4060 | ;; |
|
|
4061 | hpux*) # Its linker distinguishes data from code symbols |
|
|
4062 | if test "$host_cpu" = ia64; then |
|
|
4063 | symcode='[ABCDEGRST]' |
|
|
4064 | fi |
|
|
4065 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
4066 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
4067 | ;; |
|
|
4068 | irix* | nonstopux*) |
|
|
4069 | symcode='[BCDEGRST]' |
|
|
4070 | ;; |
|
|
4071 | osf*) |
|
|
4072 | symcode='[BCDEGQRST]' |
|
|
4073 | ;; |
|
|
4074 | solaris* | sysv5*) |
|
|
4075 | symcode='[BDRT]' |
|
|
4076 | ;; |
|
|
4077 | sysv4) |
|
|
4078 | symcode='[DFNSTU]' |
|
|
4079 | ;; |
|
|
4080 | esac |
|
|
4081 | |
|
|
4082 | # Handle CRLF in mingw tool chain |
|
|
4083 | opt_cr= |
|
|
4084 | case $build_os in |
|
|
4085 | mingw*) |
|
|
4086 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
4087 | ;; |
|
|
4088 | esac |
|
|
4089 | |
|
|
4090 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
4091 | case `$NM -V 2>&1` in |
|
|
4092 | *GNU* | *'with BFD'*) |
|
|
4093 | symcode='[ABCDGIRSTW]' ;; |
|
|
4094 | esac |
|
|
4095 | |
|
|
4096 | # Try without a prefix undercore, then with it. |
|
|
4097 | for ac_symprfx in "" "_"; do |
|
|
4098 | |
|
|
4099 | # Write the raw and C identifiers. |
|
|
4100 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
4101 | |
|
|
4102 | # Check to see that the pipe works correctly. |
|
|
4103 | pipe_works=no |
|
|
4104 | |
|
|
4105 | rm -f conftest* |
|
|
4106 | cat > conftest.$ac_ext <<_LT_EOF |
|
|
4107 | #ifdef __cplusplus |
|
|
4108 | extern "C" { |
|
|
4109 | #endif |
|
|
4110 | char nm_test_var; |
|
|
4111 | void nm_test_func(){} |
|
|
4112 | #ifdef __cplusplus |
|
|
4113 | } |
|
|
4114 | #endif |
|
|
4115 | int main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
4116 | _LT_EOF |
|
|
4117 | |
|
|
4118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4119 | (eval $ac_compile) 2>&5 |
|
|
4120 | ac_status=$? |
|
|
4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4122 | (exit $ac_status); }; then |
|
|
4123 | # Now try to grab the symbols. |
|
|
4124 | nlist=conftest.nm |
|
|
4125 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
4126 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
4127 | ac_status=$? |
|
|
4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4129 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
4130 | # Try sorting and uniquifying the output. |
|
|
4131 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
4132 | mv -f "$nlist"T "$nlist" |
|
|
4133 | else |
|
|
4134 | rm -f "$nlist"T |
|
|
4135 | fi |
|
|
4136 | |
|
|
4137 | # Make sure that we snagged all the symbols we need. |
|
|
4138 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
4139 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
4140 | cat <<_LT_EOF > conftest.$ac_ext |
|
|
4141 | #ifdef __cplusplus |
|
|
4142 | extern "C" { |
|
|
4143 | #endif |
|
|
4144 | |
|
|
4145 | _LT_EOF |
|
|
4146 | # Now generate the symbol file. |
|
|
4147 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
|
|
4148 | |
|
|
4149 | cat <<_LT_EOF >> conftest.$ac_ext |
|
|
4150 | #if defined (__STDC__) && __STDC__ |
|
|
4151 | # define lt_ptr_t void * |
|
|
4152 | #else |
|
|
4153 | # define lt_ptr_t char * |
|
|
4154 | # define const |
|
|
4155 | #endif |
|
|
4156 | |
|
|
4157 | /* The mapping between symbol names and symbols. */ |
|
|
4158 | const struct { |
|
|
4159 | const char *name; |
|
|
4160 | lt_ptr_t address; |
|
|
4161 | } |
|
|
4162 | lt_preloaded_symbols[] = |
|
|
4163 | { |
|
|
4164 | _LT_EOF |
|
|
4165 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
|
|
4166 | cat <<\_LT_EOF >> conftest.$ac_ext |
|
|
4167 | {0, (lt_ptr_t) 0} |
|
|
4168 | }; |
|
|
4169 | |
|
|
4170 | #ifdef __cplusplus |
|
|
4171 | } |
|
|
4172 | #endif |
|
|
4173 | _LT_EOF |
|
|
4174 | # Now try linking the two files. |
|
|
4175 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
4176 | lt_save_LIBS="$LIBS" |
|
|
4177 | lt_save_CFLAGS="$CFLAGS" |
|
|
4178 | LIBS="conftstm.$ac_objext" |
|
|
4179 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
|
4180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4181 | (eval $ac_link) 2>&5 |
|
|
4182 | ac_status=$? |
|
|
4183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4184 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
|
4185 | pipe_works=yes |
|
|
4186 | fi |
|
|
4187 | LIBS="$lt_save_LIBS" |
|
|
4188 | CFLAGS="$lt_save_CFLAGS" |
|
|
4189 | else |
|
|
4190 | echo "cannot find nm_test_func in $nlist" >&5 |
|
|
4191 | fi |
|
|
4192 | else |
|
|
4193 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
4194 | fi |
|
|
4195 | else |
|
|
4196 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
4197 | fi |
|
|
4198 | else |
|
|
4199 | echo "$progname: failed program was:" >&5 |
|
|
4200 | cat conftest.$ac_ext >&5 |
|
|
4201 | fi |
|
|
4202 | rm -f conftest* conftst* |
|
|
4203 | |
|
|
4204 | # Do not use the global_symbol_pipe unless it works. |
|
|
4205 | if test "$pipe_works" = yes; then |
|
|
4206 | break |
|
|
4207 | else |
|
|
4208 | lt_cv_sys_global_symbol_pipe= |
|
|
4209 | fi |
|
|
4210 | done |
|
|
4211 | |
|
|
4212 | fi |
|
|
4213 | |
|
|
4214 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
4215 | lt_cv_sys_global_symbol_to_cdecl= |
|
|
4216 | fi |
|
|
4217 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
|
4218 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
4219 | echo "${ECHO_T}failed" >&6 |
|
|
4220 | else |
|
|
4221 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
4222 | echo "${ECHO_T}ok" >&6 |
|
|
4223 | fi |
|
|
4224 | |
|
|
4225 | |
|
|
4226 | |
|
|
4227 | |
|
|
4228 | |
|
|
4229 | |
|
|
4230 | |
|
|
4231 | |
|
|
4232 | |
|
|
4233 | |
|
|
4234 | |
|
|
4235 | |
|
|
4236 | |
|
|
4237 | |
|
|
4238 | |
|
|
4239 | |
|
|
4240 | |
|
|
4241 | |
|
|
4242 | |
|
|
4243 | |
|
|
4244 | |
|
|
4245 | |
|
|
4246 | |
|
|
4247 | |
|
|
4248 | |
|
|
4249 | |
|
|
4250 | |
|
|
4251 | |
|
|
4252 | |
|
|
4253 | |
|
|
4254 | |
|
|
4255 | |
|
|
4256 | |
|
|
4257 | |
|
|
4258 | # If no C compiler was specified, use CC. |
3331 | # If no C compiler was specified, use CC. |
4259 | LTCC=${LTCC-"$CC"} |
3332 | LTCC=${LTCC-"$CC"} |
4260 | |
3333 | |
4261 | # Allow CC to be a program name with arguments. |
3334 | # Allow CC to be a program name with arguments. |
4262 | compiler=$CC |
3335 | compiler=$CC |
… | |
… | |
4291 | fi |
3364 | fi |
4292 | rm -rf conftest* |
3365 | rm -rf conftest* |
4293 | ;; |
3366 | ;; |
4294 | *-*-irix6*) |
3367 | *-*-irix6*) |
4295 | # Find out which ABI we are using. |
3368 | # Find out which ABI we are using. |
4296 | echo '#line 4296 "configure"' > conftest.$ac_ext |
3369 | echo '#line 3369 "configure"' > conftest.$ac_ext |
4297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4298 | (eval $ac_compile) 2>&5 |
3371 | (eval $ac_compile) 2>&5 |
4299 | ac_status=$? |
3372 | ac_status=$? |
4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4301 | (exit $ac_status); }; then |
3374 | (exit $ac_status); }; then |
… | |
… | |
4446 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3519 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4447 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
3520 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4448 | CFLAGS="$SAVE_CFLAGS" |
3521 | CFLAGS="$SAVE_CFLAGS" |
4449 | fi |
3522 | fi |
4450 | ;; |
3523 | ;; |
|
|
3524 | |
4451 | esac |
3525 | esac |
4452 | |
3526 | |
4453 | need_locks="$enable_libtool_lock" |
3527 | need_locks="$enable_libtool_lock" |
|
|
3528 | |
4454 | |
3529 | |
4455 | ac_ext=c |
3530 | ac_ext=c |
4456 | ac_cpp='$CPP $CPPFLAGS' |
3531 | ac_cpp='$CPP $CPPFLAGS' |
4457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
4925 | |
4000 | |
4926 | |
4001 | |
4927 | for ac_header in dlfcn.h |
4002 | for ac_header in dlfcn.h |
4928 | do |
4003 | do |
4929 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4004 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4006 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4010 | fi |
|
|
4011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4012 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4013 | else |
|
|
4014 | # Is the header compilable? |
|
|
4015 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4016 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4017 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4018 | /* confdefs.h. */ |
|
|
4019 | _ACEOF |
|
|
4020 | cat confdefs.h >>conftest.$ac_ext |
|
|
4021 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4022 | /* end confdefs.h. */ |
|
|
4023 | $ac_includes_default |
|
|
4024 | #include <$ac_header> |
|
|
4025 | _ACEOF |
|
|
4026 | rm -f conftest.$ac_objext |
|
|
4027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4028 | (eval $ac_compile) 2>conftest.er1 |
|
|
4029 | ac_status=$? |
|
|
4030 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4031 | rm -f conftest.er1 |
|
|
4032 | cat conftest.err >&5 |
|
|
4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4034 | (exit $ac_status); } && |
|
|
4035 | { ac_try='test -z "$ac_c_werror_flag" || 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_objext' |
|
|
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 | ac_header_compiler=yes |
|
|
4048 | else |
|
|
4049 | echo "$as_me: failed program was:" >&5 |
|
|
4050 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4051 | |
|
|
4052 | ac_header_compiler=no |
|
|
4053 | fi |
|
|
4054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4055 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4056 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4057 | |
|
|
4058 | # Is the header present? |
|
|
4059 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4060 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4061 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4062 | /* confdefs.h. */ |
|
|
4063 | _ACEOF |
|
|
4064 | cat confdefs.h >>conftest.$ac_ext |
|
|
4065 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4066 | /* end confdefs.h. */ |
|
|
4067 | #include <$ac_header> |
|
|
4068 | _ACEOF |
|
|
4069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4071 | ac_status=$? |
|
|
4072 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4073 | rm -f conftest.er1 |
|
|
4074 | cat conftest.err >&5 |
|
|
4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4076 | (exit $ac_status); } >/dev/null; then |
|
|
4077 | if test -s conftest.err; then |
|
|
4078 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
4079 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
4080 | else |
|
|
4081 | ac_cpp_err= |
|
|
4082 | fi |
|
|
4083 | else |
|
|
4084 | ac_cpp_err=yes |
|
|
4085 | fi |
|
|
4086 | if test -z "$ac_cpp_err"; then |
|
|
4087 | ac_header_preproc=yes |
|
|
4088 | else |
|
|
4089 | echo "$as_me: failed program was:" >&5 |
|
|
4090 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4091 | |
|
|
4092 | ac_header_preproc=no |
|
|
4093 | fi |
|
|
4094 | rm -f conftest.err conftest.$ac_ext |
|
|
4095 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4096 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4097 | |
|
|
4098 | # So? What about this header? |
|
|
4099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
4100 | yes:no: ) |
|
|
4101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4105 | ac_header_preproc=yes |
|
|
4106 | ;; |
|
|
4107 | no:yes:* ) |
|
|
4108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4120 | ( |
|
|
4121 | cat <<\_ASBOX |
|
|
4122 | ## ----------------------------------------------------- ## |
|
|
4123 | ## Report this to crossfire-devel@listserv.real-time.com ## |
|
|
4124 | ## ----------------------------------------------------- ## |
|
|
4125 | _ASBOX |
|
|
4126 | ) | |
|
|
4127 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4128 | ;; |
|
|
4129 | esac |
4930 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4130 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4931 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4934 | else |
4134 | else |
|
|
4135 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4136 | fi |
|
|
4137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4139 | |
|
|
4140 | fi |
|
|
4141 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4142 | cat >>confdefs.h <<_ACEOF |
|
|
4143 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4144 | _ACEOF |
|
|
4145 | |
|
|
4146 | fi |
|
|
4147 | |
|
|
4148 | done |
|
|
4149 | |
|
|
4150 | ac_ext=cc |
|
|
4151 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4152 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4153 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4154 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4155 | if test -n "$ac_tool_prefix"; then |
|
|
4156 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
|
|
4157 | do |
|
|
4158 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
|
4159 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
|
4160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4162 | if test "${ac_cv_prog_CXX+set}" = set; then |
|
|
4163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4164 | else |
|
|
4165 | if test -n "$CXX"; then |
|
|
4166 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
|
4167 | else |
|
|
4168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4169 | for as_dir in $PATH |
|
|
4170 | do |
|
|
4171 | IFS=$as_save_IFS |
|
|
4172 | test -z "$as_dir" && as_dir=. |
|
|
4173 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4175 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
|
4176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4177 | break 2 |
|
|
4178 | fi |
|
|
4179 | done |
|
|
4180 | done |
|
|
4181 | |
|
|
4182 | fi |
|
|
4183 | fi |
|
|
4184 | CXX=$ac_cv_prog_CXX |
|
|
4185 | if test -n "$CXX"; then |
|
|
4186 | echo "$as_me:$LINENO: result: $CXX" >&5 |
|
|
4187 | echo "${ECHO_T}$CXX" >&6 |
|
|
4188 | else |
|
|
4189 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4190 | echo "${ECHO_T}no" >&6 |
|
|
4191 | fi |
|
|
4192 | |
|
|
4193 | test -n "$CXX" && break |
|
|
4194 | done |
|
|
4195 | fi |
|
|
4196 | if test -z "$CXX"; then |
|
|
4197 | ac_ct_CXX=$CXX |
|
|
4198 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
|
|
4199 | do |
|
|
4200 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
4201 | set dummy $ac_prog; ac_word=$2 |
|
|
4202 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4204 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
|
|
4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4206 | else |
|
|
4207 | if test -n "$ac_ct_CXX"; then |
|
|
4208 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
|
4209 | else |
|
|
4210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4211 | for as_dir in $PATH |
|
|
4212 | do |
|
|
4213 | IFS=$as_save_IFS |
|
|
4214 | test -z "$as_dir" && as_dir=. |
|
|
4215 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4216 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4217 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
|
4218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4219 | break 2 |
|
|
4220 | fi |
|
|
4221 | done |
|
|
4222 | done |
|
|
4223 | |
|
|
4224 | fi |
|
|
4225 | fi |
|
|
4226 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
|
4227 | if test -n "$ac_ct_CXX"; then |
|
|
4228 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
|
|
4229 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
|
|
4230 | else |
|
|
4231 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4232 | echo "${ECHO_T}no" >&6 |
|
|
4233 | fi |
|
|
4234 | |
|
|
4235 | test -n "$ac_ct_CXX" && break |
|
|
4236 | done |
|
|
4237 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
|
|
4238 | |
|
|
4239 | CXX=$ac_ct_CXX |
|
|
4240 | fi |
|
|
4241 | |
|
|
4242 | |
|
|
4243 | # Provide some information about the compiler. |
|
|
4244 | echo "$as_me:$LINENO:" \ |
|
|
4245 | "checking for C++ compiler version" >&5 |
|
|
4246 | ac_compiler=`set X $ac_compile; echo $2` |
|
|
4247 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
|
4248 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
|
4249 | ac_status=$? |
|
|
4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4251 | (exit $ac_status); } |
|
|
4252 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
|
4253 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
|
4254 | ac_status=$? |
|
|
4255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4256 | (exit $ac_status); } |
|
|
4257 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
|
4258 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
|
4259 | ac_status=$? |
|
|
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4261 | (exit $ac_status); } |
|
|
4262 | |
|
|
4263 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
|
|
4264 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
|
|
4265 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
|
|
4266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4267 | else |
4935 | cat >conftest.$ac_ext <<_ACEOF |
4268 | cat >conftest.$ac_ext <<_ACEOF |
4936 | /* confdefs.h. */ |
4269 | /* confdefs.h. */ |
4937 | _ACEOF |
4270 | _ACEOF |
4938 | cat confdefs.h >>conftest.$ac_ext |
4271 | cat confdefs.h >>conftest.$ac_ext |
4939 | cat >>conftest.$ac_ext <<_ACEOF |
4272 | cat >>conftest.$ac_ext <<_ACEOF |
4940 | /* end confdefs.h. */ |
4273 | /* end confdefs.h. */ |
4941 | $ac_includes_default |
|
|
4942 | |
4274 | |
4943 | #include <$ac_header> |
4275 | int |
|
|
4276 | main () |
|
|
4277 | { |
|
|
4278 | #ifndef __GNUC__ |
|
|
4279 | choke me |
|
|
4280 | #endif |
|
|
4281 | |
|
|
4282 | ; |
|
|
4283 | return 0; |
|
|
4284 | } |
4944 | _ACEOF |
4285 | _ACEOF |
4945 | rm -f conftest.$ac_objext |
4286 | rm -f conftest.$ac_objext |
4946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4947 | (eval $ac_compile) 2>conftest.er1 |
4288 | (eval $ac_compile) 2>conftest.er1 |
4948 | ac_status=$? |
4289 | ac_status=$? |
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
4290 | grep -v '^ *+' conftest.er1 >conftest.err |
4950 | rm -f conftest.er1 |
4291 | rm -f conftest.er1 |
4951 | cat conftest.err >&5 |
4292 | cat conftest.err >&5 |
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4953 | (exit $ac_status); } && |
4294 | (exit $ac_status); } && |
4954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4295 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4956 | (eval $ac_try) 2>&5 |
4297 | (eval $ac_try) 2>&5 |
4957 | ac_status=$? |
4298 | ac_status=$? |
4958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4959 | (exit $ac_status); }; } && |
4300 | (exit $ac_status); }; } && |
… | |
… | |
4961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4962 | (eval $ac_try) 2>&5 |
4303 | (eval $ac_try) 2>&5 |
4963 | ac_status=$? |
4304 | ac_status=$? |
4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4965 | (exit $ac_status); }; }; then |
4306 | (exit $ac_status); }; }; then |
4966 | eval "$as_ac_Header=yes" |
4307 | ac_compiler_gnu=yes |
4967 | else |
4308 | else |
4968 | echo "$as_me: failed program was:" >&5 |
4309 | echo "$as_me: failed program was:" >&5 |
4969 | sed 's/^/| /' conftest.$ac_ext >&5 |
4310 | sed 's/^/| /' conftest.$ac_ext >&5 |
4970 | |
4311 | |
4971 | eval "$as_ac_Header=no" |
4312 | ac_compiler_gnu=no |
4972 | fi |
4313 | fi |
4973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4315 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
|
4316 | |
4974 | fi |
4317 | fi |
4975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4318 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
4976 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4319 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
4977 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4320 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
|
|
4321 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
|
4322 | ac_save_CXXFLAGS=$CXXFLAGS |
|
|
4323 | CXXFLAGS="-g" |
|
|
4324 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
|
|
4325 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
|
|
4326 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
|
|
4327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4328 | else |
4978 | cat >>confdefs.h <<_ACEOF |
4329 | cat >conftest.$ac_ext <<_ACEOF |
4979 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4330 | /* confdefs.h. */ |
4980 | _ACEOF |
4331 | _ACEOF |
|
|
4332 | cat confdefs.h >>conftest.$ac_ext |
|
|
4333 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4334 | /* end confdefs.h. */ |
4981 | |
4335 | |
4982 | fi |
4336 | int |
|
|
4337 | main () |
|
|
4338 | { |
4983 | |
4339 | |
|
|
4340 | ; |
|
|
4341 | return 0; |
|
|
4342 | } |
|
|
4343 | _ACEOF |
|
|
4344 | rm -f conftest.$ac_objext |
|
|
4345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4346 | (eval $ac_compile) 2>conftest.er1 |
|
|
4347 | ac_status=$? |
|
|
4348 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4349 | rm -f conftest.er1 |
|
|
4350 | cat conftest.err >&5 |
|
|
4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4352 | (exit $ac_status); } && |
|
|
4353 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4355 | (eval $ac_try) 2>&5 |
|
|
4356 | ac_status=$? |
|
|
4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4358 | (exit $ac_status); }; } && |
|
|
4359 | { ac_try='test -s conftest.$ac_objext' |
|
|
4360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4361 | (eval $ac_try) 2>&5 |
|
|
4362 | ac_status=$? |
|
|
4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4364 | (exit $ac_status); }; }; then |
|
|
4365 | ac_cv_prog_cxx_g=yes |
|
|
4366 | else |
|
|
4367 | echo "$as_me: failed program was:" >&5 |
|
|
4368 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4369 | |
|
|
4370 | ac_cv_prog_cxx_g=no |
|
|
4371 | fi |
|
|
4372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4373 | fi |
|
|
4374 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
|
|
4375 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
|
|
4376 | if test "$ac_test_CXXFLAGS" = set; then |
|
|
4377 | CXXFLAGS=$ac_save_CXXFLAGS |
|
|
4378 | elif test $ac_cv_prog_cxx_g = yes; then |
|
|
4379 | if test "$GXX" = yes; then |
|
|
4380 | CXXFLAGS="-g -O2" |
|
|
4381 | else |
|
|
4382 | CXXFLAGS="-g" |
|
|
4383 | fi |
|
|
4384 | else |
|
|
4385 | if test "$GXX" = yes; then |
|
|
4386 | CXXFLAGS="-O2" |
|
|
4387 | else |
|
|
4388 | CXXFLAGS= |
|
|
4389 | fi |
|
|
4390 | fi |
|
|
4391 | for ac_declaration in \ |
|
|
4392 | '' \ |
|
|
4393 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
|
4394 | 'extern "C" void std::exit (int); using std::exit;' \ |
|
|
4395 | 'extern "C" void exit (int) throw ();' \ |
|
|
4396 | 'extern "C" void exit (int);' \ |
|
|
4397 | 'void exit (int);' |
|
|
4398 | do |
|
|
4399 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4400 | /* confdefs.h. */ |
|
|
4401 | _ACEOF |
|
|
4402 | cat confdefs.h >>conftest.$ac_ext |
|
|
4403 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4404 | /* end confdefs.h. */ |
|
|
4405 | $ac_declaration |
|
|
4406 | #include <stdlib.h> |
|
|
4407 | int |
|
|
4408 | main () |
|
|
4409 | { |
|
|
4410 | exit (42); |
|
|
4411 | ; |
|
|
4412 | return 0; |
|
|
4413 | } |
|
|
4414 | _ACEOF |
|
|
4415 | rm -f conftest.$ac_objext |
|
|
4416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4417 | (eval $ac_compile) 2>conftest.er1 |
|
|
4418 | ac_status=$? |
|
|
4419 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4420 | rm -f conftest.er1 |
|
|
4421 | cat conftest.err >&5 |
|
|
4422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4423 | (exit $ac_status); } && |
|
|
4424 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4426 | (eval $ac_try) 2>&5 |
|
|
4427 | ac_status=$? |
|
|
4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4429 | (exit $ac_status); }; } && |
|
|
4430 | { ac_try='test -s conftest.$ac_objext' |
|
|
4431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4432 | (eval $ac_try) 2>&5 |
|
|
4433 | ac_status=$? |
|
|
4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4435 | (exit $ac_status); }; }; then |
|
|
4436 | : |
|
|
4437 | else |
|
|
4438 | echo "$as_me: failed program was:" >&5 |
|
|
4439 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4440 | |
|
|
4441 | continue |
|
|
4442 | fi |
|
|
4443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4444 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4445 | /* confdefs.h. */ |
|
|
4446 | _ACEOF |
|
|
4447 | cat confdefs.h >>conftest.$ac_ext |
|
|
4448 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4449 | /* end confdefs.h. */ |
|
|
4450 | $ac_declaration |
|
|
4451 | int |
|
|
4452 | main () |
|
|
4453 | { |
|
|
4454 | exit (42); |
|
|
4455 | ; |
|
|
4456 | return 0; |
|
|
4457 | } |
|
|
4458 | _ACEOF |
|
|
4459 | rm -f conftest.$ac_objext |
|
|
4460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4461 | (eval $ac_compile) 2>conftest.er1 |
|
|
4462 | ac_status=$? |
|
|
4463 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4464 | rm -f conftest.er1 |
|
|
4465 | cat conftest.err >&5 |
|
|
4466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4467 | (exit $ac_status); } && |
|
|
4468 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4470 | (eval $ac_try) 2>&5 |
|
|
4471 | ac_status=$? |
|
|
4472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4473 | (exit $ac_status); }; } && |
|
|
4474 | { ac_try='test -s conftest.$ac_objext' |
|
|
4475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4476 | (eval $ac_try) 2>&5 |
|
|
4477 | ac_status=$? |
|
|
4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4479 | (exit $ac_status); }; }; then |
|
|
4480 | break |
|
|
4481 | else |
|
|
4482 | echo "$as_me: failed program was:" >&5 |
|
|
4483 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4484 | |
|
|
4485 | fi |
|
|
4486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4984 | done |
4487 | done |
|
|
4488 | rm -f conftest* |
|
|
4489 | if test -n "$ac_declaration"; then |
|
|
4490 | echo '#ifdef __cplusplus' >>confdefs.h |
|
|
4491 | echo $ac_declaration >>confdefs.h |
|
|
4492 | echo '#endif' >>confdefs.h |
|
|
4493 | fi |
4985 | |
4494 | |
|
|
4495 | ac_ext=cc |
|
|
4496 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4497 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4498 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4499 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4986 | |
4500 | |
4987 | # This can be used to rebuild libtool when needed |
4501 | ac_ext=cc |
4988 | LIBTOOL_DEPS="$ltmain" |
4502 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4503 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4504 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4505 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4506 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4507 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4508 | if test -z "$CXXCPP"; then |
|
|
4509 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4511 | else |
|
|
4512 | # Double quotes because CXXCPP needs to be expanded |
|
|
4513 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4514 | do |
|
|
4515 | ac_preproc_ok=false |
|
|
4516 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4517 | do |
|
|
4518 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4519 | # with a fresh cross-compiler works. |
|
|
4520 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4521 | # <limits.h> exists even on freestanding compilers. |
|
|
4522 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4523 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4524 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4525 | /* confdefs.h. */ |
|
|
4526 | _ACEOF |
|
|
4527 | cat confdefs.h >>conftest.$ac_ext |
|
|
4528 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4529 | /* end confdefs.h. */ |
|
|
4530 | #ifdef __STDC__ |
|
|
4531 | # include <limits.h> |
|
|
4532 | #else |
|
|
4533 | # include <assert.h> |
|
|
4534 | #endif |
|
|
4535 | Syntax error |
|
|
4536 | _ACEOF |
|
|
4537 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4538 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4539 | ac_status=$? |
|
|
4540 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4541 | rm -f conftest.er1 |
|
|
4542 | cat conftest.err >&5 |
|
|
4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4544 | (exit $ac_status); } >/dev/null; then |
|
|
4545 | if test -s conftest.err; then |
|
|
4546 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4547 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4548 | else |
|
|
4549 | ac_cpp_err= |
|
|
4550 | fi |
|
|
4551 | else |
|
|
4552 | ac_cpp_err=yes |
|
|
4553 | fi |
|
|
4554 | if test -z "$ac_cpp_err"; then |
|
|
4555 | : |
|
|
4556 | else |
|
|
4557 | echo "$as_me: failed program was:" >&5 |
|
|
4558 | sed 's/^/| /' conftest.$ac_ext >&5 |
4989 | |
4559 | |
4990 | # Always use our own libtool. |
4560 | # Broken: fails on valid input. |
4991 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
4561 | continue |
|
|
4562 | fi |
|
|
4563 | rm -f conftest.err conftest.$ac_ext |
4992 | |
4564 | |
4993 | # Set options |
4565 | # OK, works on sane cases. Now check whether non-existent headers |
4994 | enable_dlopen=no |
4566 | # can be detected and how. |
|
|
4567 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4568 | /* confdefs.h. */ |
|
|
4569 | _ACEOF |
|
|
4570 | cat confdefs.h >>conftest.$ac_ext |
|
|
4571 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4572 | /* end confdefs.h. */ |
|
|
4573 | #include <ac_nonexistent.h> |
|
|
4574 | _ACEOF |
|
|
4575 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4576 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4577 | ac_status=$? |
|
|
4578 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4579 | rm -f conftest.er1 |
|
|
4580 | cat conftest.err >&5 |
|
|
4581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4582 | (exit $ac_status); } >/dev/null; then |
|
|
4583 | if test -s conftest.err; then |
|
|
4584 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4585 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4586 | else |
|
|
4587 | ac_cpp_err= |
|
|
4588 | fi |
|
|
4589 | else |
|
|
4590 | ac_cpp_err=yes |
|
|
4591 | fi |
|
|
4592 | if test -z "$ac_cpp_err"; then |
|
|
4593 | # Broken: success on invalid input. |
|
|
4594 | continue |
|
|
4595 | else |
|
|
4596 | echo "$as_me: failed program was:" >&5 |
|
|
4597 | sed 's/^/| /' conftest.$ac_ext >&5 |
4995 | |
4598 | |
4996 | enable_win32_dll=no |
4599 | # Passes both tests. |
|
|
4600 | ac_preproc_ok=: |
|
|
4601 | break |
|
|
4602 | fi |
|
|
4603 | rm -f conftest.err conftest.$ac_ext |
4997 | |
4604 | |
4998 | # Check whether --enable-shared or --disable-shared was given. |
4605 | done |
|
|
4606 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4607 | rm -f conftest.err conftest.$ac_ext |
|
|
4608 | if $ac_preproc_ok; then |
|
|
4609 | break |
|
|
4610 | fi |
|
|
4611 | |
|
|
4612 | done |
|
|
4613 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4614 | |
|
|
4615 | fi |
|
|
4616 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4617 | else |
|
|
4618 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4619 | fi |
|
|
4620 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4621 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
4622 | ac_preproc_ok=false |
|
|
4623 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4624 | do |
|
|
4625 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4626 | # with a fresh cross-compiler works. |
|
|
4627 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4628 | # <limits.h> exists even on freestanding compilers. |
|
|
4629 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4630 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4631 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4632 | /* confdefs.h. */ |
|
|
4633 | _ACEOF |
|
|
4634 | cat confdefs.h >>conftest.$ac_ext |
|
|
4635 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4636 | /* end confdefs.h. */ |
|
|
4637 | #ifdef __STDC__ |
|
|
4638 | # include <limits.h> |
|
|
4639 | #else |
|
|
4640 | # include <assert.h> |
|
|
4641 | #endif |
|
|
4642 | Syntax error |
|
|
4643 | _ACEOF |
|
|
4644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4646 | ac_status=$? |
|
|
4647 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4648 | rm -f conftest.er1 |
|
|
4649 | cat conftest.err >&5 |
|
|
4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4651 | (exit $ac_status); } >/dev/null; then |
|
|
4652 | if test -s conftest.err; then |
|
|
4653 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4654 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4655 | else |
|
|
4656 | ac_cpp_err= |
|
|
4657 | fi |
|
|
4658 | else |
|
|
4659 | ac_cpp_err=yes |
|
|
4660 | fi |
|
|
4661 | if test -z "$ac_cpp_err"; then |
|
|
4662 | : |
|
|
4663 | else |
|
|
4664 | echo "$as_me: failed program was:" >&5 |
|
|
4665 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4666 | |
|
|
4667 | # Broken: fails on valid input. |
|
|
4668 | continue |
|
|
4669 | fi |
|
|
4670 | rm -f conftest.err conftest.$ac_ext |
|
|
4671 | |
|
|
4672 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4673 | # can be detected and how. |
|
|
4674 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4675 | /* confdefs.h. */ |
|
|
4676 | _ACEOF |
|
|
4677 | cat confdefs.h >>conftest.$ac_ext |
|
|
4678 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4679 | /* end confdefs.h. */ |
|
|
4680 | #include <ac_nonexistent.h> |
|
|
4681 | _ACEOF |
|
|
4682 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4683 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4684 | ac_status=$? |
|
|
4685 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4686 | rm -f conftest.er1 |
|
|
4687 | cat conftest.err >&5 |
|
|
4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4689 | (exit $ac_status); } >/dev/null; then |
|
|
4690 | if test -s conftest.err; then |
|
|
4691 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4692 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4693 | else |
|
|
4694 | ac_cpp_err= |
|
|
4695 | fi |
|
|
4696 | else |
|
|
4697 | ac_cpp_err=yes |
|
|
4698 | fi |
|
|
4699 | if test -z "$ac_cpp_err"; then |
|
|
4700 | # Broken: success on invalid input. |
|
|
4701 | continue |
|
|
4702 | else |
|
|
4703 | echo "$as_me: failed program was:" >&5 |
|
|
4704 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4705 | |
|
|
4706 | # Passes both tests. |
|
|
4707 | ac_preproc_ok=: |
|
|
4708 | break |
|
|
4709 | fi |
|
|
4710 | rm -f conftest.err conftest.$ac_ext |
|
|
4711 | |
|
|
4712 | done |
|
|
4713 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4714 | rm -f conftest.err conftest.$ac_ext |
|
|
4715 | if $ac_preproc_ok; then |
|
|
4716 | : |
|
|
4717 | else |
|
|
4718 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
4719 | See \`config.log' for more details." >&5 |
|
|
4720 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
4721 | See \`config.log' for more details." >&2;} |
|
|
4722 | { (exit 1); exit 1; }; } |
|
|
4723 | fi |
|
|
4724 | |
|
|
4725 | ac_ext=cc |
|
|
4726 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4730 | |
|
|
4731 | |
|
|
4732 | ac_ext=f |
|
|
4733 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
|
4734 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4735 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
|
4736 | if test -n "$ac_tool_prefix"; then |
|
|
4737 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
|
4738 | do |
|
|
4739 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
|
4740 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
|
4741 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4999 | if test "${enable_shared+set}" = set; then |
4743 | if test "${ac_cv_prog_F77+set}" = set; then |
5000 | enableval="$enable_shared" |
4744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5001 | p=${PACKAGE-default} |
4745 | else |
5002 | case $enableval in |
4746 | if test -n "$F77"; then |
5003 | yes) enable_shared=yes ;; |
4747 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5004 | no) enable_shared=no ;; |
4748 | else |
5005 | *) |
4749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5006 | enable_shared=no |
4750 | for as_dir in $PATH |
5007 | # Look at the argument we got. We use all the common list separators. |
4751 | do |
5008 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4752 | IFS=$as_save_IFS |
5009 | for pkg in $enableval; do |
4753 | test -z "$as_dir" && as_dir=. |
5010 | IFS="$lt_save_ifs" |
4754 | for ac_exec_ext in '' $ac_executable_extensions; do |
5011 | if test "X$pkg" = "X$p"; then |
4755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5012 | enable_shared=yes |
4756 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
|
|
4757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4758 | break 2 |
|
|
4759 | fi |
|
|
4760 | done |
|
|
4761 | done |
|
|
4762 | |
|
|
4763 | fi |
|
|
4764 | fi |
|
|
4765 | F77=$ac_cv_prog_F77 |
|
|
4766 | if test -n "$F77"; then |
|
|
4767 | echo "$as_me:$LINENO: result: $F77" >&5 |
|
|
4768 | echo "${ECHO_T}$F77" >&6 |
|
|
4769 | else |
|
|
4770 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4771 | echo "${ECHO_T}no" >&6 |
|
|
4772 | fi |
|
|
4773 | |
|
|
4774 | test -n "$F77" && break |
|
|
4775 | done |
|
|
4776 | fi |
|
|
4777 | if test -z "$F77"; then |
|
|
4778 | ac_ct_F77=$F77 |
|
|
4779 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
|
4780 | do |
|
|
4781 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
4782 | set dummy $ac_prog; ac_word=$2 |
|
|
4783 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4785 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
|
|
4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4787 | else |
|
|
4788 | if test -n "$ac_ct_F77"; then |
|
|
4789 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
|
|
4790 | else |
|
|
4791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4792 | for as_dir in $PATH |
|
|
4793 | do |
|
|
4794 | IFS=$as_save_IFS |
|
|
4795 | test -z "$as_dir" && as_dir=. |
|
|
4796 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4797 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4798 | ac_cv_prog_ac_ct_F77="$ac_prog" |
|
|
4799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4800 | break 2 |
|
|
4801 | fi |
|
|
4802 | done |
|
|
4803 | done |
|
|
4804 | |
|
|
4805 | fi |
|
|
4806 | fi |
|
|
4807 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
|
|
4808 | if test -n "$ac_ct_F77"; then |
|
|
4809 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
|
|
4810 | echo "${ECHO_T}$ac_ct_F77" >&6 |
|
|
4811 | else |
|
|
4812 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4813 | echo "${ECHO_T}no" >&6 |
|
|
4814 | fi |
|
|
4815 | |
|
|
4816 | test -n "$ac_ct_F77" && break |
|
|
4817 | done |
|
|
4818 | |
|
|
4819 | F77=$ac_ct_F77 |
|
|
4820 | fi |
|
|
4821 | |
|
|
4822 | |
|
|
4823 | # Provide some information about the compiler. |
|
|
4824 | echo "$as_me:4824:" \ |
|
|
4825 | "checking for Fortran 77 compiler version" >&5 |
|
|
4826 | ac_compiler=`set X $ac_compile; echo $2` |
|
|
4827 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
|
4828 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
|
4829 | ac_status=$? |
|
|
4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4831 | (exit $ac_status); } |
|
|
4832 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
|
4833 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
|
4834 | ac_status=$? |
|
|
4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4836 | (exit $ac_status); } |
|
|
4837 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
|
4838 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
|
4839 | ac_status=$? |
|
|
4840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4841 | (exit $ac_status); } |
|
|
4842 | rm -f a.out |
|
|
4843 | |
|
|
4844 | # If we don't use `.F' as extension, the preprocessor is not run on the |
|
|
4845 | # input file. (Note that this only needs to work for GNU compilers.) |
|
|
4846 | ac_save_ext=$ac_ext |
|
|
4847 | ac_ext=F |
|
|
4848 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
|
|
4849 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
|
|
4850 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
|
|
4851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4852 | else |
|
|
4853 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4854 | program main |
|
|
4855 | #ifndef __GNUC__ |
|
|
4856 | choke me |
|
|
4857 | #endif |
|
|
4858 | |
|
|
4859 | end |
|
|
4860 | _ACEOF |
|
|
4861 | rm -f conftest.$ac_objext |
|
|
4862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4863 | (eval $ac_compile) 2>conftest.er1 |
|
|
4864 | ac_status=$? |
|
|
4865 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4866 | rm -f conftest.er1 |
|
|
4867 | cat conftest.err >&5 |
|
|
4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4869 | (exit $ac_status); } && |
|
|
4870 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
4871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4872 | (eval $ac_try) 2>&5 |
|
|
4873 | ac_status=$? |
|
|
4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4875 | (exit $ac_status); }; } && |
|
|
4876 | { ac_try='test -s conftest.$ac_objext' |
|
|
4877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4878 | (eval $ac_try) 2>&5 |
|
|
4879 | ac_status=$? |
|
|
4880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4881 | (exit $ac_status); }; }; then |
|
|
4882 | ac_compiler_gnu=yes |
|
|
4883 | else |
|
|
4884 | echo "$as_me: failed program was:" >&5 |
|
|
4885 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4886 | |
|
|
4887 | ac_compiler_gnu=no |
|
|
4888 | fi |
|
|
4889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4890 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
|
|
4891 | |
|
|
4892 | fi |
|
|
4893 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
|
|
4894 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
|
|
4895 | ac_ext=$ac_save_ext |
|
|
4896 | ac_test_FFLAGS=${FFLAGS+set} |
|
|
4897 | ac_save_FFLAGS=$FFLAGS |
|
|
4898 | FFLAGS= |
|
|
4899 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
|
|
4900 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
|
|
4901 | if test "${ac_cv_prog_f77_g+set}" = set; then |
|
|
4902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4903 | else |
|
|
4904 | FFLAGS=-g |
|
|
4905 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4906 | program main |
|
|
4907 | |
|
|
4908 | end |
|
|
4909 | _ACEOF |
|
|
4910 | rm -f conftest.$ac_objext |
|
|
4911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4912 | (eval $ac_compile) 2>conftest.er1 |
|
|
4913 | ac_status=$? |
|
|
4914 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4915 | rm -f conftest.er1 |
|
|
4916 | cat conftest.err >&5 |
|
|
4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4918 | (exit $ac_status); } && |
|
|
4919 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
4920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4921 | (eval $ac_try) 2>&5 |
|
|
4922 | ac_status=$? |
|
|
4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4924 | (exit $ac_status); }; } && |
|
|
4925 | { ac_try='test -s conftest.$ac_objext' |
|
|
4926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4927 | (eval $ac_try) 2>&5 |
|
|
4928 | ac_status=$? |
|
|
4929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4930 | (exit $ac_status); }; }; then |
|
|
4931 | ac_cv_prog_f77_g=yes |
|
|
4932 | else |
|
|
4933 | echo "$as_me: failed program was:" >&5 |
|
|
4934 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4935 | |
|
|
4936 | ac_cv_prog_f77_g=no |
|
|
4937 | fi |
|
|
4938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4939 | |
|
|
4940 | fi |
|
|
4941 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
|
|
4942 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
|
|
4943 | if test "$ac_test_FFLAGS" = set; then |
|
|
4944 | FFLAGS=$ac_save_FFLAGS |
|
|
4945 | elif test $ac_cv_prog_f77_g = yes; then |
|
|
4946 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
|
4947 | FFLAGS="-g -O2" |
|
|
4948 | else |
|
|
4949 | FFLAGS="-g" |
|
|
4950 | fi |
|
|
4951 | else |
|
|
4952 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
|
4953 | FFLAGS="-O2" |
|
|
4954 | else |
|
|
4955 | FFLAGS= |
|
|
4956 | fi |
|
|
4957 | fi |
|
|
4958 | |
|
|
4959 | G77=`test $ac_compiler_gnu = yes && echo yes` |
|
|
4960 | ac_ext=c |
|
|
4961 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4965 | |
|
|
4966 | |
|
|
4967 | |
|
|
4968 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
|
4969 | |
|
|
4970 | # find the maximum length of command line arguments |
|
|
4971 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
|
|
4972 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
|
|
4973 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
|
4974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4975 | else |
|
|
4976 | i=0 |
|
|
4977 | teststring="ABCD" |
|
|
4978 | |
|
|
4979 | case $build_os in |
|
|
4980 | msdosdjgpp*) |
|
|
4981 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
|
|
4982 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
|
|
4983 | # during glob expansion). Even if it were fixed, the result of this |
|
|
4984 | # check would be larger than it should be. |
|
|
4985 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
|
4986 | ;; |
|
|
4987 | |
|
|
4988 | gnu*) |
|
|
4989 | # Under GNU Hurd, this test is not required because there is |
|
|
4990 | # no limit to the length of command line arguments. |
|
|
4991 | # Libtool will interpret -1 as no limit whatsoever |
|
|
4992 | lt_cv_sys_max_cmd_len=-1; |
|
|
4993 | ;; |
|
|
4994 | |
|
|
4995 | cygwin* | mingw*) |
|
|
4996 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
|
|
4997 | # about 5 minutes as the teststring grows exponentially. |
|
|
4998 | # Worse, since 9x/ME are not pre-emptively multitasking, |
|
|
4999 | # you end up with a "frozen" computer, even though with patience |
|
|
5000 | # the test eventually succeeds (with a max line length of 256k). |
|
|
5001 | # Instead, let's just punt: use the minimum linelength reported by |
|
|
5002 | # all of the supported platforms: 8192 (on NT/2K/XP). |
|
|
5003 | lt_cv_sys_max_cmd_len=8192; |
|
|
5004 | ;; |
|
|
5005 | |
|
|
5006 | amigaos*) |
|
|
5007 | # On AmigaOS with pdksh, this test takes hours, literally. |
|
|
5008 | # So we just punt and use a minimum line length of 8192. |
|
|
5009 | lt_cv_sys_max_cmd_len=8192; |
|
|
5010 | ;; |
|
|
5011 | |
|
|
5012 | *) |
|
|
5013 | # If test is not a shell built-in, we'll probably end up computing a |
|
|
5014 | # maximum length that is only half of the actual maximum length, but |
|
|
5015 | # we can't tell. |
|
|
5016 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
|
|
5017 | = "XX$teststring") >/dev/null 2>&1 && |
|
|
5018 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
|
|
5019 | lt_cv_sys_max_cmd_len=$new_result && |
|
|
5020 | test $i != 17 # 1/2 MB should be enough |
|
|
5021 | do |
|
|
5022 | i=`expr $i + 1` |
|
|
5023 | teststring=$teststring$teststring |
|
|
5024 | done |
|
|
5025 | teststring= |
|
|
5026 | # Add a significant safety factor because C++ compilers can tack on massive |
|
|
5027 | # amounts of additional arguments before passing them to the linker. |
|
|
5028 | # It appears as though 1/2 is a usable value. |
|
|
5029 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
|
5030 | ;; |
|
|
5031 | esac |
|
|
5032 | |
|
|
5033 | fi |
|
|
5034 | |
|
|
5035 | if test -n $lt_cv_sys_max_cmd_len ; then |
|
|
5036 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
|
|
5037 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
|
|
5038 | else |
|
|
5039 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
5040 | echo "${ECHO_T}none" >&6 |
|
|
5041 | fi |
|
|
5042 | |
|
|
5043 | |
|
|
5044 | |
|
|
5045 | |
|
|
5046 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
5047 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
|
|
5048 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
|
|
5049 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5051 | else |
|
|
5052 | |
|
|
5053 | # These are sane defaults that work on at least a few old systems. |
|
|
5054 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
5055 | |
|
|
5056 | # Character class describing NM global symbol codes. |
|
|
5057 | symcode='[BCDEGRST]' |
|
|
5058 | |
|
|
5059 | # Regexp to match symbols that can be accessed directly from C. |
|
|
5060 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
5061 | |
|
|
5062 | # Transform the above into a raw symbol and a C symbol. |
|
|
5063 | symxfrm='\1 \2\3 \3' |
|
|
5064 | |
|
|
5065 | # Transform an extracted symbol line into a proper C declaration |
|
|
5066 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
|
5067 | |
|
|
5068 | # Transform an extracted symbol line into symbol name and symbol address |
|
|
5069 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
5070 | |
|
|
5071 | # Define system-specific variables. |
|
|
5072 | case $host_os in |
|
|
5073 | aix*) |
|
|
5074 | symcode='[BCDT]' |
|
|
5075 | ;; |
|
|
5076 | cygwin* | mingw* | pw32*) |
|
|
5077 | symcode='[ABCDGISTW]' |
|
|
5078 | ;; |
|
|
5079 | hpux*) # Its linker distinguishes data from code symbols |
|
|
5080 | if test "$host_cpu" = ia64; then |
|
|
5081 | symcode='[ABCDEGRST]' |
|
|
5082 | fi |
|
|
5083 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
5084 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
5085 | ;; |
|
|
5086 | irix* | nonstopux*) |
|
|
5087 | symcode='[BCDEGRST]' |
|
|
5088 | ;; |
|
|
5089 | osf*) |
|
|
5090 | symcode='[BCDEGQRST]' |
|
|
5091 | ;; |
|
|
5092 | solaris* | sysv5*) |
|
|
5093 | symcode='[BDRT]' |
|
|
5094 | ;; |
|
|
5095 | sysv4) |
|
|
5096 | symcode='[DFNSTU]' |
|
|
5097 | ;; |
|
|
5098 | esac |
|
|
5099 | |
|
|
5100 | # Handle CRLF in mingw tool chain |
|
|
5101 | opt_cr= |
|
|
5102 | case $build_os in |
|
|
5103 | mingw*) |
|
|
5104 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
5105 | ;; |
|
|
5106 | esac |
|
|
5107 | |
|
|
5108 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
5109 | case `$NM -V 2>&1` in |
|
|
5110 | *GNU* | *'with BFD'*) |
|
|
5111 | symcode='[ABCDGIRSTW]' ;; |
|
|
5112 | esac |
|
|
5113 | |
|
|
5114 | # Try without a prefix undercore, then with it. |
|
|
5115 | for ac_symprfx in "" "_"; do |
|
|
5116 | |
|
|
5117 | # Write the raw and C identifiers. |
|
|
5118 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
5119 | |
|
|
5120 | # Check to see that the pipe works correctly. |
|
|
5121 | pipe_works=no |
|
|
5122 | |
|
|
5123 | rm -f conftest* |
|
|
5124 | cat > conftest.$ac_ext <<EOF |
|
|
5125 | #ifdef __cplusplus |
|
|
5126 | extern "C" { |
|
|
5127 | #endif |
|
|
5128 | char nm_test_var; |
|
|
5129 | void nm_test_func(){} |
|
|
5130 | #ifdef __cplusplus |
|
|
5131 | } |
|
|
5132 | #endif |
|
|
5133 | int main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
5134 | EOF |
|
|
5135 | |
|
|
5136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5137 | (eval $ac_compile) 2>&5 |
|
|
5138 | ac_status=$? |
|
|
5139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5140 | (exit $ac_status); }; then |
|
|
5141 | # Now try to grab the symbols. |
|
|
5142 | nlist=conftest.nm |
|
|
5143 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
5144 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
5145 | ac_status=$? |
|
|
5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5147 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
5148 | # Try sorting and uniquifying the output. |
|
|
5149 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
5150 | mv -f "$nlist"T "$nlist" |
|
|
5151 | else |
|
|
5152 | rm -f "$nlist"T |
|
|
5153 | fi |
|
|
5154 | |
|
|
5155 | # Make sure that we snagged all the symbols we need. |
|
|
5156 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
5157 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
5158 | cat <<EOF > conftest.$ac_ext |
|
|
5159 | #ifdef __cplusplus |
|
|
5160 | extern "C" { |
|
|
5161 | #endif |
|
|
5162 | |
|
|
5163 | EOF |
|
|
5164 | # Now generate the symbol file. |
|
|
5165 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
|
|
5166 | |
|
|
5167 | cat <<EOF >> conftest.$ac_ext |
|
|
5168 | #if defined (__STDC__) && __STDC__ |
|
|
5169 | # define lt_ptr_t void * |
|
|
5170 | #else |
|
|
5171 | # define lt_ptr_t char * |
|
|
5172 | # define const |
|
|
5173 | #endif |
|
|
5174 | |
|
|
5175 | /* The mapping between symbol names and symbols. */ |
|
|
5176 | const struct { |
|
|
5177 | const char *name; |
|
|
5178 | lt_ptr_t address; |
|
|
5179 | } |
|
|
5180 | lt_preloaded_symbols[] = |
|
|
5181 | { |
|
|
5182 | EOF |
|
|
5183 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
|
|
5184 | cat <<\EOF >> conftest.$ac_ext |
|
|
5185 | {0, (lt_ptr_t) 0} |
|
|
5186 | }; |
|
|
5187 | |
|
|
5188 | #ifdef __cplusplus |
|
|
5189 | } |
|
|
5190 | #endif |
|
|
5191 | EOF |
|
|
5192 | # Now try linking the two files. |
|
|
5193 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
5194 | lt_save_LIBS="$LIBS" |
|
|
5195 | lt_save_CFLAGS="$CFLAGS" |
|
|
5196 | LIBS="conftstm.$ac_objext" |
|
|
5197 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
|
5198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5199 | (eval $ac_link) 2>&5 |
|
|
5200 | ac_status=$? |
|
|
5201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5202 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
|
5203 | pipe_works=yes |
|
|
5204 | fi |
|
|
5205 | LIBS="$lt_save_LIBS" |
|
|
5206 | CFLAGS="$lt_save_CFLAGS" |
|
|
5207 | else |
|
|
5208 | echo "cannot find nm_test_func in $nlist" >&5 |
5013 | fi |
5209 | fi |
5014 | done |
5210 | else |
5015 | IFS="$lt_save_ifs" |
5211 | echo "cannot find nm_test_var in $nlist" >&5 |
5016 | ;; |
5212 | fi |
5017 | esac |
5213 | else |
|
|
5214 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
5215 | fi |
5018 | else |
5216 | else |
5019 | enable_shared=yes |
5217 | echo "$progname: failed program was:" >&5 |
5020 | fi; |
5218 | cat conftest.$ac_ext >&5 |
|
|
5219 | fi |
|
|
5220 | rm -f conftest* conftst* |
5021 | |
5221 | |
5022 | |
5222 | # Do not use the global_symbol_pipe unless it works. |
5023 | |
5223 | if test "$pipe_works" = yes; then |
5024 | |
5224 | break |
5025 | |
|
|
5026 | |
|
|
5027 | |
|
|
5028 | |
|
|
5029 | # Check whether --enable-static or --disable-static was given. |
|
|
5030 | if test "${enable_static+set}" = set; then |
|
|
5031 | enableval="$enable_static" |
|
|
5032 | p=${PACKAGE-default} |
|
|
5033 | case $enableval in |
|
|
5034 | yes) enable_static=yes ;; |
|
|
5035 | no) enable_static=no ;; |
|
|
5036 | *) |
|
|
5037 | enable_static=no |
|
|
5038 | # Look at the argument we got. We use all the common list separators. |
|
|
5039 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
5040 | for pkg in $enableval; do |
|
|
5041 | IFS="$lt_save_ifs" |
|
|
5042 | if test "X$pkg" = "X$p"; then |
|
|
5043 | enable_static=yes |
|
|
5044 | fi |
|
|
5045 | done |
|
|
5046 | IFS="$lt_save_ifs" |
|
|
5047 | ;; |
|
|
5048 | esac |
|
|
5049 | else |
5225 | else |
5050 | enable_static=yes |
5226 | lt_cv_sys_global_symbol_pipe= |
|
|
5227 | fi |
|
|
5228 | done |
|
|
5229 | |
5051 | fi; |
5230 | fi |
5052 | |
5231 | |
5053 | |
5232 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5054 | |
5233 | lt_cv_sys_global_symbol_to_cdecl= |
5055 | |
|
|
5056 | |
|
|
5057 | |
|
|
5058 | |
|
|
5059 | |
|
|
5060 | |
|
|
5061 | # Check whether --with-pic or --without-pic was given. |
|
|
5062 | if test "${with_pic+set}" = set; then |
|
|
5063 | withval="$with_pic" |
|
|
5064 | pic_mode="$withval" |
|
|
5065 | else |
|
|
5066 | pic_mode=default |
|
|
5067 | fi; |
5234 | fi |
5068 | |
5235 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5069 | test -z "$pic_mode" && pic_mode=default |
5236 | echo "$as_me:$LINENO: result: failed" >&5 |
5070 | |
5237 | echo "${ECHO_T}failed" >&6 |
5071 | |
|
|
5072 | |
|
|
5073 | |
|
|
5074 | |
|
|
5075 | |
|
|
5076 | |
|
|
5077 | # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
5078 | if test "${enable_fast_install+set}" = set; then |
|
|
5079 | enableval="$enable_fast_install" |
|
|
5080 | p=${PACKAGE-default} |
|
|
5081 | case $enableval in |
|
|
5082 | yes) enable_fast_install=yes ;; |
|
|
5083 | no) enable_fast_install=no ;; |
|
|
5084 | *) |
|
|
5085 | enable_fast_install=no |
|
|
5086 | # Look at the argument we got. We use all the common list separators. |
|
|
5087 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
5088 | for pkg in $enableval; do |
|
|
5089 | IFS="$lt_save_ifs" |
|
|
5090 | if test "X$pkg" = "X$p"; then |
|
|
5091 | enable_fast_install=yes |
|
|
5092 | fi |
|
|
5093 | done |
|
|
5094 | IFS="$lt_save_ifs" |
|
|
5095 | ;; |
|
|
5096 | esac |
|
|
5097 | else |
5238 | else |
5098 | enable_fast_install=yes |
5239 | echo "$as_me:$LINENO: result: ok" >&5 |
5099 | fi; |
5240 | echo "${ECHO_T}ok" >&6 |
5100 | |
|
|
5101 | |
|
|
5102 | |
|
|
5103 | |
|
|
5104 | |
|
|
5105 | |
|
|
5106 | |
|
|
5107 | |
|
|
5108 | |
|
|
5109 | |
|
|
5110 | |
|
|
5111 | |
|
|
5112 | |
|
|
5113 | |
|
|
5114 | |
|
|
5115 | |
|
|
5116 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5117 | |
|
|
5118 | |
|
|
5119 | |
|
|
5120 | |
|
|
5121 | |
|
|
5122 | |
|
|
5123 | |
|
|
5124 | |
|
|
5125 | |
|
|
5126 | |
|
|
5127 | |
|
|
5128 | |
|
|
5129 | |
|
|
5130 | |
|
|
5131 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
5132 | setopt NO_GLOB_SUBST |
|
|
5133 | fi |
5241 | fi |
5134 | |
5242 | |
5135 | echo "$as_me:$LINENO: checking for objdir" >&5 |
5243 | echo "$as_me:$LINENO: checking for objdir" >&5 |
5136 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5244 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5137 | if test "${lt_cv_objdir+set}" = set; then |
5245 | if test "${lt_cv_objdir+set}" = set; then |
… | |
… | |
5148 | rmdir .libs 2>/dev/null |
5256 | rmdir .libs 2>/dev/null |
5149 | fi |
5257 | fi |
5150 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5258 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5151 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
5259 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
5152 | objdir=$lt_cv_objdir |
5260 | objdir=$lt_cv_objdir |
5153 | |
|
|
5154 | |
|
|
5155 | |
|
|
5156 | |
|
|
5157 | |
|
|
5158 | |
|
|
5159 | |
|
|
5160 | |
|
|
5161 | |
|
|
5162 | |
|
|
5163 | |
|
|
5164 | |
|
|
5165 | |
|
|
5166 | |
|
|
5167 | |
|
|
5168 | |
5261 | |
5169 | |
5262 | |
5170 | |
5263 | |
5171 | |
5264 | |
5172 | |
5265 | |
… | |
… | |
5192 | |
5285 | |
5193 | # Sed substitution to delay expansion of an escaped shell variable in a |
5286 | # Sed substitution to delay expansion of an escaped shell variable in a |
5194 | # double_quote_subst'ed string. |
5287 | # double_quote_subst'ed string. |
5195 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5288 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5196 | |
5289 | |
5197 | # Sed substitution to delay expansion of an escaped single quote. |
|
|
5198 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
|
5199 | |
|
|
5200 | # Sed substitution to avoid accidental globbing in evaled expressions |
5290 | # Sed substitution to avoid accidental globbing in evaled expressions |
5201 | no_glob_subst='s/\*/\\\*/g' |
5291 | no_glob_subst='s/\*/\\\*/g' |
5202 | |
5292 | |
5203 | # Constants: |
5293 | # Constants: |
5204 | rm="rm -f" |
5294 | rm="rm -f" |
5205 | |
5295 | |
5206 | # Global variables: |
5296 | # Global variables: |
5207 | default_ofile=libtool |
5297 | default_ofile=libtool |
5208 | ofile="$default_ofile" |
|
|
5209 | can_build_shared=yes |
5298 | can_build_shared=yes |
5210 | |
5299 | |
5211 | # All known linkers require a `.a' archive for static linking (except M$VC, |
5300 | # All known linkers require a `.a' archive for static linking (except M$VC, |
5212 | # which needs '.lib'). |
5301 | # which needs '.lib'). |
5213 | libext=a |
5302 | libext=a |
5214 | |
5303 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
5304 | ofile="$default_ofile" |
5215 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
5305 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
5306 | |
|
|
5307 | if test -n "$ac_tool_prefix"; then |
|
|
5308 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
|
5309 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
|
5310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5312 | if test "${ac_cv_prog_AR+set}" = set; then |
|
|
5313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5314 | else |
|
|
5315 | if test -n "$AR"; then |
|
|
5316 | ac_cv_prog_AR="$AR" # Let the user override the test. |
|
|
5317 | else |
|
|
5318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5319 | for as_dir in $PATH |
|
|
5320 | do |
|
|
5321 | IFS=$as_save_IFS |
|
|
5322 | test -z "$as_dir" && as_dir=. |
|
|
5323 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5325 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
|
5326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5327 | break 2 |
|
|
5328 | fi |
|
|
5329 | done |
|
|
5330 | done |
|
|
5331 | |
|
|
5332 | fi |
|
|
5333 | fi |
|
|
5334 | AR=$ac_cv_prog_AR |
|
|
5335 | if test -n "$AR"; then |
|
|
5336 | echo "$as_me:$LINENO: result: $AR" >&5 |
|
|
5337 | echo "${ECHO_T}$AR" >&6 |
|
|
5338 | else |
|
|
5339 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5340 | echo "${ECHO_T}no" >&6 |
|
|
5341 | fi |
|
|
5342 | |
|
|
5343 | fi |
|
|
5344 | if test -z "$ac_cv_prog_AR"; then |
|
|
5345 | ac_ct_AR=$AR |
|
|
5346 | # Extract the first word of "ar", so it can be a program name with args. |
|
|
5347 | set dummy ar; ac_word=$2 |
|
|
5348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5350 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|
|
5351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5352 | else |
|
|
5353 | if test -n "$ac_ct_AR"; then |
|
|
5354 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
|
5355 | else |
|
|
5356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5357 | for as_dir in $PATH |
|
|
5358 | do |
|
|
5359 | IFS=$as_save_IFS |
|
|
5360 | test -z "$as_dir" && as_dir=. |
|
|
5361 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5363 | ac_cv_prog_ac_ct_AR="ar" |
|
|
5364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5365 | break 2 |
|
|
5366 | fi |
|
|
5367 | done |
|
|
5368 | done |
|
|
5369 | |
|
|
5370 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
|
|
5371 | fi |
|
|
5372 | fi |
|
|
5373 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
|
5374 | if test -n "$ac_ct_AR"; then |
|
|
5375 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
|
|
5376 | echo "${ECHO_T}$ac_ct_AR" >&6 |
|
|
5377 | else |
|
|
5378 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5379 | echo "${ECHO_T}no" >&6 |
|
|
5380 | fi |
|
|
5381 | |
|
|
5382 | AR=$ac_ct_AR |
|
|
5383 | else |
|
|
5384 | AR="$ac_cv_prog_AR" |
|
|
5385 | fi |
|
|
5386 | |
|
|
5387 | if test -n "$ac_tool_prefix"; then |
|
|
5388 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
5389 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
5390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5392 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
5393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5394 | else |
|
|
5395 | if test -n "$RANLIB"; then |
|
|
5396 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
5397 | else |
|
|
5398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5399 | for as_dir in $PATH |
|
|
5400 | do |
|
|
5401 | IFS=$as_save_IFS |
|
|
5402 | test -z "$as_dir" && as_dir=. |
|
|
5403 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5405 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
5406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5407 | break 2 |
|
|
5408 | fi |
|
|
5409 | done |
|
|
5410 | done |
|
|
5411 | |
|
|
5412 | fi |
|
|
5413 | fi |
|
|
5414 | RANLIB=$ac_cv_prog_RANLIB |
|
|
5415 | if test -n "$RANLIB"; then |
|
|
5416 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
5417 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
5418 | else |
|
|
5419 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5420 | echo "${ECHO_T}no" >&6 |
|
|
5421 | fi |
|
|
5422 | |
|
|
5423 | fi |
|
|
5424 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
5425 | ac_ct_RANLIB=$RANLIB |
|
|
5426 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
5427 | set dummy ranlib; ac_word=$2 |
|
|
5428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5430 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
5431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5432 | else |
|
|
5433 | if test -n "$ac_ct_RANLIB"; then |
|
|
5434 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
5435 | else |
|
|
5436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5437 | for as_dir in $PATH |
|
|
5438 | do |
|
|
5439 | IFS=$as_save_IFS |
|
|
5440 | test -z "$as_dir" && as_dir=. |
|
|
5441 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5443 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
5444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5445 | break 2 |
|
|
5446 | fi |
|
|
5447 | done |
|
|
5448 | done |
|
|
5449 | |
|
|
5450 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
5451 | fi |
|
|
5452 | fi |
|
|
5453 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
5454 | if test -n "$ac_ct_RANLIB"; then |
|
|
5455 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
5456 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
5457 | else |
|
|
5458 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5459 | echo "${ECHO_T}no" >&6 |
|
|
5460 | fi |
|
|
5461 | |
|
|
5462 | RANLIB=$ac_ct_RANLIB |
|
|
5463 | else |
|
|
5464 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
5465 | fi |
|
|
5466 | |
|
|
5467 | if test -n "$ac_tool_prefix"; then |
|
|
5468 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
5469 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
5470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5472 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
5473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5474 | else |
|
|
5475 | if test -n "$STRIP"; then |
|
|
5476 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
5477 | else |
|
|
5478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5479 | for as_dir in $PATH |
|
|
5480 | do |
|
|
5481 | IFS=$as_save_IFS |
|
|
5482 | test -z "$as_dir" && as_dir=. |
|
|
5483 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5485 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
5486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5487 | break 2 |
|
|
5488 | fi |
|
|
5489 | done |
|
|
5490 | done |
|
|
5491 | |
|
|
5492 | fi |
|
|
5493 | fi |
|
|
5494 | STRIP=$ac_cv_prog_STRIP |
|
|
5495 | if test -n "$STRIP"; then |
|
|
5496 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
5497 | echo "${ECHO_T}$STRIP" >&6 |
|
|
5498 | else |
|
|
5499 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5500 | echo "${ECHO_T}no" >&6 |
|
|
5501 | fi |
|
|
5502 | |
|
|
5503 | fi |
|
|
5504 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
5505 | ac_ct_STRIP=$STRIP |
|
|
5506 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
5507 | set dummy strip; ac_word=$2 |
|
|
5508 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5510 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
5511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5512 | else |
|
|
5513 | if test -n "$ac_ct_STRIP"; then |
|
|
5514 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
5515 | else |
|
|
5516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5517 | for as_dir in $PATH |
|
|
5518 | do |
|
|
5519 | IFS=$as_save_IFS |
|
|
5520 | test -z "$as_dir" && as_dir=. |
|
|
5521 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5523 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
5524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5525 | break 2 |
|
|
5526 | fi |
|
|
5527 | done |
|
|
5528 | done |
|
|
5529 | |
|
|
5530 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
5531 | fi |
|
|
5532 | fi |
|
|
5533 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
5534 | if test -n "$ac_ct_STRIP"; then |
|
|
5535 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
5536 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
5537 | else |
|
|
5538 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5539 | echo "${ECHO_T}no" >&6 |
|
|
5540 | fi |
|
|
5541 | |
|
|
5542 | STRIP=$ac_ct_STRIP |
|
|
5543 | else |
|
|
5544 | STRIP="$ac_cv_prog_STRIP" |
|
|
5545 | fi |
|
|
5546 | |
5216 | |
5547 | |
5217 | old_CC="$CC" |
5548 | old_CC="$CC" |
5218 | old_CFLAGS="$CFLAGS" |
5549 | old_CFLAGS="$CFLAGS" |
5219 | |
5550 | |
5220 | # Set sane defaults for various variables |
5551 | # Set sane defaults for various variables |
|
|
5552 | test -z "$AR" && AR=ar |
|
|
5553 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
5554 | test -z "$AS" && AS=as |
5221 | test -z "$CC" && CC=cc |
5555 | test -z "$CC" && CC=cc |
5222 | test -z "$LTCC" && LTCC=$CC |
5556 | test -z "$LTCC" && LTCC=$CC |
|
|
5557 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
5223 | test -z "$LD" && LD=ld |
5558 | test -z "$LD" && LD=ld |
|
|
5559 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5560 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5561 | test -z "$NM" && NM=nm |
|
|
5562 | test -z "$SED" && SED=sed |
|
|
5563 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
5564 | test -z "$RANLIB" && RANLIB=: |
|
|
5565 | test -z "$STRIP" && STRIP=: |
5224 | test -z "$ac_objext" && ac_objext=o |
5566 | test -z "$ac_objext" && ac_objext=o |
5225 | |
5567 | |
5226 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
5568 | # Determine commands to create old-style static archives. |
|
|
5569 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
5570 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
5571 | old_postuninstall_cmds= |
|
|
5572 | |
|
|
5573 | if test -n "$RANLIB"; then |
|
|
5574 | case $host_os in |
|
|
5575 | openbsd*) |
|
|
5576 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
|
5577 | ;; |
|
|
5578 | *) |
|
|
5579 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
5580 | ;; |
|
|
5581 | esac |
|
|
5582 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
5583 | fi |
5227 | |
5584 | |
5228 | # Only perform the check for file, if the check method requires it |
5585 | # Only perform the check for file, if the check method requires it |
5229 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5230 | case $deplibs_check_method in |
5586 | case $deplibs_check_method in |
5231 | file_magic*) |
5587 | file_magic*) |
5232 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
5588 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
5233 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
5589 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
5234 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
5590 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
… | |
… | |
5255 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5611 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5256 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5612 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5257 | $EGREP "$file_magic_regex" > /dev/null; then |
5613 | $EGREP "$file_magic_regex" > /dev/null; then |
5258 | : |
5614 | : |
5259 | else |
5615 | else |
5260 | cat <<_LT_EOF 1>&2 |
5616 | cat <<EOF 1>&2 |
5261 | |
5617 | |
5262 | *** Warning: the command libtool uses to detect shared libraries, |
5618 | *** Warning: the command libtool uses to detect shared libraries, |
5263 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
5619 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
5264 | *** The result is that libtool may fail to recognize shared libraries |
5620 | *** The result is that libtool may fail to recognize shared libraries |
5265 | *** as such. This will affect the creation of libtool libraries that |
5621 | *** as such. This will affect the creation of libtool libraries that |
5266 | *** depend on shared libraries, but programs linked with such libtool |
5622 | *** depend on shared libraries, but programs linked with such libtool |
5267 | *** libraries will work regardless of this problem. Nevertheless, you |
5623 | *** libraries will work regardless of this problem. Nevertheless, you |
5268 | *** may want to report the problem to your system manager and/or to |
5624 | *** may want to report the problem to your system manager and/or to |
5269 | *** bug-libtool@gnu.org |
5625 | *** bug-libtool@gnu.org |
5270 | |
5626 | |
5271 | _LT_EOF |
5627 | EOF |
5272 | fi ;; |
5628 | fi ;; |
5273 | esac |
5629 | esac |
5274 | fi |
5630 | fi |
5275 | break |
5631 | break |
5276 | fi |
5632 | fi |
… | |
… | |
5287 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
5643 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
5288 | else |
5644 | else |
5289 | echo "$as_me:$LINENO: result: no" >&5 |
5645 | echo "$as_me:$LINENO: result: no" >&5 |
5290 | echo "${ECHO_T}no" >&6 |
5646 | echo "${ECHO_T}no" >&6 |
5291 | fi |
5647 | fi |
5292 | |
|
|
5293 | |
|
|
5294 | |
|
|
5295 | |
|
|
5296 | |
5648 | |
5297 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
5649 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
5298 | if test -n "$ac_tool_prefix"; then |
5650 | if test -n "$ac_tool_prefix"; then |
5299 | echo "$as_me:$LINENO: checking for file" >&5 |
5651 | echo "$as_me:$LINENO: checking for file" >&5 |
5300 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
5652 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
… | |
… | |
5321 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5673 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
5322 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5674 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
5323 | $EGREP "$file_magic_regex" > /dev/null; then |
5675 | $EGREP "$file_magic_regex" > /dev/null; then |
5324 | : |
5676 | : |
5325 | else |
5677 | else |
5326 | cat <<_LT_EOF 1>&2 |
5678 | cat <<EOF 1>&2 |
5327 | |
5679 | |
5328 | *** Warning: the command libtool uses to detect shared libraries, |
5680 | *** Warning: the command libtool uses to detect shared libraries, |
5329 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
5681 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
5330 | *** The result is that libtool may fail to recognize shared libraries |
5682 | *** The result is that libtool may fail to recognize shared libraries |
5331 | *** as such. This will affect the creation of libtool libraries that |
5683 | *** as such. This will affect the creation of libtool libraries that |
5332 | *** depend on shared libraries, but programs linked with such libtool |
5684 | *** depend on shared libraries, but programs linked with such libtool |
5333 | *** libraries will work regardless of this problem. Nevertheless, you |
5685 | *** libraries will work regardless of this problem. Nevertheless, you |
5334 | *** may want to report the problem to your system manager and/or to |
5686 | *** may want to report the problem to your system manager and/or to |
5335 | *** bug-libtool@gnu.org |
5687 | *** bug-libtool@gnu.org |
5336 | |
5688 | |
5337 | _LT_EOF |
5689 | EOF |
5338 | fi ;; |
5690 | fi ;; |
5339 | esac |
5691 | esac |
5340 | fi |
5692 | fi |
5341 | break |
5693 | break |
5342 | fi |
5694 | fi |
… | |
… | |
5354 | else |
5706 | else |
5355 | echo "$as_me:$LINENO: result: no" >&5 |
5707 | echo "$as_me:$LINENO: result: no" >&5 |
5356 | echo "${ECHO_T}no" >&6 |
5708 | echo "${ECHO_T}no" >&6 |
5357 | fi |
5709 | fi |
5358 | |
5710 | |
5359 | |
|
|
5360 | else |
5711 | else |
5361 | MAGIC_CMD=: |
5712 | MAGIC_CMD=: |
5362 | fi |
5713 | fi |
5363 | fi |
5714 | fi |
5364 | |
5715 | |
5365 | fi |
5716 | fi |
5366 | ;; |
5717 | ;; |
5367 | esac |
5718 | esac |
5368 | |
5719 | |
|
|
5720 | enable_dlopen=no |
|
|
5721 | enable_win32_dll=no |
|
|
5722 | |
5369 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
5723 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
5370 | if test "${enable_libtool_lock+set}" = set; then |
5724 | if test "${enable_libtool_lock+set}" = set; then |
5371 | enableval="$enable_libtool_lock" |
5725 | enableval="$enable_libtool_lock" |
5372 | |
5726 | |
5373 | fi; |
5727 | fi; |
5374 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
5728 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
5375 | |
5729 | |
|
|
5730 | |
|
|
5731 | # Check whether --with-pic or --without-pic was given. |
|
|
5732 | if test "${with_pic+set}" = set; then |
|
|
5733 | withval="$with_pic" |
|
|
5734 | pic_mode="$withval" |
|
|
5735 | else |
|
|
5736 | pic_mode=default |
|
|
5737 | fi; |
|
|
5738 | test -z "$pic_mode" && pic_mode=default |
|
|
5739 | |
5376 | # Use C for the default configuration in the libtool script |
5740 | # Use C for the default configuration in the libtool script |
5377 | |
5741 | tagname= |
5378 | lt_save_CC="$CC" |
5742 | lt_save_CC="$CC" |
5379 | ac_ext=c |
5743 | ac_ext=c |
5380 | ac_cpp='$CPP $CPPFLAGS' |
5744 | ac_cpp='$CPP $CPPFLAGS' |
5381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
5395 | |
5759 | |
5396 | # Code to be used in simple link tests |
5760 | # Code to be used in simple link tests |
5397 | lt_simple_link_test_code='int main(){return(0);}\n' |
5761 | lt_simple_link_test_code='int main(){return(0);}\n' |
5398 | |
5762 | |
5399 | |
5763 | |
5400 | |
|
|
5401 | |
|
|
5402 | |
|
|
5403 | |
|
|
5404 | |
|
|
5405 | |
|
|
5406 | # If no C compiler was specified, use CC. |
5764 | # If no C compiler was specified, use CC. |
5407 | LTCC=${LTCC-"$CC"} |
5765 | LTCC=${LTCC-"$CC"} |
5408 | |
5766 | |
5409 | # Allow CC to be a program name with arguments. |
5767 | # Allow CC to be a program name with arguments. |
5410 | compiler=$CC |
5768 | compiler=$CC |
5411 | |
5769 | |
5412 | # Save the default compiler, since it gets overwritten when the other |
|
|
5413 | # tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP. |
|
|
5414 | compiler_DEFAULT=$CC |
|
|
5415 | |
5770 | |
5416 | # |
5771 | # |
5417 | # Check for any special shared library compilation flags. |
5772 | # Check for any special shared library compilation flags. |
5418 | # |
5773 | # |
5419 | lt_prog_cc_shlib= |
5774 | lt_prog_cc_shlib= |
… | |
… | |
5425 | esac |
5780 | esac |
5426 | fi |
5781 | fi |
5427 | if test -n "$lt_prog_cc_shlib"; then |
5782 | if test -n "$lt_prog_cc_shlib"; then |
5428 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
5783 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
5429 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
5784 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
5430 | if echo "$old_CC $old_CFLAGS " | $GREP "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
5785 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
5431 | else |
5786 | else |
5432 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
5787 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
5433 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
5788 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
5434 | lt_cv_prog_cc_can_build_shared=no |
5789 | lt_cv_prog_cc_can_build_shared=no |
5435 | fi |
5790 | fi |
5436 | fi |
5791 | fi |
5437 | |
5792 | |
5438 | |
5793 | |
5439 | ## CAVEAT EMPTOR: |
5794 | # |
5440 | ## There is no encapsulation within the following macros, do not change |
5795 | # Check to make sure the static flag actually works. |
5441 | ## the running order or otherwise move them around unless you know exactly |
5796 | # |
5442 | ## what you are doing... |
5797 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
5443 | if test -n "$compiler"; then |
5798 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
|
|
5799 | if test "${lt_prog_compiler_static_works+set}" = set; then |
|
|
5800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5801 | else |
|
|
5802 | lt_prog_compiler_static_works=no |
|
|
5803 | save_LDFLAGS="$LDFLAGS" |
|
|
5804 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
|
|
5805 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
5806 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
5807 | # The compiler can only warn and ignore the option if not recognized |
|
|
5808 | # So say no if there are warnings |
|
|
5809 | if test -s conftest.err; then |
|
|
5810 | # Append any errors to the config.log. |
|
|
5811 | cat conftest.err 1>&5 |
|
|
5812 | else |
|
|
5813 | lt_prog_compiler_static_works=yes |
|
|
5814 | fi |
|
|
5815 | fi |
|
|
5816 | $rm conftest* |
|
|
5817 | LDFLAGS="$save_LDFLAGS" |
|
|
5818 | |
|
|
5819 | fi |
|
|
5820 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
|
5821 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
|
5822 | |
|
|
5823 | if test x"$lt_prog_compiler_static_works" = xyes; then |
|
|
5824 | : |
|
|
5825 | else |
|
|
5826 | lt_prog_compiler_static= |
|
|
5827 | fi |
|
|
5828 | |
|
|
5829 | |
|
|
5830 | |
5444 | |
5831 | |
5445 | lt_prog_compiler_no_builtin_flag= |
5832 | lt_prog_compiler_no_builtin_flag= |
5446 | |
5833 | |
5447 | if test "$GCC" = yes; then |
5834 | if test "$GCC" = yes; then |
5448 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
5835 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
5449 | |
5836 | |
|
|
5837 | |
5450 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
5838 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
5451 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
5839 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
5452 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
5840 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
5453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5454 | else |
5842 | else |
5455 | lt_cv_prog_compiler_rtti_exceptions=no |
5843 | lt_cv_prog_compiler_rtti_exceptions=no |
… | |
… | |
5463 | # The option is referenced via a variable to avoid confusing sed. |
5851 | # The option is referenced via a variable to avoid confusing sed. |
5464 | lt_compile=`echo "$ac_compile" | $SED \ |
5852 | lt_compile=`echo "$ac_compile" | $SED \ |
5465 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
5853 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
5466 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
5854 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
5467 | -e 's:$: $lt_compiler_flag:'` |
5855 | -e 's:$: $lt_compiler_flag:'` |
5468 | (eval echo "\"\$as_me:5468: $lt_compile\"" >&5) |
5856 | (eval echo "\"\$as_me:5856: $lt_compile\"" >&5) |
5469 | (eval "$lt_compile" 2>conftest.err) |
5857 | (eval "$lt_compile" 2>conftest.err) |
5470 | ac_status=$? |
5858 | ac_status=$? |
5471 | cat conftest.err >&5 |
5859 | cat conftest.err >&5 |
5472 | echo "$as_me:5472: \$? = $ac_status" >&5 |
5860 | echo "$as_me:5860: \$? = $ac_status" >&5 |
5473 | if (exit $ac_status) && test -s "$ac_outfile"; then |
5861 | if (exit $ac_status) && test -s "$ac_outfile"; then |
5474 | # The compiler can only warn and ignore the option if not recognized |
5862 | # The compiler can only warn and ignore the option if not recognized |
5475 | # So say no if there are warnings |
5863 | # So say no if there are warnings |
5476 | if test ! -s conftest.err; then |
5864 | if test ! -s conftest.err; then |
5477 | lt_cv_prog_compiler_rtti_exceptions=yes |
5865 | lt_cv_prog_compiler_rtti_exceptions=yes |
… | |
… | |
5489 | : |
5877 | : |
5490 | fi |
5878 | fi |
5491 | |
5879 | |
5492 | fi |
5880 | fi |
5493 | |
5881 | |
5494 | |
|
|
5495 | |
|
|
5496 | |
|
|
5497 | |
|
|
5498 | |
|
|
5499 | lt_prog_compiler_wl= |
5882 | lt_prog_compiler_wl= |
5500 | lt_prog_compiler_pic= |
5883 | lt_prog_compiler_pic= |
5501 | lt_prog_compiler_static= |
5884 | lt_prog_compiler_static= |
5502 | |
5885 | |
5503 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
5886 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
5504 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
5887 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
… | |
… | |
5515 | lt_prog_compiler_static='-Bstatic' |
5898 | lt_prog_compiler_static='-Bstatic' |
5516 | fi |
5899 | fi |
5517 | ;; |
5900 | ;; |
5518 | |
5901 | |
5519 | amigaos*) |
5902 | amigaos*) |
5520 | if test "$host_cpu" = m68k; then |
|
|
5521 | # FIXME: we need at least 68020 code to build shared libraries, but |
5903 | # FIXME: we need at least 68020 code to build shared libraries, but |
5522 | # adding the `-m68020' flag to GCC prevents building anything better, |
5904 | # adding the `-m68020' flag to GCC prevents building anything better, |
5523 | # like `-m68040'. |
5905 | # like `-m68040'. |
5524 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
5906 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
5525 | fi |
|
|
5526 | ;; |
5907 | ;; |
5527 | |
5908 | |
5528 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
5909 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
5529 | # PIC is the default for these OSes. |
5910 | # PIC is the default for these OSes. |
5530 | ;; |
5911 | ;; |
… | |
… | |
5581 | lt_prog_compiler_static='-Bstatic' |
5962 | lt_prog_compiler_static='-Bstatic' |
5582 | else |
5963 | else |
5583 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
5964 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
5584 | fi |
5965 | fi |
5585 | ;; |
5966 | ;; |
5586 | darwin*) |
|
|
5587 | # PIC is the default on this platform |
|
|
5588 | # Common symbols not allowed in MH_DYLIB files |
|
|
5589 | case "$cc_basename" in |
|
|
5590 | xlc*) |
|
|
5591 | lt_prog_compiler_pic='-qnocommon' |
|
|
5592 | lt_prog_compiler_wl='-Wl,' |
|
|
5593 | ;; |
|
|
5594 | esac |
|
|
5595 | ;; |
|
|
5596 | |
5967 | |
5597 | mingw* | pw32* | os2*) |
5968 | mingw* | pw32* | os2*) |
5598 | # This hack is so that the source file can tell whether it is being |
5969 | # This hack is so that the source file can tell whether it is being |
5599 | # built for inclusion in a dll (and should export symbols for example). |
5970 | # built for inclusion in a dll (and should export symbols for example). |
5600 | lt_prog_compiler_pic='-DDLL_EXPORT' |
5971 | lt_prog_compiler_pic='-DDLL_EXPORT' |
… | |
… | |
5687 | lt_prog_compiler_can_build_shared=no |
6058 | lt_prog_compiler_can_build_shared=no |
5688 | ;; |
6059 | ;; |
5689 | esac |
6060 | esac |
5690 | fi |
6061 | fi |
5691 | |
6062 | |
5692 | case "$host_os" in |
|
|
5693 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
5694 | *djgpp*) |
|
|
5695 | lt_prog_compiler_pic= |
|
|
5696 | ;; |
|
|
5697 | *) |
|
|
5698 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
|
5699 | ;; |
|
|
5700 | esac |
|
|
5701 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6063 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
5702 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6064 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
5703 | |
|
|
5704 | |
|
|
5705 | |
|
|
5706 | |
|
|
5707 | |
|
|
5708 | |
6065 | |
5709 | # |
6066 | # |
5710 | # Check to make sure the PIC flag actually works. |
6067 | # Check to make sure the PIC flag actually works. |
5711 | # |
6068 | # |
5712 | if test -n "$lt_prog_compiler_pic"; then |
6069 | if test -n "$lt_prog_compiler_pic"; then |
|
|
6070 | |
5713 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6071 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
5714 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6072 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
5715 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
6073 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
5716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5717 | else |
6075 | else |
5718 | lt_prog_compiler_pic_works=no |
6076 | lt_prog_compiler_pic_works=no |
… | |
… | |
5726 | # The option is referenced via a variable to avoid confusing sed. |
6084 | # The option is referenced via a variable to avoid confusing sed. |
5727 | lt_compile=`echo "$ac_compile" | $SED \ |
6085 | lt_compile=`echo "$ac_compile" | $SED \ |
5728 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6086 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
5729 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6087 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
5730 | -e 's:$: $lt_compiler_flag:'` |
6088 | -e 's:$: $lt_compiler_flag:'` |
5731 | (eval echo "\"\$as_me:5731: $lt_compile\"" >&5) |
6089 | (eval echo "\"\$as_me:6089: $lt_compile\"" >&5) |
5732 | (eval "$lt_compile" 2>conftest.err) |
6090 | (eval "$lt_compile" 2>conftest.err) |
5733 | ac_status=$? |
6091 | ac_status=$? |
5734 | cat conftest.err >&5 |
6092 | cat conftest.err >&5 |
5735 | echo "$as_me:5735: \$? = $ac_status" >&5 |
6093 | echo "$as_me:6093: \$? = $ac_status" >&5 |
5736 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6094 | if (exit $ac_status) && test -s "$ac_outfile"; then |
5737 | # The compiler can only warn and ignore the option if not recognized |
6095 | # The compiler can only warn and ignore the option if not recognized |
5738 | # So say no if there are warnings |
6096 | # So say no if there are warnings |
5739 | if test ! -s conftest.err; then |
6097 | if test ! -s conftest.err; then |
5740 | lt_prog_compiler_pic_works=yes |
6098 | lt_prog_compiler_pic_works=yes |
… | |
… | |
5755 | lt_prog_compiler_pic= |
6113 | lt_prog_compiler_pic= |
5756 | lt_prog_compiler_can_build_shared=no |
6114 | lt_prog_compiler_can_build_shared=no |
5757 | fi |
6115 | fi |
5758 | |
6116 | |
5759 | fi |
6117 | fi |
5760 | |
6118 | case "$host_os" in |
5761 | |
6119 | # For platforms which do not support PIC, -DPIC is meaningless: |
5762 | |
6120 | *djgpp*) |
5763 | |
|
|
5764 | |
|
|
5765 | |
|
|
5766 | # |
|
|
5767 | # Check to make sure the static flag actually works. |
|
|
5768 | # |
|
|
5769 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
|
|
5770 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
|
|
5771 | if test "${lt_prog_compiler_static_works+set}" = set; then |
|
|
5772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5773 | else |
|
|
5774 | lt_prog_compiler_static_works=no |
|
|
5775 | save_LDFLAGS="$LDFLAGS" |
|
|
5776 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
|
|
5777 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
5778 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
5779 | # The compiler can only warn and ignore the option if not recognized |
|
|
5780 | # So say no if there are warnings |
|
|
5781 | if test -s conftest.err; then |
|
|
5782 | # Append any errors to the config.log. |
|
|
5783 | cat conftest.err 1>&5 |
|
|
5784 | else |
|
|
5785 | lt_prog_compiler_static_works=yes |
|
|
5786 | fi |
|
|
5787 | fi |
|
|
5788 | $rm conftest* |
|
|
5789 | LDFLAGS="$save_LDFLAGS" |
|
|
5790 | |
|
|
5791 | fi |
|
|
5792 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
|
5793 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
|
5794 | |
|
|
5795 | if test x"$lt_prog_compiler_static_works" = xyes; then |
|
|
5796 | : |
|
|
5797 | else |
|
|
5798 | lt_prog_compiler_static= |
6121 | lt_prog_compiler_pic= |
5799 | fi |
6122 | ;; |
|
|
6123 | *) |
|
|
6124 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
|
6125 | ;; |
|
|
6126 | esac |
5800 | |
6127 | |
5801 | |
|
|
5802 | |
|
|
5803 | |
|
|
5804 | |
|
|
5805 | |
|
|
5806 | |
|
|
5807 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6128 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
5808 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6129 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
5809 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6130 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5811 | else |
6132 | else |
5812 | lt_cv_prog_compiler_c_o=no |
6133 | lt_cv_prog_compiler_c_o=no |
… | |
… | |
5823 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
6144 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
5824 | lt_compile=`echo "$ac_compile" | $SED \ |
6145 | lt_compile=`echo "$ac_compile" | $SED \ |
5825 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6146 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
5826 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6147 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
5827 | -e 's:$: $lt_compiler_flag:'` |
6148 | -e 's:$: $lt_compiler_flag:'` |
5828 | (eval echo "\"\$as_me:5828: $lt_compile\"" >&5) |
6149 | (eval echo "\"\$as_me:6149: $lt_compile\"" >&5) |
5829 | (eval "$lt_compile" 2>out/conftest.err) |
6150 | (eval "$lt_compile" 2>out/conftest.err) |
5830 | ac_status=$? |
6151 | ac_status=$? |
5831 | cat out/conftest.err >&5 |
6152 | cat out/conftest.err >&5 |
5832 | echo "$as_me:5832: \$? = $ac_status" >&5 |
6153 | echo "$as_me:6153: \$? = $ac_status" >&5 |
5833 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6154 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
5834 | then |
6155 | then |
5835 | # The compiler can only warn and ignore the option if not recognized |
6156 | # The compiler can only warn and ignore the option if not recognized |
5836 | # So say no if there are warnings |
6157 | # So say no if there are warnings |
5837 | if test ! -s out/conftest.err; then |
6158 | if test ! -s out/conftest.err; then |
… | |
… | |
5849 | $rm conftest* |
6170 | $rm conftest* |
5850 | |
6171 | |
5851 | fi |
6172 | fi |
5852 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6173 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
5853 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
6174 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
5854 | |
|
|
5855 | |
|
|
5856 | |
|
|
5857 | |
|
|
5858 | |
|
|
5859 | |
6175 | |
5860 | |
6176 | |
5861 | hard_links="nottested" |
6177 | hard_links="nottested" |
5862 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6178 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
5863 | # do not overwrite the value of need_locks provided by the user |
6179 | # do not overwrite the value of need_locks provided by the user |
… | |
… | |
5878 | fi |
6194 | fi |
5879 | else |
6195 | else |
5880 | need_locks=no |
6196 | need_locks=no |
5881 | fi |
6197 | fi |
5882 | |
6198 | |
5883 | |
|
|
5884 | |
|
|
5885 | |
|
|
5886 | |
|
|
5887 | |
|
|
5888 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6199 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
5889 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
6200 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
5890 | |
6201 | |
5891 | runpath_var= |
6202 | runpath_var= |
5892 | allow_undefined_flag= |
6203 | allow_undefined_flag= |
5893 | always_export_symbols=no |
6204 | enable_shared_with_static_runtimes=no |
5894 | archive_cmds= |
6205 | archive_cmds= |
5895 | archive_expsym_cmds= |
6206 | archive_expsym_cmds= |
5896 | enable_shared_with_static_runtimes=no |
6207 | old_archive_From_new_cmds= |
|
|
6208 | old_archive_from_expsyms_cmds= |
5897 | export_dynamic_flag_spec= |
6209 | export_dynamic_flag_spec= |
5898 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6210 | whole_archive_flag_spec= |
5899 | hardcode_automatic=no |
6211 | thread_safe_flag_spec= |
5900 | hardcode_direct=no |
|
|
5901 | hardcode_libdir_flag_spec= |
6212 | hardcode_libdir_flag_spec= |
5902 | hardcode_libdir_flag_spec_ld= |
6213 | hardcode_libdir_flag_spec_ld= |
5903 | hardcode_libdir_separator= |
6214 | hardcode_libdir_separator= |
|
|
6215 | hardcode_direct=no |
5904 | hardcode_minus_L=no |
6216 | hardcode_minus_L=no |
5905 | hardcode_shlibpath_var=unsupported |
6217 | hardcode_shlibpath_var=unsupported |
5906 | inherit_rpath=no |
|
|
5907 | link_all_deplibs=unknown |
6218 | link_all_deplibs=unknown |
|
|
6219 | hardcode_automatic=no |
5908 | module_cmds= |
6220 | module_cmds= |
5909 | module_expsym_cmds= |
6221 | module_expsym_cmds= |
5910 | old_archive_from_new_cmds= |
6222 | always_export_symbols=no |
5911 | old_archive_from_expsyms_cmds= |
6223 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5912 | thread_safe_flag_spec= |
|
|
5913 | whole_archive_flag_spec= |
|
|
5914 | # include_expsyms should be a list of space-separated symbols to be *always* |
6224 | # include_expsyms should be a list of space-separated symbols to be *always* |
5915 | # included in the symbol list |
6225 | # included in the symbol list |
5916 | include_expsyms= |
6226 | include_expsyms= |
5917 | # exclude_expsyms can be an extended regexp of symbols to exclude |
6227 | # exclude_expsyms can be an extended regexp of symbols to exclude |
5918 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
6228 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
… | |
… | |
5949 | case $host_os in |
6259 | case $host_os in |
5950 | aix3* | aix4* | aix5*) |
6260 | aix3* | aix4* | aix5*) |
5951 | # On AIX/PPC, the GNU linker is very broken |
6261 | # On AIX/PPC, the GNU linker is very broken |
5952 | if test "$host_cpu" != ia64; then |
6262 | if test "$host_cpu" != ia64; then |
5953 | ld_shlibs=no |
6263 | ld_shlibs=no |
5954 | cat <<_LT_EOF 1>&2 |
6264 | cat <<EOF 1>&2 |
5955 | |
6265 | |
5956 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6266 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
5957 | *** to be unable to reliably create shared libraries on AIX. |
6267 | *** to be unable to reliably create shared libraries on AIX. |
5958 | *** Therefore, libtool is disabling shared libraries support. If you |
6268 | *** Therefore, libtool is disabling shared libraries support. If you |
5959 | *** really care for shared libraries, you may want to modify your PATH |
6269 | *** really care for shared libraries, you may want to modify your PATH |
5960 | *** so that a non-GNU linker is found, and then restart. |
6270 | *** so that a non-GNU linker is found, and then restart. |
5961 | |
6271 | |
5962 | _LT_EOF |
6272 | EOF |
5963 | fi |
6273 | fi |
5964 | ;; |
6274 | ;; |
5965 | |
6275 | |
5966 | amigaos*) |
6276 | amigaos*) |
5967 | if test "$host_cpu" = m68k; then |
|
|
5968 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
6277 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
5969 | hardcode_libdir_flag_spec='-L$libdir' |
6278 | hardcode_libdir_flag_spec='-L$libdir' |
5970 | hardcode_minus_L=yes |
6279 | hardcode_minus_L=yes |
5971 | fi |
|
|
5972 | |
6280 | |
5973 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6281 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
5974 | # that the semantics of dynamic libraries on AmigaOS, at least up |
6282 | # that the semantics of dynamic libraries on AmigaOS, at least up |
5975 | # to version 4, is to share data among multiple programs linked |
6283 | # to version 4, is to share data among multiple programs linked |
5976 | # with the same dynamic library. Since this doesn't match the |
6284 | # with the same dynamic library. Since this doesn't match the |
… | |
… | |
5978 | # them. |
6286 | # them. |
5979 | ld_shlibs=no |
6287 | ld_shlibs=no |
5980 | ;; |
6288 | ;; |
5981 | |
6289 | |
5982 | beos*) |
6290 | beos*) |
5983 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
6291 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
5984 | allow_undefined_flag=unsupported |
6292 | allow_undefined_flag=unsupported |
5985 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
6293 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
5986 | # support --undefined. This deserves some investigation. FIXME |
6294 | # support --undefined. This deserves some investigation. FIXME |
5987 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6295 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
5988 | else |
6296 | else |
… | |
… | |
5997 | allow_undefined_flag=unsupported |
6305 | allow_undefined_flag=unsupported |
5998 | always_export_symbols=no |
6306 | always_export_symbols=no |
5999 | enable_shared_with_static_runtimes=yes |
6307 | enable_shared_with_static_runtimes=yes |
6000 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
6308 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
6001 | |
6309 | |
6002 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
6310 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
6003 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
6311 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
6004 | # If the export-symbols file already is a .def file (1st line |
6312 | # If the export-symbols file already is a .def file (1st line |
6005 | # is EXPORTS), use it as is; otherwise, prepend... |
6313 | # is EXPORTS), use it as is; otherwise, prepend... |
6006 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
6314 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
6007 | cp $export_symbols $output_objdir/$soname.def; |
6315 | cp $export_symbols $output_objdir/$soname.def; |
… | |
… | |
6013 | else |
6321 | else |
6014 | ld_shlibs=no |
6322 | ld_shlibs=no |
6015 | fi |
6323 | fi |
6016 | ;; |
6324 | ;; |
6017 | |
6325 | |
6018 | netbsd*) |
6326 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
6019 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
6327 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6020 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
6328 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
6021 | wlarc= |
6329 | wlarc= |
6022 | else |
6330 | else |
6023 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6331 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6024 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6332 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6025 | fi |
6333 | fi |
6026 | ;; |
6334 | ;; |
6027 | |
6335 | |
6028 | solaris* | sysv5*) |
6336 | solaris* | sysv5*) |
6029 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
6337 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
6030 | ld_shlibs=no |
6338 | ld_shlibs=no |
6031 | cat <<_LT_EOF 1>&2 |
6339 | cat <<EOF 1>&2 |
6032 | |
6340 | |
6033 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
6341 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
6034 | *** create shared libraries on Solaris systems. Therefore, libtool |
6342 | *** create shared libraries on Solaris systems. Therefore, libtool |
6035 | *** is disabling shared libraries support. We urge you to upgrade GNU |
6343 | *** is disabling shared libraries support. We urge you to upgrade GNU |
6036 | *** binutils to release 2.9.1 or newer. Another option is to modify |
6344 | *** binutils to release 2.9.1 or newer. Another option is to modify |
6037 | *** your PATH or compiler configuration so that the native linker is |
6345 | *** your PATH or compiler configuration so that the native linker is |
6038 | *** used, and then restart. |
6346 | *** used, and then restart. |
6039 | |
6347 | |
6040 | _LT_EOF |
6348 | EOF |
6041 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
6349 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6042 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6350 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6043 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6351 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6044 | else |
6352 | else |
6045 | ld_shlibs=no |
6353 | ld_shlibs=no |
6046 | fi |
6354 | fi |
… | |
… | |
6052 | hardcode_direct=yes |
6360 | hardcode_direct=yes |
6053 | hardcode_shlibpath_var=no |
6361 | hardcode_shlibpath_var=no |
6054 | ;; |
6362 | ;; |
6055 | |
6363 | |
6056 | linux*) |
6364 | linux*) |
6057 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then |
6365 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6058 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6366 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6367 | archive_cmds="$tmp_archive_cmds" |
|
|
6368 | supports_anon_versioning=no |
6059 | case `$LD -v 2>&1` in |
6369 | case `$LD -v 2>/dev/null` in |
6060 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
6370 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
6061 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
6371 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
6062 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
6372 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
6063 | *\ 2.11.*) ;; # other 2.11 versions |
6373 | *\ 2.11.*) ;; # other 2.11 versions |
6064 | *) supports_anon_versioning=yes ;; |
6374 | *) supports_anon_versioning=yes ;; |
6065 | esac |
6375 | esac |
6066 | if test "x$supports_anon_versioning" = xyes; then |
6376 | if test $supports_anon_versioning = yes; then |
6067 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
6377 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
6378 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
6379 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
6380 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
6068 | else |
6381 | else |
6069 | archive_expsym_cmds=$archive_cmds |
6382 | archive_expsym_cmds="$tmp_archive_cmds" |
6070 | fi |
6383 | fi |
|
|
6384 | link_all_deplibs=no |
6071 | else |
6385 | else |
6072 | ld_shlibs=no |
6386 | ld_shlibs=no |
6073 | fi |
6387 | fi |
6074 | ;; |
6388 | ;; |
6075 | |
6389 | |
6076 | *) |
6390 | *) |
6077 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
6391 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6078 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6392 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6079 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6393 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
6080 | else |
6394 | else |
6081 | ld_shlibs=no |
6395 | ld_shlibs=no |
6082 | fi |
6396 | fi |
… | |
… | |
6086 | if test "$ld_shlibs" = yes; then |
6400 | if test "$ld_shlibs" = yes; then |
6087 | runpath_var=LD_RUN_PATH |
6401 | runpath_var=LD_RUN_PATH |
6088 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6402 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
6089 | export_dynamic_flag_spec='${wl}--export-dynamic' |
6403 | export_dynamic_flag_spec='${wl}--export-dynamic' |
6090 | # ancient GNU ld didn't support --whole-archive et. al. |
6404 | # ancient GNU ld didn't support --whole-archive et. al. |
6091 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
6405 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
6092 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6406 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6093 | else |
6407 | else |
6094 | whole_archive_flag_spec= |
6408 | whole_archive_flag_spec= |
6095 | fi |
6409 | fi |
6096 | fi |
6410 | fi |
… | |
… | |
6119 | exp_sym_flag='-Bexport' |
6433 | exp_sym_flag='-Bexport' |
6120 | no_entry_flag="" |
6434 | no_entry_flag="" |
6121 | else |
6435 | else |
6122 | # If we're using GNU nm, then we don't want the "-C" option. |
6436 | # If we're using GNU nm, then we don't want the "-C" option. |
6123 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
6437 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
6124 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
6438 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
6125 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
6439 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
6126 | else |
6440 | else |
6127 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
6441 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
6128 | fi |
6442 | fi |
6129 | aix_use_runtimelinking=no |
6443 | aix_use_runtimelinking=no |
… | |
… | |
6158 | if test "$GCC" = yes; then |
6472 | if test "$GCC" = yes; then |
6159 | case $host_os in aix4.012|aix4.012.*) |
6473 | case $host_os in aix4.012|aix4.012.*) |
6160 | # We only want to do this on AIX 4.2 and lower, the check |
6474 | # We only want to do this on AIX 4.2 and lower, the check |
6161 | # below for broken collect2 doesn't work under 4.3+ |
6475 | # below for broken collect2 doesn't work under 4.3+ |
6162 | collect2name=`${CC} -print-prog-name=collect2` |
6476 | collect2name=`${CC} -print-prog-name=collect2` |
6163 | if test -f "$collect2name" && |
6477 | if test -f "$collect2name" && \ |
6164 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
6478 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
6165 | then |
6479 | then |
6166 | # We have reworked collect2 |
6480 | # We have reworked collect2 |
6167 | hardcode_direct=yes |
6481 | hardcode_direct=yes |
6168 | else |
6482 | else |
6169 | # We have old collect2 |
6483 | # We have old collect2 |
… | |
… | |
6197 | always_export_symbols=yes |
6511 | always_export_symbols=yes |
6198 | if test "$aix_use_runtimelinking" = yes; then |
6512 | if test "$aix_use_runtimelinking" = yes; then |
6199 | # Warning - without using the other runtime loading flags (-brtl), |
6513 | # Warning - without using the other runtime loading flags (-brtl), |
6200 | # -berok will link without error, but may produce a broken library. |
6514 | # -berok will link without error, but may produce a broken library. |
6201 | allow_undefined_flag='-berok' |
6515 | allow_undefined_flag='-berok' |
6202 | # Determine the default libpath from the value encoded in an |
6516 | # Determine the default libpath from the value encoded in an empty executable. |
6203 | # empty executable. |
|
|
6204 | cat >conftest.$ac_ext <<_ACEOF |
6517 | cat >conftest.$ac_ext <<_ACEOF |
6205 | /* confdefs.h. */ |
6518 | /* confdefs.h. */ |
6206 | _ACEOF |
6519 | _ACEOF |
6207 | cat confdefs.h >>conftest.$ac_ext |
6520 | cat confdefs.h >>conftest.$ac_ext |
6208 | cat >>conftest.$ac_ext <<_ACEOF |
6521 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
6252 | conftest$ac_exeext conftest.$ac_ext |
6565 | conftest$ac_exeext conftest.$ac_ext |
6253 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
6566 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
6254 | |
6567 | |
6255 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
6568 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
6256 | 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" |
6569 | 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" |
6257 | else |
6570 | else |
6258 | if test "$host_cpu" = ia64; then |
6571 | if test "$host_cpu" = ia64; then |
6259 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
6572 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
6260 | allow_undefined_flag="-z nodefs" |
6573 | allow_undefined_flag="-z nodefs" |
6261 | 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" |
6574 | 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" |
6262 | else |
6575 | else |
6263 | # Determine the default libpath from the value encoded in an |
6576 | # Determine the default libpath from the value encoded in an empty executable. |
6264 | # empty executable. |
|
|
6265 | cat >conftest.$ac_ext <<_ACEOF |
6577 | cat >conftest.$ac_ext <<_ACEOF |
6266 | /* confdefs.h. */ |
6578 | /* confdefs.h. */ |
6267 | _ACEOF |
6579 | _ACEOF |
6268 | cat confdefs.h >>conftest.$ac_ext |
6580 | cat confdefs.h >>conftest.$ac_ext |
6269 | cat >>conftest.$ac_ext <<_ACEOF |
6581 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
6328 | fi |
6640 | fi |
6329 | fi |
6641 | fi |
6330 | ;; |
6642 | ;; |
6331 | |
6643 | |
6332 | amigaos*) |
6644 | amigaos*) |
6333 | if test "$host_cpu" = m68k; then |
|
|
6334 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
6645 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
6335 | hardcode_libdir_flag_spec='-L$libdir' |
6646 | hardcode_libdir_flag_spec='-L$libdir' |
6336 | hardcode_minus_L=yes |
6647 | hardcode_minus_L=yes |
6337 | fi |
|
|
6338 | # see comment about different semantics on the GNU ld section |
6648 | # see comment about different semantics on the GNU ld section |
6339 | ld_shlibs=no |
6649 | ld_shlibs=no |
6340 | ;; |
6650 | ;; |
6341 | |
6651 | |
6342 | bsdi4*) |
6652 | bsdi4*) |
… | |
… | |
6355 | # Tell ltmain to make .dll files, not .so files. |
6665 | # Tell ltmain to make .dll files, not .so files. |
6356 | shrext_cmds=".dll" |
6666 | shrext_cmds=".dll" |
6357 | # FIXME: Setting linknames here is a bad hack. |
6667 | # FIXME: Setting linknames here is a bad hack. |
6358 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
6668 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
6359 | # The linker will automatically build a .lib file if we build a DLL. |
6669 | # The linker will automatically build a .lib file if we build a DLL. |
6360 | old_archive_from_new_cmds='true' |
6670 | old_archive_From_new_cmds='true' |
6361 | # FIXME: Should let the user specify the lib program. |
6671 | # FIXME: Should let the user specify the lib program. |
6362 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
6672 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
6363 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
6673 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
6364 | enable_shared_with_static_runtimes=yes |
6674 | enable_shared_with_static_runtimes=yes |
6365 | ;; |
6675 | ;; |
6366 | |
6676 | |
6367 | darwin* | rhapsody*) |
6677 | darwin* | rhapsody*) |
|
|
6678 | if test "$GXX" = yes ; then |
|
|
6679 | archive_cmds_need_lc=no |
6368 | case "$host_os" in |
6680 | case "$host_os" in |
6369 | rhapsody* | darwin1.[012]) |
6681 | rhapsody* | darwin1.[012]) |
6370 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
6682 | allow_undefined_flag='-undefined suppress' |
6371 | ;; |
6683 | ;; |
6372 | *) # Darwin 1.3 on |
6684 | *) # Darwin 1.3 on |
6373 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
6685 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
6374 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress' |
6686 | allow_undefined_flag='-flat_namespace -undefined suppress' |
6375 | else |
6687 | else |
6376 | case ${MACOSX_DEPLOYMENT_TARGET} in |
6688 | case ${MACOSX_DEPLOYMENT_TARGET} in |
6377 | 10.[012]) |
6689 | 10.[012]) |
6378 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
6690 | allow_undefined_flag='-flat_namespace -undefined suppress' |
6379 | ;; |
6691 | ;; |
6380 | 10.*) |
6692 | 10.*) |
6381 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
6693 | allow_undefined_flag='-undefined dynamic_lookup' |
6382 | ;; |
6694 | ;; |
6383 | esac |
6695 | esac |
6384 | fi |
6696 | fi |
6385 | ;; |
6697 | ;; |
6386 | esac |
6698 | esac |
6387 | archive_cmds_need_lc=no |
6699 | lt_int_apple_cc_single_mod=no |
|
|
6700 | output_verbose_link_cmd='echo' |
|
|
6701 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
6702 | lt_int_apple_cc_single_mod=yes |
|
|
6703 | fi |
|
|
6704 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
6705 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
6706 | else |
|
|
6707 | archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
6708 | fi |
|
|
6709 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
6710 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
6711 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
6712 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6713 | else |
|
|
6714 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6715 | fi |
|
|
6716 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
6388 | hardcode_direct=no |
6717 | hardcode_direct=no |
6389 | hardcode_automatic=yes |
6718 | hardcode_automatic=yes |
6390 | hardcode_shlibpath_var=unsupported |
6719 | hardcode_shlibpath_var=unsupported |
6391 | whole_archive_flag_spec='-all_load $convenience' |
6720 | whole_archive_flag_spec='-all_load $convenience' |
6392 | link_all_deplibs=yes |
6721 | link_all_deplibs=yes |
6393 | if test "$GCC" = yes ; then |
|
|
6394 | output_verbose_link_cmd='echo' |
|
|
6395 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
6396 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
6397 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
6398 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6399 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6400 | else |
6722 | else |
6401 | case "$cc_basename" in |
|
|
6402 | xlc*) |
|
|
6403 | output_verbose_link_cmd='echo' |
|
|
6404 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
6405 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
6406 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
6407 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6408 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6409 | ;; |
|
|
6410 | *) |
|
|
6411 | ld_shlibs=no |
6723 | ld_shlibs=no |
6412 | ;; |
|
|
6413 | esac |
|
|
6414 | fi |
6724 | fi |
6415 | ;; |
6725 | ;; |
|
|
6726 | |
6416 | dgux*) |
6727 | dgux*) |
6417 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6728 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
6418 | hardcode_libdir_flag_spec='-L$libdir' |
6729 | hardcode_libdir_flag_spec='-L$libdir' |
6419 | hardcode_shlibpath_var=no |
6730 | hardcode_shlibpath_var=no |
6420 | ;; |
6731 | ;; |
… | |
… | |
6519 | ;; |
6830 | ;; |
6520 | |
6831 | |
6521 | irix5* | irix6* | nonstopux*) |
6832 | irix5* | irix6* | nonstopux*) |
6522 | if test "$GCC" = yes; then |
6833 | if test "$GCC" = yes; then |
6523 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
6834 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
6524 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
|
|
6525 | else |
6835 | else |
6526 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
6836 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
6527 | archive_expsym_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
|
|
6528 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
6837 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
6529 | fi |
6838 | fi |
6530 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6839 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
6531 | hardcode_libdir_separator=: |
6840 | hardcode_libdir_separator=: |
6532 | inherit_rpath=yes |
|
|
6533 | link_all_deplibs=yes |
6841 | link_all_deplibs=yes |
6534 | ;; |
6842 | ;; |
6535 | |
6843 | |
6536 | netbsd*) |
6844 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
6537 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
6845 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6538 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
6846 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
6539 | else |
6847 | else |
6540 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
6848 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
6541 | fi |
6849 | fi |
6542 | hardcode_libdir_flag_spec='-R$libdir' |
6850 | hardcode_libdir_flag_spec='-R$libdir' |
… | |
… | |
6553 | ;; |
6861 | ;; |
6554 | |
6862 | |
6555 | openbsd*) |
6863 | openbsd*) |
6556 | hardcode_direct=yes |
6864 | hardcode_direct=yes |
6557 | hardcode_shlibpath_var=no |
6865 | hardcode_shlibpath_var=no |
6558 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6866 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
6559 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6867 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
6560 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6868 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
6561 | export_dynamic_flag_spec='${wl}-E' |
6869 | export_dynamic_flag_spec='${wl}-E' |
6562 | else |
6870 | else |
6563 | case $host_os in |
6871 | case $host_os in |
… | |
… | |
6576 | os2*) |
6884 | os2*) |
6577 | hardcode_libdir_flag_spec='-L$libdir' |
6885 | hardcode_libdir_flag_spec='-L$libdir' |
6578 | hardcode_minus_L=yes |
6886 | hardcode_minus_L=yes |
6579 | allow_undefined_flag=unsupported |
6887 | allow_undefined_flag=unsupported |
6580 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
6888 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
6581 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
6889 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
6582 | ;; |
6890 | ;; |
6583 | |
6891 | |
6584 | osf3*) |
6892 | osf3*) |
6585 | if test "$GCC" = yes; then |
6893 | if test "$GCC" = yes; then |
6586 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
6894 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
… | |
… | |
6731 | |
7039 | |
6732 | *) |
7040 | *) |
6733 | ld_shlibs=no |
7041 | ld_shlibs=no |
6734 | ;; |
7042 | ;; |
6735 | esac |
7043 | esac |
6736 | |
|
|
6737 | if test x$host_vendor = xsni; then |
|
|
6738 | case $host in |
|
|
6739 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
6740 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
6741 | ;; |
|
|
6742 | esac |
|
|
6743 | fi |
|
|
6744 | fi |
7044 | fi |
6745 | |
7045 | |
6746 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7046 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
6747 | echo "${ECHO_T}$ld_shlibs" >&6 |
7047 | echo "${ECHO_T}$ld_shlibs" >&6 |
6748 | test "$ld_shlibs" = no && can_build_shared=no |
7048 | test "$ld_shlibs" = no && can_build_shared=no |
6749 | |
7049 | |
6750 | |
|
|
6751 | |
|
|
6752 | |
|
|
6753 | |
|
|
6754 | |
|
|
6755 | |
|
|
6756 | |
|
|
6757 | |
|
|
6758 | |
|
|
6759 | |
|
|
6760 | |
|
|
6761 | |
|
|
6762 | |
|
|
6763 | |
|
|
6764 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
7050 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
6765 | if test "$GCC" = yes; then |
7051 | if test "$GCC" = yes; then |
6766 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
7052 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
6767 | fi |
7053 | fi |
6768 | |
|
|
6769 | |
|
|
6770 | |
|
|
6771 | |
|
|
6772 | |
|
|
6773 | |
7054 | |
6774 | # |
7055 | # |
6775 | # Do we need to explicitly link libc? |
7056 | # Do we need to explicitly link libc? |
6776 | # |
7057 | # |
6777 | case "x$archive_cmds_need_lc" in |
7058 | case "x$archive_cmds_need_lc" in |
… | |
… | |
6808 | verstring= |
7089 | verstring= |
6809 | output_objdir=. |
7090 | output_objdir=. |
6810 | libname=conftest |
7091 | libname=conftest |
6811 | lt_save_allow_undefined_flag=$allow_undefined_flag |
7092 | lt_save_allow_undefined_flag=$allow_undefined_flag |
6812 | allow_undefined_flag= |
7093 | allow_undefined_flag= |
6813 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7094 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
6814 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7095 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
6815 | ac_status=$? |
7096 | ac_status=$? |
6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6817 | (exit $ac_status); } |
7098 | (exit $ac_status); } |
6818 | then |
7099 | then |
6819 | archive_cmds_need_lc=no |
7100 | archive_cmds_need_lc=no |
… | |
… | |
6831 | esac |
7112 | esac |
6832 | fi |
7113 | fi |
6833 | ;; |
7114 | ;; |
6834 | esac |
7115 | esac |
6835 | |
7116 | |
6836 | |
|
|
6837 | |
|
|
6838 | |
|
|
6839 | |
|
|
6840 | |
|
|
6841 | |
|
|
6842 | |
|
|
6843 | |
|
|
6844 | |
|
|
6845 | |
|
|
6846 | |
|
|
6847 | |
|
|
6848 | |
|
|
6849 | |
|
|
6850 | |
|
|
6851 | |
|
|
6852 | |
|
|
6853 | |
|
|
6854 | |
|
|
6855 | |
|
|
6856 | |
|
|
6857 | |
|
|
6858 | |
|
|
6859 | |
|
|
6860 | |
|
|
6861 | |
|
|
6862 | |
|
|
6863 | |
|
|
6864 | |
|
|
6865 | |
|
|
6866 | |
|
|
6867 | |
|
|
6868 | |
|
|
6869 | |
|
|
6870 | |
|
|
6871 | |
|
|
6872 | |
|
|
6873 | |
|
|
6874 | |
|
|
6875 | |
|
|
6876 | |
|
|
6877 | |
|
|
6878 | |
|
|
6879 | |
|
|
6880 | |
|
|
6881 | |
|
|
6882 | |
|
|
6883 | |
|
|
6884 | |
|
|
6885 | |
|
|
6886 | |
|
|
6887 | |
|
|
6888 | |
|
|
6889 | |
|
|
6890 | |
|
|
6891 | |
|
|
6892 | |
|
|
6893 | |
|
|
6894 | |
|
|
6895 | |
|
|
6896 | |
|
|
6897 | |
|
|
6898 | |
|
|
6899 | |
|
|
6900 | |
|
|
6901 | |
|
|
6902 | |
|
|
6903 | |
|
|
6904 | |
|
|
6905 | |
|
|
6906 | |
|
|
6907 | |
|
|
6908 | |
|
|
6909 | |
|
|
6910 | |
|
|
6911 | |
|
|
6912 | |
|
|
6913 | |
|
|
6914 | |
|
|
6915 | |
|
|
6916 | |
|
|
6917 | |
|
|
6918 | |
|
|
6919 | |
|
|
6920 | |
|
|
6921 | |
|
|
6922 | |
|
|
6923 | |
|
|
6924 | |
|
|
6925 | |
|
|
6926 | |
|
|
6927 | |
|
|
6928 | |
|
|
6929 | |
|
|
6930 | |
|
|
6931 | |
|
|
6932 | |
|
|
6933 | |
|
|
6934 | |
|
|
6935 | |
|
|
6936 | |
|
|
6937 | |
|
|
6938 | |
|
|
6939 | |
|
|
6940 | |
|
|
6941 | |
|
|
6942 | |
|
|
6943 | |
|
|
6944 | |
|
|
6945 | |
|
|
6946 | |
|
|
6947 | |
|
|
6948 | |
|
|
6949 | |
|
|
6950 | |
|
|
6951 | |
|
|
6952 | |
|
|
6953 | |
|
|
6954 | |
|
|
6955 | |
|
|
6956 | |
|
|
6957 | |
|
|
6958 | |
|
|
6959 | |
|
|
6960 | |
|
|
6961 | |
|
|
6962 | |
|
|
6963 | |
|
|
6964 | |
|
|
6965 | |
|
|
6966 | |
|
|
6967 | |
|
|
6968 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7117 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
6969 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7118 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
6970 | library_names_spec= |
7119 | library_names_spec= |
6971 | libname_spec='lib$name' |
7120 | libname_spec='lib$name' |
6972 | soname_spec= |
7121 | soname_spec= |
… | |
… | |
6979 | shlibpath_overrides_runpath=unknown |
7128 | shlibpath_overrides_runpath=unknown |
6980 | version_type=none |
7129 | version_type=none |
6981 | dynamic_linker="$host_os ld.so" |
7130 | dynamic_linker="$host_os ld.so" |
6982 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7131 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
6983 | if test "$GCC" = yes; then |
7132 | if test "$GCC" = yes; then |
6984 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7133 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
6985 | if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then |
7134 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
6986 | # if the path contains ";" then we assume it to be the separator |
7135 | # if the path contains ";" then we assume it to be the separator |
6987 | # otherwise default to the standard path separator (i.e. ":") - it is |
7136 | # otherwise default to the standard path separator (i.e. ":") - it is |
6988 | # assumed that no part of a normal pathname contains ";" but that should |
7137 | # assumed that no part of a normal pathname contains ";" but that should |
6989 | # okay in the real world where ";" in dirpaths is itself problematic. |
7138 | # okay in the real world where ";" in dirpaths is itself problematic. |
6990 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7139 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
… | |
… | |
7028 | # development snapshots of GCC prior to 3.0. |
7177 | # development snapshots of GCC prior to 3.0. |
7029 | case $host_os in |
7178 | case $host_os in |
7030 | aix4 | aix4.[01] | aix4.[01].*) |
7179 | aix4 | aix4.[01] | aix4.[01].*) |
7031 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7180 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7032 | echo ' yes ' |
7181 | echo ' yes ' |
7033 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
7182 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
7034 | : |
7183 | : |
7035 | else |
7184 | else |
7036 | can_build_shared=no |
7185 | can_build_shared=no |
7037 | fi |
7186 | fi |
7038 | ;; |
7187 | ;; |
… | |
… | |
7054 | shlibpath_var=LIBPATH |
7203 | shlibpath_var=LIBPATH |
7055 | fi |
7204 | fi |
7056 | ;; |
7205 | ;; |
7057 | |
7206 | |
7058 | amigaos*) |
7207 | amigaos*) |
7059 | if test "$host_cpu" = m68k; then |
|
|
7060 | library_names_spec='$libname.ixlibrary $libname.a' |
7208 | library_names_spec='$libname.ixlibrary $libname.a' |
7061 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
7209 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
7062 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
7210 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
7063 | else |
|
|
7064 | dynamic_linker=no |
|
|
7065 | fi |
|
|
7066 | ;; |
7211 | ;; |
7067 | |
7212 | |
7068 | beos*) |
7213 | beos*) |
7069 | library_names_spec='${libname}${shared_ext}' |
7214 | library_names_spec='${libname}${shared_ext}' |
7070 | dynamic_linker="$host_os ld.so" |
7215 | dynamic_linker="$host_os ld.so" |
… | |
… | |
7112 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
7257 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
7113 | ;; |
7258 | ;; |
7114 | mingw*) |
7259 | mingw*) |
7115 | # MinGW DLLs use traditional 'lib' prefix |
7260 | # MinGW DLLs use traditional 'lib' prefix |
7116 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
7261 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
7117 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7262 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7118 | if echo "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
7263 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
7119 | # It is most probably a Windows format PATH printed by |
7264 | # It is most probably a Windows format PATH printed by |
7120 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
7265 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
7121 | # path with ; separators, and with drive letters. We can handle the |
7266 | # path with ; separators, and with drive letters. We can handle the |
7122 | # drive letters (cygwin fileutils understands them), so leave them, |
7267 | # drive letters (cygwin fileutils understands them), so leave them, |
7123 | # especially as we might pass files found there to a mingw objdump, |
7268 | # especially as we might pass files found there to a mingw objdump, |
… | |
… | |
7153 | shlibpath_overrides_runpath=yes |
7298 | shlibpath_overrides_runpath=yes |
7154 | shlibpath_var=DYLD_LIBRARY_PATH |
7299 | shlibpath_var=DYLD_LIBRARY_PATH |
7155 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
7300 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
7156 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
7301 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
7157 | if test "$GCC" = yes; then |
7302 | if test "$GCC" = yes; then |
7158 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
7303 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
7159 | else |
7304 | else |
7160 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
7305 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
7161 | fi |
7306 | fi |
7162 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
7307 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
7163 | ;; |
7308 | ;; |
… | |
… | |
7343 | # people can always --disable-shared, the test was removed, and we |
7488 | # people can always --disable-shared, the test was removed, and we |
7344 | # assume the GNU/Linux dynamic linker is in use. |
7489 | # assume the GNU/Linux dynamic linker is in use. |
7345 | dynamic_linker='GNU/Linux ld.so' |
7490 | dynamic_linker='GNU/Linux ld.so' |
7346 | ;; |
7491 | ;; |
7347 | |
7492 | |
|
|
7493 | netbsdelf*-gnu) |
|
|
7494 | version_type=linux |
|
|
7495 | need_lib_prefix=no |
|
|
7496 | need_version=no |
|
|
7497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7498 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7499 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7500 | shlibpath_overrides_runpath=no |
|
|
7501 | hardcode_into_libs=yes |
|
|
7502 | dynamic_linker='NetBSD ld.elf_so' |
|
|
7503 | ;; |
|
|
7504 | |
7348 | knetbsd*-gnu) |
7505 | knetbsd*-gnu) |
7349 | version_type=linux |
7506 | version_type=linux |
7350 | need_lib_prefix=no |
7507 | need_lib_prefix=no |
7351 | need_version=no |
7508 | need_version=no |
7352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
7509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
… | |
… | |
7359 | |
7516 | |
7360 | netbsd*) |
7517 | netbsd*) |
7361 | version_type=sunos |
7518 | version_type=sunos |
7362 | need_lib_prefix=no |
7519 | need_lib_prefix=no |
7363 | need_version=no |
7520 | need_version=no |
7364 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
7521 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
7522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
7366 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
7523 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
7367 | dynamic_linker='NetBSD (a.out) ld.so' |
7524 | dynamic_linker='NetBSD (a.out) ld.so' |
7368 | else |
7525 | else |
7369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
7526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
… | |
… | |
7397 | need_lib_prefix=no |
7554 | need_lib_prefix=no |
7398 | need_version=yes |
7555 | need_version=yes |
7399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
7556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
7400 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
7557 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
7401 | shlibpath_var=LD_LIBRARY_PATH |
7558 | shlibpath_var=LD_LIBRARY_PATH |
7402 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7559 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7403 | case $host_os in |
7560 | case $host_os in |
7404 | openbsd2.[89] | openbsd2.[89].*) |
7561 | openbsd2.[89] | openbsd2.[89].*) |
7405 | shlibpath_overrides_runpath=no |
7562 | shlibpath_overrides_runpath=no |
7406 | ;; |
7563 | ;; |
7407 | *) |
7564 | *) |
… | |
… | |
7472 | shlibpath_var=LD_LIBRARY_PATH |
7629 | shlibpath_var=LD_LIBRARY_PATH |
7473 | case $host_vendor in |
7630 | case $host_vendor in |
7474 | sni) |
7631 | sni) |
7475 | shlibpath_overrides_runpath=no |
7632 | shlibpath_overrides_runpath=no |
7476 | need_lib_prefix=no |
7633 | need_lib_prefix=no |
|
|
7634 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
7477 | runpath_var=LD_RUN_PATH |
7635 | runpath_var=LD_RUN_PATH |
7478 | ;; |
7636 | ;; |
7479 | siemens) |
7637 | siemens) |
7480 | need_lib_prefix=no |
7638 | need_lib_prefix=no |
7481 | ;; |
7639 | ;; |
… | |
… | |
7510 | esac |
7668 | esac |
7511 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
7669 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
7512 | echo "${ECHO_T}$dynamic_linker" >&6 |
7670 | echo "${ECHO_T}$dynamic_linker" >&6 |
7513 | test "$dynamic_linker" = no && can_build_shared=no |
7671 | test "$dynamic_linker" = no && can_build_shared=no |
7514 | |
7672 | |
7515 | |
|
|
7516 | |
|
|
7517 | |
|
|
7518 | |
|
|
7519 | |
|
|
7520 | |
|
|
7521 | |
|
|
7522 | |
|
|
7523 | |
|
|
7524 | |
|
|
7525 | |
|
|
7526 | |
|
|
7527 | |
|
|
7528 | |
|
|
7529 | |
|
|
7530 | |
|
|
7531 | |
|
|
7532 | |
|
|
7533 | |
|
|
7534 | |
|
|
7535 | |
|
|
7536 | |
|
|
7537 | |
|
|
7538 | |
|
|
7539 | |
|
|
7540 | |
|
|
7541 | |
|
|
7542 | |
|
|
7543 | |
|
|
7544 | |
|
|
7545 | |
|
|
7546 | |
|
|
7547 | |
|
|
7548 | |
|
|
7549 | |
|
|
7550 | |
|
|
7551 | |
|
|
7552 | |
|
|
7553 | |
|
|
7554 | |
|
|
7555 | |
|
|
7556 | |
|
|
7557 | |
|
|
7558 | |
|
|
7559 | |
|
|
7560 | |
|
|
7561 | |
|
|
7562 | |
|
|
7563 | |
|
|
7564 | |
|
|
7565 | |
|
|
7566 | |
|
|
7567 | |
|
|
7568 | |
|
|
7569 | |
|
|
7570 | |
|
|
7571 | |
|
|
7572 | |
|
|
7573 | |
|
|
7574 | |
|
|
7575 | |
|
|
7576 | |
|
|
7577 | |
|
|
7578 | |
|
|
7579 | |
|
|
7580 | |
|
|
7581 | |
|
|
7582 | |
|
|
7583 | |
|
|
7584 | |
|
|
7585 | |
|
|
7586 | |
|
|
7587 | |
|
|
7588 | |
|
|
7589 | |
|
|
7590 | |
|
|
7591 | |
|
|
7592 | |
|
|
7593 | |
|
|
7594 | |
|
|
7595 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
7673 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
7596 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
7674 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
7597 | hardcode_action= |
7675 | hardcode_action= |
7598 | if test -n "$hardcode_libdir_flag_spec" || |
7676 | if test -n "$hardcode_libdir_flag_spec" || \ |
7599 | test -n "$runpath_var " || |
7677 | test -n "$runpath_var " || \ |
7600 | test "X$hardcode_automatic"="Xyes" ; then |
7678 | test "X$hardcode_automatic"="Xyes" ; then |
7601 | |
7679 | |
7602 | # We can hardcode non-existant directories. |
7680 | # We can hardcode non-existant directories. |
7603 | if test "$hardcode_direct" != no && |
7681 | if test "$hardcode_direct" != no && |
7604 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
7682 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
… | |
… | |
7618 | hardcode_action=unsupported |
7696 | hardcode_action=unsupported |
7619 | fi |
7697 | fi |
7620 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
7698 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
7621 | echo "${ECHO_T}$hardcode_action" >&6 |
7699 | echo "${ECHO_T}$hardcode_action" >&6 |
7622 | |
7700 | |
7623 | if test "$hardcode_action" = relink || |
7701 | if test "$hardcode_action" = relink; then |
7624 | test "$inherit_rpath" = yes; then |
|
|
7625 | # Fast installation is not supported |
7702 | # Fast installation is not supported |
7626 | enable_fast_install=no |
7703 | enable_fast_install=no |
7627 | elif test "$shlibpath_overrides_runpath" = yes || |
7704 | elif test "$shlibpath_overrides_runpath" = yes || |
7628 | test "$enable_shared" = no; then |
7705 | test "$enable_shared" = no; then |
7629 | # Fast installation is not necessary |
7706 | # Fast installation is not necessary |
7630 | enable_fast_install=needless |
7707 | enable_fast_install=needless |
7631 | fi |
7708 | fi |
7632 | |
7709 | |
7633 | |
|
|
7634 | |
|
|
7635 | |
|
|
7636 | |
|
|
7637 | |
|
|
7638 | |
|
|
7639 | striplib= |
7710 | striplib= |
7640 | old_striplib= |
7711 | old_striplib= |
7641 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
7712 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
7642 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
7713 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
7643 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
7714 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
7644 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
7715 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
7645 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
7716 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
7646 | echo "$as_me:$LINENO: result: yes" >&5 |
7717 | echo "$as_me:$LINENO: result: yes" >&5 |
7647 | echo "${ECHO_T}yes" >&6 |
7718 | echo "${ECHO_T}yes" >&6 |
7648 | else |
7719 | else |
… | |
… | |
7663 | echo "${ECHO_T}no" >&6 |
7734 | echo "${ECHO_T}no" >&6 |
7664 | ;; |
7735 | ;; |
7665 | esac |
7736 | esac |
7666 | fi |
7737 | fi |
7667 | |
7738 | |
7668 | |
|
|
7669 | |
|
|
7670 | |
|
|
7671 | |
|
|
7672 | |
|
|
7673 | |
|
|
7674 | |
|
|
7675 | |
|
|
7676 | |
|
|
7677 | |
|
|
7678 | if test "x$enable_dlopen" != xyes; then |
7739 | if test "x$enable_dlopen" != xyes; then |
7679 | enable_dlopen=unknown |
7740 | enable_dlopen=unknown |
7680 | enable_dlopen_self=unknown |
7741 | enable_dlopen_self=unknown |
7681 | enable_dlopen_self_static=unknown |
7742 | enable_dlopen_self_static=unknown |
7682 | else |
7743 | else |
7683 | lt_cv_dlopen=no |
7744 | lt_cv_dlopen=no |
… | |
… | |
8270 | if test "$cross_compiling" = yes; then : |
8331 | if test "$cross_compiling" = yes; then : |
8271 | lt_cv_dlopen_self=cross |
8332 | lt_cv_dlopen_self=cross |
8272 | else |
8333 | else |
8273 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
8334 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
8274 | lt_status=$lt_dlunknown |
8335 | lt_status=$lt_dlunknown |
8275 | cat > conftest.$ac_ext <<_LT_EOF |
8336 | cat > conftest.$ac_ext <<EOF |
8276 | #line 8276 "configure" |
8337 | #line 8337 "configure" |
8277 | #include "confdefs.h" |
8338 | #include "confdefs.h" |
8278 | |
8339 | |
8279 | #if HAVE_DLFCN_H |
8340 | #if HAVE_DLFCN_H |
8280 | #include <dlfcn.h> |
8341 | #include <dlfcn.h> |
8281 | #endif |
8342 | #endif |
… | |
… | |
8331 | /* dlclose (self); */ |
8392 | /* dlclose (self); */ |
8332 | } |
8393 | } |
8333 | |
8394 | |
8334 | exit (status); |
8395 | exit (status); |
8335 | } |
8396 | } |
8336 | _LT_EOF |
8397 | EOF |
8337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8338 | (eval $ac_link) 2>&5 |
8399 | (eval $ac_link) 2>&5 |
8339 | ac_status=$? |
8400 | ac_status=$? |
8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8341 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
8402 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
… | |
… | |
8368 | if test "$cross_compiling" = yes; then : |
8429 | if test "$cross_compiling" = yes; then : |
8369 | lt_cv_dlopen_self_static=cross |
8430 | lt_cv_dlopen_self_static=cross |
8370 | else |
8431 | else |
8371 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
8432 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
8372 | lt_status=$lt_dlunknown |
8433 | lt_status=$lt_dlunknown |
8373 | cat > conftest.$ac_ext <<_LT_EOF |
8434 | cat > conftest.$ac_ext <<EOF |
8374 | #line 8374 "configure" |
8435 | #line 8435 "configure" |
8375 | #include "confdefs.h" |
8436 | #include "confdefs.h" |
8376 | |
8437 | |
8377 | #if HAVE_DLFCN_H |
8438 | #if HAVE_DLFCN_H |
8378 | #include <dlfcn.h> |
8439 | #include <dlfcn.h> |
8379 | #endif |
8440 | #endif |
… | |
… | |
8429 | /* dlclose (self); */ |
8490 | /* dlclose (self); */ |
8430 | } |
8491 | } |
8431 | |
8492 | |
8432 | exit (status); |
8493 | exit (status); |
8433 | } |
8494 | } |
8434 | _LT_EOF |
8495 | EOF |
8435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8436 | (eval $ac_link) 2>&5 |
8497 | (eval $ac_link) 2>&5 |
8437 | ac_status=$? |
8498 | ac_status=$? |
8438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8439 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
8500 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
… | |
… | |
8473 | *) enable_dlopen_self_static=unknown ;; |
8534 | *) enable_dlopen_self_static=unknown ;; |
8474 | esac |
8535 | esac |
8475 | fi |
8536 | fi |
8476 | |
8537 | |
8477 | |
8538 | |
8478 | |
|
|
8479 | |
|
|
8480 | |
|
|
8481 | |
|
|
8482 | |
|
|
8483 | |
|
|
8484 | |
|
|
8485 | |
|
|
8486 | |
|
|
8487 | |
|
|
8488 | |
|
|
8489 | |
|
|
8490 | |
|
|
8491 | |
|
|
8492 | |
|
|
8493 | # Report which library types will actually be built |
8539 | # Report which librarie types wil actually be built |
8494 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
8540 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
8495 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
8541 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
8496 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
8542 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
8497 | echo "${ECHO_T}$can_build_shared" >&6 |
8543 | echo "${ECHO_T}$can_build_shared" >&6 |
8498 | |
8544 | |
8499 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
8545 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
8500 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
8546 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
8501 | test "$can_build_shared" = "no" && enable_shared=no |
8547 | test "$can_build_shared" = "no" && enable_shared=no |
8502 | |
8548 | |
8503 | # On AIX, shared libraries and static libraries use the same namespace, and |
8549 | # On AIX, shared libraries and static libraries use the same namespace, and |
8504 | # are all built from PIC. |
8550 | # are all built from PIC. |
8505 | case "$host_os" in |
8551 | case "$host_os" in |
8506 | aix3*) |
8552 | aix3*) |
|
|
8553 | test "$enable_shared" = yes && enable_static=no |
|
|
8554 | if test -n "$RANLIB"; then |
|
|
8555 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
8556 | postinstall_cmds='$RANLIB $lib' |
|
|
8557 | fi |
|
|
8558 | ;; |
|
|
8559 | |
|
|
8560 | aix4* | aix5*) |
|
|
8561 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
8507 | test "$enable_shared" = yes && enable_static=no |
8562 | test "$enable_shared" = yes && enable_static=no |
8508 | if test -n "$RANLIB"; then |
8563 | fi |
8509 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
8564 | ;; |
8510 | postinstall_cmds='$RANLIB $lib' |
8565 | darwin* | rhapsody*) |
|
|
8566 | if test "$GCC" = yes; then |
|
|
8567 | archive_cmds_need_lc=no |
|
|
8568 | case "$host_os" in |
|
|
8569 | rhapsody* | darwin1.[012]) |
|
|
8570 | allow_undefined_flag='-undefined suppress' |
|
|
8571 | ;; |
|
|
8572 | *) # Darwin 1.3 on |
|
|
8573 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
8574 | allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
8575 | else |
|
|
8576 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
8577 | 10.[012]) |
|
|
8578 | allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
8579 | ;; |
|
|
8580 | 10.*) |
|
|
8581 | allow_undefined_flag='-undefined dynamic_lookup' |
|
|
8582 | ;; |
|
|
8583 | esac |
8511 | fi |
8584 | fi |
|
|
8585 | ;; |
|
|
8586 | esac |
|
|
8587 | output_verbose_link_cmd='echo' |
|
|
8588 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
|
|
8589 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
8590 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
8591 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
8592 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
8593 | hardcode_direct=no |
|
|
8594 | hardcode_automatic=yes |
|
|
8595 | hardcode_shlibpath_var=unsupported |
|
|
8596 | whole_archive_flag_spec='-all_load $convenience' |
|
|
8597 | link_all_deplibs=yes |
|
|
8598 | else |
|
|
8599 | ld_shlibs=no |
|
|
8600 | fi |
8512 | ;; |
8601 | ;; |
|
|
8602 | esac |
|
|
8603 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
8604 | echo "${ECHO_T}$enable_shared" >&6 |
8513 | |
8605 | |
8514 | aix4* | aix5*) |
8606 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
8515 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
8607 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
|
8608 | # Make sure either enable_shared or enable_static is yes. |
8516 | test "$enable_shared" = yes && enable_static=no |
8609 | test "$enable_shared" = yes || enable_static=yes |
|
|
8610 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
|
8611 | echo "${ECHO_T}$enable_static" >&6 |
|
|
8612 | |
|
|
8613 | # The else clause should only fire when bootstrapping the |
|
|
8614 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
8615 | # with your package, and you will get complaints that there are |
|
|
8616 | # no rules to generate ltmain.sh. |
|
|
8617 | if test -f "$ltmain"; then |
|
|
8618 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
8619 | # without removal of \ escapes. |
|
|
8620 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
8621 | setopt NO_GLOB_SUBST |
8517 | fi |
8622 | fi |
|
|
8623 | # Now quote all the things that may contain metacharacters while being |
|
|
8624 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
8625 | # variables and quote the copies for generation of the libtool script. |
|
|
8626 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
|
8627 | SED SHELL STRIP \ |
|
|
8628 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
8629 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
8630 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
8631 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
8632 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
8633 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
8634 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
8635 | compiler \ |
|
|
8636 | CC \ |
|
|
8637 | LD \ |
|
|
8638 | lt_prog_compiler_wl \ |
|
|
8639 | lt_prog_compiler_pic \ |
|
|
8640 | lt_prog_compiler_static \ |
|
|
8641 | lt_prog_compiler_no_builtin_flag \ |
|
|
8642 | export_dynamic_flag_spec \ |
|
|
8643 | thread_safe_flag_spec \ |
|
|
8644 | whole_archive_flag_spec \ |
|
|
8645 | enable_shared_with_static_runtimes \ |
|
|
8646 | old_archive_cmds \ |
|
|
8647 | old_archive_from_new_cmds \ |
|
|
8648 | predep_objects \ |
|
|
8649 | postdep_objects \ |
|
|
8650 | predeps \ |
|
|
8651 | postdeps \ |
|
|
8652 | compiler_lib_search_path \ |
|
|
8653 | archive_cmds \ |
|
|
8654 | archive_expsym_cmds \ |
|
|
8655 | postinstall_cmds \ |
|
|
8656 | postuninstall_cmds \ |
|
|
8657 | old_archive_from_expsyms_cmds \ |
|
|
8658 | allow_undefined_flag \ |
|
|
8659 | no_undefined_flag \ |
|
|
8660 | export_symbols_cmds \ |
|
|
8661 | hardcode_libdir_flag_spec \ |
|
|
8662 | hardcode_libdir_flag_spec_ld \ |
|
|
8663 | hardcode_libdir_separator \ |
|
|
8664 | hardcode_automatic \ |
|
|
8665 | module_cmds \ |
|
|
8666 | module_expsym_cmds \ |
|
|
8667 | lt_cv_prog_compiler_c_o \ |
|
|
8668 | exclude_expsyms \ |
|
|
8669 | include_expsyms; do |
|
|
8670 | |
|
|
8671 | case $var in |
|
|
8672 | old_archive_cmds | \ |
|
|
8673 | old_archive_from_new_cmds | \ |
|
|
8674 | archive_cmds | \ |
|
|
8675 | archive_expsym_cmds | \ |
|
|
8676 | module_cmds | \ |
|
|
8677 | module_expsym_cmds | \ |
|
|
8678 | old_archive_from_expsyms_cmds | \ |
|
|
8679 | export_symbols_cmds | \ |
|
|
8680 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
8681 | postinstall_cmds | postuninstall_cmds | \ |
|
|
8682 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
8683 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
8684 | # Double-quote double-evaled strings. |
|
|
8685 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
8686 | ;; |
|
|
8687 | *) |
|
|
8688 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
8689 | ;; |
|
|
8690 | esac |
|
|
8691 | done |
|
|
8692 | |
|
|
8693 | case $lt_echo in |
|
|
8694 | *'\$0 --fallback-echo"') |
|
|
8695 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
8518 | ;; |
8696 | ;; |
8519 | esac |
8697 | esac |
8520 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
8521 | echo "${ECHO_T}$enable_shared" >&6 |
|
|
8522 | |
8698 | |
8523 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
8699 | cfgfile="${ofile}T" |
8524 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
8700 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
8525 | # Make sure either enable_shared or enable_static is yes. |
8701 | $rm -f "$cfgfile" |
8526 | test "$enable_shared" = yes || enable_static=yes |
8702 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
8527 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
8703 | echo "$as_me: creating $ofile" >&6;} |
8528 | echo "${ECHO_T}$enable_static" >&6 |
|
|
8529 | |
8704 | |
|
|
8705 | cat <<__EOF__ >> "$cfgfile" |
|
|
8706 | #! $SHELL |
8530 | |
8707 | |
|
|
8708 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
8709 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
8710 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
8711 | # |
|
|
8712 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
|
|
8713 | # Free Software Foundation, Inc. |
|
|
8714 | # |
|
|
8715 | # This file is part of GNU Libtool: |
|
|
8716 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
8717 | # |
|
|
8718 | # This program is free software; you can redistribute it and/or modify |
|
|
8719 | # it under the terms of the GNU General Public License as published by |
|
|
8720 | # the Free Software Foundation; either version 2 of the License, or |
|
|
8721 | # (at your option) any later version. |
|
|
8722 | # |
|
|
8723 | # This program is distributed in the hope that it will be useful, but |
|
|
8724 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
8725 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
8726 | # General Public License for more details. |
|
|
8727 | # |
|
|
8728 | # You should have received a copy of the GNU General Public License |
|
|
8729 | # along with this program; if not, write to the Free Software |
|
|
8730 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
8731 | # |
|
|
8732 | # As a special exception to the GNU General Public License, if you |
|
|
8733 | # distribute this file as part of a program that contains a |
|
|
8734 | # configuration script generated by Autoconf, you may include it under |
|
|
8735 | # the same distribution terms that you use for the rest of that program. |
8531 | |
8736 | |
|
|
8737 | # A sed program that does not truncate output. |
|
|
8738 | SED=$lt_SED |
8532 | |
8739 | |
|
|
8740 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
8741 | Xsed="$SED -e s/^X//" |
|
|
8742 | |
|
|
8743 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
8744 | # if CDPATH is set. |
|
|
8745 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
8746 | |
|
|
8747 | # The names of the tagged configurations supported by this script. |
|
|
8748 | available_tags= |
|
|
8749 | |
|
|
8750 | # ### BEGIN LIBTOOL CONFIG |
|
|
8751 | |
|
|
8752 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
8753 | |
|
|
8754 | # Shell to use when invoking shell scripts. |
|
|
8755 | SHELL=$lt_SHELL |
|
|
8756 | |
|
|
8757 | # Whether or not to build shared libraries. |
|
|
8758 | build_libtool_libs=$enable_shared |
|
|
8759 | |
|
|
8760 | # Whether or not to build static libraries. |
|
|
8761 | build_old_libs=$enable_static |
|
|
8762 | |
|
|
8763 | # Whether or not to add -lc for building shared libraries. |
|
|
8764 | build_libtool_need_lc=$archive_cmds_need_lc |
|
|
8765 | |
|
|
8766 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
8767 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
|
8768 | |
|
|
8769 | # Whether or not to optimize for fast installation. |
|
|
8770 | fast_install=$enable_fast_install |
|
|
8771 | |
|
|
8772 | # The host system. |
|
|
8773 | host_alias=$host_alias |
|
|
8774 | host=$host |
|
|
8775 | |
|
|
8776 | # An echo program that does not interpret backslashes. |
|
|
8777 | echo=$lt_echo |
|
|
8778 | |
|
|
8779 | # The archiver. |
|
|
8780 | AR=$lt_AR |
|
|
8781 | AR_FLAGS=$lt_AR_FLAGS |
|
|
8782 | |
|
|
8783 | # A C compiler. |
|
|
8784 | LTCC=$lt_LTCC |
|
|
8785 | |
|
|
8786 | # A language-specific compiler. |
|
|
8787 | CC=$lt_compiler |
|
|
8788 | |
|
|
8789 | # Is the compiler the GNU C compiler? |
|
|
8790 | with_gcc=$GCC |
|
|
8791 | |
|
|
8792 | # An ERE matcher. |
|
|
8793 | EGREP=$lt_EGREP |
|
|
8794 | |
|
|
8795 | # The linker used to build libraries. |
|
|
8796 | LD=$lt_LD |
|
|
8797 | |
|
|
8798 | # Whether we need hard or soft links. |
|
|
8799 | LN_S=$lt_LN_S |
|
|
8800 | |
|
|
8801 | # A BSD-compatible nm program. |
|
|
8802 | NM=$lt_NM |
|
|
8803 | |
|
|
8804 | # A symbol stripping program |
|
|
8805 | STRIP=$lt_STRIP |
|
|
8806 | |
|
|
8807 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
8808 | MAGIC_CMD=$MAGIC_CMD |
|
|
8809 | |
|
|
8810 | # Used on cygwin: DLL creation program. |
|
|
8811 | DLLTOOL="$DLLTOOL" |
|
|
8812 | |
|
|
8813 | # Used on cygwin: object dumper. |
|
|
8814 | OBJDUMP="$OBJDUMP" |
|
|
8815 | |
|
|
8816 | # Used on cygwin: assembler. |
|
|
8817 | AS="$AS" |
|
|
8818 | |
|
|
8819 | # The name of the directory that contains temporary libtool files. |
|
|
8820 | objdir=$objdir |
|
|
8821 | |
|
|
8822 | # How to create reloadable object files. |
|
|
8823 | reload_flag=$lt_reload_flag |
|
|
8824 | reload_cmds=$lt_reload_cmds |
|
|
8825 | |
|
|
8826 | # How to pass a linker flag through the compiler. |
|
|
8827 | wl=$lt_lt_prog_compiler_wl |
|
|
8828 | |
|
|
8829 | # Object file suffix (normally "o"). |
|
|
8830 | objext="$ac_objext" |
|
|
8831 | |
|
|
8832 | # Old archive suffix (normally "a"). |
|
|
8833 | libext="$libext" |
|
|
8834 | |
|
|
8835 | # Shared library suffix (normally ".so"). |
|
|
8836 | shrext_cmds='$shrext_cmds' |
|
|
8837 | |
|
|
8838 | # Executable file suffix (normally ""). |
|
|
8839 | exeext="$exeext" |
|
|
8840 | |
|
|
8841 | # Additional compiler flags for building library objects. |
|
|
8842 | pic_flag=$lt_lt_prog_compiler_pic |
|
|
8843 | pic_mode=$pic_mode |
|
|
8844 | |
|
|
8845 | # What is the maximum length of a command? |
|
|
8846 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
8847 | |
|
|
8848 | # Does compiler simultaneously support -c and -o options? |
|
|
8849 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
|
8850 | |
|
|
8851 | # Must we lock files when doing compilation ? |
|
|
8852 | need_locks=$lt_need_locks |
|
|
8853 | |
|
|
8854 | # Do we need the lib prefix for modules? |
|
|
8855 | need_lib_prefix=$need_lib_prefix |
|
|
8856 | |
|
|
8857 | # Do we need a version for libraries? |
|
|
8858 | need_version=$need_version |
|
|
8859 | |
|
|
8860 | # Whether dlopen is supported. |
|
|
8861 | dlopen_support=$enable_dlopen |
|
|
8862 | |
|
|
8863 | # Whether dlopen of programs is supported. |
|
|
8864 | dlopen_self=$enable_dlopen_self |
|
|
8865 | |
|
|
8866 | # Whether dlopen of statically linked programs is supported. |
|
|
8867 | dlopen_self_static=$enable_dlopen_self_static |
|
|
8868 | |
|
|
8869 | # Compiler flag to prevent dynamic linking. |
|
|
8870 | link_static_flag=$lt_lt_prog_compiler_static |
|
|
8871 | |
|
|
8872 | # Compiler flag to turn off builtin functions. |
|
|
8873 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
|
8874 | |
|
|
8875 | # Compiler flag to allow reflexive dlopens. |
|
|
8876 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
8877 | |
|
|
8878 | # Compiler flag to generate shared objects directly from archives. |
|
|
8879 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
8880 | |
|
|
8881 | # Compiler flag to generate thread-safe objects. |
|
|
8882 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
8883 | |
|
|
8884 | # Library versioning type. |
|
|
8885 | version_type=$version_type |
|
|
8886 | |
|
|
8887 | # Format of library name prefix. |
|
|
8888 | libname_spec=$lt_libname_spec |
|
|
8889 | |
|
|
8890 | # List of archive names. First name is the real one, the rest are links. |
|
|
8891 | # The last name is the one that the linker finds with -lNAME. |
|
|
8892 | library_names_spec=$lt_library_names_spec |
|
|
8893 | |
|
|
8894 | # The coded name of the library, if different from the real name. |
|
|
8895 | soname_spec=$lt_soname_spec |
|
|
8896 | |
|
|
8897 | # Commands used to build and install an old-style archive. |
|
|
8898 | RANLIB=$lt_RANLIB |
|
|
8899 | old_archive_cmds=$lt_old_archive_cmds |
|
|
8900 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
8901 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
8902 | |
|
|
8903 | # Create an old-style archive from a shared archive. |
|
|
8904 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
8905 | |
|
|
8906 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
8907 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
8908 | |
|
|
8909 | # Commands used to build and install a shared archive. |
|
|
8910 | archive_cmds=$lt_archive_cmds |
|
|
8911 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
8912 | postinstall_cmds=$lt_postinstall_cmds |
|
|
8913 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
8914 | |
|
|
8915 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
8916 | module_cmds=$lt_module_cmds |
|
|
8917 | module_expsym_cmds=$lt_module_expsym_cmds |
|
|
8918 | |
|
|
8919 | # Commands to strip libraries. |
|
|
8920 | old_striplib=$lt_old_striplib |
|
|
8921 | striplib=$lt_striplib |
|
|
8922 | |
|
|
8923 | # Dependencies to place before the objects being linked to create a |
|
|
8924 | # shared library. |
|
|
8925 | predep_objects=$lt_predep_objects |
|
|
8926 | |
|
|
8927 | # Dependencies to place after the objects being linked to create a |
|
|
8928 | # shared library. |
|
|
8929 | postdep_objects=$lt_postdep_objects |
|
|
8930 | |
|
|
8931 | # Dependencies to place before the objects being linked to create a |
|
|
8932 | # shared library. |
|
|
8933 | predeps=$lt_predeps |
|
|
8934 | |
|
|
8935 | # Dependencies to place after the objects being linked to create a |
|
|
8936 | # shared library. |
|
|
8937 | postdeps=$lt_postdeps |
|
|
8938 | |
|
|
8939 | # The library search path used internally by the compiler when linking |
|
|
8940 | # a shared library. |
|
|
8941 | compiler_lib_search_path=$lt_compiler_lib_search_path |
|
|
8942 | |
|
|
8943 | # Method to check whether dependent libraries are shared objects. |
|
|
8944 | deplibs_check_method=$lt_deplibs_check_method |
|
|
8945 | |
|
|
8946 | # Command to use when deplibs_check_method == file_magic. |
|
|
8947 | file_magic_cmd=$lt_file_magic_cmd |
|
|
8948 | |
|
|
8949 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
8950 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
8951 | |
|
|
8952 | # Flag that forces no undefined symbols. |
|
|
8953 | no_undefined_flag=$lt_no_undefined_flag |
|
|
8954 | |
|
|
8955 | # Commands used to finish a libtool library installation in a directory. |
|
|
8956 | finish_cmds=$lt_finish_cmds |
|
|
8957 | |
|
|
8958 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
8959 | finish_eval=$lt_finish_eval |
|
|
8960 | |
|
|
8961 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
8962 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
8963 | |
|
|
8964 | # Transform the output of nm in a proper C declaration |
|
|
8965 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
8966 | |
|
|
8967 | # Transform the output of nm in a C name address pair |
|
|
8968 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
8969 | |
|
|
8970 | # This is the shared library runtime path variable. |
|
|
8971 | runpath_var=$runpath_var |
|
|
8972 | |
|
|
8973 | # This is the shared library path variable. |
|
|
8974 | shlibpath_var=$shlibpath_var |
|
|
8975 | |
|
|
8976 | # Is shlibpath searched before the hard-coded library search path? |
|
|
8977 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
8978 | |
|
|
8979 | # How to hardcode a shared library path into an executable. |
|
|
8980 | hardcode_action=$hardcode_action |
|
|
8981 | |
|
|
8982 | # Whether we should hardcode library paths into libraries. |
|
|
8983 | hardcode_into_libs=$hardcode_into_libs |
|
|
8984 | |
|
|
8985 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
8986 | # This must work even if \$libdir does not exist. |
|
|
8987 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
8988 | |
|
|
8989 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
8990 | # a binary during linking. This must work even if \$libdir does |
|
|
8991 | # not exist. |
|
|
8992 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
|
8993 | |
|
|
8994 | # Whether we need a single -rpath flag with a separated argument. |
|
|
8995 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
8996 | |
|
|
8997 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
8998 | # resulting binary. |
|
|
8999 | hardcode_direct=$hardcode_direct |
|
|
9000 | |
|
|
9001 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
9002 | # resulting binary. |
|
|
9003 | hardcode_minus_L=$hardcode_minus_L |
|
|
9004 | |
|
|
9005 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
9006 | # the resulting binary. |
|
|
9007 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
9008 | |
|
|
9009 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
9010 | # and all subsequent libraries and executables linked against it. |
|
|
9011 | hardcode_automatic=$hardcode_automatic |
|
|
9012 | |
|
|
9013 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
9014 | # restored at relink time. |
|
|
9015 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
9016 | |
|
|
9017 | # Whether libtool must link a program against all its dependency libraries. |
|
|
9018 | link_all_deplibs=$link_all_deplibs |
|
|
9019 | |
|
|
9020 | # Compile-time system search path for libraries |
|
|
9021 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
9022 | |
|
|
9023 | # Run-time system search path for libraries |
|
|
9024 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
9025 | |
|
|
9026 | # Fix the shell variable \$srcfile for the compiler. |
|
|
9027 | fix_srcfile_path="$fix_srcfile_path" |
|
|
9028 | |
|
|
9029 | # Set to yes if exported symbols are required. |
|
|
9030 | always_export_symbols=$always_export_symbols |
|
|
9031 | |
|
|
9032 | # The commands to list exported symbols. |
|
|
9033 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
9034 | |
|
|
9035 | # The commands to extract the exported symbol list from a shared archive. |
|
|
9036 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
9037 | |
|
|
9038 | # Symbols that should not be listed in the preloaded symbols. |
|
|
9039 | exclude_expsyms=$lt_exclude_expsyms |
|
|
9040 | |
|
|
9041 | # Symbols that must always be exported. |
|
|
9042 | include_expsyms=$lt_include_expsyms |
|
|
9043 | |
|
|
9044 | # ### END LIBTOOL CONFIG |
|
|
9045 | |
|
|
9046 | __EOF__ |
|
|
9047 | |
|
|
9048 | |
|
|
9049 | case $host_os in |
|
|
9050 | aix3*) |
|
|
9051 | cat <<\EOF >> "$cfgfile" |
|
|
9052 | |
|
|
9053 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
9054 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
9055 | # vanish in a puff of smoke. |
|
|
9056 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
9057 | COLLECT_NAMES= |
|
|
9058 | export COLLECT_NAMES |
8533 | fi |
9059 | fi |
|
|
9060 | EOF |
|
|
9061 | ;; |
|
|
9062 | esac |
|
|
9063 | |
|
|
9064 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
9065 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
9066 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
9067 | # is reportedly fixed, but why not run on old versions too? |
|
|
9068 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
|
9069 | |
|
|
9070 | mv -f "$cfgfile" "$ofile" || \ |
|
|
9071 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
|
9072 | chmod +x "$ofile" |
|
|
9073 | |
|
|
9074 | else |
|
|
9075 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
9076 | # `config.status --recheck' to rerun these tests and create the |
|
|
9077 | # libtool script then. |
|
|
9078 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
9079 | if test -f "$ltmain_in"; then |
|
|
9080 | test -f Makefile && make "$ltmain" |
|
|
9081 | fi |
|
|
9082 | fi |
|
|
9083 | |
|
|
9084 | |
8534 | ac_ext=c |
9085 | ac_ext=c |
8535 | ac_cpp='$CPP $CPPFLAGS' |
9086 | ac_cpp='$CPP $CPPFLAGS' |
8536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8539 | |
9090 | |
8540 | CC="$lt_save_CC" |
9091 | CC="$lt_save_CC" |
8541 | |
9092 | |
8542 | |
9093 | |
|
|
9094 | # Check whether --with-tags or --without-tags was given. |
|
|
9095 | if test "${with_tags+set}" = set; then |
|
|
9096 | withval="$with_tags" |
|
|
9097 | tagnames="$withval" |
|
|
9098 | fi; |
8543 | |
9099 | |
|
|
9100 | if test -f "$ltmain" && test -n "$tagnames"; then |
|
|
9101 | if test ! -f "${ofile}"; then |
|
|
9102 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
|
|
9103 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
|
|
9104 | fi |
8544 | |
9105 | |
|
|
9106 | if test -z "$LTCC"; then |
|
|
9107 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
|
|
9108 | if test -z "$LTCC"; then |
|
|
9109 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
|
|
9110 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
|
|
9111 | else |
|
|
9112 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
|
|
9113 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
|
|
9114 | fi |
|
|
9115 | fi |
8545 | |
9116 | |
|
|
9117 | # Extract list of available tagged configurations in $ofile. |
|
|
9118 | # Note that this assumes the entire list is on one line. |
|
|
9119 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
8546 | |
9120 | |
|
|
9121 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
9122 | for tagname in $tagnames; do |
|
|
9123 | IFS="$lt_save_ifs" |
|
|
9124 | # Check whether tagname contains only valid characters |
|
|
9125 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
|
|
9126 | "") ;; |
|
|
9127 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
|
|
9128 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
|
|
9129 | { (exit 1); exit 1; }; } |
|
|
9130 | ;; |
|
|
9131 | esac |
8547 | |
9132 | |
|
|
9133 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
|
|
9134 | then |
|
|
9135 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
|
|
9136 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
|
|
9137 | { (exit 1); exit 1; }; } |
|
|
9138 | fi |
8548 | |
9139 | |
|
|
9140 | # Update the list of available tags. |
|
|
9141 | if test -n "$tagname"; then |
|
|
9142 | echo appending configuration tag \"$tagname\" to $ofile |
8549 | |
9143 | |
|
|
9144 | case $tagname in |
|
|
9145 | CXX) |
|
|
9146 | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
|
|
9147 | ac_ext=cc |
|
|
9148 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
9149 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
9150 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
9151 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
8550 | |
9152 | |
8551 | |
9153 | |
8552 | ac_config_commands="$ac_config_commands libtool" |
|
|
8553 | |
9154 | |
8554 | |
9155 | |
|
|
9156 | archive_cmds_need_lc_CXX=no |
|
|
9157 | allow_undefined_flag_CXX= |
|
|
9158 | always_export_symbols_CXX=no |
|
|
9159 | archive_expsym_cmds_CXX= |
|
|
9160 | export_dynamic_flag_spec_CXX= |
|
|
9161 | hardcode_direct_CXX=no |
|
|
9162 | hardcode_libdir_flag_spec_CXX= |
|
|
9163 | hardcode_libdir_flag_spec_ld_CXX= |
|
|
9164 | hardcode_libdir_separator_CXX= |
|
|
9165 | hardcode_minus_L_CXX=no |
|
|
9166 | hardcode_automatic_CXX=no |
|
|
9167 | module_cmds_CXX= |
|
|
9168 | module_expsym_cmds_CXX= |
|
|
9169 | link_all_deplibs_CXX=unknown |
|
|
9170 | old_archive_cmds_CXX=$old_archive_cmds |
|
|
9171 | no_undefined_flag_CXX= |
|
|
9172 | whole_archive_flag_spec_CXX= |
|
|
9173 | enable_shared_with_static_runtimes_CXX=no |
8555 | |
9174 | |
|
|
9175 | # Dependencies to place before and after the object being linked: |
|
|
9176 | predep_objects_CXX= |
|
|
9177 | postdep_objects_CXX= |
|
|
9178 | predeps_CXX= |
|
|
9179 | postdeps_CXX= |
|
|
9180 | compiler_lib_search_path_CXX= |
8556 | |
9181 | |
8557 | # Only expand once: |
9182 | # Source file extension for C++ test sources. |
|
|
9183 | ac_ext=cc |
|
|
9184 | |
|
|
9185 | # Object file extension for compiled C++ test sources. |
|
|
9186 | objext=o |
|
|
9187 | objext_CXX=$objext |
|
|
9188 | |
|
|
9189 | # Code to be used in simple compile tests |
|
|
9190 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
9191 | |
|
|
9192 | # Code to be used in simple link tests |
|
|
9193 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
|
|
9194 | |
|
|
9195 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
9196 | |
|
|
9197 | # If no C compiler was specified, use CC. |
|
|
9198 | LTCC=${LTCC-"$CC"} |
|
|
9199 | |
|
|
9200 | # Allow CC to be a program name with arguments. |
|
|
9201 | compiler=$CC |
|
|
9202 | |
|
|
9203 | |
|
|
9204 | # Allow CC to be a program name with arguments. |
|
|
9205 | lt_save_CC=$CC |
|
|
9206 | lt_save_LD=$LD |
|
|
9207 | lt_save_GCC=$GCC |
|
|
9208 | GCC=$GXX |
|
|
9209 | lt_save_with_gnu_ld=$with_gnu_ld |
|
|
9210 | lt_save_path_LD=$lt_cv_path_LD |
|
|
9211 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
|
9212 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
|
9213 | else |
|
|
9214 | unset lt_cv_prog_gnu_ld |
|
|
9215 | fi |
|
|
9216 | if test -n "${lt_cv_path_LDCXX+set}"; then |
|
|
9217 | lt_cv_path_LD=$lt_cv_path_LDCXX |
|
|
9218 | else |
|
|
9219 | unset lt_cv_path_LD |
|
|
9220 | fi |
|
|
9221 | test -z "${LDCXX+set}" || LD=$LDCXX |
|
|
9222 | CC=${CXX-"c++"} |
|
|
9223 | compiler=$CC |
|
|
9224 | compiler_CXX=$CC |
|
|
9225 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
|
9226 | |
|
|
9227 | # We don't want -fno-exception wen compiling C++ code, so set the |
|
|
9228 | # no_builtin_flag separately |
|
|
9229 | if test "$GXX" = yes; then |
|
|
9230 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
|
|
9231 | else |
|
|
9232 | lt_prog_compiler_no_builtin_flag_CXX= |
|
|
9233 | fi |
|
|
9234 | |
|
|
9235 | if test "$GXX" = yes; then |
|
|
9236 | # Set up default GNU C++ configuration |
|
|
9237 | |
|
|
9238 | |
|
|
9239 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
9240 | if test "${with_gnu_ld+set}" = set; then |
|
|
9241 | withval="$with_gnu_ld" |
|
|
9242 | test "$withval" = no || with_gnu_ld=yes |
|
|
9243 | else |
|
|
9244 | with_gnu_ld=no |
|
|
9245 | fi; |
|
|
9246 | ac_prog=ld |
|
|
9247 | if test "$GCC" = yes; then |
|
|
9248 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
9249 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
|
9250 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
|
9251 | case $host in |
|
|
9252 | *-*-mingw*) |
|
|
9253 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
9254 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
9255 | *) |
|
|
9256 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
9257 | esac |
|
|
9258 | case $ac_prog in |
|
|
9259 | # Accept absolute paths. |
|
|
9260 | [\\/]* | ?:[\\/]*) |
|
|
9261 | re_direlt='/[^/][^/]*/\.\./' |
|
|
9262 | # Canonicalize the pathname of ld |
|
|
9263 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
|
9264 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
9265 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
|
9266 | done |
|
|
9267 | test -z "$LD" && LD="$ac_prog" |
|
|
9268 | ;; |
|
|
9269 | "") |
|
|
9270 | # If it fails, then pretend we aren't using GCC. |
|
|
9271 | ac_prog=ld |
|
|
9272 | ;; |
|
|
9273 | *) |
|
|
9274 | # If it is relative, then search for the first ld in PATH. |
|
|
9275 | with_gnu_ld=unknown |
|
|
9276 | ;; |
|
|
9277 | esac |
|
|
9278 | elif test "$with_gnu_ld" = yes; then |
|
|
9279 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
|
9280 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
|
9281 | else |
|
|
9282 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
9283 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
9284 | fi |
|
|
9285 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
9286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9287 | else |
|
|
9288 | if test -z "$LD"; then |
|
|
9289 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
9290 | for ac_dir in $PATH; do |
|
|
9291 | IFS="$lt_save_ifs" |
|
|
9292 | test -z "$ac_dir" && ac_dir=. |
|
|
9293 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
9294 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
9295 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
9296 | # but apparently some GNU ld's only accept -v. |
|
|
9297 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
9298 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
|
9299 | *GNU* | *'with BFD'*) |
|
|
9300 | test "$with_gnu_ld" != no && break |
|
|
9301 | ;; |
|
|
9302 | *) |
|
|
9303 | test "$with_gnu_ld" != yes && break |
|
|
9304 | ;; |
|
|
9305 | esac |
|
|
9306 | fi |
|
|
9307 | done |
|
|
9308 | IFS="$lt_save_ifs" |
|
|
9309 | else |
|
|
9310 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
9311 | fi |
|
|
9312 | fi |
|
|
9313 | |
|
|
9314 | LD="$lt_cv_path_LD" |
|
|
9315 | if test -n "$LD"; then |
|
|
9316 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
9317 | echo "${ECHO_T}$LD" >&6 |
|
|
9318 | else |
|
|
9319 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
9320 | echo "${ECHO_T}no" >&6 |
|
|
9321 | fi |
|
|
9322 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
9323 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
9324 | { (exit 1); exit 1; }; } |
|
|
9325 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
9326 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
9327 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9329 | else |
|
|
9330 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
9331 | case `$LD -v 2>&1 </dev/null` in |
|
|
9332 | *GNU* | *'with BFD'*) |
|
|
9333 | lt_cv_prog_gnu_ld=yes |
|
|
9334 | ;; |
|
|
9335 | *) |
|
|
9336 | lt_cv_prog_gnu_ld=no |
|
|
9337 | ;; |
|
|
9338 | esac |
|
|
9339 | fi |
|
|
9340 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
9341 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
9342 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
9343 | |
|
|
9344 | |
|
|
9345 | |
|
|
9346 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
|
9347 | # archiving commands below assume that GNU ld is being used. |
|
|
9348 | if test "$with_gnu_ld" = yes; then |
|
|
9349 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
9350 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
9351 | |
|
|
9352 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
|
9353 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
9354 | |
|
|
9355 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
9356 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
|
9357 | # investigate it a little bit more. (MM) |
|
|
9358 | wlarc='${wl}' |
|
|
9359 | |
|
|
9360 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
9361 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
|
|
9362 | grep 'no-whole-archive' > /dev/null; then |
|
|
9363 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
9364 | else |
|
|
9365 | whole_archive_flag_spec_CXX= |
|
|
9366 | fi |
|
|
9367 | else |
|
|
9368 | with_gnu_ld=no |
|
|
9369 | wlarc= |
|
|
9370 | |
|
|
9371 | # A generic and very simple default shared library creation |
|
|
9372 | # command for GNU C++ for the case where it uses the native |
|
|
9373 | # linker, instead of GNU ld. If possible, this setting should |
|
|
9374 | # overridden to take advantage of the native linker features on |
|
|
9375 | # the platform it is being used on. |
|
|
9376 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
9377 | fi |
|
|
9378 | |
|
|
9379 | # Commands to make compiler produce verbose output that lists |
|
|
9380 | # what "hidden" libraries, object files and flags are used when |
|
|
9381 | # linking a shared library. |
|
|
9382 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
9383 | |
|
|
9384 | else |
|
|
9385 | GXX=no |
|
|
9386 | with_gnu_ld=no |
|
|
9387 | wlarc= |
|
|
9388 | fi |
|
|
9389 | |
|
|
9390 | # PORTME: fill in a description of your system's C++ link characteristics |
|
|
9391 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
9392 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
9393 | ld_shlibs_CXX=yes |
|
|
9394 | case $host_os in |
|
|
9395 | aix3*) |
|
|
9396 | # FIXME: insert proper C++ library support |
|
|
9397 | ld_shlibs_CXX=no |
|
|
9398 | ;; |
|
|
9399 | aix4* | aix5*) |
|
|
9400 | if test "$host_cpu" = ia64; then |
|
|
9401 | # On IA64, the linker does run time linking by default, so we don't |
|
|
9402 | # have to do anything special. |
|
|
9403 | aix_use_runtimelinking=no |
|
|
9404 | exp_sym_flag='-Bexport' |
|
|
9405 | no_entry_flag="" |
|
|
9406 | else |
|
|
9407 | aix_use_runtimelinking=no |
|
|
9408 | |
|
|
9409 | # Test if we are trying to use run time linking or normal |
|
|
9410 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
9411 | # need to do runtime linking. |
|
|
9412 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
9413 | for ld_flag in $LDFLAGS; do |
|
|
9414 | case $ld_flag in |
|
|
9415 | *-brtl*) |
|
|
9416 | aix_use_runtimelinking=yes |
|
|
9417 | break |
|
|
9418 | ;; |
|
|
9419 | esac |
|
|
9420 | done |
|
|
9421 | esac |
|
|
9422 | |
|
|
9423 | exp_sym_flag='-bexport' |
|
|
9424 | no_entry_flag='-bnoentry' |
|
|
9425 | fi |
|
|
9426 | |
|
|
9427 | # When large executables or shared objects are built, AIX ld can |
|
|
9428 | # have problems creating the table of contents. If linking a library |
|
|
9429 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
9430 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
9431 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
9432 | |
|
|
9433 | archive_cmds_CXX='' |
|
|
9434 | hardcode_direct_CXX=yes |
|
|
9435 | hardcode_libdir_separator_CXX=':' |
|
|
9436 | link_all_deplibs_CXX=yes |
|
|
9437 | |
|
|
9438 | if test "$GXX" = yes; then |
|
|
9439 | case $host_os in aix4.012|aix4.012.*) |
|
|
9440 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
9441 | # below for broken collect2 doesn't work under 4.3+ |
|
|
9442 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
9443 | if test -f "$collect2name" && \ |
|
|
9444 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
9445 | then |
|
|
9446 | # We have reworked collect2 |
|
|
9447 | hardcode_direct_CXX=yes |
|
|
9448 | else |
|
|
9449 | # We have old collect2 |
|
|
9450 | hardcode_direct_CXX=unsupported |
|
|
9451 | # It fails to find uninstalled libraries when the uninstalled |
|
|
9452 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
9453 | # to unsupported forces relinking |
|
|
9454 | hardcode_minus_L_CXX=yes |
|
|
9455 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
9456 | hardcode_libdir_separator_CXX= |
|
|
9457 | fi |
|
|
9458 | esac |
|
|
9459 | shared_flag='-shared' |
|
|
9460 | else |
|
|
9461 | # not using gcc |
|
|
9462 | if test "$host_cpu" = ia64; then |
|
|
9463 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
9464 | # chokes on -Wl,-G. The following line is correct: |
|
|
9465 | shared_flag='-G' |
|
|
9466 | else |
|
|
9467 | if test "$aix_use_runtimelinking" = yes; then |
|
|
9468 | shared_flag='${wl}-G' |
|
|
9469 | else |
|
|
9470 | shared_flag='${wl}-bM:SRE' |
|
|
9471 | fi |
|
|
9472 | fi |
|
|
9473 | fi |
|
|
9474 | |
|
|
9475 | # It seems that -bexpall does not export symbols beginning with |
|
|
9476 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
9477 | always_export_symbols_CXX=yes |
|
|
9478 | if test "$aix_use_runtimelinking" = yes; then |
|
|
9479 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
9480 | # -berok will link without error, but may produce a broken library. |
|
|
9481 | allow_undefined_flag_CXX='-berok' |
|
|
9482 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
9483 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9484 | /* confdefs.h. */ |
|
|
9485 | _ACEOF |
|
|
9486 | cat confdefs.h >>conftest.$ac_ext |
|
|
9487 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9488 | /* end confdefs.h. */ |
|
|
9489 | |
|
|
9490 | int |
|
|
9491 | main () |
|
|
9492 | { |
|
|
9493 | |
|
|
9494 | ; |
|
|
9495 | return 0; |
|
|
9496 | } |
|
|
9497 | _ACEOF |
|
|
9498 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9500 | (eval $ac_link) 2>conftest.er1 |
|
|
9501 | ac_status=$? |
|
|
9502 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9503 | rm -f conftest.er1 |
|
|
9504 | cat conftest.err >&5 |
|
|
9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9506 | (exit $ac_status); } && |
|
|
9507 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9509 | (eval $ac_try) 2>&5 |
|
|
9510 | ac_status=$? |
|
|
9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9512 | (exit $ac_status); }; } && |
|
|
9513 | { ac_try='test -s conftest$ac_exeext' |
|
|
9514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9515 | (eval $ac_try) 2>&5 |
|
|
9516 | ac_status=$? |
|
|
9517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9518 | (exit $ac_status); }; }; then |
|
|
9519 | |
|
|
9520 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9521 | }'` |
|
|
9522 | # Check for a 64-bit object if we didn't find anything. |
|
|
9523 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9524 | }'`; fi |
|
|
9525 | else |
|
|
9526 | echo "$as_me: failed program was:" >&5 |
|
|
9527 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9528 | |
|
|
9529 | fi |
|
|
9530 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9531 | conftest$ac_exeext conftest.$ac_ext |
|
|
9532 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
9533 | |
|
|
9534 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
9535 | |
|
|
9536 | 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" |
|
|
9537 | else |
|
|
9538 | if test "$host_cpu" = ia64; then |
|
|
9539 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
|
|
9540 | allow_undefined_flag_CXX="-z nodefs" |
|
|
9541 | 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" |
|
|
9542 | else |
|
|
9543 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
9544 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9545 | /* confdefs.h. */ |
|
|
9546 | _ACEOF |
|
|
9547 | cat confdefs.h >>conftest.$ac_ext |
|
|
9548 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9549 | /* end confdefs.h. */ |
|
|
9550 | |
|
|
9551 | int |
|
|
9552 | main () |
|
|
9553 | { |
|
|
9554 | |
|
|
9555 | ; |
|
|
9556 | return 0; |
|
|
9557 | } |
|
|
9558 | _ACEOF |
|
|
9559 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9561 | (eval $ac_link) 2>conftest.er1 |
|
|
9562 | ac_status=$? |
|
|
9563 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9564 | rm -f conftest.er1 |
|
|
9565 | cat conftest.err >&5 |
|
|
9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9567 | (exit $ac_status); } && |
|
|
9568 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
9569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9570 | (eval $ac_try) 2>&5 |
|
|
9571 | ac_status=$? |
|
|
9572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9573 | (exit $ac_status); }; } && |
|
|
9574 | { ac_try='test -s conftest$ac_exeext' |
|
|
9575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
9576 | (eval $ac_try) 2>&5 |
|
|
9577 | ac_status=$? |
|
|
9578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9579 | (exit $ac_status); }; }; then |
|
|
9580 | |
|
|
9581 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9582 | }'` |
|
|
9583 | # Check for a 64-bit object if we didn't find anything. |
|
|
9584 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9585 | }'`; fi |
|
|
9586 | else |
|
|
9587 | echo "$as_me: failed program was:" >&5 |
|
|
9588 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9589 | |
|
|
9590 | fi |
|
|
9591 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9592 | conftest$ac_exeext conftest.$ac_ext |
|
|
9593 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
9594 | |
|
|
9595 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
9596 | # Warning - without using the other run time loading flags, |
|
|
9597 | # -berok will link without error, but may produce a broken library. |
|
|
9598 | no_undefined_flag_CXX=' ${wl}-bernotok' |
|
|
9599 | allow_undefined_flag_CXX=' ${wl}-berok' |
|
|
9600 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
9601 | always_export_symbols_CXX=yes |
|
|
9602 | # Exported symbols can be pulled into shared objects from archives |
|
|
9603 | whole_archive_flag_spec_CXX=' ' |
|
|
9604 | archive_cmds_need_lc_CXX=yes |
|
|
9605 | # This is similar to how AIX traditionally builds it's shared libraries. |
|
|
9606 | 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' |
|
|
9607 | fi |
|
|
9608 | fi |
|
|
9609 | ;; |
|
|
9610 | chorus*) |
|
|
9611 | case $cc_basename in |
|
|
9612 | *) |
|
|
9613 | # FIXME: insert proper C++ library support |
|
|
9614 | ld_shlibs_CXX=no |
|
|
9615 | ;; |
|
|
9616 | esac |
|
|
9617 | ;; |
|
|
9618 | |
|
|
9619 | cygwin* | mingw* | pw32*) |
|
|
9620 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
|
|
9621 | # as there is no search path for DLLs. |
|
|
9622 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
9623 | allow_undefined_flag_CXX=unsupported |
|
|
9624 | always_export_symbols_CXX=no |
|
|
9625 | enable_shared_with_static_runtimes_CXX=yes |
|
|
9626 | |
|
|
9627 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
9628 | 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' |
|
|
9629 | # If the export-symbols file already is a .def file (1st line |
|
|
9630 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
9631 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
9632 | cp $export_symbols $output_objdir/$soname.def; |
|
|
9633 | else |
|
|
9634 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
9635 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
9636 | fi~ |
|
|
9637 | $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' |
|
|
9638 | else |
|
|
9639 | ld_shlibs_CXX=no |
|
|
9640 | fi |
|
|
9641 | ;; |
|
|
9642 | |
|
|
9643 | darwin* | rhapsody*) |
|
|
9644 | if test "$GXX" = yes; then |
|
|
9645 | archive_cmds_need_lc_CXX=no |
|
|
9646 | case "$host_os" in |
|
|
9647 | rhapsody* | darwin1.[012]) |
|
|
9648 | allow_undefined_flag_CXX='-undefined suppress' |
|
|
9649 | ;; |
|
|
9650 | *) # Darwin 1.3 on |
|
|
9651 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
9652 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
|
|
9653 | else |
|
|
9654 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
9655 | 10.[012]) |
|
|
9656 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
|
|
9657 | ;; |
|
|
9658 | 10.*) |
|
|
9659 | allow_undefined_flag_CXX='-undefined dynamic_lookup' |
|
|
9660 | ;; |
|
|
9661 | esac |
|
|
9662 | fi |
|
|
9663 | ;; |
|
|
9664 | esac |
|
|
9665 | lt_int_apple_cc_single_mod=no |
|
|
9666 | output_verbose_link_cmd='echo' |
|
|
9667 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
9668 | lt_int_apple_cc_single_mod=yes |
|
|
9669 | fi |
|
|
9670 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
9671 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
9672 | else |
|
|
9673 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
9674 | fi |
|
|
9675 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
9676 | |
|
|
9677 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
9678 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
9679 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
9680 | else |
|
|
9681 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
9682 | fi |
|
|
9683 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
9684 | hardcode_direct_CXX=no |
|
|
9685 | hardcode_automatic_CXX=yes |
|
|
9686 | hardcode_shlibpath_var_CXX=unsupported |
|
|
9687 | whole_archive_flag_spec_CXX='-all_load $convenience' |
|
|
9688 | link_all_deplibs_CXX=yes |
|
|
9689 | else |
|
|
9690 | ld_shlibs_CXX=no |
|
|
9691 | fi |
|
|
9692 | ;; |
|
|
9693 | |
|
|
9694 | dgux*) |
|
|
9695 | case $cc_basename in |
|
|
9696 | ec++) |
|
|
9697 | # FIXME: insert proper C++ library support |
|
|
9698 | ld_shlibs_CXX=no |
|
|
9699 | ;; |
|
|
9700 | ghcx) |
|
|
9701 | # Green Hills C++ Compiler |
|
|
9702 | # FIXME: insert proper C++ library support |
|
|
9703 | ld_shlibs_CXX=no |
|
|
9704 | ;; |
|
|
9705 | *) |
|
|
9706 | # FIXME: insert proper C++ library support |
|
|
9707 | ld_shlibs_CXX=no |
|
|
9708 | ;; |
|
|
9709 | esac |
|
|
9710 | ;; |
|
|
9711 | freebsd12*) |
|
|
9712 | # C++ shared libraries reported to be fairly broken before switch to ELF |
|
|
9713 | ld_shlibs_CXX=no |
|
|
9714 | ;; |
|
|
9715 | freebsd-elf*) |
|
|
9716 | archive_cmds_need_lc_CXX=no |
|
|
9717 | ;; |
|
|
9718 | freebsd* | kfreebsd*-gnu) |
|
|
9719 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
|
9720 | # conventions |
|
|
9721 | ld_shlibs_CXX=yes |
|
|
9722 | ;; |
|
|
9723 | gnu*) |
|
|
9724 | ;; |
|
|
9725 | hpux9*) |
|
|
9726 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
9727 | hardcode_libdir_separator_CXX=: |
|
|
9728 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
9729 | hardcode_direct_CXX=yes |
|
|
9730 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
9731 | # but as the default |
|
|
9732 | # location of the library. |
|
|
9733 | |
|
|
9734 | case $cc_basename in |
|
|
9735 | CC) |
|
|
9736 | # FIXME: insert proper C++ library support |
|
|
9737 | ld_shlibs_CXX=no |
|
|
9738 | ;; |
|
|
9739 | aCC) |
|
|
9740 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
9741 | # Commands to make compiler produce verbose output that lists |
|
|
9742 | # what "hidden" libraries, object files and flags are used when |
|
|
9743 | # linking a shared library. |
|
|
9744 | # |
|
|
9745 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9746 | # explicitly linking system object files so we need to strip them |
|
|
9747 | # from the output so that they don't get included in the library |
|
|
9748 | # dependencies. |
|
|
9749 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
9750 | ;; |
|
|
9751 | *) |
|
|
9752 | if test "$GXX" = yes; then |
|
|
9753 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
9754 | else |
|
|
9755 | # FIXME: insert proper C++ library support |
|
|
9756 | ld_shlibs_CXX=no |
|
|
9757 | fi |
|
|
9758 | ;; |
|
|
9759 | esac |
|
|
9760 | ;; |
|
|
9761 | hpux10*|hpux11*) |
|
|
9762 | if test $with_gnu_ld = no; then |
|
|
9763 | case "$host_cpu" in |
|
|
9764 | hppa*64*) |
|
|
9765 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
9766 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
|
|
9767 | hardcode_libdir_separator_CXX=: |
|
|
9768 | ;; |
|
|
9769 | ia64*) |
|
|
9770 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
9771 | ;; |
|
|
9772 | *) |
|
|
9773 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
9774 | hardcode_libdir_separator_CXX=: |
|
|
9775 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
9776 | ;; |
|
|
9777 | esac |
|
|
9778 | fi |
|
|
9779 | case "$host_cpu" in |
|
|
9780 | hppa*64*) |
|
|
9781 | hardcode_direct_CXX=no |
|
|
9782 | hardcode_shlibpath_var_CXX=no |
|
|
9783 | ;; |
|
|
9784 | ia64*) |
|
|
9785 | hardcode_direct_CXX=no |
|
|
9786 | hardcode_shlibpath_var_CXX=no |
|
|
9787 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
9788 | # but as the default |
|
|
9789 | # location of the library. |
|
|
9790 | ;; |
|
|
9791 | *) |
|
|
9792 | hardcode_direct_CXX=yes |
|
|
9793 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
9794 | # but as the default |
|
|
9795 | # location of the library. |
|
|
9796 | ;; |
|
|
9797 | esac |
|
|
9798 | |
|
|
9799 | case $cc_basename in |
|
|
9800 | CC) |
|
|
9801 | # FIXME: insert proper C++ library support |
|
|
9802 | ld_shlibs_CXX=no |
|
|
9803 | ;; |
|
|
9804 | aCC) |
|
|
9805 | case "$host_cpu" in |
|
|
9806 | hppa*64*|ia64*) |
|
|
9807 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
|
9808 | ;; |
|
|
9809 | *) |
|
|
9810 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9811 | ;; |
|
|
9812 | esac |
|
|
9813 | # Commands to make compiler produce verbose output that lists |
|
|
9814 | # what "hidden" libraries, object files and flags are used when |
|
|
9815 | # linking a shared library. |
|
|
9816 | # |
|
|
9817 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9818 | # explicitly linking system object files so we need to strip them |
|
|
9819 | # from the output so that they don't get included in the library |
|
|
9820 | # dependencies. |
|
|
9821 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
9822 | ;; |
|
|
9823 | *) |
|
|
9824 | if test "$GXX" = yes; then |
|
|
9825 | if test $with_gnu_ld = no; then |
|
|
9826 | case "$host_cpu" in |
|
|
9827 | ia64*|hppa*64*) |
|
|
9828 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
|
|
9829 | ;; |
|
|
9830 | *) |
|
|
9831 | 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' |
|
|
9832 | ;; |
|
|
9833 | esac |
|
|
9834 | fi |
|
|
9835 | else |
|
|
9836 | # FIXME: insert proper C++ library support |
|
|
9837 | ld_shlibs_CXX=no |
|
|
9838 | fi |
|
|
9839 | ;; |
|
|
9840 | esac |
|
|
9841 | ;; |
|
|
9842 | irix5* | irix6*) |
|
|
9843 | case $cc_basename in |
|
|
9844 | CC) |
|
|
9845 | # SGI C++ |
|
|
9846 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
|
|
9847 | |
|
|
9848 | # Archives containing C++ object files must be created using |
|
|
9849 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
|
9850 | # necessary to make sure instantiated templates are included |
|
|
9851 | # in the archive. |
|
|
9852 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
|
9853 | ;; |
|
|
9854 | *) |
|
|
9855 | if test "$GXX" = yes; then |
|
|
9856 | if test "$with_gnu_ld" = no; then |
|
|
9857 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
|
|
9858 | else |
|
|
9859 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
|
|
9860 | fi |
|
|
9861 | fi |
|
|
9862 | link_all_deplibs_CXX=yes |
|
|
9863 | ;; |
|
|
9864 | esac |
|
|
9865 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
9866 | hardcode_libdir_separator_CXX=: |
|
|
9867 | ;; |
|
|
9868 | linux*) |
|
|
9869 | case $cc_basename in |
|
|
9870 | KCC) |
|
|
9871 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
9872 | |
|
|
9873 | # KCC will only create a shared library if the output file |
|
|
9874 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
9875 | # to its proper name (with version) after linking. |
|
|
9876 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
|
|
9877 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
|
|
9878 | # Commands to make compiler produce verbose output that lists |
|
|
9879 | # what "hidden" libraries, object files and flags are used when |
|
|
9880 | # linking a shared library. |
|
|
9881 | # |
|
|
9882 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9883 | # explicitly linking system object files so we need to strip them |
|
|
9884 | # from the output so that they don't get included in the library |
|
|
9885 | # dependencies. |
|
|
9886 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
9887 | |
|
|
9888 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
|
|
9889 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
9890 | |
|
|
9891 | # Archives containing C++ object files must be created using |
|
|
9892 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
9893 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
9894 | ;; |
|
|
9895 | icpc) |
|
|
9896 | # Intel C++ |
|
|
9897 | with_gnu_ld=yes |
|
|
9898 | archive_cmds_need_lc_CXX=no |
|
|
9899 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
9900 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
9901 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
9902 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
9903 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
|
9904 | ;; |
|
|
9905 | cxx) |
|
|
9906 | # Compaq C++ |
|
|
9907 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
9908 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
|
|
9909 | |
|
|
9910 | runpath_var=LD_RUN_PATH |
|
|
9911 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
|
9912 | hardcode_libdir_separator_CXX=: |
|
|
9913 | |
|
|
9914 | # Commands to make compiler produce verbose output that lists |
|
|
9915 | # what "hidden" libraries, object files and flags are used when |
|
|
9916 | # linking a shared library. |
|
|
9917 | # |
|
|
9918 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9919 | # explicitly linking system object files so we need to strip them |
|
|
9920 | # from the output so that they don't get included in the library |
|
|
9921 | # dependencies. |
|
|
9922 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
9923 | ;; |
|
|
9924 | esac |
|
|
9925 | ;; |
|
|
9926 | lynxos*) |
|
|
9927 | # FIXME: insert proper C++ library support |
|
|
9928 | ld_shlibs_CXX=no |
|
|
9929 | ;; |
|
|
9930 | m88k*) |
|
|
9931 | # FIXME: insert proper C++ library support |
|
|
9932 | ld_shlibs_CXX=no |
|
|
9933 | ;; |
|
|
9934 | mvs*) |
|
|
9935 | case $cc_basename in |
|
|
9936 | cxx) |
|
|
9937 | # FIXME: insert proper C++ library support |
|
|
9938 | ld_shlibs_CXX=no |
|
|
9939 | ;; |
|
|
9940 | *) |
|
|
9941 | # FIXME: insert proper C++ library support |
|
|
9942 | ld_shlibs_CXX=no |
|
|
9943 | ;; |
|
|
9944 | esac |
|
|
9945 | ;; |
|
|
9946 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
9947 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
9948 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
|
9949 | wlarc= |
|
|
9950 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
|
9951 | hardcode_direct_CXX=yes |
|
|
9952 | hardcode_shlibpath_var_CXX=no |
|
|
9953 | fi |
|
|
9954 | # Workaround some broken pre-1.5 toolchains |
|
|
9955 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
|
9956 | ;; |
|
|
9957 | osf3*) |
|
|
9958 | case $cc_basename in |
|
|
9959 | KCC) |
|
|
9960 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
9961 | |
|
|
9962 | # KCC will only create a shared library if the output file |
|
|
9963 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
9964 | # to its proper name (with version) after linking. |
|
|
9965 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
|
|
9966 | |
|
|
9967 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
9968 | hardcode_libdir_separator_CXX=: |
|
|
9969 | |
|
|
9970 | # Archives containing C++ object files must be created using |
|
|
9971 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
9972 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
9973 | |
|
|
9974 | ;; |
|
|
9975 | RCC) |
|
|
9976 | # Rational C++ 2.4.1 |
|
|
9977 | # FIXME: insert proper C++ library support |
|
|
9978 | ld_shlibs_CXX=no |
|
|
9979 | ;; |
|
|
9980 | cxx) |
|
|
9981 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
9982 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
|
|
9983 | |
|
|
9984 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
9985 | hardcode_libdir_separator_CXX=: |
|
|
9986 | |
|
|
9987 | # Commands to make compiler produce verbose output that lists |
|
|
9988 | # what "hidden" libraries, object files and flags are used when |
|
|
9989 | # linking a shared library. |
|
|
9990 | # |
|
|
9991 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9992 | # explicitly linking system object files so we need to strip them |
|
|
9993 | # from the output so that they don't get included in the library |
|
|
9994 | # dependencies. |
|
|
9995 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
9996 | ;; |
|
|
9997 | *) |
|
|
9998 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
9999 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
10000 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
|
|
10001 | |
|
|
10002 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
10003 | hardcode_libdir_separator_CXX=: |
|
|
10004 | |
|
|
10005 | # Commands to make compiler produce verbose output that lists |
|
|
10006 | # what "hidden" libraries, object files and flags are used when |
|
|
10007 | # linking a shared library. |
|
|
10008 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
10009 | |
|
|
10010 | else |
|
|
10011 | # FIXME: insert proper C++ library support |
|
|
10012 | ld_shlibs_CXX=no |
|
|
10013 | fi |
|
|
10014 | ;; |
|
|
10015 | esac |
|
|
10016 | ;; |
|
|
10017 | osf4* | osf5*) |
|
|
10018 | case $cc_basename in |
|
|
10019 | KCC) |
|
|
10020 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
10021 | |
|
|
10022 | # KCC will only create a shared library if the output file |
|
|
10023 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
10024 | # to its proper name (with version) after linking. |
|
|
10025 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
|
|
10026 | |
|
|
10027 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10028 | hardcode_libdir_separator_CXX=: |
|
|
10029 | |
|
|
10030 | # Archives containing C++ object files must be created using |
|
|
10031 | # the KAI C++ compiler. |
|
|
10032 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
|
|
10033 | ;; |
|
|
10034 | RCC) |
|
|
10035 | # Rational C++ 2.4.1 |
|
|
10036 | # FIXME: insert proper C++ library support |
|
|
10037 | ld_shlibs_CXX=no |
|
|
10038 | ;; |
|
|
10039 | cxx) |
|
|
10040 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
|
|
10041 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
|
|
10042 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
|
10043 | echo "-hidden">> $lib.exp~ |
|
|
10044 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
|
|
10045 | $rm $lib.exp' |
|
|
10046 | |
|
|
10047 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
|
10048 | hardcode_libdir_separator_CXX=: |
|
|
10049 | |
|
|
10050 | # Commands to make compiler produce verbose output that lists |
|
|
10051 | # what "hidden" libraries, object files and flags are used when |
|
|
10052 | # linking a shared library. |
|
|
10053 | # |
|
|
10054 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10055 | # explicitly linking system object files so we need to strip them |
|
|
10056 | # from the output so that they don't get included in the library |
|
|
10057 | # dependencies. |
|
|
10058 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
10059 | ;; |
|
|
10060 | *) |
|
|
10061 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
10062 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
10063 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
|
|
10064 | |
|
|
10065 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
10066 | hardcode_libdir_separator_CXX=: |
|
|
10067 | |
|
|
10068 | # Commands to make compiler produce verbose output that lists |
|
|
10069 | # what "hidden" libraries, object files and flags are used when |
|
|
10070 | # linking a shared library. |
|
|
10071 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
10072 | |
|
|
10073 | else |
|
|
10074 | # FIXME: insert proper C++ library support |
|
|
10075 | ld_shlibs_CXX=no |
|
|
10076 | fi |
|
|
10077 | ;; |
|
|
10078 | esac |
|
|
10079 | ;; |
|
|
10080 | psos*) |
|
|
10081 | # FIXME: insert proper C++ library support |
|
|
10082 | ld_shlibs_CXX=no |
|
|
10083 | ;; |
|
|
10084 | sco*) |
|
|
10085 | archive_cmds_need_lc_CXX=no |
|
|
10086 | case $cc_basename in |
|
|
10087 | CC) |
|
|
10088 | # FIXME: insert proper C++ library support |
|
|
10089 | ld_shlibs_CXX=no |
|
|
10090 | ;; |
|
|
10091 | *) |
|
|
10092 | # FIXME: insert proper C++ library support |
|
|
10093 | ld_shlibs_CXX=no |
|
|
10094 | ;; |
|
|
10095 | esac |
|
|
10096 | ;; |
|
|
10097 | sunos4*) |
|
|
10098 | case $cc_basename in |
|
|
10099 | CC) |
|
|
10100 | # Sun C++ 4.x |
|
|
10101 | # FIXME: insert proper C++ library support |
|
|
10102 | ld_shlibs_CXX=no |
|
|
10103 | ;; |
|
|
10104 | lcc) |
|
|
10105 | # Lucid |
|
|
10106 | # FIXME: insert proper C++ library support |
|
|
10107 | ld_shlibs_CXX=no |
|
|
10108 | ;; |
|
|
10109 | *) |
|
|
10110 | # FIXME: insert proper C++ library support |
|
|
10111 | ld_shlibs_CXX=no |
|
|
10112 | ;; |
|
|
10113 | esac |
|
|
10114 | ;; |
|
|
10115 | solaris*) |
|
|
10116 | case $cc_basename in |
|
|
10117 | CC) |
|
|
10118 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
10119 | no_undefined_flag_CXX=' -zdefs' |
|
|
10120 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
10121 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10122 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
10123 | |
|
|
10124 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
|
10125 | hardcode_shlibpath_var_CXX=no |
|
|
10126 | case $host_os in |
|
|
10127 | solaris2.0-5 | solaris2.0-5.*) ;; |
|
|
10128 | *) |
|
|
10129 | # The C++ compiler is used as linker so we must use $wl |
|
|
10130 | # flag to pass the commands to the underlying system |
|
|
10131 | # linker. |
|
|
10132 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
10133 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
|
10134 | ;; |
|
|
10135 | esac |
|
|
10136 | link_all_deplibs_CXX=yes |
|
|
10137 | |
|
|
10138 | # Commands to make compiler produce verbose output that lists |
|
|
10139 | # what "hidden" libraries, object files and flags are used when |
|
|
10140 | # linking a shared library. |
|
|
10141 | # |
|
|
10142 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10143 | # explicitly linking system object files so we need to strip them |
|
|
10144 | # from the output so that they don't get included in the library |
|
|
10145 | # dependencies. |
|
|
10146 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
10147 | |
|
|
10148 | # Archives containing C++ object files must be created using |
|
|
10149 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
|
10150 | # necessary to make sure instantiated templates are included |
|
|
10151 | # in the archive. |
|
|
10152 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
|
10153 | ;; |
|
|
10154 | gcx) |
|
|
10155 | # Green Hills C++ Compiler |
|
|
10156 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10157 | |
|
|
10158 | # The C++ compiler must be used to create the archive. |
|
|
10159 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
|
10160 | ;; |
|
|
10161 | *) |
|
|
10162 | # GNU C++ compiler with Solaris linker |
|
|
10163 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
10164 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
|
|
10165 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
|
|
10166 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10167 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10168 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
10169 | |
|
|
10170 | # Commands to make compiler produce verbose output that lists |
|
|
10171 | # what "hidden" libraries, object files and flags are used when |
|
|
10172 | # linking a shared library. |
|
|
10173 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
|
10174 | else |
|
|
10175 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
|
10176 | # platform. |
|
|
10177 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10178 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10179 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
10180 | |
|
|
10181 | # Commands to make compiler produce verbose output that lists |
|
|
10182 | # what "hidden" libraries, object files and flags are used when |
|
|
10183 | # linking a shared library. |
|
|
10184 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
|
10185 | fi |
|
|
10186 | |
|
|
10187 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
|
|
10188 | fi |
|
|
10189 | ;; |
|
|
10190 | esac |
|
|
10191 | ;; |
|
|
10192 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
|
10193 | archive_cmds_need_lc_CXX=no |
|
|
10194 | ;; |
|
|
10195 | tandem*) |
|
|
10196 | case $cc_basename in |
|
|
10197 | NCC) |
|
|
10198 | # NonStop-UX NCC 3.20 |
|
|
10199 | # FIXME: insert proper C++ library support |
|
|
10200 | ld_shlibs_CXX=no |
|
|
10201 | ;; |
|
|
10202 | *) |
|
|
10203 | # FIXME: insert proper C++ library support |
|
|
10204 | ld_shlibs_CXX=no |
|
|
10205 | ;; |
|
|
10206 | esac |
|
|
10207 | ;; |
|
|
10208 | vxworks*) |
|
|
10209 | # FIXME: insert proper C++ library support |
|
|
10210 | ld_shlibs_CXX=no |
|
|
10211 | ;; |
|
|
10212 | *) |
|
|
10213 | # FIXME: insert proper C++ library support |
|
|
10214 | ld_shlibs_CXX=no |
|
|
10215 | ;; |
|
|
10216 | esac |
|
|
10217 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
|
10218 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
|
10219 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
|
10220 | |
|
|
10221 | GCC_CXX="$GXX" |
|
|
10222 | LD_CXX="$LD" |
|
|
10223 | |
|
|
10224 | |
|
|
10225 | cat > conftest.$ac_ext <<EOF |
|
|
10226 | class Foo |
|
|
10227 | { |
|
|
10228 | public: |
|
|
10229 | Foo (void) { a = 0; } |
|
|
10230 | private: |
|
|
10231 | int a; |
|
|
10232 | }; |
|
|
10233 | EOF |
|
|
10234 | |
|
|
10235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10236 | (eval $ac_compile) 2>&5 |
|
|
10237 | ac_status=$? |
|
|
10238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10239 | (exit $ac_status); }; then |
|
|
10240 | # Parse the compiler output and extract the necessary |
|
|
10241 | # objects, libraries and library flags. |
|
|
10242 | |
|
|
10243 | # Sentinel used to keep track of whether or not we are before |
|
|
10244 | # the conftest object file. |
|
|
10245 | pre_test_object_deps_done=no |
|
|
10246 | |
|
|
10247 | # The `*' in the case matches for architectures that use `case' in |
|
|
10248 | # $output_verbose_cmd can trigger glob expansion during the loop |
|
|
10249 | # eval without this substitution. |
|
|
10250 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
|
|
10251 | |
|
|
10252 | for p in `eval $output_verbose_link_cmd`; do |
|
|
10253 | case $p in |
|
|
10254 | |
|
|
10255 | -L* | -R* | -l*) |
|
|
10256 | # Some compilers place space between "-{L,R}" and the path. |
|
|
10257 | # Remove the space. |
|
|
10258 | if test $p = "-L" \ |
|
|
10259 | || test $p = "-R"; then |
|
|
10260 | prev=$p |
|
|
10261 | continue |
|
|
10262 | else |
|
|
10263 | prev= |
|
|
10264 | fi |
|
|
10265 | |
|
|
10266 | if test "$pre_test_object_deps_done" = no; then |
|
|
10267 | case $p in |
|
|
10268 | -L* | -R*) |
|
|
10269 | # Internal compiler library paths should come after those |
|
|
10270 | # provided the user. The postdeps already come after the |
|
|
10271 | # user supplied libs so there is no need to process them. |
|
|
10272 | if test -z "$compiler_lib_search_path_CXX"; then |
|
|
10273 | compiler_lib_search_path_CXX="${prev}${p}" |
|
|
10274 | else |
|
|
10275 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
|
|
10276 | fi |
|
|
10277 | ;; |
|
|
10278 | # The "-l" case would never come before the object being |
|
|
10279 | # linked, so don't bother handling this case. |
|
|
10280 | esac |
|
|
10281 | else |
|
|
10282 | if test -z "$postdeps_CXX"; then |
|
|
10283 | postdeps_CXX="${prev}${p}" |
|
|
10284 | else |
|
|
10285 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
|
|
10286 | fi |
|
|
10287 | fi |
|
|
10288 | ;; |
|
|
10289 | |
|
|
10290 | *.$objext) |
|
|
10291 | # This assumes that the test object file only shows up |
|
|
10292 | # once in the compiler output. |
|
|
10293 | if test "$p" = "conftest.$objext"; then |
|
|
10294 | pre_test_object_deps_done=yes |
|
|
10295 | continue |
|
|
10296 | fi |
|
|
10297 | |
|
|
10298 | if test "$pre_test_object_deps_done" = no; then |
|
|
10299 | if test -z "$predep_objects_CXX"; then |
|
|
10300 | predep_objects_CXX="$p" |
|
|
10301 | else |
|
|
10302 | predep_objects_CXX="$predep_objects_CXX $p" |
|
|
10303 | fi |
|
|
10304 | else |
|
|
10305 | if test -z "$postdep_objects_CXX"; then |
|
|
10306 | postdep_objects_CXX="$p" |
|
|
10307 | else |
|
|
10308 | postdep_objects_CXX="$postdep_objects_CXX $p" |
|
|
10309 | fi |
|
|
10310 | fi |
|
|
10311 | ;; |
|
|
10312 | |
|
|
10313 | *) ;; # Ignore the rest. |
|
|
10314 | |
|
|
10315 | esac |
|
|
10316 | done |
|
|
10317 | |
|
|
10318 | # Clean up. |
|
|
10319 | rm -f a.out a.exe |
|
|
10320 | else |
|
|
10321 | echo "libtool.m4: error: problem compiling CXX test program" |
|
|
10322 | fi |
|
|
10323 | |
|
|
10324 | $rm -f confest.$objext |
|
|
10325 | |
|
|
10326 | case " $postdeps_CXX " in |
|
|
10327 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
|
|
10328 | esac |
|
|
10329 | |
|
|
10330 | lt_prog_compiler_wl_CXX= |
|
|
10331 | lt_prog_compiler_pic_CXX= |
|
|
10332 | lt_prog_compiler_static_CXX= |
|
|
10333 | |
|
|
10334 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
10335 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
10336 | |
|
|
10337 | # C++ specific cases for pic, static, wl, etc. |
|
|
10338 | if test "$GXX" = yes; then |
|
|
10339 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10340 | lt_prog_compiler_static_CXX='-static' |
|
|
10341 | |
|
|
10342 | case $host_os in |
|
|
10343 | aix*) |
|
|
10344 | # All AIX code is PIC. |
|
|
10345 | if test "$host_cpu" = ia64; then |
|
|
10346 | # AIX 5 now supports IA64 processor |
|
|
10347 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10348 | fi |
|
|
10349 | ;; |
|
|
10350 | amigaos*) |
|
|
10351 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
10352 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
10353 | # like `-m68040'. |
|
|
10354 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
|
|
10355 | ;; |
|
|
10356 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
10357 | # PIC is the default for these OSes. |
|
|
10358 | ;; |
|
|
10359 | mingw* | os2* | pw32*) |
|
|
10360 | # This hack is so that the source file can tell whether it is being |
|
|
10361 | # built for inclusion in a dll (and should export symbols for example). |
|
|
10362 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
|
|
10363 | ;; |
|
|
10364 | darwin* | rhapsody*) |
|
|
10365 | # PIC is the default on this platform |
|
|
10366 | # Common symbols not allowed in MH_DYLIB files |
|
|
10367 | lt_prog_compiler_pic_CXX='-fno-common' |
|
|
10368 | ;; |
|
|
10369 | *djgpp*) |
|
|
10370 | # DJGPP does not support shared libraries at all |
|
|
10371 | lt_prog_compiler_pic_CXX= |
|
|
10372 | ;; |
|
|
10373 | sysv4*MP*) |
|
|
10374 | if test -d /usr/nec; then |
|
|
10375 | lt_prog_compiler_pic_CXX=-Kconform_pic |
|
|
10376 | fi |
|
|
10377 | ;; |
|
|
10378 | hpux*) |
|
|
10379 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
10380 | # not for PA HP-UX. |
|
|
10381 | case "$host_cpu" in |
|
|
10382 | hppa*64*|ia64*) |
|
|
10383 | ;; |
|
|
10384 | *) |
|
|
10385 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10386 | ;; |
|
|
10387 | esac |
|
|
10388 | ;; |
|
|
10389 | *) |
|
|
10390 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10391 | ;; |
|
|
10392 | esac |
|
|
10393 | else |
|
|
10394 | case $host_os in |
|
|
10395 | aix4* | aix5*) |
|
|
10396 | # All AIX code is PIC. |
|
|
10397 | if test "$host_cpu" = ia64; then |
|
|
10398 | # AIX 5 now supports IA64 processor |
|
|
10399 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10400 | else |
|
|
10401 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
|
|
10402 | fi |
|
|
10403 | ;; |
|
|
10404 | chorus*) |
|
|
10405 | case $cc_basename in |
|
|
10406 | cxch68) |
|
|
10407 | # Green Hills C++ Compiler |
|
|
10408 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
|
|
10409 | ;; |
|
|
10410 | esac |
|
|
10411 | ;; |
|
|
10412 | dgux*) |
|
|
10413 | case $cc_basename in |
|
|
10414 | ec++) |
|
|
10415 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10416 | ;; |
|
|
10417 | ghcx) |
|
|
10418 | # Green Hills C++ Compiler |
|
|
10419 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10420 | ;; |
|
|
10421 | *) |
|
|
10422 | ;; |
|
|
10423 | esac |
|
|
10424 | ;; |
|
|
10425 | freebsd* | kfreebsd*-gnu) |
|
|
10426 | # FreeBSD uses GNU C++ |
|
|
10427 | ;; |
|
|
10428 | hpux9* | hpux10* | hpux11*) |
|
|
10429 | case $cc_basename in |
|
|
10430 | CC) |
|
|
10431 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10432 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
|
|
10433 | if test "$host_cpu" != ia64; then |
|
|
10434 | lt_prog_compiler_pic_CXX='+Z' |
|
|
10435 | fi |
|
|
10436 | ;; |
|
|
10437 | aCC) |
|
|
10438 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10439 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
|
|
10440 | case "$host_cpu" in |
|
|
10441 | hppa*64*|ia64*) |
|
|
10442 | # +Z the default |
|
|
10443 | ;; |
|
|
10444 | *) |
|
|
10445 | lt_prog_compiler_pic_CXX='+Z' |
|
|
10446 | ;; |
|
|
10447 | esac |
|
|
10448 | ;; |
|
|
10449 | *) |
|
|
10450 | ;; |
|
|
10451 | esac |
|
|
10452 | ;; |
|
|
10453 | irix5* | irix6* | nonstopux*) |
|
|
10454 | case $cc_basename in |
|
|
10455 | CC) |
|
|
10456 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10457 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10458 | # CC pic flag -KPIC is the default. |
|
|
10459 | ;; |
|
|
10460 | *) |
|
|
10461 | ;; |
|
|
10462 | esac |
|
|
10463 | ;; |
|
|
10464 | linux*) |
|
|
10465 | case $cc_basename in |
|
|
10466 | KCC) |
|
|
10467 | # KAI C++ Compiler |
|
|
10468 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
|
10469 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10470 | ;; |
|
|
10471 | icpc) |
|
|
10472 | # Intel C++ |
|
|
10473 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10474 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10475 | lt_prog_compiler_static_CXX='-static' |
|
|
10476 | ;; |
|
|
10477 | cxx) |
|
|
10478 | # Compaq C++ |
|
|
10479 | # Make sure the PIC flag is empty. It appears that all Alpha |
|
|
10480 | # Linux and Compaq Tru64 Unix objects are PIC. |
|
|
10481 | lt_prog_compiler_pic_CXX= |
|
|
10482 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10483 | ;; |
|
|
10484 | *) |
|
|
10485 | ;; |
|
|
10486 | esac |
|
|
10487 | ;; |
|
|
10488 | lynxos*) |
|
|
10489 | ;; |
|
|
10490 | m88k*) |
|
|
10491 | ;; |
|
|
10492 | mvs*) |
|
|
10493 | case $cc_basename in |
|
|
10494 | cxx) |
|
|
10495 | lt_prog_compiler_pic_CXX='-W c,exportall' |
|
|
10496 | ;; |
|
|
10497 | *) |
|
|
10498 | ;; |
|
|
10499 | esac |
|
|
10500 | ;; |
|
|
10501 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
10502 | ;; |
|
|
10503 | osf3* | osf4* | osf5*) |
|
|
10504 | case $cc_basename in |
|
|
10505 | KCC) |
|
|
10506 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
|
10507 | ;; |
|
|
10508 | RCC) |
|
|
10509 | # Rational C++ 2.4.1 |
|
|
10510 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10511 | ;; |
|
|
10512 | cxx) |
|
|
10513 | # Digital/Compaq C++ |
|
|
10514 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10515 | # Make sure the PIC flag is empty. It appears that all Alpha |
|
|
10516 | # Linux and Compaq Tru64 Unix objects are PIC. |
|
|
10517 | lt_prog_compiler_pic_CXX= |
|
|
10518 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10519 | ;; |
|
|
10520 | *) |
|
|
10521 | ;; |
|
|
10522 | esac |
|
|
10523 | ;; |
|
|
10524 | psos*) |
|
|
10525 | ;; |
|
|
10526 | sco*) |
|
|
10527 | case $cc_basename in |
|
|
10528 | CC) |
|
|
10529 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10530 | ;; |
|
|
10531 | *) |
|
|
10532 | ;; |
|
|
10533 | esac |
|
|
10534 | ;; |
|
|
10535 | solaris*) |
|
|
10536 | case $cc_basename in |
|
|
10537 | CC) |
|
|
10538 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
10539 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10540 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10541 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
|
10542 | ;; |
|
|
10543 | gcx) |
|
|
10544 | # Green Hills C++ Compiler |
|
|
10545 | lt_prog_compiler_pic_CXX='-PIC' |
|
|
10546 | ;; |
|
|
10547 | *) |
|
|
10548 | ;; |
|
|
10549 | esac |
|
|
10550 | ;; |
|
|
10551 | sunos4*) |
|
|
10552 | case $cc_basename in |
|
|
10553 | CC) |
|
|
10554 | # Sun C++ 4.x |
|
|
10555 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10556 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10557 | ;; |
|
|
10558 | lcc) |
|
|
10559 | # Lucid |
|
|
10560 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10561 | ;; |
|
|
10562 | *) |
|
|
10563 | ;; |
|
|
10564 | esac |
|
|
10565 | ;; |
|
|
10566 | tandem*) |
|
|
10567 | case $cc_basename in |
|
|
10568 | NCC) |
|
|
10569 | # NonStop-UX NCC 3.20 |
|
|
10570 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10571 | ;; |
|
|
10572 | *) |
|
|
10573 | ;; |
|
|
10574 | esac |
|
|
10575 | ;; |
|
|
10576 | unixware*) |
|
|
10577 | ;; |
|
|
10578 | vxworks*) |
|
|
10579 | ;; |
|
|
10580 | *) |
|
|
10581 | lt_prog_compiler_can_build_shared_CXX=no |
|
|
10582 | ;; |
|
|
10583 | esac |
|
|
10584 | fi |
|
|
10585 | |
|
|
10586 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
|
|
10587 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
|
|
10588 | |
|
|
10589 | # |
|
|
10590 | # Check to make sure the PIC flag actually works. |
|
|
10591 | # |
|
|
10592 | if test -n "$lt_prog_compiler_pic_CXX"; then |
|
|
10593 | |
|
|
10594 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
|
|
10595 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
|
|
10596 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
|
|
10597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10598 | else |
|
|
10599 | lt_prog_compiler_pic_works_CXX=no |
|
|
10600 | ac_outfile=conftest.$ac_objext |
|
|
10601 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
10602 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
|
|
10603 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
10604 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
10605 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
10606 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
10607 | # The option is referenced via a variable to avoid confusing sed. |
|
|
10608 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
10609 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
|
10610 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
10611 | -e 's:$: $lt_compiler_flag:'` |
|
|
10612 | (eval echo "\"\$as_me:10612: $lt_compile\"" >&5) |
|
|
10613 | (eval "$lt_compile" 2>conftest.err) |
|
|
10614 | ac_status=$? |
|
|
10615 | cat conftest.err >&5 |
|
|
10616 | echo "$as_me:10616: \$? = $ac_status" >&5 |
|
|
10617 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
10618 | # The compiler can only warn and ignore the option if not recognized |
|
|
10619 | # So say no if there are warnings |
|
|
10620 | if test ! -s conftest.err; then |
|
|
10621 | lt_prog_compiler_pic_works_CXX=yes |
|
|
10622 | fi |
|
|
10623 | fi |
|
|
10624 | $rm conftest* |
|
|
10625 | |
|
|
10626 | fi |
|
|
10627 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
|
|
10628 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
|
|
10629 | |
|
|
10630 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
|
|
10631 | case $lt_prog_compiler_pic_CXX in |
|
|
10632 | "" | " "*) ;; |
|
|
10633 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
|
|
10634 | esac |
|
|
10635 | else |
|
|
10636 | lt_prog_compiler_pic_CXX= |
|
|
10637 | lt_prog_compiler_can_build_shared_CXX=no |
|
|
10638 | fi |
|
|
10639 | |
|
|
10640 | fi |
|
|
10641 | case "$host_os" in |
|
|
10642 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
10643 | *djgpp*) |
|
|
10644 | lt_prog_compiler_pic_CXX= |
|
|
10645 | ;; |
|
|
10646 | *) |
|
|
10647 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
|
|
10648 | ;; |
|
|
10649 | esac |
|
|
10650 | |
|
|
10651 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
10652 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
10653 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
|
|
10654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10655 | else |
|
|
10656 | lt_cv_prog_compiler_c_o_CXX=no |
|
|
10657 | $rm -r conftest 2>/dev/null |
|
|
10658 | mkdir conftest |
|
|
10659 | cd conftest |
|
|
10660 | mkdir out |
|
|
10661 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
10662 | |
|
|
10663 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
10664 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
10665 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
10666 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
10667 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
10668 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
10669 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
|
10670 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
10671 | -e 's:$: $lt_compiler_flag:'` |
|
|
10672 | (eval echo "\"\$as_me:10672: $lt_compile\"" >&5) |
|
|
10673 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
10674 | ac_status=$? |
|
|
10675 | cat out/conftest.err >&5 |
|
|
10676 | echo "$as_me:10676: \$? = $ac_status" >&5 |
|
|
10677 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
10678 | then |
|
|
10679 | # The compiler can only warn and ignore the option if not recognized |
|
|
10680 | # So say no if there are warnings |
|
|
10681 | if test ! -s out/conftest.err; then |
|
|
10682 | lt_cv_prog_compiler_c_o_CXX=yes |
|
|
10683 | fi |
|
|
10684 | fi |
|
|
10685 | chmod u+w . |
|
|
10686 | $rm conftest* |
|
|
10687 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
10688 | # template instantiation |
|
|
10689 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
10690 | $rm out/* && rmdir out |
|
|
10691 | cd .. |
|
|
10692 | rmdir conftest |
|
|
10693 | $rm conftest* |
|
|
10694 | |
|
|
10695 | fi |
|
|
10696 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
|
|
10697 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
|
|
10698 | |
|
|
10699 | |
|
|
10700 | hard_links="nottested" |
|
|
10701 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
|
|
10702 | # do not overwrite the value of need_locks provided by the user |
|
|
10703 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
10704 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
10705 | hard_links=yes |
|
|
10706 | $rm conftest* |
|
|
10707 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
10708 | touch conftest.a |
|
|
10709 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
10710 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
10711 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
10712 | echo "${ECHO_T}$hard_links" >&6 |
|
|
10713 | if test "$hard_links" = no; then |
|
|
10714 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
10715 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
10716 | need_locks=warn |
|
|
10717 | fi |
|
|
10718 | else |
|
|
10719 | need_locks=no |
|
|
10720 | fi |
|
|
10721 | |
|
|
10722 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
10723 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
10724 | |
|
|
10725 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
10726 | case $host_os in |
|
|
10727 | aix4* | aix5*) |
|
|
10728 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
10729 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
10730 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
10731 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
10732 | else |
|
|
10733 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
10734 | fi |
|
|
10735 | ;; |
|
|
10736 | pw32*) |
|
|
10737 | export_symbols_cmds_CXX="$ltdll_cmds" |
|
|
10738 | ;; |
|
|
10739 | cygwin* | mingw*) |
|
|
10740 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
10741 | ;; |
|
|
10742 | linux*) |
|
|
10743 | link_all_deplibs_CXX=no |
|
|
10744 | ;; |
|
|
10745 | *) |
|
|
10746 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
10747 | ;; |
|
|
10748 | esac |
|
|
10749 | |
|
|
10750 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
|
10751 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
|
10752 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
|
10753 | |
|
|
10754 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
10755 | if test "$GCC" = yes; then |
|
|
10756 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
10757 | fi |
|
|
10758 | |
|
|
10759 | # |
|
|
10760 | # Do we need to explicitly link libc? |
|
|
10761 | # |
|
|
10762 | case "x$archive_cmds_need_lc_CXX" in |
|
|
10763 | x|xyes) |
|
|
10764 | # Assume -lc should be added |
|
|
10765 | archive_cmds_need_lc_CXX=yes |
|
|
10766 | |
|
|
10767 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
10768 | case $archive_cmds_CXX in |
|
|
10769 | *'~'*) |
|
|
10770 | # FIXME: we may have to deal with multi-command sequences. |
|
|
10771 | ;; |
|
|
10772 | '$CC '*) |
|
|
10773 | # Test whether the compiler implicitly links with -lc since on some |
|
|
10774 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
10775 | # to ld, don't add -lc before -lgcc. |
|
|
10776 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
10777 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
10778 | $rm conftest* |
|
|
10779 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
10780 | |
|
|
10781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10782 | (eval $ac_compile) 2>&5 |
|
|
10783 | ac_status=$? |
|
|
10784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10785 | (exit $ac_status); } 2>conftest.err; then |
|
|
10786 | soname=conftest |
|
|
10787 | lib=conftest |
|
|
10788 | libobjs=conftest.$ac_objext |
|
|
10789 | deplibs= |
|
|
10790 | wl=$lt_prog_compiler_wl_CXX |
|
|
10791 | compiler_flags=-v |
|
|
10792 | linker_flags=-v |
|
|
10793 | verstring= |
|
|
10794 | output_objdir=. |
|
|
10795 | libname=conftest |
|
|
10796 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
|
|
10797 | allow_undefined_flag_CXX= |
|
|
10798 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
10799 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
10800 | ac_status=$? |
|
|
10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10802 | (exit $ac_status); } |
|
|
10803 | then |
|
|
10804 | archive_cmds_need_lc_CXX=no |
|
|
10805 | else |
|
|
10806 | archive_cmds_need_lc_CXX=yes |
|
|
10807 | fi |
|
|
10808 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
|
|
10809 | else |
|
|
10810 | cat conftest.err 1>&5 |
|
|
10811 | fi |
|
|
10812 | $rm conftest* |
|
|
10813 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
|
|
10814 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
|
|
10815 | ;; |
|
|
10816 | esac |
|
|
10817 | fi |
|
|
10818 | ;; |
|
|
10819 | esac |
|
|
10820 | |
|
|
10821 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
10822 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
10823 | library_names_spec= |
|
|
10824 | libname_spec='lib$name' |
|
|
10825 | soname_spec= |
|
|
10826 | shrext_cmds=".so" |
|
|
10827 | postinstall_cmds= |
|
|
10828 | postuninstall_cmds= |
|
|
10829 | finish_cmds= |
|
|
10830 | finish_eval= |
|
|
10831 | shlibpath_var= |
|
|
10832 | shlibpath_overrides_runpath=unknown |
|
|
10833 | version_type=none |
|
|
10834 | dynamic_linker="$host_os ld.so" |
|
|
10835 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
10836 | if test "$GCC" = yes; then |
|
|
10837 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
10838 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
10839 | # if the path contains ";" then we assume it to be the separator |
|
|
10840 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
10841 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
10842 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
10843 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
10844 | else |
|
|
10845 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
10846 | fi |
|
|
10847 | else |
|
|
10848 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
10849 | fi |
|
|
10850 | need_lib_prefix=unknown |
|
|
10851 | hardcode_into_libs=no |
|
|
10852 | |
|
|
10853 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
10854 | # flags to be left without arguments |
|
|
10855 | need_version=unknown |
|
|
10856 | |
|
|
10857 | case $host_os in |
|
|
10858 | aix3*) |
|
|
10859 | version_type=linux |
|
|
10860 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
10861 | shlibpath_var=LIBPATH |
|
|
10862 | |
|
|
10863 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
10864 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
10865 | ;; |
|
|
10866 | |
|
|
10867 | aix4* | aix5*) |
|
|
10868 | version_type=linux |
|
|
10869 | need_lib_prefix=no |
|
|
10870 | need_version=no |
|
|
10871 | hardcode_into_libs=yes |
|
|
10872 | if test "$host_cpu" = ia64; then |
|
|
10873 | # AIX 5 supports IA64 |
|
|
10874 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
10875 | shlibpath_var=LD_LIBRARY_PATH |
|
|
10876 | else |
|
|
10877 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
10878 | # for dependence libraries. The import file would start with |
|
|
10879 | # the line `#! .'. This would cause the generated library to |
|
|
10880 | # depend on `.', always an invalid library. This was fixed in |
|
|
10881 | # development snapshots of GCC prior to 3.0. |
|
|
10882 | case $host_os in |
|
|
10883 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
10884 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
10885 | echo ' yes ' |
|
|
10886 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
10887 | : |
|
|
10888 | else |
|
|
10889 | can_build_shared=no |
|
|
10890 | fi |
|
|
10891 | ;; |
|
|
10892 | esac |
|
|
10893 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
10894 | # soname into executable. Probably we can add versioning support to |
|
|
10895 | # collect2, so additional links can be useful in future. |
|
|
10896 | if test "$aix_use_runtimelinking" = yes; then |
|
|
10897 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
10898 | # instead of lib<name>.a to let people know that these are not |
|
|
10899 | # typical AIX shared libraries. |
|
|
10900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
10901 | else |
|
|
10902 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
10903 | # and later when we are not doing run time linking. |
|
|
10904 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
10905 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
10906 | fi |
|
|
10907 | shlibpath_var=LIBPATH |
|
|
10908 | fi |
|
|
10909 | ;; |
|
|
10910 | |
|
|
10911 | amigaos*) |
|
|
10912 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
10913 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
10914 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
|
10915 | ;; |
|
|
10916 | |
|
|
10917 | beos*) |
|
|
10918 | library_names_spec='${libname}${shared_ext}' |
|
|
10919 | dynamic_linker="$host_os ld.so" |
|
|
10920 | shlibpath_var=LIBRARY_PATH |
|
|
10921 | ;; |
|
|
10922 | |
|
|
10923 | bsdi4*) |
|
|
10924 | version_type=linux |
|
|
10925 | need_version=no |
|
|
10926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
10927 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
10928 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
10929 | shlibpath_var=LD_LIBRARY_PATH |
|
|
10930 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
10931 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
10932 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
10933 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
10934 | # libtool to hard-code these into programs |
|
|
10935 | ;; |
|
|
10936 | |
|
|
10937 | cygwin* | mingw* | pw32*) |
|
|
10938 | version_type=windows |
|
|
10939 | shrext_cmds=".dll" |
|
|
10940 | need_version=no |
|
|
10941 | need_lib_prefix=no |
|
|
10942 | |
|
|
10943 | case $GCC,$host_os in |
|
|
10944 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
10945 | library_names_spec='$libname.dll.a' |
|
|
10946 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
10947 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
10948 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
10949 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
10950 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
10951 | $install_prog $dir/$dlname \$dldir/$dlname' |
|
|
10952 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
10953 | dlpath=$dir/\$dldll~ |
|
|
10954 | $rm \$dlpath' |
|
|
10955 | shlibpath_overrides_runpath=yes |
|
|
10956 | |
|
|
10957 | case $host_os in |
|
|
10958 | cygwin*) |
|
|
10959 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
10960 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
10961 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
10962 | ;; |
|
|
10963 | mingw*) |
|
|
10964 | # MinGW DLLs use traditional 'lib' prefix |
|
|
10965 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
10966 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
10967 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
10968 | # It is most probably a Windows format PATH printed by |
|
|
10969 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
10970 | # path with ; separators, and with drive letters. We can handle the |
|
|
10971 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
10972 | # especially as we might pass files found there to a mingw objdump, |
|
|
10973 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
10974 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
10975 | else |
|
|
10976 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
10977 | fi |
|
|
10978 | ;; |
|
|
10979 | pw32*) |
|
|
10980 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
10981 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
|
10982 | ;; |
|
|
10983 | esac |
|
|
10984 | ;; |
|
|
10985 | |
|
|
10986 | *) |
|
|
10987 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
10988 | ;; |
|
|
10989 | esac |
|
|
10990 | dynamic_linker='Win32 ld.exe' |
|
|
10991 | # FIXME: first we should search . and the directory the executable is in |
|
|
10992 | shlibpath_var=PATH |
|
|
10993 | ;; |
|
|
10994 | |
|
|
10995 | darwin* | rhapsody*) |
|
|
10996 | dynamic_linker="$host_os dyld" |
|
|
10997 | version_type=darwin |
|
|
10998 | need_lib_prefix=no |
|
|
10999 | need_version=no |
|
|
11000 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
11001 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
11002 | shlibpath_overrides_runpath=yes |
|
|
11003 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
11004 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
|
|
11005 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
11006 | if test "$GCC" = yes; then |
|
|
11007 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
11008 | else |
|
|
11009 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
11010 | fi |
|
|
11011 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
11012 | ;; |
|
|
11013 | |
|
|
11014 | dgux*) |
|
|
11015 | version_type=linux |
|
|
11016 | need_lib_prefix=no |
|
|
11017 | need_version=no |
|
|
11018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
11019 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11020 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11021 | ;; |
|
|
11022 | |
|
|
11023 | freebsd1*) |
|
|
11024 | dynamic_linker=no |
|
|
11025 | ;; |
|
|
11026 | |
|
|
11027 | kfreebsd*-gnu) |
|
|
11028 | version_type=linux |
|
|
11029 | need_lib_prefix=no |
|
|
11030 | need_version=no |
|
|
11031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11032 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11033 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11034 | shlibpath_overrides_runpath=no |
|
|
11035 | hardcode_into_libs=yes |
|
|
11036 | dynamic_linker='GNU ld.so' |
|
|
11037 | ;; |
|
|
11038 | |
|
|
11039 | freebsd*) |
|
|
11040 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
11041 | version_type=freebsd-$objformat |
|
|
11042 | case $version_type in |
|
|
11043 | freebsd-elf*) |
|
|
11044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
11045 | need_version=no |
|
|
11046 | need_lib_prefix=no |
|
|
11047 | ;; |
|
|
11048 | freebsd-*) |
|
|
11049 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
11050 | need_version=yes |
|
|
11051 | ;; |
|
|
11052 | esac |
|
|
11053 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11054 | case $host_os in |
|
|
11055 | freebsd2*) |
|
|
11056 | shlibpath_overrides_runpath=yes |
|
|
11057 | ;; |
|
|
11058 | freebsd3.01* | freebsdelf3.01*) |
|
|
11059 | shlibpath_overrides_runpath=yes |
|
|
11060 | hardcode_into_libs=yes |
|
|
11061 | ;; |
|
|
11062 | *) # from 3.2 on |
|
|
11063 | shlibpath_overrides_runpath=no |
|
|
11064 | hardcode_into_libs=yes |
|
|
11065 | ;; |
|
|
11066 | esac |
|
|
11067 | ;; |
|
|
11068 | |
|
|
11069 | gnu*) |
|
|
11070 | version_type=linux |
|
|
11071 | need_lib_prefix=no |
|
|
11072 | need_version=no |
|
|
11073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
11074 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11075 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11076 | hardcode_into_libs=yes |
|
|
11077 | ;; |
|
|
11078 | |
|
|
11079 | hpux9* | hpux10* | hpux11*) |
|
|
11080 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
11081 | # link against other versions. |
|
|
11082 | version_type=sunos |
|
|
11083 | need_lib_prefix=no |
|
|
11084 | need_version=no |
|
|
11085 | case "$host_cpu" in |
|
|
11086 | ia64*) |
|
|
11087 | shrext_cmds='.so' |
|
|
11088 | hardcode_into_libs=yes |
|
|
11089 | dynamic_linker="$host_os dld.so" |
|
|
11090 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11091 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
11092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11093 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11094 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
11095 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
11096 | else |
|
|
11097 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
11098 | fi |
|
|
11099 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
11100 | ;; |
|
|
11101 | hppa*64*) |
|
|
11102 | shrext_cmds='.sl' |
|
|
11103 | hardcode_into_libs=yes |
|
|
11104 | dynamic_linker="$host_os dld.sl" |
|
|
11105 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
11106 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
11107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11108 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11109 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
11110 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
11111 | ;; |
|
|
11112 | *) |
|
|
11113 | shrext_cmds='.sl' |
|
|
11114 | dynamic_linker="$host_os dld.sl" |
|
|
11115 | shlibpath_var=SHLIB_PATH |
|
|
11116 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
11117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11118 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11119 | ;; |
|
|
11120 | esac |
|
|
11121 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
11122 | postinstall_cmds='chmod 555 $lib' |
|
|
11123 | ;; |
|
|
11124 | |
|
|
11125 | irix5* | irix6* | nonstopux*) |
|
|
11126 | case $host_os in |
|
|
11127 | nonstopux*) version_type=nonstopux ;; |
|
|
11128 | *) |
|
|
11129 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
11130 | version_type=linux |
|
|
11131 | else |
|
|
11132 | version_type=irix |
|
|
11133 | fi ;; |
|
|
11134 | esac |
|
|
11135 | need_lib_prefix=no |
|
|
11136 | need_version=no |
|
|
11137 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
11139 | case $host_os in |
|
|
11140 | irix5* | nonstopux*) |
|
|
11141 | libsuff= shlibsuff= |
|
|
11142 | ;; |
|
|
11143 | *) |
|
|
11144 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
11145 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
11146 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
11147 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
11148 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
11149 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
11150 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
11151 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
11152 | esac |
|
|
11153 | ;; |
|
|
11154 | esac |
|
|
11155 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
11156 | shlibpath_overrides_runpath=no |
|
|
11157 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
11158 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
11159 | hardcode_into_libs=yes |
|
|
11160 | ;; |
|
|
11161 | |
|
|
11162 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
11163 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
11164 | dynamic_linker=no |
|
|
11165 | ;; |
|
|
11166 | |
|
|
11167 | # This must be Linux ELF. |
|
|
11168 | linux*) |
|
|
11169 | version_type=linux |
|
|
11170 | need_lib_prefix=no |
|
|
11171 | need_version=no |
|
|
11172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11173 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11174 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
11175 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11176 | shlibpath_overrides_runpath=no |
|
|
11177 | # This implies no fast_install, which is unacceptable. |
|
|
11178 | # Some rework will be needed to allow for fast_install |
|
|
11179 | # before this can be enabled. |
|
|
11180 | hardcode_into_libs=yes |
|
|
11181 | |
|
|
11182 | # Append ld.so.conf contents to the search path |
|
|
11183 | if test -f /etc/ld.so.conf; then |
|
|
11184 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
|
|
11185 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
11186 | fi |
|
|
11187 | |
|
|
11188 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
11189 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
11190 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
11191 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
11192 | # people can always --disable-shared, the test was removed, and we |
|
|
11193 | # assume the GNU/Linux dynamic linker is in use. |
|
|
11194 | dynamic_linker='GNU/Linux ld.so' |
|
|
11195 | ;; |
|
|
11196 | |
|
|
11197 | netbsdelf*-gnu) |
|
|
11198 | version_type=linux |
|
|
11199 | need_lib_prefix=no |
|
|
11200 | need_version=no |
|
|
11201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11202 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11203 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11204 | shlibpath_overrides_runpath=no |
|
|
11205 | hardcode_into_libs=yes |
|
|
11206 | dynamic_linker='NetBSD ld.elf_so' |
|
|
11207 | ;; |
|
|
11208 | |
|
|
11209 | knetbsd*-gnu) |
|
|
11210 | version_type=linux |
|
|
11211 | need_lib_prefix=no |
|
|
11212 | need_version=no |
|
|
11213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11214 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11215 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11216 | shlibpath_overrides_runpath=no |
|
|
11217 | hardcode_into_libs=yes |
|
|
11218 | dynamic_linker='GNU ld.so' |
|
|
11219 | ;; |
|
|
11220 | |
|
|
11221 | netbsd*) |
|
|
11222 | version_type=sunos |
|
|
11223 | need_lib_prefix=no |
|
|
11224 | need_version=no |
|
|
11225 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
11226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11227 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
11228 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
11229 | else |
|
|
11230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11231 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11232 | dynamic_linker='NetBSD ld.elf_so' |
|
|
11233 | fi |
|
|
11234 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11235 | shlibpath_overrides_runpath=yes |
|
|
11236 | hardcode_into_libs=yes |
|
|
11237 | ;; |
|
|
11238 | |
|
|
11239 | newsos6) |
|
|
11240 | version_type=linux |
|
|
11241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11242 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11243 | shlibpath_overrides_runpath=yes |
|
|
11244 | ;; |
|
|
11245 | |
|
|
11246 | nto-qnx*) |
|
|
11247 | version_type=linux |
|
|
11248 | need_lib_prefix=no |
|
|
11249 | need_version=no |
|
|
11250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11251 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11252 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11253 | shlibpath_overrides_runpath=yes |
|
|
11254 | ;; |
|
|
11255 | |
|
|
11256 | openbsd*) |
|
|
11257 | version_type=sunos |
|
|
11258 | need_lib_prefix=no |
|
|
11259 | need_version=yes |
|
|
11260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11261 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
11262 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11263 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
11264 | case $host_os in |
|
|
11265 | openbsd2.[89] | openbsd2.[89].*) |
|
|
11266 | shlibpath_overrides_runpath=no |
|
|
11267 | ;; |
|
|
11268 | *) |
|
|
11269 | shlibpath_overrides_runpath=yes |
|
|
11270 | ;; |
|
|
11271 | esac |
|
|
11272 | else |
|
|
11273 | shlibpath_overrides_runpath=yes |
|
|
11274 | fi |
|
|
11275 | ;; |
|
|
11276 | |
|
|
11277 | os2*) |
|
|
11278 | libname_spec='$name' |
|
|
11279 | shrext_cmds=".dll" |
|
|
11280 | need_lib_prefix=no |
|
|
11281 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
11282 | dynamic_linker='OS/2 ld.exe' |
|
|
11283 | shlibpath_var=LIBPATH |
|
|
11284 | ;; |
|
|
11285 | |
|
|
11286 | osf3* | osf4* | osf5*) |
|
|
11287 | version_type=osf |
|
|
11288 | need_lib_prefix=no |
|
|
11289 | need_version=no |
|
|
11290 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11292 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11293 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
11294 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
11295 | ;; |
|
|
11296 | |
|
|
11297 | sco3.2v5*) |
|
|
11298 | version_type=osf |
|
|
11299 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11301 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11302 | ;; |
|
|
11303 | |
|
|
11304 | solaris*) |
|
|
11305 | version_type=linux |
|
|
11306 | need_lib_prefix=no |
|
|
11307 | need_version=no |
|
|
11308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11309 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11310 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11311 | shlibpath_overrides_runpath=yes |
|
|
11312 | hardcode_into_libs=yes |
|
|
11313 | # ldd complains unless libraries are executable |
|
|
11314 | postinstall_cmds='chmod +x $lib' |
|
|
11315 | ;; |
|
|
11316 | |
|
|
11317 | sunos4*) |
|
|
11318 | version_type=sunos |
|
|
11319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11320 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
11321 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11322 | shlibpath_overrides_runpath=yes |
|
|
11323 | if test "$with_gnu_ld" = yes; then |
|
|
11324 | need_lib_prefix=no |
|
|
11325 | fi |
|
|
11326 | need_version=yes |
|
|
11327 | ;; |
|
|
11328 | |
|
|
11329 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
11330 | version_type=linux |
|
|
11331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11332 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11333 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11334 | case $host_vendor in |
|
|
11335 | sni) |
|
|
11336 | shlibpath_overrides_runpath=no |
|
|
11337 | need_lib_prefix=no |
|
|
11338 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
11339 | runpath_var=LD_RUN_PATH |
|
|
11340 | ;; |
|
|
11341 | siemens) |
|
|
11342 | need_lib_prefix=no |
|
|
11343 | ;; |
|
|
11344 | motorola) |
|
|
11345 | need_lib_prefix=no |
|
|
11346 | need_version=no |
|
|
11347 | shlibpath_overrides_runpath=no |
|
|
11348 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
11349 | ;; |
|
|
11350 | esac |
|
|
11351 | ;; |
|
|
11352 | |
|
|
11353 | sysv4*MP*) |
|
|
11354 | if test -d /usr/nec ;then |
|
|
11355 | version_type=linux |
|
|
11356 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
11357 | soname_spec='$libname${shared_ext}.$major' |
|
|
11358 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11359 | fi |
|
|
11360 | ;; |
|
|
11361 | |
|
|
11362 | uts4*) |
|
|
11363 | version_type=linux |
|
|
11364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11365 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11366 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11367 | ;; |
|
|
11368 | |
|
|
11369 | *) |
|
|
11370 | dynamic_linker=no |
|
|
11371 | ;; |
|
|
11372 | esac |
|
|
11373 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
11374 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
11375 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
11376 | |
|
|
11377 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
11378 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
11379 | hardcode_action_CXX= |
|
|
11380 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
|
|
11381 | test -n "$runpath_var CXX" || \ |
|
|
11382 | test "X$hardcode_automatic_CXX"="Xyes" ; then |
|
|
11383 | |
|
|
11384 | # We can hardcode non-existant directories. |
|
|
11385 | if test "$hardcode_direct_CXX" != no && |
|
|
11386 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
11387 | # have to relink, otherwise we might link with an installed library |
|
|
11388 | # when we should be linking with a yet-to-be-installed one |
|
|
11389 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
|
|
11390 | test "$hardcode_minus_L_CXX" != no; then |
|
|
11391 | # Linking always hardcodes the temporary library directory. |
|
|
11392 | hardcode_action_CXX=relink |
|
|
11393 | else |
|
|
11394 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
11395 | hardcode_action_CXX=immediate |
|
|
11396 | fi |
|
|
11397 | else |
|
|
11398 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
11399 | # directories. |
|
|
11400 | hardcode_action_CXX=unsupported |
|
|
11401 | fi |
|
|
11402 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
|
|
11403 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
|
|
11404 | |
|
|
11405 | if test "$hardcode_action_CXX" = relink; then |
|
|
11406 | # Fast installation is not supported |
|
|
11407 | enable_fast_install=no |
|
|
11408 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
11409 | test "$enable_shared" = no; then |
|
|
11410 | # Fast installation is not necessary |
|
|
11411 | enable_fast_install=needless |
|
|
11412 | fi |
|
|
11413 | |
|
|
11414 | striplib= |
|
|
11415 | old_striplib= |
|
|
11416 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
11417 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
11418 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
11419 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
11420 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
11421 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
11422 | echo "${ECHO_T}yes" >&6 |
|
|
11423 | else |
|
|
11424 | # FIXME - insert some real tests, host_os isn't really good enough |
|
|
11425 | case $host_os in |
|
|
11426 | darwin*) |
|
|
11427 | if test -n "$STRIP" ; then |
|
|
11428 | striplib="$STRIP -x" |
|
|
11429 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
11430 | echo "${ECHO_T}yes" >&6 |
|
|
11431 | else |
|
|
11432 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
11433 | echo "${ECHO_T}no" >&6 |
|
|
11434 | fi |
|
|
11435 | ;; |
|
|
11436 | *) |
|
|
11437 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
11438 | echo "${ECHO_T}no" >&6 |
|
|
11439 | ;; |
|
|
11440 | esac |
|
|
11441 | fi |
|
|
11442 | |
|
|
11443 | if test "x$enable_dlopen" != xyes; then |
|
|
11444 | enable_dlopen=unknown |
|
|
11445 | enable_dlopen_self=unknown |
|
|
11446 | enable_dlopen_self_static=unknown |
|
|
11447 | else |
|
|
11448 | lt_cv_dlopen=no |
|
|
11449 | lt_cv_dlopen_libs= |
|
|
11450 | |
|
|
11451 | case $host_os in |
|
|
11452 | beos*) |
|
|
11453 | lt_cv_dlopen="load_add_on" |
|
|
11454 | lt_cv_dlopen_libs= |
|
|
11455 | lt_cv_dlopen_self=yes |
|
|
11456 | ;; |
|
|
11457 | |
|
|
11458 | mingw* | pw32*) |
|
|
11459 | lt_cv_dlopen="LoadLibrary" |
|
|
11460 | lt_cv_dlopen_libs= |
|
|
11461 | ;; |
|
|
11462 | |
|
|
11463 | cygwin*) |
|
|
11464 | lt_cv_dlopen="dlopen" |
|
|
11465 | lt_cv_dlopen_libs= |
|
|
11466 | ;; |
|
|
11467 | |
|
|
11468 | darwin*) |
|
|
11469 | # if libdl is installed we need to link against it |
|
|
11470 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
11471 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
11472 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
11473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11474 | else |
|
|
11475 | ac_check_lib_save_LIBS=$LIBS |
|
|
11476 | LIBS="-ldl $LIBS" |
|
|
11477 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11478 | /* confdefs.h. */ |
|
|
11479 | _ACEOF |
|
|
11480 | cat confdefs.h >>conftest.$ac_ext |
|
|
11481 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11482 | /* end confdefs.h. */ |
|
|
11483 | |
|
|
11484 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11485 | #ifdef __cplusplus |
|
|
11486 | extern "C" |
|
|
11487 | #endif |
|
|
11488 | /* We use char because int might match the return type of a gcc2 |
|
|
11489 | builtin and then its argument prototype would still apply. */ |
|
|
11490 | char dlopen (); |
|
|
11491 | int |
|
|
11492 | main () |
|
|
11493 | { |
|
|
11494 | dlopen (); |
|
|
11495 | ; |
|
|
11496 | return 0; |
|
|
11497 | } |
|
|
11498 | _ACEOF |
|
|
11499 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11501 | (eval $ac_link) 2>conftest.er1 |
|
|
11502 | ac_status=$? |
|
|
11503 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11504 | rm -f conftest.er1 |
|
|
11505 | cat conftest.err >&5 |
|
|
11506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11507 | (exit $ac_status); } && |
|
|
11508 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11510 | (eval $ac_try) 2>&5 |
|
|
11511 | ac_status=$? |
|
|
11512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11513 | (exit $ac_status); }; } && |
|
|
11514 | { ac_try='test -s conftest$ac_exeext' |
|
|
11515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11516 | (eval $ac_try) 2>&5 |
|
|
11517 | ac_status=$? |
|
|
11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11519 | (exit $ac_status); }; }; then |
|
|
11520 | ac_cv_lib_dl_dlopen=yes |
|
|
11521 | else |
|
|
11522 | echo "$as_me: failed program was:" >&5 |
|
|
11523 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11524 | |
|
|
11525 | ac_cv_lib_dl_dlopen=no |
|
|
11526 | fi |
|
|
11527 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11528 | conftest$ac_exeext conftest.$ac_ext |
|
|
11529 | LIBS=$ac_check_lib_save_LIBS |
|
|
11530 | fi |
|
|
11531 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
11532 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
11533 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
11534 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
11535 | else |
|
|
11536 | |
|
|
11537 | lt_cv_dlopen="dyld" |
|
|
11538 | lt_cv_dlopen_libs= |
|
|
11539 | lt_cv_dlopen_self=yes |
|
|
11540 | |
|
|
11541 | fi |
|
|
11542 | |
|
|
11543 | ;; |
|
|
11544 | |
|
|
11545 | *) |
|
|
11546 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
|
11547 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
|
11548 | if test "${ac_cv_func_shl_load+set}" = set; then |
|
|
11549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11550 | else |
|
|
11551 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11552 | /* confdefs.h. */ |
|
|
11553 | _ACEOF |
|
|
11554 | cat confdefs.h >>conftest.$ac_ext |
|
|
11555 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11556 | /* end confdefs.h. */ |
|
|
11557 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
11558 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
11559 | #define shl_load innocuous_shl_load |
|
|
11560 | |
|
|
11561 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
11562 | which can conflict with char shl_load (); below. |
|
|
11563 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
11564 | <limits.h> exists even on freestanding compilers. */ |
|
|
11565 | |
|
|
11566 | #ifdef __STDC__ |
|
|
11567 | # include <limits.h> |
|
|
11568 | #else |
|
|
11569 | # include <assert.h> |
|
|
11570 | #endif |
|
|
11571 | |
|
|
11572 | #undef shl_load |
|
|
11573 | |
|
|
11574 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11575 | #ifdef __cplusplus |
|
|
11576 | extern "C" |
|
|
11577 | { |
|
|
11578 | #endif |
|
|
11579 | /* We use char because int might match the return type of a gcc2 |
|
|
11580 | builtin and then its argument prototype would still apply. */ |
|
|
11581 | char shl_load (); |
|
|
11582 | /* The GNU C library defines this for functions which it implements |
|
|
11583 | to always fail with ENOSYS. Some functions are actually named |
|
|
11584 | something starting with __ and the normal name is an alias. */ |
|
|
11585 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
11586 | choke me |
|
|
11587 | #else |
|
|
11588 | char (*f) () = shl_load; |
|
|
11589 | #endif |
|
|
11590 | #ifdef __cplusplus |
|
|
11591 | } |
|
|
11592 | #endif |
|
|
11593 | |
|
|
11594 | int |
|
|
11595 | main () |
|
|
11596 | { |
|
|
11597 | return f != shl_load; |
|
|
11598 | ; |
|
|
11599 | return 0; |
|
|
11600 | } |
|
|
11601 | _ACEOF |
|
|
11602 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11604 | (eval $ac_link) 2>conftest.er1 |
|
|
11605 | ac_status=$? |
|
|
11606 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11607 | rm -f conftest.er1 |
|
|
11608 | cat conftest.err >&5 |
|
|
11609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11610 | (exit $ac_status); } && |
|
|
11611 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11613 | (eval $ac_try) 2>&5 |
|
|
11614 | ac_status=$? |
|
|
11615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11616 | (exit $ac_status); }; } && |
|
|
11617 | { ac_try='test -s conftest$ac_exeext' |
|
|
11618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11619 | (eval $ac_try) 2>&5 |
|
|
11620 | ac_status=$? |
|
|
11621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11622 | (exit $ac_status); }; }; then |
|
|
11623 | ac_cv_func_shl_load=yes |
|
|
11624 | else |
|
|
11625 | echo "$as_me: failed program was:" >&5 |
|
|
11626 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11627 | |
|
|
11628 | ac_cv_func_shl_load=no |
|
|
11629 | fi |
|
|
11630 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11631 | conftest$ac_exeext conftest.$ac_ext |
|
|
11632 | fi |
|
|
11633 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
11634 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
11635 | if test $ac_cv_func_shl_load = yes; then |
|
|
11636 | lt_cv_dlopen="shl_load" |
|
|
11637 | else |
|
|
11638 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
11639 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
|
11640 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
11641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11642 | else |
|
|
11643 | ac_check_lib_save_LIBS=$LIBS |
|
|
11644 | LIBS="-ldld $LIBS" |
|
|
11645 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11646 | /* confdefs.h. */ |
|
|
11647 | _ACEOF |
|
|
11648 | cat confdefs.h >>conftest.$ac_ext |
|
|
11649 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11650 | /* end confdefs.h. */ |
|
|
11651 | |
|
|
11652 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11653 | #ifdef __cplusplus |
|
|
11654 | extern "C" |
|
|
11655 | #endif |
|
|
11656 | /* We use char because int might match the return type of a gcc2 |
|
|
11657 | builtin and then its argument prototype would still apply. */ |
|
|
11658 | char shl_load (); |
|
|
11659 | int |
|
|
11660 | main () |
|
|
11661 | { |
|
|
11662 | shl_load (); |
|
|
11663 | ; |
|
|
11664 | return 0; |
|
|
11665 | } |
|
|
11666 | _ACEOF |
|
|
11667 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11669 | (eval $ac_link) 2>conftest.er1 |
|
|
11670 | ac_status=$? |
|
|
11671 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11672 | rm -f conftest.er1 |
|
|
11673 | cat conftest.err >&5 |
|
|
11674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11675 | (exit $ac_status); } && |
|
|
11676 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11678 | (eval $ac_try) 2>&5 |
|
|
11679 | ac_status=$? |
|
|
11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11681 | (exit $ac_status); }; } && |
|
|
11682 | { ac_try='test -s conftest$ac_exeext' |
|
|
11683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11684 | (eval $ac_try) 2>&5 |
|
|
11685 | ac_status=$? |
|
|
11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11687 | (exit $ac_status); }; }; then |
|
|
11688 | ac_cv_lib_dld_shl_load=yes |
|
|
11689 | else |
|
|
11690 | echo "$as_me: failed program was:" >&5 |
|
|
11691 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11692 | |
|
|
11693 | ac_cv_lib_dld_shl_load=no |
|
|
11694 | fi |
|
|
11695 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11696 | conftest$ac_exeext conftest.$ac_ext |
|
|
11697 | LIBS=$ac_check_lib_save_LIBS |
|
|
11698 | fi |
|
|
11699 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
11700 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
11701 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
11702 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
|
11703 | else |
|
|
11704 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
11705 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
11706 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
11707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11708 | else |
|
|
11709 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11710 | /* confdefs.h. */ |
|
|
11711 | _ACEOF |
|
|
11712 | cat confdefs.h >>conftest.$ac_ext |
|
|
11713 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11714 | /* end confdefs.h. */ |
|
|
11715 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
11716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
11717 | #define dlopen innocuous_dlopen |
|
|
11718 | |
|
|
11719 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
11720 | which can conflict with char dlopen (); below. |
|
|
11721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
11722 | <limits.h> exists even on freestanding compilers. */ |
|
|
11723 | |
|
|
11724 | #ifdef __STDC__ |
|
|
11725 | # include <limits.h> |
|
|
11726 | #else |
|
|
11727 | # include <assert.h> |
|
|
11728 | #endif |
|
|
11729 | |
|
|
11730 | #undef dlopen |
|
|
11731 | |
|
|
11732 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11733 | #ifdef __cplusplus |
|
|
11734 | extern "C" |
|
|
11735 | { |
|
|
11736 | #endif |
|
|
11737 | /* We use char because int might match the return type of a gcc2 |
|
|
11738 | builtin and then its argument prototype would still apply. */ |
|
|
11739 | char dlopen (); |
|
|
11740 | /* The GNU C library defines this for functions which it implements |
|
|
11741 | to always fail with ENOSYS. Some functions are actually named |
|
|
11742 | something starting with __ and the normal name is an alias. */ |
|
|
11743 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
|
11744 | choke me |
|
|
11745 | #else |
|
|
11746 | char (*f) () = dlopen; |
|
|
11747 | #endif |
|
|
11748 | #ifdef __cplusplus |
|
|
11749 | } |
|
|
11750 | #endif |
|
|
11751 | |
|
|
11752 | int |
|
|
11753 | main () |
|
|
11754 | { |
|
|
11755 | return f != dlopen; |
|
|
11756 | ; |
|
|
11757 | return 0; |
|
|
11758 | } |
|
|
11759 | _ACEOF |
|
|
11760 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11762 | (eval $ac_link) 2>conftest.er1 |
|
|
11763 | ac_status=$? |
|
|
11764 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11765 | rm -f conftest.er1 |
|
|
11766 | cat conftest.err >&5 |
|
|
11767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11768 | (exit $ac_status); } && |
|
|
11769 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11771 | (eval $ac_try) 2>&5 |
|
|
11772 | ac_status=$? |
|
|
11773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11774 | (exit $ac_status); }; } && |
|
|
11775 | { ac_try='test -s conftest$ac_exeext' |
|
|
11776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11777 | (eval $ac_try) 2>&5 |
|
|
11778 | ac_status=$? |
|
|
11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11780 | (exit $ac_status); }; }; then |
|
|
11781 | ac_cv_func_dlopen=yes |
|
|
11782 | else |
|
|
11783 | echo "$as_me: failed program was:" >&5 |
|
|
11784 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11785 | |
|
|
11786 | ac_cv_func_dlopen=no |
|
|
11787 | fi |
|
|
11788 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11789 | conftest$ac_exeext conftest.$ac_ext |
|
|
11790 | fi |
|
|
11791 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
11792 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
|
11793 | if test $ac_cv_func_dlopen = yes; then |
|
|
11794 | lt_cv_dlopen="dlopen" |
|
|
11795 | else |
|
|
11796 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
11797 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
11798 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
11799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11800 | else |
|
|
11801 | ac_check_lib_save_LIBS=$LIBS |
|
|
11802 | LIBS="-ldl $LIBS" |
|
|
11803 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11804 | /* confdefs.h. */ |
|
|
11805 | _ACEOF |
|
|
11806 | cat confdefs.h >>conftest.$ac_ext |
|
|
11807 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11808 | /* end confdefs.h. */ |
|
|
11809 | |
|
|
11810 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11811 | #ifdef __cplusplus |
|
|
11812 | extern "C" |
|
|
11813 | #endif |
|
|
11814 | /* We use char because int might match the return type of a gcc2 |
|
|
11815 | builtin and then its argument prototype would still apply. */ |
|
|
11816 | char dlopen (); |
|
|
11817 | int |
|
|
11818 | main () |
|
|
11819 | { |
|
|
11820 | dlopen (); |
|
|
11821 | ; |
|
|
11822 | return 0; |
|
|
11823 | } |
|
|
11824 | _ACEOF |
|
|
11825 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11827 | (eval $ac_link) 2>conftest.er1 |
|
|
11828 | ac_status=$? |
|
|
11829 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11830 | rm -f conftest.er1 |
|
|
11831 | cat conftest.err >&5 |
|
|
11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11833 | (exit $ac_status); } && |
|
|
11834 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11836 | (eval $ac_try) 2>&5 |
|
|
11837 | ac_status=$? |
|
|
11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11839 | (exit $ac_status); }; } && |
|
|
11840 | { ac_try='test -s conftest$ac_exeext' |
|
|
11841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11842 | (eval $ac_try) 2>&5 |
|
|
11843 | ac_status=$? |
|
|
11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11845 | (exit $ac_status); }; }; then |
|
|
11846 | ac_cv_lib_dl_dlopen=yes |
|
|
11847 | else |
|
|
11848 | echo "$as_me: failed program was:" >&5 |
|
|
11849 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11850 | |
|
|
11851 | ac_cv_lib_dl_dlopen=no |
|
|
11852 | fi |
|
|
11853 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11854 | conftest$ac_exeext conftest.$ac_ext |
|
|
11855 | LIBS=$ac_check_lib_save_LIBS |
|
|
11856 | fi |
|
|
11857 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
11858 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
11859 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
11860 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
11861 | else |
|
|
11862 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
11863 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
11864 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
11865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11866 | else |
|
|
11867 | ac_check_lib_save_LIBS=$LIBS |
|
|
11868 | LIBS="-lsvld $LIBS" |
|
|
11869 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11870 | /* confdefs.h. */ |
|
|
11871 | _ACEOF |
|
|
11872 | cat confdefs.h >>conftest.$ac_ext |
|
|
11873 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11874 | /* end confdefs.h. */ |
|
|
11875 | |
|
|
11876 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11877 | #ifdef __cplusplus |
|
|
11878 | extern "C" |
|
|
11879 | #endif |
|
|
11880 | /* We use char because int might match the return type of a gcc2 |
|
|
11881 | builtin and then its argument prototype would still apply. */ |
|
|
11882 | char dlopen (); |
|
|
11883 | int |
|
|
11884 | main () |
|
|
11885 | { |
|
|
11886 | dlopen (); |
|
|
11887 | ; |
|
|
11888 | return 0; |
|
|
11889 | } |
|
|
11890 | _ACEOF |
|
|
11891 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11893 | (eval $ac_link) 2>conftest.er1 |
|
|
11894 | ac_status=$? |
|
|
11895 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11896 | rm -f conftest.er1 |
|
|
11897 | cat conftest.err >&5 |
|
|
11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11899 | (exit $ac_status); } && |
|
|
11900 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11902 | (eval $ac_try) 2>&5 |
|
|
11903 | ac_status=$? |
|
|
11904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11905 | (exit $ac_status); }; } && |
|
|
11906 | { ac_try='test -s conftest$ac_exeext' |
|
|
11907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11908 | (eval $ac_try) 2>&5 |
|
|
11909 | ac_status=$? |
|
|
11910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11911 | (exit $ac_status); }; }; then |
|
|
11912 | ac_cv_lib_svld_dlopen=yes |
|
|
11913 | else |
|
|
11914 | echo "$as_me: failed program was:" >&5 |
|
|
11915 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11916 | |
|
|
11917 | ac_cv_lib_svld_dlopen=no |
|
|
11918 | fi |
|
|
11919 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11920 | conftest$ac_exeext conftest.$ac_ext |
|
|
11921 | LIBS=$ac_check_lib_save_LIBS |
|
|
11922 | fi |
|
|
11923 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
11924 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
|
11925 | if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
11926 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
11927 | else |
|
|
11928 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
|
11929 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
|
11930 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
|
11931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11932 | else |
|
|
11933 | ac_check_lib_save_LIBS=$LIBS |
|
|
11934 | LIBS="-ldld $LIBS" |
|
|
11935 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11936 | /* confdefs.h. */ |
|
|
11937 | _ACEOF |
|
|
11938 | cat confdefs.h >>conftest.$ac_ext |
|
|
11939 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11940 | /* end confdefs.h. */ |
|
|
11941 | |
|
|
11942 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11943 | #ifdef __cplusplus |
|
|
11944 | extern "C" |
|
|
11945 | #endif |
|
|
11946 | /* We use char because int might match the return type of a gcc2 |
|
|
11947 | builtin and then its argument prototype would still apply. */ |
|
|
11948 | char dld_link (); |
|
|
11949 | int |
|
|
11950 | main () |
|
|
11951 | { |
|
|
11952 | dld_link (); |
|
|
11953 | ; |
|
|
11954 | return 0; |
|
|
11955 | } |
|
|
11956 | _ACEOF |
|
|
11957 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11959 | (eval $ac_link) 2>conftest.er1 |
|
|
11960 | ac_status=$? |
|
|
11961 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11962 | rm -f conftest.er1 |
|
|
11963 | cat conftest.err >&5 |
|
|
11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11965 | (exit $ac_status); } && |
|
|
11966 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11968 | (eval $ac_try) 2>&5 |
|
|
11969 | ac_status=$? |
|
|
11970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11971 | (exit $ac_status); }; } && |
|
|
11972 | { ac_try='test -s conftest$ac_exeext' |
|
|
11973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11974 | (eval $ac_try) 2>&5 |
|
|
11975 | ac_status=$? |
|
|
11976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11977 | (exit $ac_status); }; }; then |
|
|
11978 | ac_cv_lib_dld_dld_link=yes |
|
|
11979 | else |
|
|
11980 | echo "$as_me: failed program was:" >&5 |
|
|
11981 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11982 | |
|
|
11983 | ac_cv_lib_dld_dld_link=no |
|
|
11984 | fi |
|
|
11985 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11986 | conftest$ac_exeext conftest.$ac_ext |
|
|
11987 | LIBS=$ac_check_lib_save_LIBS |
|
|
11988 | fi |
|
|
11989 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
|
11990 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
|
11991 | if test $ac_cv_lib_dld_dld_link = yes; then |
|
|
11992 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
11993 | fi |
|
|
11994 | |
|
|
11995 | |
|
|
11996 | fi |
|
|
11997 | |
|
|
11998 | |
|
|
11999 | fi |
|
|
12000 | |
|
|
12001 | |
|
|
12002 | fi |
|
|
12003 | |
|
|
12004 | |
|
|
12005 | fi |
|
|
12006 | |
|
|
12007 | |
|
|
12008 | fi |
|
|
12009 | |
|
|
12010 | ;; |
|
|
12011 | esac |
|
|
12012 | |
|
|
12013 | if test "x$lt_cv_dlopen" != xno; then |
|
|
12014 | enable_dlopen=yes |
|
|
12015 | else |
|
|
12016 | enable_dlopen=no |
|
|
12017 | fi |
|
|
12018 | |
|
|
12019 | case $lt_cv_dlopen in |
|
|
12020 | dlopen) |
|
|
12021 | save_CPPFLAGS="$CPPFLAGS" |
|
|
12022 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
12023 | |
|
|
12024 | save_LDFLAGS="$LDFLAGS" |
|
|
12025 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
12026 | |
|
|
12027 | save_LIBS="$LIBS" |
|
|
12028 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
12029 | |
|
|
12030 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
12031 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
12032 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
12033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12034 | else |
|
|
12035 | if test "$cross_compiling" = yes; then : |
|
|
12036 | lt_cv_dlopen_self=cross |
|
|
12037 | else |
|
|
12038 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
12039 | lt_status=$lt_dlunknown |
|
|
12040 | cat > conftest.$ac_ext <<EOF |
|
|
12041 | #line 12041 "configure" |
|
|
12042 | #include "confdefs.h" |
|
|
12043 | |
|
|
12044 | #if HAVE_DLFCN_H |
|
|
12045 | #include <dlfcn.h> |
|
|
12046 | #endif |
|
|
12047 | |
|
|
12048 | #include <stdio.h> |
|
|
12049 | |
|
|
12050 | #ifdef RTLD_GLOBAL |
|
|
12051 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
12052 | #else |
|
|
12053 | # ifdef DL_GLOBAL |
|
|
12054 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
12055 | # else |
|
|
12056 | # define LT_DLGLOBAL 0 |
|
|
12057 | # endif |
|
|
12058 | #endif |
|
|
12059 | |
|
|
12060 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
12061 | find out it does not work in some platform. */ |
|
|
12062 | #ifndef LT_DLLAZY_OR_NOW |
|
|
12063 | # ifdef RTLD_LAZY |
|
|
12064 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
12065 | # else |
|
|
12066 | # ifdef DL_LAZY |
|
|
12067 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
12068 | # else |
|
|
12069 | # ifdef RTLD_NOW |
|
|
12070 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
12071 | # else |
|
|
12072 | # ifdef DL_NOW |
|
|
12073 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
12074 | # else |
|
|
12075 | # define LT_DLLAZY_OR_NOW 0 |
|
|
12076 | # endif |
|
|
12077 | # endif |
|
|
12078 | # endif |
|
|
12079 | # endif |
|
|
12080 | #endif |
|
|
12081 | |
|
|
12082 | #ifdef __cplusplus |
|
|
12083 | extern "C" void exit (int); |
|
|
12084 | #endif |
|
|
12085 | |
|
|
12086 | void fnord() { int i=42;} |
|
|
12087 | int main () |
|
|
12088 | { |
|
|
12089 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
12090 | int status = $lt_dlunknown; |
|
|
12091 | |
|
|
12092 | if (self) |
|
|
12093 | { |
|
|
12094 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
12095 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
12096 | /* dlclose (self); */ |
|
|
12097 | } |
|
|
12098 | |
|
|
12099 | exit (status); |
|
|
12100 | } |
|
|
12101 | EOF |
|
|
12102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12103 | (eval $ac_link) 2>&5 |
|
|
12104 | ac_status=$? |
|
|
12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12106 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
12107 | (./conftest; exit; ) 2>/dev/null |
|
|
12108 | lt_status=$? |
|
|
12109 | case x$lt_status in |
|
|
12110 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
12111 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
12112 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
12113 | esac |
|
|
12114 | else : |
|
|
12115 | # compilation failed |
|
|
12116 | lt_cv_dlopen_self=no |
|
|
12117 | fi |
|
|
12118 | fi |
|
|
12119 | rm -fr conftest* |
|
|
12120 | |
|
|
12121 | |
|
|
12122 | fi |
|
|
12123 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
12124 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
12125 | |
|
|
12126 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
12127 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
12128 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
12129 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
12130 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
12131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12132 | else |
|
|
12133 | if test "$cross_compiling" = yes; then : |
|
|
12134 | lt_cv_dlopen_self_static=cross |
|
|
12135 | else |
|
|
12136 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
12137 | lt_status=$lt_dlunknown |
|
|
12138 | cat > conftest.$ac_ext <<EOF |
|
|
12139 | #line 12139 "configure" |
|
|
12140 | #include "confdefs.h" |
|
|
12141 | |
|
|
12142 | #if HAVE_DLFCN_H |
|
|
12143 | #include <dlfcn.h> |
|
|
12144 | #endif |
|
|
12145 | |
|
|
12146 | #include <stdio.h> |
|
|
12147 | |
|
|
12148 | #ifdef RTLD_GLOBAL |
|
|
12149 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
12150 | #else |
|
|
12151 | # ifdef DL_GLOBAL |
|
|
12152 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
12153 | # else |
|
|
12154 | # define LT_DLGLOBAL 0 |
|
|
12155 | # endif |
|
|
12156 | #endif |
|
|
12157 | |
|
|
12158 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
12159 | find out it does not work in some platform. */ |
|
|
12160 | #ifndef LT_DLLAZY_OR_NOW |
|
|
12161 | # ifdef RTLD_LAZY |
|
|
12162 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
12163 | # else |
|
|
12164 | # ifdef DL_LAZY |
|
|
12165 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
12166 | # else |
|
|
12167 | # ifdef RTLD_NOW |
|
|
12168 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
12169 | # else |
|
|
12170 | # ifdef DL_NOW |
|
|
12171 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
12172 | # else |
|
|
12173 | # define LT_DLLAZY_OR_NOW 0 |
|
|
12174 | # endif |
|
|
12175 | # endif |
|
|
12176 | # endif |
|
|
12177 | # endif |
|
|
12178 | #endif |
|
|
12179 | |
|
|
12180 | #ifdef __cplusplus |
|
|
12181 | extern "C" void exit (int); |
|
|
12182 | #endif |
|
|
12183 | |
|
|
12184 | void fnord() { int i=42;} |
|
|
12185 | int main () |
|
|
12186 | { |
|
|
12187 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
12188 | int status = $lt_dlunknown; |
|
|
12189 | |
|
|
12190 | if (self) |
|
|
12191 | { |
|
|
12192 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
12193 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
12194 | /* dlclose (self); */ |
|
|
12195 | } |
|
|
12196 | |
|
|
12197 | exit (status); |
|
|
12198 | } |
|
|
12199 | EOF |
|
|
12200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12201 | (eval $ac_link) 2>&5 |
|
|
12202 | ac_status=$? |
|
|
12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12204 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
12205 | (./conftest; exit; ) 2>/dev/null |
|
|
12206 | lt_status=$? |
|
|
12207 | case x$lt_status in |
|
|
12208 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
12209 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
12210 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
12211 | esac |
|
|
12212 | else : |
|
|
12213 | # compilation failed |
|
|
12214 | lt_cv_dlopen_self_static=no |
|
|
12215 | fi |
|
|
12216 | fi |
|
|
12217 | rm -fr conftest* |
|
|
12218 | |
|
|
12219 | |
|
|
12220 | fi |
|
|
12221 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
12222 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
12223 | fi |
|
|
12224 | |
|
|
12225 | CPPFLAGS="$save_CPPFLAGS" |
|
|
12226 | LDFLAGS="$save_LDFLAGS" |
|
|
12227 | LIBS="$save_LIBS" |
|
|
12228 | ;; |
|
|
12229 | esac |
|
|
12230 | |
|
|
12231 | case $lt_cv_dlopen_self in |
|
|
12232 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
12233 | *) enable_dlopen_self=unknown ;; |
|
|
12234 | esac |
|
|
12235 | |
|
|
12236 | case $lt_cv_dlopen_self_static in |
|
|
12237 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
12238 | *) enable_dlopen_self_static=unknown ;; |
|
|
12239 | esac |
|
|
12240 | fi |
|
|
12241 | |
|
|
12242 | |
|
|
12243 | # The else clause should only fire when bootstrapping the |
|
|
12244 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
12245 | # with your package, and you will get complaints that there are |
|
|
12246 | # no rules to generate ltmain.sh. |
|
|
12247 | if test -f "$ltmain"; then |
|
|
12248 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
12249 | # without removal of \ escapes. |
|
|
12250 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
12251 | setopt NO_GLOB_SUBST |
|
|
12252 | fi |
|
|
12253 | # Now quote all the things that may contain metacharacters while being |
|
|
12254 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
12255 | # variables and quote the copies for generation of the libtool script. |
|
|
12256 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
|
12257 | SED SHELL STRIP \ |
|
|
12258 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
12259 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
12260 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
12261 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
12262 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
12263 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
12264 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
12265 | compiler_CXX \ |
|
|
12266 | CC_CXX \ |
|
|
12267 | LD_CXX \ |
|
|
12268 | lt_prog_compiler_wl_CXX \ |
|
|
12269 | lt_prog_compiler_pic_CXX \ |
|
|
12270 | lt_prog_compiler_static_CXX \ |
|
|
12271 | lt_prog_compiler_no_builtin_flag_CXX \ |
|
|
12272 | export_dynamic_flag_spec_CXX \ |
|
|
12273 | thread_safe_flag_spec_CXX \ |
|
|
12274 | whole_archive_flag_spec_CXX \ |
|
|
12275 | enable_shared_with_static_runtimes_CXX \ |
|
|
12276 | old_archive_cmds_CXX \ |
|
|
12277 | old_archive_from_new_cmds_CXX \ |
|
|
12278 | predep_objects_CXX \ |
|
|
12279 | postdep_objects_CXX \ |
|
|
12280 | predeps_CXX \ |
|
|
12281 | postdeps_CXX \ |
|
|
12282 | compiler_lib_search_path_CXX \ |
|
|
12283 | archive_cmds_CXX \ |
|
|
12284 | archive_expsym_cmds_CXX \ |
|
|
12285 | postinstall_cmds_CXX \ |
|
|
12286 | postuninstall_cmds_CXX \ |
|
|
12287 | old_archive_from_expsyms_cmds_CXX \ |
|
|
12288 | allow_undefined_flag_CXX \ |
|
|
12289 | no_undefined_flag_CXX \ |
|
|
12290 | export_symbols_cmds_CXX \ |
|
|
12291 | hardcode_libdir_flag_spec_CXX \ |
|
|
12292 | hardcode_libdir_flag_spec_ld_CXX \ |
|
|
12293 | hardcode_libdir_separator_CXX \ |
|
|
12294 | hardcode_automatic_CXX \ |
|
|
12295 | module_cmds_CXX \ |
|
|
12296 | module_expsym_cmds_CXX \ |
|
|
12297 | lt_cv_prog_compiler_c_o_CXX \ |
|
|
12298 | exclude_expsyms_CXX \ |
|
|
12299 | include_expsyms_CXX; do |
|
|
12300 | |
|
|
12301 | case $var in |
|
|
12302 | old_archive_cmds_CXX | \ |
|
|
12303 | old_archive_from_new_cmds_CXX | \ |
|
|
12304 | archive_cmds_CXX | \ |
|
|
12305 | archive_expsym_cmds_CXX | \ |
|
|
12306 | module_cmds_CXX | \ |
|
|
12307 | module_expsym_cmds_CXX | \ |
|
|
12308 | old_archive_from_expsyms_cmds_CXX | \ |
|
|
12309 | export_symbols_cmds_CXX | \ |
|
|
12310 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
12311 | postinstall_cmds | postuninstall_cmds | \ |
|
|
12312 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
12313 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
12314 | # Double-quote double-evaled strings. |
|
|
12315 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
12316 | ;; |
|
|
12317 | *) |
|
|
12318 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
12319 | ;; |
|
|
12320 | esac |
|
|
12321 | done |
|
|
12322 | |
|
|
12323 | case $lt_echo in |
|
|
12324 | *'\$0 --fallback-echo"') |
|
|
12325 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
12326 | ;; |
|
|
12327 | esac |
|
|
12328 | |
|
|
12329 | cfgfile="$ofile" |
|
|
12330 | |
|
|
12331 | cat <<__EOF__ >> "$cfgfile" |
|
|
12332 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
12333 | |
|
|
12334 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
12335 | |
|
|
12336 | # Shell to use when invoking shell scripts. |
|
|
12337 | SHELL=$lt_SHELL |
|
|
12338 | |
|
|
12339 | # Whether or not to build shared libraries. |
|
|
12340 | build_libtool_libs=$enable_shared |
|
|
12341 | |
|
|
12342 | # Whether or not to build static libraries. |
|
|
12343 | build_old_libs=$enable_static |
|
|
12344 | |
|
|
12345 | # Whether or not to add -lc for building shared libraries. |
|
|
12346 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
|
|
12347 | |
|
|
12348 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
12349 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
|
|
12350 | |
|
|
12351 | # Whether or not to optimize for fast installation. |
|
|
12352 | fast_install=$enable_fast_install |
|
|
12353 | |
|
|
12354 | # The host system. |
|
|
12355 | host_alias=$host_alias |
|
|
12356 | host=$host |
|
|
12357 | |
|
|
12358 | # An echo program that does not interpret backslashes. |
|
|
12359 | echo=$lt_echo |
|
|
12360 | |
|
|
12361 | # The archiver. |
|
|
12362 | AR=$lt_AR |
|
|
12363 | AR_FLAGS=$lt_AR_FLAGS |
|
|
12364 | |
|
|
12365 | # A C compiler. |
|
|
12366 | LTCC=$lt_LTCC |
|
|
12367 | |
|
|
12368 | # A language-specific compiler. |
|
|
12369 | CC=$lt_compiler_CXX |
|
|
12370 | |
|
|
12371 | # Is the compiler the GNU C compiler? |
|
|
12372 | with_gcc=$GCC_CXX |
|
|
12373 | |
|
|
12374 | # An ERE matcher. |
|
|
12375 | EGREP=$lt_EGREP |
|
|
12376 | |
|
|
12377 | # The linker used to build libraries. |
|
|
12378 | LD=$lt_LD_CXX |
|
|
12379 | |
|
|
12380 | # Whether we need hard or soft links. |
|
|
12381 | LN_S=$lt_LN_S |
|
|
12382 | |
|
|
12383 | # A BSD-compatible nm program. |
|
|
12384 | NM=$lt_NM |
|
|
12385 | |
|
|
12386 | # A symbol stripping program |
|
|
12387 | STRIP=$lt_STRIP |
|
|
12388 | |
|
|
12389 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
12390 | MAGIC_CMD=$MAGIC_CMD |
|
|
12391 | |
|
|
12392 | # Used on cygwin: DLL creation program. |
|
|
12393 | DLLTOOL="$DLLTOOL" |
|
|
12394 | |
|
|
12395 | # Used on cygwin: object dumper. |
|
|
12396 | OBJDUMP="$OBJDUMP" |
|
|
12397 | |
|
|
12398 | # Used on cygwin: assembler. |
|
|
12399 | AS="$AS" |
|
|
12400 | |
|
|
12401 | # The name of the directory that contains temporary libtool files. |
|
|
12402 | objdir=$objdir |
|
|
12403 | |
|
|
12404 | # How to create reloadable object files. |
|
|
12405 | reload_flag=$lt_reload_flag |
|
|
12406 | reload_cmds=$lt_reload_cmds |
|
|
12407 | |
|
|
12408 | # How to pass a linker flag through the compiler. |
|
|
12409 | wl=$lt_lt_prog_compiler_wl_CXX |
|
|
12410 | |
|
|
12411 | # Object file suffix (normally "o"). |
|
|
12412 | objext="$ac_objext" |
|
|
12413 | |
|
|
12414 | # Old archive suffix (normally "a"). |
|
|
12415 | libext="$libext" |
|
|
12416 | |
|
|
12417 | # Shared library suffix (normally ".so"). |
|
|
12418 | shrext_cmds='$shrext_cmds' |
|
|
12419 | |
|
|
12420 | # Executable file suffix (normally ""). |
|
|
12421 | exeext="$exeext" |
|
|
12422 | |
|
|
12423 | # Additional compiler flags for building library objects. |
|
|
12424 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
|
|
12425 | pic_mode=$pic_mode |
|
|
12426 | |
|
|
12427 | # What is the maximum length of a command? |
|
|
12428 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
12429 | |
|
|
12430 | # Does compiler simultaneously support -c and -o options? |
|
|
12431 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
|
|
12432 | |
|
|
12433 | # Must we lock files when doing compilation ? |
|
|
12434 | need_locks=$lt_need_locks |
|
|
12435 | |
|
|
12436 | # Do we need the lib prefix for modules? |
|
|
12437 | need_lib_prefix=$need_lib_prefix |
|
|
12438 | |
|
|
12439 | # Do we need a version for libraries? |
|
|
12440 | need_version=$need_version |
|
|
12441 | |
|
|
12442 | # Whether dlopen is supported. |
|
|
12443 | dlopen_support=$enable_dlopen |
|
|
12444 | |
|
|
12445 | # Whether dlopen of programs is supported. |
|
|
12446 | dlopen_self=$enable_dlopen_self |
|
|
12447 | |
|
|
12448 | # Whether dlopen of statically linked programs is supported. |
|
|
12449 | dlopen_self_static=$enable_dlopen_self_static |
|
|
12450 | |
|
|
12451 | # Compiler flag to prevent dynamic linking. |
|
|
12452 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
|
|
12453 | |
|
|
12454 | # Compiler flag to turn off builtin functions. |
|
|
12455 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
|
|
12456 | |
|
|
12457 | # Compiler flag to allow reflexive dlopens. |
|
|
12458 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
|
|
12459 | |
|
|
12460 | # Compiler flag to generate shared objects directly from archives. |
|
|
12461 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
|
|
12462 | |
|
|
12463 | # Compiler flag to generate thread-safe objects. |
|
|
12464 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
|
|
12465 | |
|
|
12466 | # Library versioning type. |
|
|
12467 | version_type=$version_type |
|
|
12468 | |
|
|
12469 | # Format of library name prefix. |
|
|
12470 | libname_spec=$lt_libname_spec |
|
|
12471 | |
|
|
12472 | # List of archive names. First name is the real one, the rest are links. |
|
|
12473 | # The last name is the one that the linker finds with -lNAME. |
|
|
12474 | library_names_spec=$lt_library_names_spec |
|
|
12475 | |
|
|
12476 | # The coded name of the library, if different from the real name. |
|
|
12477 | soname_spec=$lt_soname_spec |
|
|
12478 | |
|
|
12479 | # Commands used to build and install an old-style archive. |
|
|
12480 | RANLIB=$lt_RANLIB |
|
|
12481 | old_archive_cmds=$lt_old_archive_cmds_CXX |
|
|
12482 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
12483 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
12484 | |
|
|
12485 | # Create an old-style archive from a shared archive. |
|
|
12486 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
|
|
12487 | |
|
|
12488 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
12489 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
|
|
12490 | |
|
|
12491 | # Commands used to build and install a shared archive. |
|
|
12492 | archive_cmds=$lt_archive_cmds_CXX |
|
|
12493 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
|
|
12494 | postinstall_cmds=$lt_postinstall_cmds |
|
|
12495 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
12496 | |
|
|
12497 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
12498 | module_cmds=$lt_module_cmds_CXX |
|
|
12499 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
|
|
12500 | |
|
|
12501 | # Commands to strip libraries. |
|
|
12502 | old_striplib=$lt_old_striplib |
|
|
12503 | striplib=$lt_striplib |
|
|
12504 | |
|
|
12505 | # Dependencies to place before the objects being linked to create a |
|
|
12506 | # shared library. |
|
|
12507 | predep_objects=$lt_predep_objects_CXX |
|
|
12508 | |
|
|
12509 | # Dependencies to place after the objects being linked to create a |
|
|
12510 | # shared library. |
|
|
12511 | postdep_objects=$lt_postdep_objects_CXX |
|
|
12512 | |
|
|
12513 | # Dependencies to place before the objects being linked to create a |
|
|
12514 | # shared library. |
|
|
12515 | predeps=$lt_predeps_CXX |
|
|
12516 | |
|
|
12517 | # Dependencies to place after the objects being linked to create a |
|
|
12518 | # shared library. |
|
|
12519 | postdeps=$lt_postdeps_CXX |
|
|
12520 | |
|
|
12521 | # The library search path used internally by the compiler when linking |
|
|
12522 | # a shared library. |
|
|
12523 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
|
|
12524 | |
|
|
12525 | # Method to check whether dependent libraries are shared objects. |
|
|
12526 | deplibs_check_method=$lt_deplibs_check_method |
|
|
12527 | |
|
|
12528 | # Command to use when deplibs_check_method == file_magic. |
|
|
12529 | file_magic_cmd=$lt_file_magic_cmd |
|
|
12530 | |
|
|
12531 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
12532 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
|
|
12533 | |
|
|
12534 | # Flag that forces no undefined symbols. |
|
|
12535 | no_undefined_flag=$lt_no_undefined_flag_CXX |
|
|
12536 | |
|
|
12537 | # Commands used to finish a libtool library installation in a directory. |
|
|
12538 | finish_cmds=$lt_finish_cmds |
|
|
12539 | |
|
|
12540 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
12541 | finish_eval=$lt_finish_eval |
|
|
12542 | |
|
|
12543 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
12544 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
12545 | |
|
|
12546 | # Transform the output of nm in a proper C declaration |
|
|
12547 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
12548 | |
|
|
12549 | # Transform the output of nm in a C name address pair |
|
|
12550 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
12551 | |
|
|
12552 | # This is the shared library runtime path variable. |
|
|
12553 | runpath_var=$runpath_var |
|
|
12554 | |
|
|
12555 | # This is the shared library path variable. |
|
|
12556 | shlibpath_var=$shlibpath_var |
|
|
12557 | |
|
|
12558 | # Is shlibpath searched before the hard-coded library search path? |
|
|
12559 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
12560 | |
|
|
12561 | # How to hardcode a shared library path into an executable. |
|
|
12562 | hardcode_action=$hardcode_action_CXX |
|
|
12563 | |
|
|
12564 | # Whether we should hardcode library paths into libraries. |
|
|
12565 | hardcode_into_libs=$hardcode_into_libs |
|
|
12566 | |
|
|
12567 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
12568 | # This must work even if \$libdir does not exist. |
|
|
12569 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
|
|
12570 | |
|
|
12571 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
12572 | # a binary during linking. This must work even if \$libdir does |
|
|
12573 | # not exist. |
|
|
12574 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
|
|
12575 | |
|
|
12576 | # Whether we need a single -rpath flag with a separated argument. |
|
|
12577 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
|
|
12578 | |
|
|
12579 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
12580 | # resulting binary. |
|
|
12581 | hardcode_direct=$hardcode_direct_CXX |
|
|
12582 | |
|
|
12583 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
12584 | # resulting binary. |
|
|
12585 | hardcode_minus_L=$hardcode_minus_L_CXX |
|
|
12586 | |
|
|
12587 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
12588 | # the resulting binary. |
|
|
12589 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
|
|
12590 | |
|
|
12591 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
12592 | # and all subsequent libraries and executables linked against it. |
|
|
12593 | hardcode_automatic=$hardcode_automatic_CXX |
|
|
12594 | |
|
|
12595 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
12596 | # restored at relink time. |
|
|
12597 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
12598 | |
|
|
12599 | # Whether libtool must link a program against all its dependency libraries. |
|
|
12600 | link_all_deplibs=$link_all_deplibs_CXX |
|
|
12601 | |
|
|
12602 | # Compile-time system search path for libraries |
|
|
12603 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
12604 | |
|
|
12605 | # Run-time system search path for libraries |
|
|
12606 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
12607 | |
|
|
12608 | # Fix the shell variable \$srcfile for the compiler. |
|
|
12609 | fix_srcfile_path="$fix_srcfile_path_CXX" |
|
|
12610 | |
|
|
12611 | # Set to yes if exported symbols are required. |
|
|
12612 | always_export_symbols=$always_export_symbols_CXX |
|
|
12613 | |
|
|
12614 | # The commands to list exported symbols. |
|
|
12615 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
|
|
12616 | |
|
|
12617 | # The commands to extract the exported symbol list from a shared archive. |
|
|
12618 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
12619 | |
|
|
12620 | # Symbols that should not be listed in the preloaded symbols. |
|
|
12621 | exclude_expsyms=$lt_exclude_expsyms_CXX |
|
|
12622 | |
|
|
12623 | # Symbols that must always be exported. |
|
|
12624 | include_expsyms=$lt_include_expsyms_CXX |
|
|
12625 | |
|
|
12626 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
12627 | |
|
|
12628 | __EOF__ |
|
|
12629 | |
|
|
12630 | |
|
|
12631 | else |
|
|
12632 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
12633 | # `config.status --recheck' to rerun these tests and create the |
|
|
12634 | # libtool script then. |
|
|
12635 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
12636 | if test -f "$ltmain_in"; then |
|
|
12637 | test -f Makefile && make "$ltmain" |
|
|
12638 | fi |
|
|
12639 | fi |
|
|
12640 | |
|
|
12641 | |
|
|
12642 | ac_ext=c |
|
|
12643 | ac_cpp='$CPP $CPPFLAGS' |
|
|
12644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
12645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
12646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
12647 | |
|
|
12648 | CC=$lt_save_CC |
|
|
12649 | LDCXX=$LD |
|
|
12650 | LD=$lt_save_LD |
|
|
12651 | GCC=$lt_save_GCC |
|
|
12652 | with_gnu_ldcxx=$with_gnu_ld |
|
|
12653 | with_gnu_ld=$lt_save_with_gnu_ld |
|
|
12654 | lt_cv_path_LDCXX=$lt_cv_path_LD |
|
|
12655 | lt_cv_path_LD=$lt_save_path_LD |
|
|
12656 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
|
12657 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
|
12658 | |
|
|
12659 | else |
|
|
12660 | tagname="" |
|
|
12661 | fi |
|
|
12662 | ;; |
|
|
12663 | |
|
|
12664 | F77) |
|
|
12665 | if test -n "$F77" && test "X$F77" != "Xno"; then |
|
|
12666 | |
|
|
12667 | ac_ext=f |
|
|
12668 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
|
12669 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
12670 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
|
12671 | |
|
|
12672 | |
|
|
12673 | archive_cmds_need_lc_F77=no |
|
|
12674 | allow_undefined_flag_F77= |
|
|
12675 | always_export_symbols_F77=no |
|
|
12676 | archive_expsym_cmds_F77= |
|
|
12677 | export_dynamic_flag_spec_F77= |
|
|
12678 | hardcode_direct_F77=no |
|
|
12679 | hardcode_libdir_flag_spec_F77= |
|
|
12680 | hardcode_libdir_flag_spec_ld_F77= |
|
|
12681 | hardcode_libdir_separator_F77= |
|
|
12682 | hardcode_minus_L_F77=no |
|
|
12683 | hardcode_automatic_F77=no |
|
|
12684 | module_cmds_F77= |
|
|
12685 | module_expsym_cmds_F77= |
|
|
12686 | link_all_deplibs_F77=unknown |
|
|
12687 | old_archive_cmds_F77=$old_archive_cmds |
|
|
12688 | no_undefined_flag_F77= |
|
|
12689 | whole_archive_flag_spec_F77= |
|
|
12690 | enable_shared_with_static_runtimes_F77=no |
|
|
12691 | |
|
|
12692 | # Source file extension for f77 test sources. |
|
|
12693 | ac_ext=f |
|
|
12694 | |
|
|
12695 | # Object file extension for compiled f77 test sources. |
|
|
12696 | objext=o |
|
|
12697 | objext_F77=$objext |
|
|
12698 | |
|
|
12699 | # Code to be used in simple compile tests |
|
|
12700 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
|
|
12701 | |
|
|
12702 | # Code to be used in simple link tests |
|
|
12703 | lt_simple_link_test_code=" program t\n end\n" |
|
|
12704 | |
|
|
12705 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
12706 | |
|
|
12707 | # If no C compiler was specified, use CC. |
|
|
12708 | LTCC=${LTCC-"$CC"} |
|
|
12709 | |
|
|
12710 | # Allow CC to be a program name with arguments. |
|
|
12711 | compiler=$CC |
|
|
12712 | |
|
|
12713 | |
|
|
12714 | # Allow CC to be a program name with arguments. |
|
|
12715 | lt_save_CC="$CC" |
|
|
12716 | CC=${F77-"f77"} |
|
|
12717 | compiler=$CC |
|
|
12718 | compiler_F77=$CC |
|
|
12719 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
|
|
12720 | |
|
|
12721 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
12722 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
12723 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
12724 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
12725 | |
|
|
12726 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
|
12727 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
|
12728 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
12729 | |
|
|
12730 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
12731 | # are all built from PIC. |
|
|
12732 | case "$host_os" in |
|
|
12733 | aix3*) |
|
|
12734 | test "$enable_shared" = yes && enable_static=no |
|
|
12735 | if test -n "$RANLIB"; then |
|
|
12736 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
12737 | postinstall_cmds='$RANLIB $lib' |
|
|
12738 | fi |
|
|
12739 | ;; |
|
|
12740 | aix4* | aix5*) |
|
|
12741 | test "$enable_shared" = yes && enable_static=no |
|
|
12742 | ;; |
|
|
12743 | esac |
|
|
12744 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
12745 | echo "${ECHO_T}$enable_shared" >&6 |
|
|
12746 | |
|
|
12747 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
|
12748 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
|
12749 | # Make sure either enable_shared or enable_static is yes. |
|
|
12750 | test "$enable_shared" = yes || enable_static=yes |
|
|
12751 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
|
12752 | echo "${ECHO_T}$enable_static" >&6 |
|
|
12753 | |
|
|
12754 | test "$ld_shlibs_F77" = no && can_build_shared=no |
|
|
12755 | |
|
|
12756 | GCC_F77="$G77" |
|
|
12757 | LD_F77="$LD" |
|
|
12758 | |
|
|
12759 | lt_prog_compiler_wl_F77= |
|
|
12760 | lt_prog_compiler_pic_F77= |
|
|
12761 | lt_prog_compiler_static_F77= |
|
|
12762 | |
|
|
12763 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
12764 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
12765 | |
|
|
12766 | if test "$GCC" = yes; then |
|
|
12767 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12768 | lt_prog_compiler_static_F77='-static' |
|
|
12769 | |
|
|
12770 | case $host_os in |
|
|
12771 | aix*) |
|
|
12772 | # All AIX code is PIC. |
|
|
12773 | if test "$host_cpu" = ia64; then |
|
|
12774 | # AIX 5 now supports IA64 processor |
|
|
12775 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12776 | fi |
|
|
12777 | ;; |
|
|
12778 | |
|
|
12779 | amigaos*) |
|
|
12780 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
12781 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
12782 | # like `-m68040'. |
|
|
12783 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
|
|
12784 | ;; |
|
|
12785 | |
|
|
12786 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
12787 | # PIC is the default for these OSes. |
|
|
12788 | ;; |
|
|
12789 | |
|
|
12790 | mingw* | pw32* | os2*) |
|
|
12791 | # This hack is so that the source file can tell whether it is being |
|
|
12792 | # built for inclusion in a dll (and should export symbols for example). |
|
|
12793 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
|
12794 | ;; |
|
|
12795 | |
|
|
12796 | darwin* | rhapsody*) |
|
|
12797 | # PIC is the default on this platform |
|
|
12798 | # Common symbols not allowed in MH_DYLIB files |
|
|
12799 | lt_prog_compiler_pic_F77='-fno-common' |
|
|
12800 | ;; |
|
|
12801 | |
|
|
12802 | msdosdjgpp*) |
|
|
12803 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
|
12804 | # on systems that don't support them. |
|
|
12805 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12806 | enable_shared=no |
|
|
12807 | ;; |
|
|
12808 | |
|
|
12809 | sysv4*MP*) |
|
|
12810 | if test -d /usr/nec; then |
|
|
12811 | lt_prog_compiler_pic_F77=-Kconform_pic |
|
|
12812 | fi |
|
|
12813 | ;; |
|
|
12814 | |
|
|
12815 | hpux*) |
|
|
12816 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
12817 | # not for PA HP-UX. |
|
|
12818 | case "$host_cpu" in |
|
|
12819 | hppa*64*|ia64*) |
|
|
12820 | # +Z the default |
|
|
12821 | ;; |
|
|
12822 | *) |
|
|
12823 | lt_prog_compiler_pic_F77='-fPIC' |
|
|
12824 | ;; |
|
|
12825 | esac |
|
|
12826 | ;; |
|
|
12827 | |
|
|
12828 | *) |
|
|
12829 | lt_prog_compiler_pic_F77='-fPIC' |
|
|
12830 | ;; |
|
|
12831 | esac |
|
|
12832 | else |
|
|
12833 | # PORTME Check for flag to pass linker flags through the system compiler. |
|
|
12834 | case $host_os in |
|
|
12835 | aix*) |
|
|
12836 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12837 | if test "$host_cpu" = ia64; then |
|
|
12838 | # AIX 5 now supports IA64 processor |
|
|
12839 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12840 | else |
|
|
12841 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
|
|
12842 | fi |
|
|
12843 | ;; |
|
|
12844 | |
|
|
12845 | mingw* | pw32* | os2*) |
|
|
12846 | # This hack is so that the source file can tell whether it is being |
|
|
12847 | # built for inclusion in a dll (and should export symbols for example). |
|
|
12848 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
|
12849 | ;; |
|
|
12850 | |
|
|
12851 | hpux9* | hpux10* | hpux11*) |
|
|
12852 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12853 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
12854 | # not for PA HP-UX. |
|
|
12855 | case "$host_cpu" in |
|
|
12856 | hppa*64*|ia64*) |
|
|
12857 | # +Z the default |
|
|
12858 | ;; |
|
|
12859 | *) |
|
|
12860 | lt_prog_compiler_pic_F77='+Z' |
|
|
12861 | ;; |
|
|
12862 | esac |
|
|
12863 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
12864 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
|
|
12865 | ;; |
|
|
12866 | |
|
|
12867 | irix5* | irix6* | nonstopux*) |
|
|
12868 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12869 | # PIC (with -KPIC) is the default. |
|
|
12870 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12871 | ;; |
|
|
12872 | |
|
|
12873 | newsos6) |
|
|
12874 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12875 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12876 | ;; |
|
|
12877 | |
|
|
12878 | linux*) |
|
|
12879 | case $CC in |
|
|
12880 | icc* | ecc*) |
|
|
12881 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12882 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12883 | lt_prog_compiler_static_F77='-static' |
|
|
12884 | ;; |
|
|
12885 | ccc*) |
|
|
12886 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12887 | # All Alpha code is PIC. |
|
|
12888 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12889 | ;; |
|
|
12890 | esac |
|
|
12891 | ;; |
|
|
12892 | |
|
|
12893 | osf3* | osf4* | osf5*) |
|
|
12894 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12895 | # All OSF/1 code is PIC. |
|
|
12896 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12897 | ;; |
|
|
12898 | |
|
|
12899 | sco3.2v5*) |
|
|
12900 | lt_prog_compiler_pic_F77='-Kpic' |
|
|
12901 | lt_prog_compiler_static_F77='-dn' |
|
|
12902 | ;; |
|
|
12903 | |
|
|
12904 | solaris*) |
|
|
12905 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12906 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12907 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12908 | ;; |
|
|
12909 | |
|
|
12910 | sunos4*) |
|
|
12911 | lt_prog_compiler_wl_F77='-Qoption ld ' |
|
|
12912 | lt_prog_compiler_pic_F77='-PIC' |
|
|
12913 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12914 | ;; |
|
|
12915 | |
|
|
12916 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
12917 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12918 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12919 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12920 | ;; |
|
|
12921 | |
|
|
12922 | sysv4*MP*) |
|
|
12923 | if test -d /usr/nec ;then |
|
|
12924 | lt_prog_compiler_pic_F77='-Kconform_pic' |
|
|
12925 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12926 | fi |
|
|
12927 | ;; |
|
|
12928 | |
|
|
12929 | uts4*) |
|
|
12930 | lt_prog_compiler_pic_F77='-pic' |
|
|
12931 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12932 | ;; |
|
|
12933 | |
|
|
12934 | *) |
|
|
12935 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12936 | ;; |
|
|
12937 | esac |
|
|
12938 | fi |
|
|
12939 | |
|
|
12940 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
|
|
12941 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
|
|
12942 | |
|
|
12943 | # |
|
|
12944 | # Check to make sure the PIC flag actually works. |
|
|
12945 | # |
|
|
12946 | if test -n "$lt_prog_compiler_pic_F77"; then |
|
|
12947 | |
|
|
12948 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
|
|
12949 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
|
|
12950 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
|
|
12951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12952 | else |
|
|
12953 | lt_prog_compiler_pic_works_F77=no |
|
|
12954 | ac_outfile=conftest.$ac_objext |
|
|
12955 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
12956 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
|
|
12957 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
12958 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
12959 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
12960 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
12961 | # The option is referenced via a variable to avoid confusing sed. |
|
|
12962 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
12963 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
|
12964 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
12965 | -e 's:$: $lt_compiler_flag:'` |
|
|
12966 | (eval echo "\"\$as_me:12966: $lt_compile\"" >&5) |
|
|
12967 | (eval "$lt_compile" 2>conftest.err) |
|
|
12968 | ac_status=$? |
|
|
12969 | cat conftest.err >&5 |
|
|
12970 | echo "$as_me:12970: \$? = $ac_status" >&5 |
|
|
12971 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
12972 | # The compiler can only warn and ignore the option if not recognized |
|
|
12973 | # So say no if there are warnings |
|
|
12974 | if test ! -s conftest.err; then |
|
|
12975 | lt_prog_compiler_pic_works_F77=yes |
|
|
12976 | fi |
|
|
12977 | fi |
|
|
12978 | $rm conftest* |
|
|
12979 | |
|
|
12980 | fi |
|
|
12981 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
|
|
12982 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
|
|
12983 | |
|
|
12984 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
|
|
12985 | case $lt_prog_compiler_pic_F77 in |
|
|
12986 | "" | " "*) ;; |
|
|
12987 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
|
|
12988 | esac |
|
|
12989 | else |
|
|
12990 | lt_prog_compiler_pic_F77= |
|
|
12991 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12992 | fi |
|
|
12993 | |
|
|
12994 | fi |
|
|
12995 | case "$host_os" in |
|
|
12996 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
12997 | *djgpp*) |
|
|
12998 | lt_prog_compiler_pic_F77= |
|
|
12999 | ;; |
|
|
13000 | *) |
|
|
13001 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
|
|
13002 | ;; |
|
|
13003 | esac |
|
|
13004 | |
|
|
13005 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
13006 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
13007 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
|
|
13008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13009 | else |
|
|
13010 | lt_cv_prog_compiler_c_o_F77=no |
|
|
13011 | $rm -r conftest 2>/dev/null |
|
|
13012 | mkdir conftest |
|
|
13013 | cd conftest |
|
|
13014 | mkdir out |
|
|
13015 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
13016 | |
|
|
13017 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
13018 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
13019 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
13020 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
13021 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
13022 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
13023 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
|
13024 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
13025 | -e 's:$: $lt_compiler_flag:'` |
|
|
13026 | (eval echo "\"\$as_me:13026: $lt_compile\"" >&5) |
|
|
13027 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
13028 | ac_status=$? |
|
|
13029 | cat out/conftest.err >&5 |
|
|
13030 | echo "$as_me:13030: \$? = $ac_status" >&5 |
|
|
13031 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
13032 | then |
|
|
13033 | # The compiler can only warn and ignore the option if not recognized |
|
|
13034 | # So say no if there are warnings |
|
|
13035 | if test ! -s out/conftest.err; then |
|
|
13036 | lt_cv_prog_compiler_c_o_F77=yes |
|
|
13037 | fi |
|
|
13038 | fi |
|
|
13039 | chmod u+w . |
|
|
13040 | $rm conftest* |
|
|
13041 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
13042 | # template instantiation |
|
|
13043 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
13044 | $rm out/* && rmdir out |
|
|
13045 | cd .. |
|
|
13046 | rmdir conftest |
|
|
13047 | $rm conftest* |
|
|
13048 | |
|
|
13049 | fi |
|
|
13050 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
|
|
13051 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
|
|
13052 | |
|
|
13053 | |
|
|
13054 | hard_links="nottested" |
|
|
13055 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
|
|
13056 | # do not overwrite the value of need_locks provided by the user |
|
|
13057 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
13058 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
13059 | hard_links=yes |
|
|
13060 | $rm conftest* |
|
|
13061 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
13062 | touch conftest.a |
|
|
13063 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
13064 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
13065 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
13066 | echo "${ECHO_T}$hard_links" >&6 |
|
|
13067 | if test "$hard_links" = no; then |
|
|
13068 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
13069 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
13070 | need_locks=warn |
|
|
13071 | fi |
|
|
13072 | else |
|
|
13073 | need_locks=no |
|
|
13074 | fi |
|
|
13075 | |
|
|
13076 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
13077 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
13078 | |
|
|
13079 | runpath_var= |
|
|
13080 | allow_undefined_flag_F77= |
|
|
13081 | enable_shared_with_static_runtimes_F77=no |
|
|
13082 | archive_cmds_F77= |
|
|
13083 | archive_expsym_cmds_F77= |
|
|
13084 | old_archive_From_new_cmds_F77= |
|
|
13085 | old_archive_from_expsyms_cmds_F77= |
|
|
13086 | export_dynamic_flag_spec_F77= |
|
|
13087 | whole_archive_flag_spec_F77= |
|
|
13088 | thread_safe_flag_spec_F77= |
|
|
13089 | hardcode_libdir_flag_spec_F77= |
|
|
13090 | hardcode_libdir_flag_spec_ld_F77= |
|
|
13091 | hardcode_libdir_separator_F77= |
|
|
13092 | hardcode_direct_F77=no |
|
|
13093 | hardcode_minus_L_F77=no |
|
|
13094 | hardcode_shlibpath_var_F77=unsupported |
|
|
13095 | link_all_deplibs_F77=unknown |
|
|
13096 | hardcode_automatic_F77=no |
|
|
13097 | module_cmds_F77= |
|
|
13098 | module_expsym_cmds_F77= |
|
|
13099 | always_export_symbols_F77=no |
|
|
13100 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
13101 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
13102 | # included in the symbol list |
|
|
13103 | include_expsyms_F77= |
|
|
13104 | # exclude_expsyms can be an extended regexp of symbols to exclude |
|
|
13105 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
13106 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
13107 | # as well as any symbol that contains `d'. |
|
|
13108 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
|
|
13109 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
13110 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
13111 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
13112 | # rely on this symbol name, it's probably fine to never include it in |
|
|
13113 | # preloaded symbol tables. |
|
|
13114 | extract_expsyms_cmds= |
|
|
13115 | |
|
|
13116 | case $host_os in |
|
|
13117 | cygwin* | mingw* | pw32*) |
|
|
13118 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
13119 | # When not using gcc, we currently assume that we are using |
|
|
13120 | # Microsoft Visual C++. |
|
|
13121 | if test "$GCC" != yes; then |
|
|
13122 | with_gnu_ld=no |
|
|
13123 | fi |
|
|
13124 | ;; |
|
|
13125 | openbsd*) |
|
|
13126 | with_gnu_ld=no |
|
|
13127 | ;; |
|
|
13128 | esac |
|
|
13129 | |
|
|
13130 | ld_shlibs_F77=yes |
|
|
13131 | if test "$with_gnu_ld" = yes; then |
|
|
13132 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
13133 | wlarc='${wl}' |
|
|
13134 | |
|
|
13135 | # See if GNU ld supports shared libraries. |
|
|
13136 | case $host_os in |
|
|
13137 | aix3* | aix4* | aix5*) |
|
|
13138 | # On AIX/PPC, the GNU linker is very broken |
|
|
13139 | if test "$host_cpu" != ia64; then |
|
|
13140 | ld_shlibs_F77=no |
|
|
13141 | cat <<EOF 1>&2 |
|
|
13142 | |
|
|
13143 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
13144 | *** to be unable to reliably create shared libraries on AIX. |
|
|
13145 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
13146 | *** really care for shared libraries, you may want to modify your PATH |
|
|
13147 | *** so that a non-GNU linker is found, and then restart. |
|
|
13148 | |
|
|
13149 | EOF |
|
|
13150 | fi |
|
|
13151 | ;; |
|
|
13152 | |
|
|
13153 | amigaos*) |
|
|
13154 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
13155 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13156 | hardcode_minus_L_F77=yes |
|
|
13157 | |
|
|
13158 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
13159 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
13160 | # to version 4, is to share data among multiple programs linked |
|
|
13161 | # with the same dynamic library. Since this doesn't match the |
|
|
13162 | # behavior of shared libraries on other platforms, we can't use |
|
|
13163 | # them. |
|
|
13164 | ld_shlibs_F77=no |
|
|
13165 | ;; |
|
|
13166 | |
|
|
13167 | beos*) |
|
|
13168 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
13169 | allow_undefined_flag_F77=unsupported |
|
|
13170 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
13171 | # support --undefined. This deserves some investigation. FIXME |
|
|
13172 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
13173 | else |
|
|
13174 | ld_shlibs_F77=no |
|
|
13175 | fi |
|
|
13176 | ;; |
|
|
13177 | |
|
|
13178 | cygwin* | mingw* | pw32*) |
|
|
13179 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
|
|
13180 | # as there is no search path for DLLs. |
|
|
13181 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13182 | allow_undefined_flag_F77=unsupported |
|
|
13183 | always_export_symbols_F77=no |
|
|
13184 | enable_shared_with_static_runtimes_F77=yes |
|
|
13185 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
13186 | |
|
|
13187 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
13188 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
|
13189 | # If the export-symbols file already is a .def file (1st line |
|
|
13190 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
13191 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
13192 | cp $export_symbols $output_objdir/$soname.def; |
|
|
13193 | else |
|
|
13194 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
13195 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
13196 | fi~ |
|
|
13197 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
|
13198 | else |
|
|
13199 | ld_shlibs=no |
|
|
13200 | fi |
|
|
13201 | ;; |
|
|
13202 | |
|
|
13203 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
13204 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
13205 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
13206 | wlarc= |
|
|
13207 | else |
|
|
13208 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
13209 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
13210 | fi |
|
|
13211 | ;; |
|
|
13212 | |
|
|
13213 | solaris* | sysv5*) |
|
|
13214 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
|
13215 | ld_shlibs_F77=no |
|
|
13216 | cat <<EOF 1>&2 |
|
|
13217 | |
|
|
13218 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
13219 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
13220 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
13221 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
13222 | *** your PATH or compiler configuration so that the native linker is |
|
|
13223 | *** used, and then restart. |
|
|
13224 | |
|
|
13225 | EOF |
|
|
13226 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
13227 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
13228 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
13229 | else |
|
|
13230 | ld_shlibs_F77=no |
|
|
13231 | fi |
|
|
13232 | ;; |
|
|
13233 | |
|
|
13234 | sunos4*) |
|
|
13235 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
13236 | wlarc= |
|
|
13237 | hardcode_direct_F77=yes |
|
|
13238 | hardcode_shlibpath_var_F77=no |
|
|
13239 | ;; |
|
|
13240 | |
|
|
13241 | linux*) |
|
|
13242 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
13243 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
13244 | archive_cmds_F77="$tmp_archive_cmds" |
|
|
13245 | supports_anon_versioning=no |
|
|
13246 | case `$LD -v 2>/dev/null` in |
|
|
13247 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
13248 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
13249 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
13250 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
13251 | *) supports_anon_versioning=yes ;; |
|
|
13252 | esac |
|
|
13253 | if test $supports_anon_versioning = yes; then |
|
|
13254 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
13255 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
13256 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
13257 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
13258 | else |
|
|
13259 | archive_expsym_cmds_F77="$tmp_archive_cmds" |
|
|
13260 | fi |
|
|
13261 | link_all_deplibs_F77=no |
|
|
13262 | else |
|
|
13263 | ld_shlibs_F77=no |
|
|
13264 | fi |
|
|
13265 | ;; |
|
|
13266 | |
|
|
13267 | *) |
|
|
13268 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
13269 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
13270 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
13271 | else |
|
|
13272 | ld_shlibs_F77=no |
|
|
13273 | fi |
|
|
13274 | ;; |
|
|
13275 | esac |
|
|
13276 | |
|
|
13277 | if test "$ld_shlibs_F77" = yes; then |
|
|
13278 | runpath_var=LD_RUN_PATH |
|
|
13279 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
|
|
13280 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
|
|
13281 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
13282 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
13283 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
13284 | else |
|
|
13285 | whole_archive_flag_spec_F77= |
|
|
13286 | fi |
|
|
13287 | fi |
|
|
13288 | else |
|
|
13289 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
13290 | case $host_os in |
|
|
13291 | aix3*) |
|
|
13292 | allow_undefined_flag_F77=unsupported |
|
|
13293 | always_export_symbols_F77=yes |
|
|
13294 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
13295 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
13296 | # are no directories specified by -L. |
|
|
13297 | hardcode_minus_L_F77=yes |
|
|
13298 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
13299 | # Neither direct hardcoding nor static linking is supported with a |
|
|
13300 | # broken collect2. |
|
|
13301 | hardcode_direct_F77=unsupported |
|
|
13302 | fi |
|
|
13303 | ;; |
|
|
13304 | |
|
|
13305 | aix4* | aix5*) |
|
|
13306 | if test "$host_cpu" = ia64; then |
|
|
13307 | # On IA64, the linker does run time linking by default, so we don't |
|
|
13308 | # have to do anything special. |
|
|
13309 | aix_use_runtimelinking=no |
|
|
13310 | exp_sym_flag='-Bexport' |
|
|
13311 | no_entry_flag="" |
|
|
13312 | else |
|
|
13313 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
13314 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
13315 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
13316 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
13317 | else |
|
|
13318 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
13319 | fi |
|
|
13320 | aix_use_runtimelinking=no |
|
|
13321 | |
|
|
13322 | # Test if we are trying to use run time linking or normal |
|
|
13323 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
13324 | # need to do runtime linking. |
|
|
13325 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
13326 | for ld_flag in $LDFLAGS; do |
|
|
13327 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
13328 | aix_use_runtimelinking=yes |
|
|
13329 | break |
|
|
13330 | fi |
|
|
13331 | done |
|
|
13332 | esac |
|
|
13333 | |
|
|
13334 | exp_sym_flag='-bexport' |
|
|
13335 | no_entry_flag='-bnoentry' |
|
|
13336 | fi |
|
|
13337 | |
|
|
13338 | # When large executables or shared objects are built, AIX ld can |
|
|
13339 | # have problems creating the table of contents. If linking a library |
|
|
13340 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
13341 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
13342 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
13343 | |
|
|
13344 | archive_cmds_F77='' |
|
|
13345 | hardcode_direct_F77=yes |
|
|
13346 | hardcode_libdir_separator_F77=':' |
|
|
13347 | link_all_deplibs_F77=yes |
|
|
13348 | |
|
|
13349 | if test "$GCC" = yes; then |
|
|
13350 | case $host_os in aix4.012|aix4.012.*) |
|
|
13351 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
13352 | # below for broken collect2 doesn't work under 4.3+ |
|
|
13353 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
13354 | if test -f "$collect2name" && \ |
|
|
13355 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
13356 | then |
|
|
13357 | # We have reworked collect2 |
|
|
13358 | hardcode_direct_F77=yes |
|
|
13359 | else |
|
|
13360 | # We have old collect2 |
|
|
13361 | hardcode_direct_F77=unsupported |
|
|
13362 | # It fails to find uninstalled libraries when the uninstalled |
|
|
13363 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
13364 | # to unsupported forces relinking |
|
|
13365 | hardcode_minus_L_F77=yes |
|
|
13366 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13367 | hardcode_libdir_separator_F77= |
|
|
13368 | fi |
|
|
13369 | esac |
|
|
13370 | shared_flag='-shared' |
|
|
13371 | else |
|
|
13372 | # not using gcc |
|
|
13373 | if test "$host_cpu" = ia64; then |
|
|
13374 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
13375 | # chokes on -Wl,-G. The following line is correct: |
|
|
13376 | shared_flag='-G' |
|
|
13377 | else |
|
|
13378 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13379 | shared_flag='${wl}-G' |
|
|
13380 | else |
|
|
13381 | shared_flag='${wl}-bM:SRE' |
|
|
13382 | fi |
|
|
13383 | fi |
|
|
13384 | fi |
|
|
13385 | |
|
|
13386 | # It seems that -bexpall does not export symbols beginning with |
|
|
13387 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
13388 | always_export_symbols_F77=yes |
|
|
13389 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13390 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
13391 | # -berok will link without error, but may produce a broken library. |
|
|
13392 | allow_undefined_flag_F77='-berok' |
|
|
13393 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
13394 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13395 | program main |
|
|
13396 | |
|
|
13397 | end |
|
|
13398 | _ACEOF |
|
|
13399 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13401 | (eval $ac_link) 2>conftest.er1 |
|
|
13402 | ac_status=$? |
|
|
13403 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13404 | rm -f conftest.er1 |
|
|
13405 | cat conftest.err >&5 |
|
|
13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13407 | (exit $ac_status); } && |
|
|
13408 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
13409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13410 | (eval $ac_try) 2>&5 |
|
|
13411 | ac_status=$? |
|
|
13412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13413 | (exit $ac_status); }; } && |
|
|
13414 | { ac_try='test -s conftest$ac_exeext' |
|
|
13415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13416 | (eval $ac_try) 2>&5 |
|
|
13417 | ac_status=$? |
|
|
13418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13419 | (exit $ac_status); }; }; then |
|
|
13420 | |
|
|
13421 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13422 | }'` |
|
|
13423 | # Check for a 64-bit object if we didn't find anything. |
|
|
13424 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13425 | }'`; fi |
|
|
13426 | else |
|
|
13427 | echo "$as_me: failed program was:" >&5 |
|
|
13428 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13429 | |
|
|
13430 | fi |
|
|
13431 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13432 | conftest$ac_exeext conftest.$ac_ext |
|
|
13433 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
13434 | |
|
|
13435 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
13436 | 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" |
|
|
13437 | else |
|
|
13438 | if test "$host_cpu" = ia64; then |
|
|
13439 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
|
|
13440 | allow_undefined_flag_F77="-z nodefs" |
|
|
13441 | 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" |
|
|
13442 | else |
|
|
13443 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
13444 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13445 | program main |
|
|
13446 | |
|
|
13447 | end |
|
|
13448 | _ACEOF |
|
|
13449 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13451 | (eval $ac_link) 2>conftest.er1 |
|
|
13452 | ac_status=$? |
|
|
13453 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13454 | rm -f conftest.er1 |
|
|
13455 | cat conftest.err >&5 |
|
|
13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13457 | (exit $ac_status); } && |
|
|
13458 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
13459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13460 | (eval $ac_try) 2>&5 |
|
|
13461 | ac_status=$? |
|
|
13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13463 | (exit $ac_status); }; } && |
|
|
13464 | { ac_try='test -s conftest$ac_exeext' |
|
|
13465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13466 | (eval $ac_try) 2>&5 |
|
|
13467 | ac_status=$? |
|
|
13468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13469 | (exit $ac_status); }; }; then |
|
|
13470 | |
|
|
13471 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13472 | }'` |
|
|
13473 | # Check for a 64-bit object if we didn't find anything. |
|
|
13474 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13475 | }'`; fi |
|
|
13476 | else |
|
|
13477 | echo "$as_me: failed program was:" >&5 |
|
|
13478 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13479 | |
|
|
13480 | fi |
|
|
13481 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13482 | conftest$ac_exeext conftest.$ac_ext |
|
|
13483 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
13484 | |
|
|
13485 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
13486 | # Warning - without using the other run time loading flags, |
|
|
13487 | # -berok will link without error, but may produce a broken library. |
|
|
13488 | no_undefined_flag_F77=' ${wl}-bernotok' |
|
|
13489 | allow_undefined_flag_F77=' ${wl}-berok' |
|
|
13490 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
13491 | always_export_symbols_F77=yes |
|
|
13492 | # Exported symbols can be pulled into shared objects from archives |
|
|
13493 | whole_archive_flag_spec_F77=' ' |
|
|
13494 | archive_cmds_need_lc_F77=yes |
|
|
13495 | # This is similar to how AIX traditionally builds it's shared libraries. |
|
|
13496 | 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' |
|
|
13497 | fi |
|
|
13498 | fi |
|
|
13499 | ;; |
|
|
13500 | |
|
|
13501 | amigaos*) |
|
|
13502 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
13503 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13504 | hardcode_minus_L_F77=yes |
|
|
13505 | # see comment about different semantics on the GNU ld section |
|
|
13506 | ld_shlibs_F77=no |
|
|
13507 | ;; |
|
|
13508 | |
|
|
13509 | bsdi4*) |
|
|
13510 | export_dynamic_flag_spec_F77=-rdynamic |
|
|
13511 | ;; |
|
|
13512 | |
|
|
13513 | cygwin* | mingw* | pw32*) |
|
|
13514 | # When not using gcc, we currently assume that we are using |
|
|
13515 | # Microsoft Visual C++. |
|
|
13516 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
13517 | # no search path for DLLs. |
|
|
13518 | hardcode_libdir_flag_spec_F77=' ' |
|
|
13519 | allow_undefined_flag_F77=unsupported |
|
|
13520 | # Tell ltmain to make .lib files, not .a files. |
|
|
13521 | libext=lib |
|
|
13522 | # Tell ltmain to make .dll files, not .so files. |
|
|
13523 | shrext_cmds=".dll" |
|
|
13524 | # FIXME: Setting linknames here is a bad hack. |
|
|
13525 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
13526 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
13527 | old_archive_From_new_cmds_F77='true' |
|
|
13528 | # FIXME: Should let the user specify the lib program. |
|
|
13529 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
13530 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
13531 | enable_shared_with_static_runtimes_F77=yes |
|
|
13532 | ;; |
|
|
13533 | |
|
|
13534 | darwin* | rhapsody*) |
|
|
13535 | if test "$GXX" = yes ; then |
|
|
13536 | archive_cmds_need_lc_F77=no |
|
|
13537 | case "$host_os" in |
|
|
13538 | rhapsody* | darwin1.[012]) |
|
|
13539 | allow_undefined_flag_F77='-undefined suppress' |
|
|
13540 | ;; |
|
|
13541 | *) # Darwin 1.3 on |
|
|
13542 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
13543 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
|
|
13544 | else |
|
|
13545 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
13546 | 10.[012]) |
|
|
13547 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
|
|
13548 | ;; |
|
|
13549 | 10.*) |
|
|
13550 | allow_undefined_flag_F77='-undefined dynamic_lookup' |
|
|
13551 | ;; |
|
|
13552 | esac |
|
|
13553 | fi |
|
|
13554 | ;; |
|
|
13555 | esac |
|
|
13556 | lt_int_apple_cc_single_mod=no |
|
|
13557 | output_verbose_link_cmd='echo' |
|
|
13558 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
13559 | lt_int_apple_cc_single_mod=yes |
|
|
13560 | fi |
|
|
13561 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
13562 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
13563 | else |
|
|
13564 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
13565 | fi |
|
|
13566 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
13567 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
13568 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
13569 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
13570 | else |
|
|
13571 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
13572 | fi |
|
|
13573 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
13574 | hardcode_direct_F77=no |
|
|
13575 | hardcode_automatic_F77=yes |
|
|
13576 | hardcode_shlibpath_var_F77=unsupported |
|
|
13577 | whole_archive_flag_spec_F77='-all_load $convenience' |
|
|
13578 | link_all_deplibs_F77=yes |
|
|
13579 | else |
|
|
13580 | ld_shlibs_F77=no |
|
|
13581 | fi |
|
|
13582 | ;; |
|
|
13583 | |
|
|
13584 | dgux*) |
|
|
13585 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13586 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13587 | hardcode_shlibpath_var_F77=no |
|
|
13588 | ;; |
|
|
13589 | |
|
|
13590 | freebsd1*) |
|
|
13591 | ld_shlibs_F77=no |
|
|
13592 | ;; |
|
|
13593 | |
|
|
13594 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
13595 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
13596 | # does not break anything, and helps significantly (at the cost of a little |
|
|
13597 | # extra space). |
|
|
13598 | freebsd2.2*) |
|
|
13599 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
13600 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13601 | hardcode_direct_F77=yes |
|
|
13602 | hardcode_shlibpath_var_F77=no |
|
|
13603 | ;; |
|
|
13604 | |
|
|
13605 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
13606 | freebsd2*) |
|
|
13607 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
13608 | hardcode_direct_F77=yes |
|
|
13609 | hardcode_minus_L_F77=yes |
|
|
13610 | hardcode_shlibpath_var_F77=no |
|
|
13611 | ;; |
|
|
13612 | |
|
|
13613 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
13614 | freebsd* | kfreebsd*-gnu) |
|
|
13615 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13616 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13617 | hardcode_direct_F77=yes |
|
|
13618 | hardcode_shlibpath_var_F77=no |
|
|
13619 | ;; |
|
|
13620 | |
|
|
13621 | hpux9*) |
|
|
13622 | if test "$GCC" = yes; then |
|
|
13623 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
13624 | else |
|
|
13625 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
13626 | fi |
|
|
13627 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13628 | hardcode_libdir_separator_F77=: |
|
|
13629 | hardcode_direct_F77=yes |
|
|
13630 | |
|
|
13631 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13632 | # but as the default location of the library. |
|
|
13633 | hardcode_minus_L_F77=yes |
|
|
13634 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13635 | ;; |
|
|
13636 | |
|
|
13637 | hpux10* | hpux11*) |
|
|
13638 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
13639 | case "$host_cpu" in |
|
|
13640 | hppa*64*|ia64*) |
|
|
13641 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13642 | ;; |
|
|
13643 | *) |
|
|
13644 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13645 | ;; |
|
|
13646 | esac |
|
|
13647 | else |
|
|
13648 | case "$host_cpu" in |
|
|
13649 | hppa*64*|ia64*) |
|
|
13650 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13651 | ;; |
|
|
13652 | *) |
|
|
13653 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
13654 | ;; |
|
|
13655 | esac |
|
|
13656 | fi |
|
|
13657 | if test "$with_gnu_ld" = no; then |
|
|
13658 | case "$host_cpu" in |
|
|
13659 | hppa*64*) |
|
|
13660 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13661 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
|
|
13662 | hardcode_libdir_separator_F77=: |
|
|
13663 | hardcode_direct_F77=no |
|
|
13664 | hardcode_shlibpath_var_F77=no |
|
|
13665 | ;; |
|
|
13666 | ia64*) |
|
|
13667 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13668 | hardcode_direct_F77=no |
|
|
13669 | hardcode_shlibpath_var_F77=no |
|
|
13670 | |
|
|
13671 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13672 | # but as the default location of the library. |
|
|
13673 | hardcode_minus_L_F77=yes |
|
|
13674 | ;; |
|
|
13675 | *) |
|
|
13676 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13677 | hardcode_libdir_separator_F77=: |
|
|
13678 | hardcode_direct_F77=yes |
|
|
13679 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13680 | |
|
|
13681 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13682 | # but as the default location of the library. |
|
|
13683 | hardcode_minus_L_F77=yes |
|
|
13684 | ;; |
|
|
13685 | esac |
|
|
13686 | fi |
|
|
13687 | ;; |
|
|
13688 | |
|
|
13689 | irix5* | irix6* | nonstopux*) |
|
|
13690 | if test "$GCC" = yes; then |
|
|
13691 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
13692 | else |
|
|
13693 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
13694 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
|
|
13695 | fi |
|
|
13696 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13697 | hardcode_libdir_separator_F77=: |
|
|
13698 | link_all_deplibs_F77=yes |
|
|
13699 | ;; |
|
|
13700 | |
|
|
13701 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
13702 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
13703 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
13704 | else |
|
|
13705 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
13706 | fi |
|
|
13707 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13708 | hardcode_direct_F77=yes |
|
|
13709 | hardcode_shlibpath_var_F77=no |
|
|
13710 | ;; |
|
|
13711 | |
|
|
13712 | newsos6) |
|
|
13713 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13714 | hardcode_direct_F77=yes |
|
|
13715 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13716 | hardcode_libdir_separator_F77=: |
|
|
13717 | hardcode_shlibpath_var_F77=no |
|
|
13718 | ;; |
|
|
13719 | |
|
|
13720 | openbsd*) |
|
|
13721 | hardcode_direct_F77=yes |
|
|
13722 | hardcode_shlibpath_var_F77=no |
|
|
13723 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
13724 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13725 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
13726 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13727 | else |
|
|
13728 | case $host_os in |
|
|
13729 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
13730 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
13731 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13732 | ;; |
|
|
13733 | *) |
|
|
13734 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13735 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
13736 | ;; |
|
|
13737 | esac |
|
|
13738 | fi |
|
|
13739 | ;; |
|
|
13740 | |
|
|
13741 | os2*) |
|
|
13742 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13743 | hardcode_minus_L_F77=yes |
|
|
13744 | allow_undefined_flag_F77=unsupported |
|
|
13745 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
|
|
13746 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
13747 | ;; |
|
|
13748 | |
|
|
13749 | osf3*) |
|
|
13750 | if test "$GCC" = yes; then |
|
|
13751 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
|
13752 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
13753 | else |
|
|
13754 | allow_undefined_flag_F77=' -expect_unresolved \*' |
|
|
13755 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
13756 | fi |
|
|
13757 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13758 | hardcode_libdir_separator_F77=: |
|
|
13759 | ;; |
|
|
13760 | |
|
|
13761 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
13762 | if test "$GCC" = yes; then |
|
|
13763 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
|
13764 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
13765 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13766 | else |
|
|
13767 | allow_undefined_flag_F77=' -expect_unresolved \*' |
|
|
13768 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
13769 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
13770 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
|
13771 | |
|
|
13772 | # Both c and cxx compiler support -rpath directly |
|
|
13773 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
|
|
13774 | fi |
|
|
13775 | hardcode_libdir_separator_F77=: |
|
|
13776 | ;; |
|
|
13777 | |
|
|
13778 | sco3.2v5*) |
|
|
13779 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13780 | hardcode_shlibpath_var_F77=no |
|
|
13781 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
|
13782 | runpath_var=LD_RUN_PATH |
|
|
13783 | hardcode_runpath_var=yes |
|
|
13784 | ;; |
|
|
13785 | |
|
|
13786 | solaris*) |
|
|
13787 | no_undefined_flag_F77=' -z text' |
|
|
13788 | if test "$GCC" = yes; then |
|
|
13789 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13790 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
13791 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
13792 | else |
|
|
13793 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13794 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
13795 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
13796 | fi |
|
|
13797 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13798 | hardcode_shlibpath_var_F77=no |
|
|
13799 | case $host_os in |
|
|
13800 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
13801 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
13802 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
|
|
13803 | esac |
|
|
13804 | link_all_deplibs_F77=yes |
|
|
13805 | ;; |
|
|
13806 | |
|
|
13807 | sunos4*) |
|
|
13808 | if test "x$host_vendor" = xsequent; then |
|
|
13809 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
13810 | # files that make .init and .fini sections work. |
|
|
13811 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13812 | else |
|
|
13813 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
13814 | fi |
|
|
13815 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13816 | hardcode_direct_F77=yes |
|
|
13817 | hardcode_minus_L_F77=yes |
|
|
13818 | hardcode_shlibpath_var_F77=no |
|
|
13819 | ;; |
|
|
13820 | |
|
|
13821 | sysv4) |
|
|
13822 | case $host_vendor in |
|
|
13823 | sni) |
|
|
13824 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13825 | hardcode_direct_F77=yes # is this really true??? |
|
|
13826 | ;; |
|
|
13827 | siemens) |
|
|
13828 | ## LD is ld it makes a PLAMLIB |
|
|
13829 | ## CC just makes a GrossModule. |
|
|
13830 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
13831 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
|
|
13832 | hardcode_direct_F77=no |
|
|
13833 | ;; |
|
|
13834 | motorola) |
|
|
13835 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13836 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
|
|
13837 | ;; |
|
|
13838 | esac |
|
|
13839 | runpath_var='LD_RUN_PATH' |
|
|
13840 | hardcode_shlibpath_var_F77=no |
|
|
13841 | ;; |
|
|
13842 | |
|
|
13843 | sysv4.3*) |
|
|
13844 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13845 | hardcode_shlibpath_var_F77=no |
|
|
13846 | export_dynamic_flag_spec_F77='-Bexport' |
|
|
13847 | ;; |
|
|
13848 | |
|
|
13849 | sysv4*MP*) |
|
|
13850 | if test -d /usr/nec; then |
|
|
13851 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13852 | hardcode_shlibpath_var_F77=no |
|
|
13853 | runpath_var=LD_RUN_PATH |
|
|
13854 | hardcode_runpath_var=yes |
|
|
13855 | ld_shlibs_F77=yes |
|
|
13856 | fi |
|
|
13857 | ;; |
|
|
13858 | |
|
|
13859 | sysv4.2uw2*) |
|
|
13860 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
13861 | hardcode_direct_F77=yes |
|
|
13862 | hardcode_minus_L_F77=no |
|
|
13863 | hardcode_shlibpath_var_F77=no |
|
|
13864 | hardcode_runpath_var=yes |
|
|
13865 | runpath_var=LD_RUN_PATH |
|
|
13866 | ;; |
|
|
13867 | |
|
|
13868 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
|
13869 | no_undefined_flag_F77='${wl}-z ${wl}text' |
|
|
13870 | if test "$GCC" = yes; then |
|
|
13871 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13872 | else |
|
|
13873 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13874 | fi |
|
|
13875 | runpath_var='LD_RUN_PATH' |
|
|
13876 | hardcode_shlibpath_var_F77=no |
|
|
13877 | ;; |
|
|
13878 | |
|
|
13879 | sysv5*) |
|
|
13880 | no_undefined_flag_F77=' -z text' |
|
|
13881 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
13882 | # object files and a static libstdc++, better avoid it by now |
|
|
13883 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13884 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
13885 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
13886 | hardcode_libdir_flag_spec_F77= |
|
|
13887 | hardcode_shlibpath_var_F77=no |
|
|
13888 | runpath_var='LD_RUN_PATH' |
|
|
13889 | ;; |
|
|
13890 | |
|
|
13891 | uts4*) |
|
|
13892 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13893 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13894 | hardcode_shlibpath_var_F77=no |
|
|
13895 | ;; |
|
|
13896 | |
|
|
13897 | *) |
|
|
13898 | ld_shlibs_F77=no |
|
|
13899 | ;; |
|
|
13900 | esac |
|
|
13901 | fi |
|
|
13902 | |
|
|
13903 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
|
|
13904 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
|
|
13905 | test "$ld_shlibs_F77" = no && can_build_shared=no |
|
|
13906 | |
|
|
13907 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
13908 | if test "$GCC" = yes; then |
|
|
13909 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
13910 | fi |
|
|
13911 | |
|
|
13912 | # |
|
|
13913 | # Do we need to explicitly link libc? |
|
|
13914 | # |
|
|
13915 | case "x$archive_cmds_need_lc_F77" in |
|
|
13916 | x|xyes) |
|
|
13917 | # Assume -lc should be added |
|
|
13918 | archive_cmds_need_lc_F77=yes |
|
|
13919 | |
|
|
13920 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
13921 | case $archive_cmds_F77 in |
|
|
13922 | *'~'*) |
|
|
13923 | # FIXME: we may have to deal with multi-command sequences. |
|
|
13924 | ;; |
|
|
13925 | '$CC '*) |
|
|
13926 | # Test whether the compiler implicitly links with -lc since on some |
|
|
13927 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
13928 | # to ld, don't add -lc before -lgcc. |
|
|
13929 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
13930 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
13931 | $rm conftest* |
|
|
13932 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
13933 | |
|
|
13934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13935 | (eval $ac_compile) 2>&5 |
|
|
13936 | ac_status=$? |
|
|
13937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13938 | (exit $ac_status); } 2>conftest.err; then |
|
|
13939 | soname=conftest |
|
|
13940 | lib=conftest |
|
|
13941 | libobjs=conftest.$ac_objext |
|
|
13942 | deplibs= |
|
|
13943 | wl=$lt_prog_compiler_wl_F77 |
|
|
13944 | compiler_flags=-v |
|
|
13945 | linker_flags=-v |
|
|
13946 | verstring= |
|
|
13947 | output_objdir=. |
|
|
13948 | libname=conftest |
|
|
13949 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
|
|
13950 | allow_undefined_flag_F77= |
|
|
13951 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
13952 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
13953 | ac_status=$? |
|
|
13954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13955 | (exit $ac_status); } |
|
|
13956 | then |
|
|
13957 | archive_cmds_need_lc_F77=no |
|
|
13958 | else |
|
|
13959 | archive_cmds_need_lc_F77=yes |
|
|
13960 | fi |
|
|
13961 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
|
|
13962 | else |
|
|
13963 | cat conftest.err 1>&5 |
|
|
13964 | fi |
|
|
13965 | $rm conftest* |
|
|
13966 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
|
|
13967 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
|
|
13968 | ;; |
|
|
13969 | esac |
|
|
13970 | fi |
|
|
13971 | ;; |
|
|
13972 | esac |
|
|
13973 | |
|
|
13974 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
13975 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
13976 | library_names_spec= |
|
|
13977 | libname_spec='lib$name' |
|
|
13978 | soname_spec= |
|
|
13979 | shrext_cmds=".so" |
|
|
13980 | postinstall_cmds= |
|
|
13981 | postuninstall_cmds= |
|
|
13982 | finish_cmds= |
|
|
13983 | finish_eval= |
|
|
13984 | shlibpath_var= |
|
|
13985 | shlibpath_overrides_runpath=unknown |
|
|
13986 | version_type=none |
|
|
13987 | dynamic_linker="$host_os ld.so" |
|
|
13988 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
13989 | if test "$GCC" = yes; then |
|
|
13990 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
13991 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
13992 | # if the path contains ";" then we assume it to be the separator |
|
|
13993 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
13994 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
13995 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
13996 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
13997 | else |
|
|
13998 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
13999 | fi |
|
|
14000 | else |
|
|
14001 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
14002 | fi |
|
|
14003 | need_lib_prefix=unknown |
|
|
14004 | hardcode_into_libs=no |
|
|
14005 | |
|
|
14006 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
14007 | # flags to be left without arguments |
|
|
14008 | need_version=unknown |
|
|
14009 | |
|
|
14010 | case $host_os in |
|
|
14011 | aix3*) |
|
|
14012 | version_type=linux |
|
|
14013 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
14014 | shlibpath_var=LIBPATH |
|
|
14015 | |
|
|
14016 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
14017 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14018 | ;; |
|
|
14019 | |
|
|
14020 | aix4* | aix5*) |
|
|
14021 | version_type=linux |
|
|
14022 | need_lib_prefix=no |
|
|
14023 | need_version=no |
|
|
14024 | hardcode_into_libs=yes |
|
|
14025 | if test "$host_cpu" = ia64; then |
|
|
14026 | # AIX 5 supports IA64 |
|
|
14027 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
14028 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14029 | else |
|
|
14030 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
14031 | # for dependence libraries. The import file would start with |
|
|
14032 | # the line `#! .'. This would cause the generated library to |
|
|
14033 | # depend on `.', always an invalid library. This was fixed in |
|
|
14034 | # development snapshots of GCC prior to 3.0. |
|
|
14035 | case $host_os in |
|
|
14036 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
14037 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
14038 | echo ' yes ' |
|
|
14039 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
14040 | : |
|
|
14041 | else |
|
|
14042 | can_build_shared=no |
|
|
14043 | fi |
|
|
14044 | ;; |
|
|
14045 | esac |
|
|
14046 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
14047 | # soname into executable. Probably we can add versioning support to |
|
|
14048 | # collect2, so additional links can be useful in future. |
|
|
14049 | if test "$aix_use_runtimelinking" = yes; then |
|
|
14050 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
14051 | # instead of lib<name>.a to let people know that these are not |
|
|
14052 | # typical AIX shared libraries. |
|
|
14053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14054 | else |
|
|
14055 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
14056 | # and later when we are not doing run time linking. |
|
|
14057 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
14058 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14059 | fi |
|
|
14060 | shlibpath_var=LIBPATH |
|
|
14061 | fi |
|
|
14062 | ;; |
|
|
14063 | |
|
|
14064 | amigaos*) |
|
|
14065 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
14066 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
14067 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
|
14068 | ;; |
|
|
14069 | |
|
|
14070 | beos*) |
|
|
14071 | library_names_spec='${libname}${shared_ext}' |
|
|
14072 | dynamic_linker="$host_os ld.so" |
|
|
14073 | shlibpath_var=LIBRARY_PATH |
|
|
14074 | ;; |
|
|
14075 | |
|
|
14076 | bsdi4*) |
|
|
14077 | version_type=linux |
|
|
14078 | need_version=no |
|
|
14079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14080 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14081 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
14082 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14083 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
14084 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
14085 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
14086 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
14087 | # libtool to hard-code these into programs |
|
|
14088 | ;; |
|
|
14089 | |
|
|
14090 | cygwin* | mingw* | pw32*) |
|
|
14091 | version_type=windows |
|
|
14092 | shrext_cmds=".dll" |
|
|
14093 | need_version=no |
|
|
14094 | need_lib_prefix=no |
|
|
14095 | |
|
|
14096 | case $GCC,$host_os in |
|
|
14097 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
14098 | library_names_spec='$libname.dll.a' |
|
|
14099 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
14100 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
14101 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
14102 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
14103 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
14104 | $install_prog $dir/$dlname \$dldir/$dlname' |
|
|
14105 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
14106 | dlpath=$dir/\$dldll~ |
|
|
14107 | $rm \$dlpath' |
|
|
14108 | shlibpath_overrides_runpath=yes |
|
|
14109 | |
|
|
14110 | case $host_os in |
|
|
14111 | cygwin*) |
|
|
14112 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
14113 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
14114 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
14115 | ;; |
|
|
14116 | mingw*) |
|
|
14117 | # MinGW DLLs use traditional 'lib' prefix |
|
|
14118 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
14119 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
14120 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
14121 | # It is most probably a Windows format PATH printed by |
|
|
14122 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
14123 | # path with ; separators, and with drive letters. We can handle the |
|
|
14124 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
14125 | # especially as we might pass files found there to a mingw objdump, |
|
|
14126 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
14127 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
14128 | else |
|
|
14129 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
14130 | fi |
|
|
14131 | ;; |
|
|
14132 | pw32*) |
|
|
14133 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
14134 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
|
14135 | ;; |
|
|
14136 | esac |
|
|
14137 | ;; |
|
|
14138 | |
|
|
14139 | *) |
|
|
14140 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
14141 | ;; |
|
|
14142 | esac |
|
|
14143 | dynamic_linker='Win32 ld.exe' |
|
|
14144 | # FIXME: first we should search . and the directory the executable is in |
|
|
14145 | shlibpath_var=PATH |
|
|
14146 | ;; |
|
|
14147 | |
|
|
14148 | darwin* | rhapsody*) |
|
|
14149 | dynamic_linker="$host_os dyld" |
|
|
14150 | version_type=darwin |
|
|
14151 | need_lib_prefix=no |
|
|
14152 | need_version=no |
|
|
14153 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
14154 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
14155 | shlibpath_overrides_runpath=yes |
|
|
14156 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
14157 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
|
|
14158 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
14159 | if test "$GCC" = yes; then |
|
|
14160 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
14161 | else |
|
|
14162 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
14163 | fi |
|
|
14164 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
14165 | ;; |
|
|
14166 | |
|
|
14167 | dgux*) |
|
|
14168 | version_type=linux |
|
|
14169 | need_lib_prefix=no |
|
|
14170 | need_version=no |
|
|
14171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
14172 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14173 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14174 | ;; |
|
|
14175 | |
|
|
14176 | freebsd1*) |
|
|
14177 | dynamic_linker=no |
|
|
14178 | ;; |
|
|
14179 | |
|
|
14180 | kfreebsd*-gnu) |
|
|
14181 | version_type=linux |
|
|
14182 | need_lib_prefix=no |
|
|
14183 | need_version=no |
|
|
14184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14185 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14186 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14187 | shlibpath_overrides_runpath=no |
|
|
14188 | hardcode_into_libs=yes |
|
|
14189 | dynamic_linker='GNU ld.so' |
|
|
14190 | ;; |
|
|
14191 | |
|
|
14192 | freebsd*) |
|
|
14193 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
14194 | version_type=freebsd-$objformat |
|
|
14195 | case $version_type in |
|
|
14196 | freebsd-elf*) |
|
|
14197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
14198 | need_version=no |
|
|
14199 | need_lib_prefix=no |
|
|
14200 | ;; |
|
|
14201 | freebsd-*) |
|
|
14202 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
14203 | need_version=yes |
|
|
14204 | ;; |
|
|
14205 | esac |
|
|
14206 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14207 | case $host_os in |
|
|
14208 | freebsd2*) |
|
|
14209 | shlibpath_overrides_runpath=yes |
|
|
14210 | ;; |
|
|
14211 | freebsd3.01* | freebsdelf3.01*) |
|
|
14212 | shlibpath_overrides_runpath=yes |
|
|
14213 | hardcode_into_libs=yes |
|
|
14214 | ;; |
|
|
14215 | *) # from 3.2 on |
|
|
14216 | shlibpath_overrides_runpath=no |
|
|
14217 | hardcode_into_libs=yes |
|
|
14218 | ;; |
|
|
14219 | esac |
|
|
14220 | ;; |
|
|
14221 | |
|
|
14222 | gnu*) |
|
|
14223 | version_type=linux |
|
|
14224 | need_lib_prefix=no |
|
|
14225 | need_version=no |
|
|
14226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
14227 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14228 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14229 | hardcode_into_libs=yes |
|
|
14230 | ;; |
|
|
14231 | |
|
|
14232 | hpux9* | hpux10* | hpux11*) |
|
|
14233 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
14234 | # link against other versions. |
|
|
14235 | version_type=sunos |
|
|
14236 | need_lib_prefix=no |
|
|
14237 | need_version=no |
|
|
14238 | case "$host_cpu" in |
|
|
14239 | ia64*) |
|
|
14240 | shrext_cmds='.so' |
|
|
14241 | hardcode_into_libs=yes |
|
|
14242 | dynamic_linker="$host_os dld.so" |
|
|
14243 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14244 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
14245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14246 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14247 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
14248 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
14249 | else |
|
|
14250 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
14251 | fi |
|
|
14252 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
14253 | ;; |
|
|
14254 | hppa*64*) |
|
|
14255 | shrext_cmds='.sl' |
|
|
14256 | hardcode_into_libs=yes |
|
|
14257 | dynamic_linker="$host_os dld.sl" |
|
|
14258 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
14259 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
14260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14261 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14262 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
14263 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
14264 | ;; |
|
|
14265 | *) |
|
|
14266 | shrext_cmds='.sl' |
|
|
14267 | dynamic_linker="$host_os dld.sl" |
|
|
14268 | shlibpath_var=SHLIB_PATH |
|
|
14269 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
14270 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14271 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14272 | ;; |
|
|
14273 | esac |
|
|
14274 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
14275 | postinstall_cmds='chmod 555 $lib' |
|
|
14276 | ;; |
|
|
14277 | |
|
|
14278 | irix5* | irix6* | nonstopux*) |
|
|
14279 | case $host_os in |
|
|
14280 | nonstopux*) version_type=nonstopux ;; |
|
|
14281 | *) |
|
|
14282 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
14283 | version_type=linux |
|
|
14284 | else |
|
|
14285 | version_type=irix |
|
|
14286 | fi ;; |
|
|
14287 | esac |
|
|
14288 | need_lib_prefix=no |
|
|
14289 | need_version=no |
|
|
14290 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
14292 | case $host_os in |
|
|
14293 | irix5* | nonstopux*) |
|
|
14294 | libsuff= shlibsuff= |
|
|
14295 | ;; |
|
|
14296 | *) |
|
|
14297 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
14298 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
14299 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
14300 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
14301 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
14302 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
14303 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
14304 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
14305 | esac |
|
|
14306 | ;; |
|
|
14307 | esac |
|
|
14308 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
14309 | shlibpath_overrides_runpath=no |
|
|
14310 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
14311 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
14312 | hardcode_into_libs=yes |
|
|
14313 | ;; |
|
|
14314 | |
|
|
14315 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
14316 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
14317 | dynamic_linker=no |
|
|
14318 | ;; |
|
|
14319 | |
|
|
14320 | # This must be Linux ELF. |
|
|
14321 | linux*) |
|
|
14322 | version_type=linux |
|
|
14323 | need_lib_prefix=no |
|
|
14324 | need_version=no |
|
|
14325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14326 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14327 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
14328 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14329 | shlibpath_overrides_runpath=no |
|
|
14330 | # This implies no fast_install, which is unacceptable. |
|
|
14331 | # Some rework will be needed to allow for fast_install |
|
|
14332 | # before this can be enabled. |
|
|
14333 | hardcode_into_libs=yes |
|
|
14334 | |
|
|
14335 | # Append ld.so.conf contents to the search path |
|
|
14336 | if test -f /etc/ld.so.conf; then |
|
|
14337 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
|
|
14338 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
14339 | fi |
|
|
14340 | |
|
|
14341 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
14342 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
14343 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
14344 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
14345 | # people can always --disable-shared, the test was removed, and we |
|
|
14346 | # assume the GNU/Linux dynamic linker is in use. |
|
|
14347 | dynamic_linker='GNU/Linux ld.so' |
|
|
14348 | ;; |
|
|
14349 | |
|
|
14350 | netbsdelf*-gnu) |
|
|
14351 | version_type=linux |
|
|
14352 | need_lib_prefix=no |
|
|
14353 | need_version=no |
|
|
14354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14355 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14356 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14357 | shlibpath_overrides_runpath=no |
|
|
14358 | hardcode_into_libs=yes |
|
|
14359 | dynamic_linker='NetBSD ld.elf_so' |
|
|
14360 | ;; |
|
|
14361 | |
|
|
14362 | knetbsd*-gnu) |
|
|
14363 | version_type=linux |
|
|
14364 | need_lib_prefix=no |
|
|
14365 | need_version=no |
|
|
14366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14367 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14368 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14369 | shlibpath_overrides_runpath=no |
|
|
14370 | hardcode_into_libs=yes |
|
|
14371 | dynamic_linker='GNU ld.so' |
|
|
14372 | ;; |
|
|
14373 | |
|
|
14374 | netbsd*) |
|
|
14375 | version_type=sunos |
|
|
14376 | need_lib_prefix=no |
|
|
14377 | need_version=no |
|
|
14378 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
14379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14380 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
14381 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
14382 | else |
|
|
14383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14384 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14385 | dynamic_linker='NetBSD ld.elf_so' |
|
|
14386 | fi |
|
|
14387 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14388 | shlibpath_overrides_runpath=yes |
|
|
14389 | hardcode_into_libs=yes |
|
|
14390 | ;; |
|
|
14391 | |
|
|
14392 | newsos6) |
|
|
14393 | version_type=linux |
|
|
14394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14395 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14396 | shlibpath_overrides_runpath=yes |
|
|
14397 | ;; |
|
|
14398 | |
|
|
14399 | nto-qnx*) |
|
|
14400 | version_type=linux |
|
|
14401 | need_lib_prefix=no |
|
|
14402 | need_version=no |
|
|
14403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14404 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14405 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14406 | shlibpath_overrides_runpath=yes |
|
|
14407 | ;; |
|
|
14408 | |
|
|
14409 | openbsd*) |
|
|
14410 | version_type=sunos |
|
|
14411 | need_lib_prefix=no |
|
|
14412 | need_version=yes |
|
|
14413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14414 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
14415 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14416 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
14417 | case $host_os in |
|
|
14418 | openbsd2.[89] | openbsd2.[89].*) |
|
|
14419 | shlibpath_overrides_runpath=no |
|
|
14420 | ;; |
|
|
14421 | *) |
|
|
14422 | shlibpath_overrides_runpath=yes |
|
|
14423 | ;; |
|
|
14424 | esac |
|
|
14425 | else |
|
|
14426 | shlibpath_overrides_runpath=yes |
|
|
14427 | fi |
|
|
14428 | ;; |
|
|
14429 | |
|
|
14430 | os2*) |
|
|
14431 | libname_spec='$name' |
|
|
14432 | shrext_cmds=".dll" |
|
|
14433 | need_lib_prefix=no |
|
|
14434 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
14435 | dynamic_linker='OS/2 ld.exe' |
|
|
14436 | shlibpath_var=LIBPATH |
|
|
14437 | ;; |
|
|
14438 | |
|
|
14439 | osf3* | osf4* | osf5*) |
|
|
14440 | version_type=osf |
|
|
14441 | need_lib_prefix=no |
|
|
14442 | need_version=no |
|
|
14443 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14445 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14446 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
14447 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
14448 | ;; |
|
|
14449 | |
|
|
14450 | sco3.2v5*) |
|
|
14451 | version_type=osf |
|
|
14452 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14454 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14455 | ;; |
|
|
14456 | |
|
|
14457 | solaris*) |
|
|
14458 | version_type=linux |
|
|
14459 | need_lib_prefix=no |
|
|
14460 | need_version=no |
|
|
14461 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14462 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14463 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14464 | shlibpath_overrides_runpath=yes |
|
|
14465 | hardcode_into_libs=yes |
|
|
14466 | # ldd complains unless libraries are executable |
|
|
14467 | postinstall_cmds='chmod +x $lib' |
|
|
14468 | ;; |
|
|
14469 | |
|
|
14470 | sunos4*) |
|
|
14471 | version_type=sunos |
|
|
14472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14473 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
14474 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14475 | shlibpath_overrides_runpath=yes |
|
|
14476 | if test "$with_gnu_ld" = yes; then |
|
|
14477 | need_lib_prefix=no |
|
|
14478 | fi |
|
|
14479 | need_version=yes |
|
|
14480 | ;; |
|
|
14481 | |
|
|
14482 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
14483 | version_type=linux |
|
|
14484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14485 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14486 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14487 | case $host_vendor in |
|
|
14488 | sni) |
|
|
14489 | shlibpath_overrides_runpath=no |
|
|
14490 | need_lib_prefix=no |
|
|
14491 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
14492 | runpath_var=LD_RUN_PATH |
|
|
14493 | ;; |
|
|
14494 | siemens) |
|
|
14495 | need_lib_prefix=no |
|
|
14496 | ;; |
|
|
14497 | motorola) |
|
|
14498 | need_lib_prefix=no |
|
|
14499 | need_version=no |
|
|
14500 | shlibpath_overrides_runpath=no |
|
|
14501 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
14502 | ;; |
|
|
14503 | esac |
|
|
14504 | ;; |
|
|
14505 | |
|
|
14506 | sysv4*MP*) |
|
|
14507 | if test -d /usr/nec ;then |
|
|
14508 | version_type=linux |
|
|
14509 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
14510 | soname_spec='$libname${shared_ext}.$major' |
|
|
14511 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14512 | fi |
|
|
14513 | ;; |
|
|
14514 | |
|
|
14515 | uts4*) |
|
|
14516 | version_type=linux |
|
|
14517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14518 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14519 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14520 | ;; |
|
|
14521 | |
|
|
14522 | *) |
|
|
14523 | dynamic_linker=no |
|
|
14524 | ;; |
|
|
14525 | esac |
|
|
14526 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
14527 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
14528 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
14529 | |
|
|
14530 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
14531 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
14532 | hardcode_action_F77= |
|
|
14533 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
|
|
14534 | test -n "$runpath_var F77" || \ |
|
|
14535 | test "X$hardcode_automatic_F77"="Xyes" ; then |
|
|
14536 | |
|
|
14537 | # We can hardcode non-existant directories. |
|
|
14538 | if test "$hardcode_direct_F77" != no && |
|
|
14539 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
14540 | # have to relink, otherwise we might link with an installed library |
|
|
14541 | # when we should be linking with a yet-to-be-installed one |
|
|
14542 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
|
|
14543 | test "$hardcode_minus_L_F77" != no; then |
|
|
14544 | # Linking always hardcodes the temporary library directory. |
|
|
14545 | hardcode_action_F77=relink |
|
|
14546 | else |
|
|
14547 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
14548 | hardcode_action_F77=immediate |
|
|
14549 | fi |
|
|
14550 | else |
|
|
14551 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
14552 | # directories. |
|
|
14553 | hardcode_action_F77=unsupported |
|
|
14554 | fi |
|
|
14555 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
|
|
14556 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
|
|
14557 | |
|
|
14558 | if test "$hardcode_action_F77" = relink; then |
|
|
14559 | # Fast installation is not supported |
|
|
14560 | enable_fast_install=no |
|
|
14561 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
14562 | test "$enable_shared" = no; then |
|
|
14563 | # Fast installation is not necessary |
|
|
14564 | enable_fast_install=needless |
|
|
14565 | fi |
|
|
14566 | |
|
|
14567 | striplib= |
|
|
14568 | old_striplib= |
|
|
14569 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
14570 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
14571 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
14572 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
14573 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
14574 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
14575 | echo "${ECHO_T}yes" >&6 |
|
|
14576 | else |
|
|
14577 | # FIXME - insert some real tests, host_os isn't really good enough |
|
|
14578 | case $host_os in |
|
|
14579 | darwin*) |
|
|
14580 | if test -n "$STRIP" ; then |
|
|
14581 | striplib="$STRIP -x" |
|
|
14582 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
14583 | echo "${ECHO_T}yes" >&6 |
|
|
14584 | else |
|
|
14585 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
14586 | echo "${ECHO_T}no" >&6 |
|
|
14587 | fi |
|
|
14588 | ;; |
|
|
14589 | *) |
|
|
14590 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
14591 | echo "${ECHO_T}no" >&6 |
|
|
14592 | ;; |
|
|
14593 | esac |
|
|
14594 | fi |
|
|
14595 | |
|
|
14596 | |
|
|
14597 | |
|
|
14598 | # The else clause should only fire when bootstrapping the |
|
|
14599 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
14600 | # with your package, and you will get complaints that there are |
|
|
14601 | # no rules to generate ltmain.sh. |
|
|
14602 | if test -f "$ltmain"; then |
|
|
14603 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
14604 | # without removal of \ escapes. |
|
|
14605 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
14606 | setopt NO_GLOB_SUBST |
|
|
14607 | fi |
|
|
14608 | # Now quote all the things that may contain metacharacters while being |
|
|
14609 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
14610 | # variables and quote the copies for generation of the libtool script. |
|
|
14611 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
|
14612 | SED SHELL STRIP \ |
|
|
14613 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
14614 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
14615 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
14616 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
14617 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
14618 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
14619 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
14620 | compiler_F77 \ |
|
|
14621 | CC_F77 \ |
|
|
14622 | LD_F77 \ |
|
|
14623 | lt_prog_compiler_wl_F77 \ |
|
|
14624 | lt_prog_compiler_pic_F77 \ |
|
|
14625 | lt_prog_compiler_static_F77 \ |
|
|
14626 | lt_prog_compiler_no_builtin_flag_F77 \ |
|
|
14627 | export_dynamic_flag_spec_F77 \ |
|
|
14628 | thread_safe_flag_spec_F77 \ |
|
|
14629 | whole_archive_flag_spec_F77 \ |
|
|
14630 | enable_shared_with_static_runtimes_F77 \ |
|
|
14631 | old_archive_cmds_F77 \ |
|
|
14632 | old_archive_from_new_cmds_F77 \ |
|
|
14633 | predep_objects_F77 \ |
|
|
14634 | postdep_objects_F77 \ |
|
|
14635 | predeps_F77 \ |
|
|
14636 | postdeps_F77 \ |
|
|
14637 | compiler_lib_search_path_F77 \ |
|
|
14638 | archive_cmds_F77 \ |
|
|
14639 | archive_expsym_cmds_F77 \ |
|
|
14640 | postinstall_cmds_F77 \ |
|
|
14641 | postuninstall_cmds_F77 \ |
|
|
14642 | old_archive_from_expsyms_cmds_F77 \ |
|
|
14643 | allow_undefined_flag_F77 \ |
|
|
14644 | no_undefined_flag_F77 \ |
|
|
14645 | export_symbols_cmds_F77 \ |
|
|
14646 | hardcode_libdir_flag_spec_F77 \ |
|
|
14647 | hardcode_libdir_flag_spec_ld_F77 \ |
|
|
14648 | hardcode_libdir_separator_F77 \ |
|
|
14649 | hardcode_automatic_F77 \ |
|
|
14650 | module_cmds_F77 \ |
|
|
14651 | module_expsym_cmds_F77 \ |
|
|
14652 | lt_cv_prog_compiler_c_o_F77 \ |
|
|
14653 | exclude_expsyms_F77 \ |
|
|
14654 | include_expsyms_F77; do |
|
|
14655 | |
|
|
14656 | case $var in |
|
|
14657 | old_archive_cmds_F77 | \ |
|
|
14658 | old_archive_from_new_cmds_F77 | \ |
|
|
14659 | archive_cmds_F77 | \ |
|
|
14660 | archive_expsym_cmds_F77 | \ |
|
|
14661 | module_cmds_F77 | \ |
|
|
14662 | module_expsym_cmds_F77 | \ |
|
|
14663 | old_archive_from_expsyms_cmds_F77 | \ |
|
|
14664 | export_symbols_cmds_F77 | \ |
|
|
14665 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
14666 | postinstall_cmds | postuninstall_cmds | \ |
|
|
14667 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
14668 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
14669 | # Double-quote double-evaled strings. |
|
|
14670 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
14671 | ;; |
|
|
14672 | *) |
|
|
14673 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
14674 | ;; |
|
|
14675 | esac |
|
|
14676 | done |
|
|
14677 | |
|
|
14678 | case $lt_echo in |
|
|
14679 | *'\$0 --fallback-echo"') |
|
|
14680 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
14681 | ;; |
|
|
14682 | esac |
|
|
14683 | |
|
|
14684 | cfgfile="$ofile" |
|
|
14685 | |
|
|
14686 | cat <<__EOF__ >> "$cfgfile" |
|
|
14687 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
14688 | |
|
|
14689 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
14690 | |
|
|
14691 | # Shell to use when invoking shell scripts. |
|
|
14692 | SHELL=$lt_SHELL |
|
|
14693 | |
|
|
14694 | # Whether or not to build shared libraries. |
|
|
14695 | build_libtool_libs=$enable_shared |
|
|
14696 | |
|
|
14697 | # Whether or not to build static libraries. |
|
|
14698 | build_old_libs=$enable_static |
|
|
14699 | |
|
|
14700 | # Whether or not to add -lc for building shared libraries. |
|
|
14701 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
|
|
14702 | |
|
|
14703 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
14704 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
|
|
14705 | |
|
|
14706 | # Whether or not to optimize for fast installation. |
|
|
14707 | fast_install=$enable_fast_install |
|
|
14708 | |
|
|
14709 | # The host system. |
|
|
14710 | host_alias=$host_alias |
|
|
14711 | host=$host |
|
|
14712 | |
|
|
14713 | # An echo program that does not interpret backslashes. |
|
|
14714 | echo=$lt_echo |
|
|
14715 | |
|
|
14716 | # The archiver. |
|
|
14717 | AR=$lt_AR |
|
|
14718 | AR_FLAGS=$lt_AR_FLAGS |
|
|
14719 | |
|
|
14720 | # A C compiler. |
|
|
14721 | LTCC=$lt_LTCC |
|
|
14722 | |
|
|
14723 | # A language-specific compiler. |
|
|
14724 | CC=$lt_compiler_F77 |
|
|
14725 | |
|
|
14726 | # Is the compiler the GNU C compiler? |
|
|
14727 | with_gcc=$GCC_F77 |
|
|
14728 | |
|
|
14729 | # An ERE matcher. |
|
|
14730 | EGREP=$lt_EGREP |
|
|
14731 | |
|
|
14732 | # The linker used to build libraries. |
|
|
14733 | LD=$lt_LD_F77 |
|
|
14734 | |
|
|
14735 | # Whether we need hard or soft links. |
|
|
14736 | LN_S=$lt_LN_S |
|
|
14737 | |
|
|
14738 | # A BSD-compatible nm program. |
|
|
14739 | NM=$lt_NM |
|
|
14740 | |
|
|
14741 | # A symbol stripping program |
|
|
14742 | STRIP=$lt_STRIP |
|
|
14743 | |
|
|
14744 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
14745 | MAGIC_CMD=$MAGIC_CMD |
|
|
14746 | |
|
|
14747 | # Used on cygwin: DLL creation program. |
|
|
14748 | DLLTOOL="$DLLTOOL" |
|
|
14749 | |
|
|
14750 | # Used on cygwin: object dumper. |
|
|
14751 | OBJDUMP="$OBJDUMP" |
|
|
14752 | |
|
|
14753 | # Used on cygwin: assembler. |
|
|
14754 | AS="$AS" |
|
|
14755 | |
|
|
14756 | # The name of the directory that contains temporary libtool files. |
|
|
14757 | objdir=$objdir |
|
|
14758 | |
|
|
14759 | # How to create reloadable object files. |
|
|
14760 | reload_flag=$lt_reload_flag |
|
|
14761 | reload_cmds=$lt_reload_cmds |
|
|
14762 | |
|
|
14763 | # How to pass a linker flag through the compiler. |
|
|
14764 | wl=$lt_lt_prog_compiler_wl_F77 |
|
|
14765 | |
|
|
14766 | # Object file suffix (normally "o"). |
|
|
14767 | objext="$ac_objext" |
|
|
14768 | |
|
|
14769 | # Old archive suffix (normally "a"). |
|
|
14770 | libext="$libext" |
|
|
14771 | |
|
|
14772 | # Shared library suffix (normally ".so"). |
|
|
14773 | shrext_cmds='$shrext_cmds' |
|
|
14774 | |
|
|
14775 | # Executable file suffix (normally ""). |
|
|
14776 | exeext="$exeext" |
|
|
14777 | |
|
|
14778 | # Additional compiler flags for building library objects. |
|
|
14779 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
|
|
14780 | pic_mode=$pic_mode |
|
|
14781 | |
|
|
14782 | # What is the maximum length of a command? |
|
|
14783 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
14784 | |
|
|
14785 | # Does compiler simultaneously support -c and -o options? |
|
|
14786 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
|
|
14787 | |
|
|
14788 | # Must we lock files when doing compilation ? |
|
|
14789 | need_locks=$lt_need_locks |
|
|
14790 | |
|
|
14791 | # Do we need the lib prefix for modules? |
|
|
14792 | need_lib_prefix=$need_lib_prefix |
|
|
14793 | |
|
|
14794 | # Do we need a version for libraries? |
|
|
14795 | need_version=$need_version |
|
|
14796 | |
|
|
14797 | # Whether dlopen is supported. |
|
|
14798 | dlopen_support=$enable_dlopen |
|
|
14799 | |
|
|
14800 | # Whether dlopen of programs is supported. |
|
|
14801 | dlopen_self=$enable_dlopen_self |
|
|
14802 | |
|
|
14803 | # Whether dlopen of statically linked programs is supported. |
|
|
14804 | dlopen_self_static=$enable_dlopen_self_static |
|
|
14805 | |
|
|
14806 | # Compiler flag to prevent dynamic linking. |
|
|
14807 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
|
|
14808 | |
|
|
14809 | # Compiler flag to turn off builtin functions. |
|
|
14810 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
|
|
14811 | |
|
|
14812 | # Compiler flag to allow reflexive dlopens. |
|
|
14813 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
|
|
14814 | |
|
|
14815 | # Compiler flag to generate shared objects directly from archives. |
|
|
14816 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
|
|
14817 | |
|
|
14818 | # Compiler flag to generate thread-safe objects. |
|
|
14819 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
|
|
14820 | |
|
|
14821 | # Library versioning type. |
|
|
14822 | version_type=$version_type |
|
|
14823 | |
|
|
14824 | # Format of library name prefix. |
|
|
14825 | libname_spec=$lt_libname_spec |
|
|
14826 | |
|
|
14827 | # List of archive names. First name is the real one, the rest are links. |
|
|
14828 | # The last name is the one that the linker finds with -lNAME. |
|
|
14829 | library_names_spec=$lt_library_names_spec |
|
|
14830 | |
|
|
14831 | # The coded name of the library, if different from the real name. |
|
|
14832 | soname_spec=$lt_soname_spec |
|
|
14833 | |
|
|
14834 | # Commands used to build and install an old-style archive. |
|
|
14835 | RANLIB=$lt_RANLIB |
|
|
14836 | old_archive_cmds=$lt_old_archive_cmds_F77 |
|
|
14837 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
14838 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
14839 | |
|
|
14840 | # Create an old-style archive from a shared archive. |
|
|
14841 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
|
|
14842 | |
|
|
14843 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
14844 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
|
|
14845 | |
|
|
14846 | # Commands used to build and install a shared archive. |
|
|
14847 | archive_cmds=$lt_archive_cmds_F77 |
|
|
14848 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
|
|
14849 | postinstall_cmds=$lt_postinstall_cmds |
|
|
14850 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
14851 | |
|
|
14852 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
14853 | module_cmds=$lt_module_cmds_F77 |
|
|
14854 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
|
|
14855 | |
|
|
14856 | # Commands to strip libraries. |
|
|
14857 | old_striplib=$lt_old_striplib |
|
|
14858 | striplib=$lt_striplib |
|
|
14859 | |
|
|
14860 | # Dependencies to place before the objects being linked to create a |
|
|
14861 | # shared library. |
|
|
14862 | predep_objects=$lt_predep_objects_F77 |
|
|
14863 | |
|
|
14864 | # Dependencies to place after the objects being linked to create a |
|
|
14865 | # shared library. |
|
|
14866 | postdep_objects=$lt_postdep_objects_F77 |
|
|
14867 | |
|
|
14868 | # Dependencies to place before the objects being linked to create a |
|
|
14869 | # shared library. |
|
|
14870 | predeps=$lt_predeps_F77 |
|
|
14871 | |
|
|
14872 | # Dependencies to place after the objects being linked to create a |
|
|
14873 | # shared library. |
|
|
14874 | postdeps=$lt_postdeps_F77 |
|
|
14875 | |
|
|
14876 | # The library search path used internally by the compiler when linking |
|
|
14877 | # a shared library. |
|
|
14878 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
|
|
14879 | |
|
|
14880 | # Method to check whether dependent libraries are shared objects. |
|
|
14881 | deplibs_check_method=$lt_deplibs_check_method |
|
|
14882 | |
|
|
14883 | # Command to use when deplibs_check_method == file_magic. |
|
|
14884 | file_magic_cmd=$lt_file_magic_cmd |
|
|
14885 | |
|
|
14886 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
14887 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
|
|
14888 | |
|
|
14889 | # Flag that forces no undefined symbols. |
|
|
14890 | no_undefined_flag=$lt_no_undefined_flag_F77 |
|
|
14891 | |
|
|
14892 | # Commands used to finish a libtool library installation in a directory. |
|
|
14893 | finish_cmds=$lt_finish_cmds |
|
|
14894 | |
|
|
14895 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
14896 | finish_eval=$lt_finish_eval |
|
|
14897 | |
|
|
14898 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
14899 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
14900 | |
|
|
14901 | # Transform the output of nm in a proper C declaration |
|
|
14902 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
14903 | |
|
|
14904 | # Transform the output of nm in a C name address pair |
|
|
14905 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
14906 | |
|
|
14907 | # This is the shared library runtime path variable. |
|
|
14908 | runpath_var=$runpath_var |
|
|
14909 | |
|
|
14910 | # This is the shared library path variable. |
|
|
14911 | shlibpath_var=$shlibpath_var |
|
|
14912 | |
|
|
14913 | # Is shlibpath searched before the hard-coded library search path? |
|
|
14914 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
14915 | |
|
|
14916 | # How to hardcode a shared library path into an executable. |
|
|
14917 | hardcode_action=$hardcode_action_F77 |
|
|
14918 | |
|
|
14919 | # Whether we should hardcode library paths into libraries. |
|
|
14920 | hardcode_into_libs=$hardcode_into_libs |
|
|
14921 | |
|
|
14922 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
14923 | # This must work even if \$libdir does not exist. |
|
|
14924 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
|
|
14925 | |
|
|
14926 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
14927 | # a binary during linking. This must work even if \$libdir does |
|
|
14928 | # not exist. |
|
|
14929 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
|
|
14930 | |
|
|
14931 | # Whether we need a single -rpath flag with a separated argument. |
|
|
14932 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
|
|
14933 | |
|
|
14934 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
14935 | # resulting binary. |
|
|
14936 | hardcode_direct=$hardcode_direct_F77 |
|
|
14937 | |
|
|
14938 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
14939 | # resulting binary. |
|
|
14940 | hardcode_minus_L=$hardcode_minus_L_F77 |
|
|
14941 | |
|
|
14942 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
14943 | # the resulting binary. |
|
|
14944 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
|
|
14945 | |
|
|
14946 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
14947 | # and all subsequent libraries and executables linked against it. |
|
|
14948 | hardcode_automatic=$hardcode_automatic_F77 |
|
|
14949 | |
|
|
14950 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
14951 | # restored at relink time. |
|
|
14952 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
14953 | |
|
|
14954 | # Whether libtool must link a program against all its dependency libraries. |
|
|
14955 | link_all_deplibs=$link_all_deplibs_F77 |
|
|
14956 | |
|
|
14957 | # Compile-time system search path for libraries |
|
|
14958 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
14959 | |
|
|
14960 | # Run-time system search path for libraries |
|
|
14961 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
14962 | |
|
|
14963 | # Fix the shell variable \$srcfile for the compiler. |
|
|
14964 | fix_srcfile_path="$fix_srcfile_path_F77" |
|
|
14965 | |
|
|
14966 | # Set to yes if exported symbols are required. |
|
|
14967 | always_export_symbols=$always_export_symbols_F77 |
|
|
14968 | |
|
|
14969 | # The commands to list exported symbols. |
|
|
14970 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
|
|
14971 | |
|
|
14972 | # The commands to extract the exported symbol list from a shared archive. |
|
|
14973 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
14974 | |
|
|
14975 | # Symbols that should not be listed in the preloaded symbols. |
|
|
14976 | exclude_expsyms=$lt_exclude_expsyms_F77 |
|
|
14977 | |
|
|
14978 | # Symbols that must always be exported. |
|
|
14979 | include_expsyms=$lt_include_expsyms_F77 |
|
|
14980 | |
|
|
14981 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
14982 | |
|
|
14983 | __EOF__ |
|
|
14984 | |
|
|
14985 | |
|
|
14986 | else |
|
|
14987 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
14988 | # `config.status --recheck' to rerun these tests and create the |
|
|
14989 | # libtool script then. |
|
|
14990 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
14991 | if test -f "$ltmain_in"; then |
|
|
14992 | test -f Makefile && make "$ltmain" |
|
|
14993 | fi |
|
|
14994 | fi |
|
|
14995 | |
|
|
14996 | |
|
|
14997 | ac_ext=c |
|
|
14998 | ac_cpp='$CPP $CPPFLAGS' |
|
|
14999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
15000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
15001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
15002 | |
|
|
15003 | CC="$lt_save_CC" |
|
|
15004 | |
|
|
15005 | else |
|
|
15006 | tagname="" |
|
|
15007 | fi |
|
|
15008 | ;; |
|
|
15009 | |
|
|
15010 | GCJ) |
|
|
15011 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
|
|
15012 | |
|
|
15013 | |
|
|
15014 | |
|
|
15015 | # Source file extension for Java test sources. |
|
|
15016 | ac_ext=java |
|
|
15017 | |
|
|
15018 | # Object file extension for compiled Java test sources. |
|
|
15019 | objext=o |
|
|
15020 | objext_GCJ=$objext |
|
|
15021 | |
|
|
15022 | # Code to be used in simple compile tests |
|
|
15023 | lt_simple_compile_test_code="class foo {}\n" |
|
|
15024 | |
|
|
15025 | # Code to be used in simple link tests |
|
|
15026 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
|
|
15027 | |
|
|
15028 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
15029 | |
|
|
15030 | # If no C compiler was specified, use CC. |
|
|
15031 | LTCC=${LTCC-"$CC"} |
|
|
15032 | |
|
|
15033 | # Allow CC to be a program name with arguments. |
|
|
15034 | compiler=$CC |
|
|
15035 | |
|
|
15036 | |
|
|
15037 | # Allow CC to be a program name with arguments. |
|
|
15038 | lt_save_CC="$CC" |
|
|
15039 | CC=${GCJ-"gcj"} |
|
|
15040 | compiler=$CC |
|
|
15041 | compiler_GCJ=$CC |
|
|
15042 | |
|
|
15043 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
|
15044 | archive_cmds_need_lc_GCJ=no |
|
|
15045 | |
|
|
15046 | |
|
|
15047 | lt_prog_compiler_no_builtin_flag_GCJ= |
|
|
15048 | |
|
|
15049 | if test "$GCC" = yes; then |
|
|
15050 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
|
|
15051 | |
|
|
15052 | |
|
|
15053 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
15054 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
15055 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
|
15056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15057 | else |
|
|
15058 | lt_cv_prog_compiler_rtti_exceptions=no |
|
|
15059 | ac_outfile=conftest.$ac_objext |
|
|
15060 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
15061 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
|
15062 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
15063 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
15064 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
15065 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
15066 | # The option is referenced via a variable to avoid confusing sed. |
|
|
15067 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
15068 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
|
15069 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
15070 | -e 's:$: $lt_compiler_flag:'` |
|
|
15071 | (eval echo "\"\$as_me:15071: $lt_compile\"" >&5) |
|
|
15072 | (eval "$lt_compile" 2>conftest.err) |
|
|
15073 | ac_status=$? |
|
|
15074 | cat conftest.err >&5 |
|
|
15075 | echo "$as_me:15075: \$? = $ac_status" >&5 |
|
|
15076 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
15077 | # The compiler can only warn and ignore the option if not recognized |
|
|
15078 | # So say no if there are warnings |
|
|
15079 | if test ! -s conftest.err; then |
|
|
15080 | lt_cv_prog_compiler_rtti_exceptions=yes |
|
|
15081 | fi |
|
|
15082 | fi |
|
|
15083 | $rm conftest* |
|
|
15084 | |
|
|
15085 | fi |
|
|
15086 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
|
15087 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
|
15088 | |
|
|
15089 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
|
15090 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
|
|
15091 | else |
|
|
15092 | : |
|
|
15093 | fi |
|
|
15094 | |
|
|
15095 | fi |
|
|
15096 | |
|
|
15097 | lt_prog_compiler_wl_GCJ= |
|
|
15098 | lt_prog_compiler_pic_GCJ= |
|
|
15099 | lt_prog_compiler_static_GCJ= |
|
|
15100 | |
|
|
15101 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
15102 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
15103 | |
|
|
15104 | if test "$GCC" = yes; then |
|
|
15105 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15106 | lt_prog_compiler_static_GCJ='-static' |
|
|
15107 | |
|
|
15108 | case $host_os in |
|
|
15109 | aix*) |
|
|
15110 | # All AIX code is PIC. |
|
|
15111 | if test "$host_cpu" = ia64; then |
|
|
15112 | # AIX 5 now supports IA64 processor |
|
|
15113 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15114 | fi |
|
|
15115 | ;; |
|
|
15116 | |
|
|
15117 | amigaos*) |
|
|
15118 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
15119 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
15120 | # like `-m68040'. |
|
|
15121 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
|
|
15122 | ;; |
|
|
15123 | |
|
|
15124 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
15125 | # PIC is the default for these OSes. |
|
|
15126 | ;; |
|
|
15127 | |
|
|
15128 | mingw* | pw32* | os2*) |
|
|
15129 | # This hack is so that the source file can tell whether it is being |
|
|
15130 | # built for inclusion in a dll (and should export symbols for example). |
|
|
15131 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
|
15132 | ;; |
|
|
15133 | |
|
|
15134 | darwin* | rhapsody*) |
|
|
15135 | # PIC is the default on this platform |
|
|
15136 | # Common symbols not allowed in MH_DYLIB files |
|
|
15137 | lt_prog_compiler_pic_GCJ='-fno-common' |
|
|
15138 | ;; |
|
|
15139 | |
|
|
15140 | msdosdjgpp*) |
|
|
15141 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
|
15142 | # on systems that don't support them. |
|
|
15143 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15144 | enable_shared=no |
|
|
15145 | ;; |
|
|
15146 | |
|
|
15147 | sysv4*MP*) |
|
|
15148 | if test -d /usr/nec; then |
|
|
15149 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
|
|
15150 | fi |
|
|
15151 | ;; |
|
|
15152 | |
|
|
15153 | hpux*) |
|
|
15154 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
15155 | # not for PA HP-UX. |
|
|
15156 | case "$host_cpu" in |
|
|
15157 | hppa*64*|ia64*) |
|
|
15158 | # +Z the default |
|
|
15159 | ;; |
|
|
15160 | *) |
|
|
15161 | lt_prog_compiler_pic_GCJ='-fPIC' |
|
|
15162 | ;; |
|
|
15163 | esac |
|
|
15164 | ;; |
|
|
15165 | |
|
|
15166 | *) |
|
|
15167 | lt_prog_compiler_pic_GCJ='-fPIC' |
|
|
15168 | ;; |
|
|
15169 | esac |
|
|
15170 | else |
|
|
15171 | # PORTME Check for flag to pass linker flags through the system compiler. |
|
|
15172 | case $host_os in |
|
|
15173 | aix*) |
|
|
15174 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15175 | if test "$host_cpu" = ia64; then |
|
|
15176 | # AIX 5 now supports IA64 processor |
|
|
15177 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15178 | else |
|
|
15179 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
|
|
15180 | fi |
|
|
15181 | ;; |
|
|
15182 | |
|
|
15183 | mingw* | pw32* | os2*) |
|
|
15184 | # This hack is so that the source file can tell whether it is being |
|
|
15185 | # built for inclusion in a dll (and should export symbols for example). |
|
|
15186 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
|
15187 | ;; |
|
|
15188 | |
|
|
15189 | hpux9* | hpux10* | hpux11*) |
|
|
15190 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15191 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
15192 | # not for PA HP-UX. |
|
|
15193 | case "$host_cpu" in |
|
|
15194 | hppa*64*|ia64*) |
|
|
15195 | # +Z the default |
|
|
15196 | ;; |
|
|
15197 | *) |
|
|
15198 | lt_prog_compiler_pic_GCJ='+Z' |
|
|
15199 | ;; |
|
|
15200 | esac |
|
|
15201 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
15202 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
|
|
15203 | ;; |
|
|
15204 | |
|
|
15205 | irix5* | irix6* | nonstopux*) |
|
|
15206 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15207 | # PIC (with -KPIC) is the default. |
|
|
15208 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15209 | ;; |
|
|
15210 | |
|
|
15211 | newsos6) |
|
|
15212 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15213 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15214 | ;; |
|
|
15215 | |
|
|
15216 | linux*) |
|
|
15217 | case $CC in |
|
|
15218 | icc* | ecc*) |
|
|
15219 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15220 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15221 | lt_prog_compiler_static_GCJ='-static' |
|
|
15222 | ;; |
|
|
15223 | ccc*) |
|
|
15224 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15225 | # All Alpha code is PIC. |
|
|
15226 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15227 | ;; |
|
|
15228 | esac |
|
|
15229 | ;; |
|
|
15230 | |
|
|
15231 | osf3* | osf4* | osf5*) |
|
|
15232 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15233 | # All OSF/1 code is PIC. |
|
|
15234 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15235 | ;; |
|
|
15236 | |
|
|
15237 | sco3.2v5*) |
|
|
15238 | lt_prog_compiler_pic_GCJ='-Kpic' |
|
|
15239 | lt_prog_compiler_static_GCJ='-dn' |
|
|
15240 | ;; |
|
|
15241 | |
|
|
15242 | solaris*) |
|
|
15243 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15244 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15245 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15246 | ;; |
|
|
15247 | |
|
|
15248 | sunos4*) |
|
|
15249 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
|
|
15250 | lt_prog_compiler_pic_GCJ='-PIC' |
|
|
15251 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15252 | ;; |
|
|
15253 | |
|
|
15254 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
15255 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15256 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15257 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15258 | ;; |
|
|
15259 | |
|
|
15260 | sysv4*MP*) |
|
|
15261 | if test -d /usr/nec ;then |
|
|
15262 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
|
|
15263 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15264 | fi |
|
|
15265 | ;; |
|
|
15266 | |
|
|
15267 | uts4*) |
|
|
15268 | lt_prog_compiler_pic_GCJ='-pic' |
|
|
15269 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15270 | ;; |
|
|
15271 | |
|
|
15272 | *) |
|
|
15273 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15274 | ;; |
|
|
15275 | esac |
|
|
15276 | fi |
|
|
15277 | |
|
|
15278 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
|
|
15279 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
|
|
15280 | |
|
|
15281 | # |
|
|
15282 | # Check to make sure the PIC flag actually works. |
|
|
15283 | # |
|
|
15284 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
|
|
15285 | |
|
|
15286 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
|
|
15287 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
|
|
15288 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
|
|
15289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15290 | else |
|
|
15291 | lt_prog_compiler_pic_works_GCJ=no |
|
|
15292 | ac_outfile=conftest.$ac_objext |
|
|
15293 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
15294 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
|
|
15295 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
15296 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
15297 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
15298 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
15299 | # The option is referenced via a variable to avoid confusing sed. |
|
|
15300 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
15301 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
|
15302 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
15303 | -e 's:$: $lt_compiler_flag:'` |
|
|
15304 | (eval echo "\"\$as_me:15304: $lt_compile\"" >&5) |
|
|
15305 | (eval "$lt_compile" 2>conftest.err) |
|
|
15306 | ac_status=$? |
|
|
15307 | cat conftest.err >&5 |
|
|
15308 | echo "$as_me:15308: \$? = $ac_status" >&5 |
|
|
15309 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
15310 | # The compiler can only warn and ignore the option if not recognized |
|
|
15311 | # So say no if there are warnings |
|
|
15312 | if test ! -s conftest.err; then |
|
|
15313 | lt_prog_compiler_pic_works_GCJ=yes |
|
|
15314 | fi |
|
|
15315 | fi |
|
|
15316 | $rm conftest* |
|
|
15317 | |
|
|
15318 | fi |
|
|
15319 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
|
|
15320 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
|
|
15321 | |
|
|
15322 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
|
|
15323 | case $lt_prog_compiler_pic_GCJ in |
|
|
15324 | "" | " "*) ;; |
|
|
15325 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
|
|
15326 | esac |
|
|
15327 | else |
|
|
15328 | lt_prog_compiler_pic_GCJ= |
|
|
15329 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15330 | fi |
|
|
15331 | |
|
|
15332 | fi |
|
|
15333 | case "$host_os" in |
|
|
15334 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
15335 | *djgpp*) |
|
|
15336 | lt_prog_compiler_pic_GCJ= |
|
|
15337 | ;; |
|
|
15338 | *) |
|
|
15339 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
|
|
15340 | ;; |
|
|
15341 | esac |
|
|
15342 | |
|
|
15343 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
15344 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
15345 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
|
|
15346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15347 | else |
|
|
15348 | lt_cv_prog_compiler_c_o_GCJ=no |
|
|
15349 | $rm -r conftest 2>/dev/null |
|
|
15350 | mkdir conftest |
|
|
15351 | cd conftest |
|
|
15352 | mkdir out |
|
|
15353 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
15354 | |
|
|
15355 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
15356 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
15357 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
15358 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
15359 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
15360 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
15361 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
|
|
15362 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
15363 | -e 's:$: $lt_compiler_flag:'` |
|
|
15364 | (eval echo "\"\$as_me:15364: $lt_compile\"" >&5) |
|
|
15365 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
15366 | ac_status=$? |
|
|
15367 | cat out/conftest.err >&5 |
|
|
15368 | echo "$as_me:15368: \$? = $ac_status" >&5 |
|
|
15369 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
15370 | then |
|
|
15371 | # The compiler can only warn and ignore the option if not recognized |
|
|
15372 | # So say no if there are warnings |
|
|
15373 | if test ! -s out/conftest.err; then |
|
|
15374 | lt_cv_prog_compiler_c_o_GCJ=yes |
|
|
15375 | fi |
|
|
15376 | fi |
|
|
15377 | chmod u+w . |
|
|
15378 | $rm conftest* |
|
|
15379 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
15380 | # template instantiation |
|
|
15381 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
15382 | $rm out/* && rmdir out |
|
|
15383 | cd .. |
|
|
15384 | rmdir conftest |
|
|
15385 | $rm conftest* |
|
|
15386 | |
|
|
15387 | fi |
|
|
15388 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
|
|
15389 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
|
|
15390 | |
|
|
15391 | |
|
|
15392 | hard_links="nottested" |
|
|
15393 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
|
|
15394 | # do not overwrite the value of need_locks provided by the user |
|
|
15395 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
15396 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
15397 | hard_links=yes |
|
|
15398 | $rm conftest* |
|
|
15399 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
15400 | touch conftest.a |
|
|
15401 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
15402 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
15403 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
15404 | echo "${ECHO_T}$hard_links" >&6 |
|
|
15405 | if test "$hard_links" = no; then |
|
|
15406 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
15407 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
15408 | need_locks=warn |
|
|
15409 | fi |
|
|
15410 | else |
|
|
15411 | need_locks=no |
|
|
15412 | fi |
|
|
15413 | |
|
|
15414 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
15415 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
15416 | |
|
|
15417 | runpath_var= |
|
|
15418 | allow_undefined_flag_GCJ= |
|
|
15419 | enable_shared_with_static_runtimes_GCJ=no |
|
|
15420 | archive_cmds_GCJ= |
|
|
15421 | archive_expsym_cmds_GCJ= |
|
|
15422 | old_archive_From_new_cmds_GCJ= |
|
|
15423 | old_archive_from_expsyms_cmds_GCJ= |
|
|
15424 | export_dynamic_flag_spec_GCJ= |
|
|
15425 | whole_archive_flag_spec_GCJ= |
|
|
15426 | thread_safe_flag_spec_GCJ= |
|
|
15427 | hardcode_libdir_flag_spec_GCJ= |
|
|
15428 | hardcode_libdir_flag_spec_ld_GCJ= |
|
|
15429 | hardcode_libdir_separator_GCJ= |
|
|
15430 | hardcode_direct_GCJ=no |
|
|
15431 | hardcode_minus_L_GCJ=no |
|
|
15432 | hardcode_shlibpath_var_GCJ=unsupported |
|
|
15433 | link_all_deplibs_GCJ=unknown |
|
|
15434 | hardcode_automatic_GCJ=no |
|
|
15435 | module_cmds_GCJ= |
|
|
15436 | module_expsym_cmds_GCJ= |
|
|
15437 | always_export_symbols_GCJ=no |
|
|
15438 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
15439 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
15440 | # included in the symbol list |
|
|
15441 | include_expsyms_GCJ= |
|
|
15442 | # exclude_expsyms can be an extended regexp of symbols to exclude |
|
|
15443 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
15444 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
15445 | # as well as any symbol that contains `d'. |
|
|
15446 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
|
|
15447 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
15448 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
15449 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
15450 | # rely on this symbol name, it's probably fine to never include it in |
|
|
15451 | # preloaded symbol tables. |
|
|
15452 | extract_expsyms_cmds= |
|
|
15453 | |
|
|
15454 | case $host_os in |
|
|
15455 | cygwin* | mingw* | pw32*) |
|
|
15456 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
15457 | # When not using gcc, we currently assume that we are using |
|
|
15458 | # Microsoft Visual C++. |
|
|
15459 | if test "$GCC" != yes; then |
|
|
15460 | with_gnu_ld=no |
|
|
15461 | fi |
|
|
15462 | ;; |
|
|
15463 | openbsd*) |
|
|
15464 | with_gnu_ld=no |
|
|
15465 | ;; |
|
|
15466 | esac |
|
|
15467 | |
|
|
15468 | ld_shlibs_GCJ=yes |
|
|
15469 | if test "$with_gnu_ld" = yes; then |
|
|
15470 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
15471 | wlarc='${wl}' |
|
|
15472 | |
|
|
15473 | # See if GNU ld supports shared libraries. |
|
|
15474 | case $host_os in |
|
|
15475 | aix3* | aix4* | aix5*) |
|
|
15476 | # On AIX/PPC, the GNU linker is very broken |
|
|
15477 | if test "$host_cpu" != ia64; then |
|
|
15478 | ld_shlibs_GCJ=no |
|
|
15479 | cat <<EOF 1>&2 |
|
|
15480 | |
|
|
15481 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
15482 | *** to be unable to reliably create shared libraries on AIX. |
|
|
15483 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
15484 | *** really care for shared libraries, you may want to modify your PATH |
|
|
15485 | *** so that a non-GNU linker is found, and then restart. |
|
|
15486 | |
|
|
15487 | EOF |
|
|
15488 | fi |
|
|
15489 | ;; |
|
|
15490 | |
|
|
15491 | amigaos*) |
|
|
15492 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
15493 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15494 | hardcode_minus_L_GCJ=yes |
|
|
15495 | |
|
|
15496 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
15497 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
15498 | # to version 4, is to share data among multiple programs linked |
|
|
15499 | # with the same dynamic library. Since this doesn't match the |
|
|
15500 | # behavior of shared libraries on other platforms, we can't use |
|
|
15501 | # them. |
|
|
15502 | ld_shlibs_GCJ=no |
|
|
15503 | ;; |
|
|
15504 | |
|
|
15505 | beos*) |
|
|
15506 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15507 | allow_undefined_flag_GCJ=unsupported |
|
|
15508 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
15509 | # support --undefined. This deserves some investigation. FIXME |
|
|
15510 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15511 | else |
|
|
15512 | ld_shlibs_GCJ=no |
|
|
15513 | fi |
|
|
15514 | ;; |
|
|
15515 | |
|
|
15516 | cygwin* | mingw* | pw32*) |
|
|
15517 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
|
|
15518 | # as there is no search path for DLLs. |
|
|
15519 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15520 | allow_undefined_flag_GCJ=unsupported |
|
|
15521 | always_export_symbols_GCJ=no |
|
|
15522 | enable_shared_with_static_runtimes_GCJ=yes |
|
|
15523 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
15524 | |
|
|
15525 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
15526 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
|
15527 | # If the export-symbols file already is a .def file (1st line |
|
|
15528 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
15529 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
15530 | cp $export_symbols $output_objdir/$soname.def; |
|
|
15531 | else |
|
|
15532 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
15533 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
15534 | fi~ |
|
|
15535 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
|
|
15536 | else |
|
|
15537 | ld_shlibs=no |
|
|
15538 | fi |
|
|
15539 | ;; |
|
|
15540 | |
|
|
15541 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
15542 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
15543 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
15544 | wlarc= |
|
|
15545 | else |
|
|
15546 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15547 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15548 | fi |
|
|
15549 | ;; |
|
|
15550 | |
|
|
15551 | solaris* | sysv5*) |
|
|
15552 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
|
15553 | ld_shlibs_GCJ=no |
|
|
15554 | cat <<EOF 1>&2 |
|
|
15555 | |
|
|
15556 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
15557 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
15558 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
15559 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
15560 | *** your PATH or compiler configuration so that the native linker is |
|
|
15561 | *** used, and then restart. |
|
|
15562 | |
|
|
15563 | EOF |
|
|
15564 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15565 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15566 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15567 | else |
|
|
15568 | ld_shlibs_GCJ=no |
|
|
15569 | fi |
|
|
15570 | ;; |
|
|
15571 | |
|
|
15572 | sunos4*) |
|
|
15573 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
15574 | wlarc= |
|
|
15575 | hardcode_direct_GCJ=yes |
|
|
15576 | hardcode_shlibpath_var_GCJ=no |
|
|
15577 | ;; |
|
|
15578 | |
|
|
15579 | linux*) |
|
|
15580 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15581 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15582 | archive_cmds_GCJ="$tmp_archive_cmds" |
|
|
15583 | supports_anon_versioning=no |
|
|
15584 | case `$LD -v 2>/dev/null` in |
|
|
15585 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
15586 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
15587 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
15588 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
15589 | *) supports_anon_versioning=yes ;; |
|
|
15590 | esac |
|
|
15591 | if test $supports_anon_versioning = yes; then |
|
|
15592 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
15593 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
15594 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
15595 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
15596 | else |
|
|
15597 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
|
|
15598 | fi |
|
|
15599 | link_all_deplibs_GCJ=no |
|
|
15600 | else |
|
|
15601 | ld_shlibs_GCJ=no |
|
|
15602 | fi |
|
|
15603 | ;; |
|
|
15604 | |
|
|
15605 | *) |
|
|
15606 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15607 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15608 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15609 | else |
|
|
15610 | ld_shlibs_GCJ=no |
|
|
15611 | fi |
|
|
15612 | ;; |
|
|
15613 | esac |
|
|
15614 | |
|
|
15615 | if test "$ld_shlibs_GCJ" = yes; then |
|
|
15616 | runpath_var=LD_RUN_PATH |
|
|
15617 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
|
|
15618 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
|
|
15619 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
15620 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
15621 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
15622 | else |
|
|
15623 | whole_archive_flag_spec_GCJ= |
|
|
15624 | fi |
|
|
15625 | fi |
|
|
15626 | else |
|
|
15627 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
15628 | case $host_os in |
|
|
15629 | aix3*) |
|
|
15630 | allow_undefined_flag_GCJ=unsupported |
|
|
15631 | always_export_symbols_GCJ=yes |
|
|
15632 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
15633 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
15634 | # are no directories specified by -L. |
|
|
15635 | hardcode_minus_L_GCJ=yes |
|
|
15636 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
15637 | # Neither direct hardcoding nor static linking is supported with a |
|
|
15638 | # broken collect2. |
|
|
15639 | hardcode_direct_GCJ=unsupported |
|
|
15640 | fi |
|
|
15641 | ;; |
|
|
15642 | |
|
|
15643 | aix4* | aix5*) |
|
|
15644 | if test "$host_cpu" = ia64; then |
|
|
15645 | # On IA64, the linker does run time linking by default, so we don't |
|
|
15646 | # have to do anything special. |
|
|
15647 | aix_use_runtimelinking=no |
|
|
15648 | exp_sym_flag='-Bexport' |
|
|
15649 | no_entry_flag="" |
|
|
15650 | else |
|
|
15651 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
15652 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
15653 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
15654 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
15655 | else |
|
|
15656 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
15657 | fi |
|
|
15658 | aix_use_runtimelinking=no |
|
|
15659 | |
|
|
15660 | # Test if we are trying to use run time linking or normal |
|
|
15661 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
15662 | # need to do runtime linking. |
|
|
15663 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
15664 | for ld_flag in $LDFLAGS; do |
|
|
15665 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
15666 | aix_use_runtimelinking=yes |
|
|
15667 | break |
|
|
15668 | fi |
|
|
15669 | done |
|
|
15670 | esac |
|
|
15671 | |
|
|
15672 | exp_sym_flag='-bexport' |
|
|
15673 | no_entry_flag='-bnoentry' |
|
|
15674 | fi |
|
|
15675 | |
|
|
15676 | # When large executables or shared objects are built, AIX ld can |
|
|
15677 | # have problems creating the table of contents. If linking a library |
|
|
15678 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
15679 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
15680 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
15681 | |
|
|
15682 | archive_cmds_GCJ='' |
|
|
15683 | hardcode_direct_GCJ=yes |
|
|
15684 | hardcode_libdir_separator_GCJ=':' |
|
|
15685 | link_all_deplibs_GCJ=yes |
|
|
15686 | |
|
|
15687 | if test "$GCC" = yes; then |
|
|
15688 | case $host_os in aix4.012|aix4.012.*) |
|
|
15689 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
15690 | # below for broken collect2 doesn't work under 4.3+ |
|
|
15691 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
15692 | if test -f "$collect2name" && \ |
|
|
15693 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
15694 | then |
|
|
15695 | # We have reworked collect2 |
|
|
15696 | hardcode_direct_GCJ=yes |
|
|
15697 | else |
|
|
15698 | # We have old collect2 |
|
|
15699 | hardcode_direct_GCJ=unsupported |
|
|
15700 | # It fails to find uninstalled libraries when the uninstalled |
|
|
15701 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
15702 | # to unsupported forces relinking |
|
|
15703 | hardcode_minus_L_GCJ=yes |
|
|
15704 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15705 | hardcode_libdir_separator_GCJ= |
|
|
15706 | fi |
|
|
15707 | esac |
|
|
15708 | shared_flag='-shared' |
|
|
15709 | else |
|
|
15710 | # not using gcc |
|
|
15711 | if test "$host_cpu" = ia64; then |
|
|
15712 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
15713 | # chokes on -Wl,-G. The following line is correct: |
|
|
15714 | shared_flag='-G' |
|
|
15715 | else |
|
|
15716 | if test "$aix_use_runtimelinking" = yes; then |
|
|
15717 | shared_flag='${wl}-G' |
|
|
15718 | else |
|
|
15719 | shared_flag='${wl}-bM:SRE' |
|
|
15720 | fi |
|
|
15721 | fi |
|
|
15722 | fi |
|
|
15723 | |
|
|
15724 | # It seems that -bexpall does not export symbols beginning with |
|
|
15725 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
15726 | always_export_symbols_GCJ=yes |
|
|
15727 | if test "$aix_use_runtimelinking" = yes; then |
|
|
15728 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
15729 | # -berok will link without error, but may produce a broken library. |
|
|
15730 | allow_undefined_flag_GCJ='-berok' |
|
|
15731 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
15732 | cat >conftest.$ac_ext <<_ACEOF |
|
|
15733 | /* confdefs.h. */ |
|
|
15734 | _ACEOF |
|
|
15735 | cat confdefs.h >>conftest.$ac_ext |
|
|
15736 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
15737 | /* end confdefs.h. */ |
|
|
15738 | |
|
|
15739 | int |
|
|
15740 | main () |
|
|
15741 | { |
|
|
15742 | |
|
|
15743 | ; |
|
|
15744 | return 0; |
|
|
15745 | } |
|
|
15746 | _ACEOF |
|
|
15747 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
15748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
15749 | (eval $ac_link) 2>conftest.er1 |
|
|
15750 | ac_status=$? |
|
|
15751 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
15752 | rm -f conftest.er1 |
|
|
15753 | cat conftest.err >&5 |
|
|
15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15755 | (exit $ac_status); } && |
|
|
15756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
15757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15758 | (eval $ac_try) 2>&5 |
|
|
15759 | ac_status=$? |
|
|
15760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15761 | (exit $ac_status); }; } && |
|
|
15762 | { ac_try='test -s conftest$ac_exeext' |
|
|
15763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15764 | (eval $ac_try) 2>&5 |
|
|
15765 | ac_status=$? |
|
|
15766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15767 | (exit $ac_status); }; }; then |
|
|
15768 | |
|
|
15769 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15770 | }'` |
|
|
15771 | # Check for a 64-bit object if we didn't find anything. |
|
|
15772 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15773 | }'`; fi |
|
|
15774 | else |
|
|
15775 | echo "$as_me: failed program was:" >&5 |
|
|
15776 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
15777 | |
|
|
15778 | fi |
|
|
15779 | rm -f conftest.err conftest.$ac_objext \ |
|
|
15780 | conftest$ac_exeext conftest.$ac_ext |
|
|
15781 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
15782 | |
|
|
15783 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
15784 | 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" |
|
|
15785 | else |
|
|
15786 | if test "$host_cpu" = ia64; then |
|
|
15787 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
|
|
15788 | allow_undefined_flag_GCJ="-z nodefs" |
|
|
15789 | 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" |
|
|
15790 | else |
|
|
15791 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
15792 | cat >conftest.$ac_ext <<_ACEOF |
|
|
15793 | /* confdefs.h. */ |
|
|
15794 | _ACEOF |
|
|
15795 | cat confdefs.h >>conftest.$ac_ext |
|
|
15796 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
15797 | /* end confdefs.h. */ |
|
|
15798 | |
|
|
15799 | int |
|
|
15800 | main () |
|
|
15801 | { |
|
|
15802 | |
|
|
15803 | ; |
|
|
15804 | return 0; |
|
|
15805 | } |
|
|
15806 | _ACEOF |
|
|
15807 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
15808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
15809 | (eval $ac_link) 2>conftest.er1 |
|
|
15810 | ac_status=$? |
|
|
15811 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
15812 | rm -f conftest.er1 |
|
|
15813 | cat conftest.err >&5 |
|
|
15814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15815 | (exit $ac_status); } && |
|
|
15816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
15817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15818 | (eval $ac_try) 2>&5 |
|
|
15819 | ac_status=$? |
|
|
15820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15821 | (exit $ac_status); }; } && |
|
|
15822 | { ac_try='test -s conftest$ac_exeext' |
|
|
15823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15824 | (eval $ac_try) 2>&5 |
|
|
15825 | ac_status=$? |
|
|
15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15827 | (exit $ac_status); }; }; then |
|
|
15828 | |
|
|
15829 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15830 | }'` |
|
|
15831 | # Check for a 64-bit object if we didn't find anything. |
|
|
15832 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15833 | }'`; fi |
|
|
15834 | else |
|
|
15835 | echo "$as_me: failed program was:" >&5 |
|
|
15836 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
15837 | |
|
|
15838 | fi |
|
|
15839 | rm -f conftest.err conftest.$ac_objext \ |
|
|
15840 | conftest$ac_exeext conftest.$ac_ext |
|
|
15841 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
15842 | |
|
|
15843 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
15844 | # Warning - without using the other run time loading flags, |
|
|
15845 | # -berok will link without error, but may produce a broken library. |
|
|
15846 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
|
|
15847 | allow_undefined_flag_GCJ=' ${wl}-berok' |
|
|
15848 | # -bexpall does not export symbols beginning with underscore (_) |
|
|
15849 | always_export_symbols_GCJ=yes |
|
|
15850 | # Exported symbols can be pulled into shared objects from archives |
|
|
15851 | whole_archive_flag_spec_GCJ=' ' |
|
|
15852 | archive_cmds_need_lc_GCJ=yes |
|
|
15853 | # This is similar to how AIX traditionally builds it's shared libraries. |
|
|
15854 | 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' |
|
|
15855 | fi |
|
|
15856 | fi |
|
|
15857 | ;; |
|
|
15858 | |
|
|
15859 | amigaos*) |
|
|
15860 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
15861 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15862 | hardcode_minus_L_GCJ=yes |
|
|
15863 | # see comment about different semantics on the GNU ld section |
|
|
15864 | ld_shlibs_GCJ=no |
|
|
15865 | ;; |
|
|
15866 | |
|
|
15867 | bsdi4*) |
|
|
15868 | export_dynamic_flag_spec_GCJ=-rdynamic |
|
|
15869 | ;; |
|
|
15870 | |
|
|
15871 | cygwin* | mingw* | pw32*) |
|
|
15872 | # When not using gcc, we currently assume that we are using |
|
|
15873 | # Microsoft Visual C++. |
|
|
15874 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
15875 | # no search path for DLLs. |
|
|
15876 | hardcode_libdir_flag_spec_GCJ=' ' |
|
|
15877 | allow_undefined_flag_GCJ=unsupported |
|
|
15878 | # Tell ltmain to make .lib files, not .a files. |
|
|
15879 | libext=lib |
|
|
15880 | # Tell ltmain to make .dll files, not .so files. |
|
|
15881 | shrext_cmds=".dll" |
|
|
15882 | # FIXME: Setting linknames here is a bad hack. |
|
|
15883 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
15884 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
15885 | old_archive_From_new_cmds_GCJ='true' |
|
|
15886 | # FIXME: Should let the user specify the lib program. |
|
|
15887 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
15888 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
15889 | enable_shared_with_static_runtimes_GCJ=yes |
|
|
15890 | ;; |
|
|
15891 | |
|
|
15892 | darwin* | rhapsody*) |
|
|
15893 | if test "$GXX" = yes ; then |
|
|
15894 | archive_cmds_need_lc_GCJ=no |
|
|
15895 | case "$host_os" in |
|
|
15896 | rhapsody* | darwin1.[012]) |
|
|
15897 | allow_undefined_flag_GCJ='-undefined suppress' |
|
|
15898 | ;; |
|
|
15899 | *) # Darwin 1.3 on |
|
|
15900 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
15901 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
|
|
15902 | else |
|
|
15903 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
15904 | 10.[012]) |
|
|
15905 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
|
|
15906 | ;; |
|
|
15907 | 10.*) |
|
|
15908 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
|
|
15909 | ;; |
|
|
15910 | esac |
|
|
15911 | fi |
|
|
15912 | ;; |
|
|
15913 | esac |
|
|
15914 | lt_int_apple_cc_single_mod=no |
|
|
15915 | output_verbose_link_cmd='echo' |
|
|
15916 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
15917 | lt_int_apple_cc_single_mod=yes |
|
|
15918 | fi |
|
|
15919 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
15920 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
15921 | else |
|
|
15922 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
15923 | fi |
|
|
15924 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
15925 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
|
|
15926 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
15927 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
15928 | else |
|
|
15929 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
15930 | fi |
|
|
15931 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
15932 | hardcode_direct_GCJ=no |
|
|
15933 | hardcode_automatic_GCJ=yes |
|
|
15934 | hardcode_shlibpath_var_GCJ=unsupported |
|
|
15935 | whole_archive_flag_spec_GCJ='-all_load $convenience' |
|
|
15936 | link_all_deplibs_GCJ=yes |
|
|
15937 | else |
|
|
15938 | ld_shlibs_GCJ=no |
|
|
15939 | fi |
|
|
15940 | ;; |
|
|
15941 | |
|
|
15942 | dgux*) |
|
|
15943 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
15944 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15945 | hardcode_shlibpath_var_GCJ=no |
|
|
15946 | ;; |
|
|
15947 | |
|
|
15948 | freebsd1*) |
|
|
15949 | ld_shlibs_GCJ=no |
|
|
15950 | ;; |
|
|
15951 | |
|
|
15952 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
15953 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
15954 | # does not break anything, and helps significantly (at the cost of a little |
|
|
15955 | # extra space). |
|
|
15956 | freebsd2.2*) |
|
|
15957 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
15958 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
15959 | hardcode_direct_GCJ=yes |
|
|
15960 | hardcode_shlibpath_var_GCJ=no |
|
|
15961 | ;; |
|
|
15962 | |
|
|
15963 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
15964 | freebsd2*) |
|
|
15965 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
15966 | hardcode_direct_GCJ=yes |
|
|
15967 | hardcode_minus_L_GCJ=yes |
|
|
15968 | hardcode_shlibpath_var_GCJ=no |
|
|
15969 | ;; |
|
|
15970 | |
|
|
15971 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
15972 | freebsd* | kfreebsd*-gnu) |
|
|
15973 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15974 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
15975 | hardcode_direct_GCJ=yes |
|
|
15976 | hardcode_shlibpath_var_GCJ=no |
|
|
15977 | ;; |
|
|
15978 | |
|
|
15979 | hpux9*) |
|
|
15980 | if test "$GCC" = yes; then |
|
|
15981 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
15982 | else |
|
|
15983 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
15984 | fi |
|
|
15985 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
15986 | hardcode_libdir_separator_GCJ=: |
|
|
15987 | hardcode_direct_GCJ=yes |
|
|
15988 | |
|
|
15989 | # hardcode_minus_L: Not really in the search PATH, |
|
|
15990 | # but as the default location of the library. |
|
|
15991 | hardcode_minus_L_GCJ=yes |
|
|
15992 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
15993 | ;; |
|
|
15994 | |
|
|
15995 | hpux10* | hpux11*) |
|
|
15996 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
15997 | case "$host_cpu" in |
|
|
15998 | hppa*64*|ia64*) |
|
|
15999 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16000 | ;; |
|
|
16001 | *) |
|
|
16002 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16003 | ;; |
|
|
16004 | esac |
|
|
16005 | else |
|
|
16006 | case "$host_cpu" in |
|
|
16007 | hppa*64*|ia64*) |
|
|
16008 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16009 | ;; |
|
|
16010 | *) |
|
|
16011 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
16012 | ;; |
|
|
16013 | esac |
|
|
16014 | fi |
|
|
16015 | if test "$with_gnu_ld" = no; then |
|
|
16016 | case "$host_cpu" in |
|
|
16017 | hppa*64*) |
|
|
16018 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
16019 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
|
|
16020 | hardcode_libdir_separator_GCJ=: |
|
|
16021 | hardcode_direct_GCJ=no |
|
|
16022 | hardcode_shlibpath_var_GCJ=no |
|
|
16023 | ;; |
|
|
16024 | ia64*) |
|
|
16025 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16026 | hardcode_direct_GCJ=no |
|
|
16027 | hardcode_shlibpath_var_GCJ=no |
|
|
16028 | |
|
|
16029 | # hardcode_minus_L: Not really in the search PATH, |
|
|
16030 | # but as the default location of the library. |
|
|
16031 | hardcode_minus_L_GCJ=yes |
|
|
16032 | ;; |
|
|
16033 | *) |
|
|
16034 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
16035 | hardcode_libdir_separator_GCJ=: |
|
|
16036 | hardcode_direct_GCJ=yes |
|
|
16037 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
16038 | |
|
|
16039 | # hardcode_minus_L: Not really in the search PATH, |
|
|
16040 | # but as the default location of the library. |
|
|
16041 | hardcode_minus_L_GCJ=yes |
|
|
16042 | ;; |
|
|
16043 | esac |
|
|
16044 | fi |
|
|
16045 | ;; |
|
|
16046 | |
|
|
16047 | irix5* | irix6* | nonstopux*) |
|
|
16048 | if test "$GCC" = yes; then |
|
|
16049 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
16050 | else |
|
|
16051 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
16052 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
|
|
16053 | fi |
|
|
16054 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16055 | hardcode_libdir_separator_GCJ=: |
|
|
16056 | link_all_deplibs_GCJ=yes |
|
|
16057 | ;; |
|
|
16058 | |
|
|
16059 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
16060 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
16061 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
16062 | else |
|
|
16063 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
16064 | fi |
|
|
16065 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16066 | hardcode_direct_GCJ=yes |
|
|
16067 | hardcode_shlibpath_var_GCJ=no |
|
|
16068 | ;; |
|
|
16069 | |
|
|
16070 | newsos6) |
|
|
16071 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16072 | hardcode_direct_GCJ=yes |
|
|
16073 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16074 | hardcode_libdir_separator_GCJ=: |
|
|
16075 | hardcode_shlibpath_var_GCJ=no |
|
|
16076 | ;; |
|
|
16077 | |
|
|
16078 | openbsd*) |
|
|
16079 | hardcode_direct_GCJ=yes |
|
|
16080 | hardcode_shlibpath_var_GCJ=no |
|
|
16081 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
16082 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16083 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
16084 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
16085 | else |
|
|
16086 | case $host_os in |
|
|
16087 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
16088 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
16089 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16090 | ;; |
|
|
16091 | *) |
|
|
16092 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16093 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
16094 | ;; |
|
|
16095 | esac |
|
|
16096 | fi |
|
|
16097 | ;; |
|
|
16098 | |
|
|
16099 | os2*) |
|
|
16100 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16101 | hardcode_minus_L_GCJ=yes |
|
|
16102 | allow_undefined_flag_GCJ=unsupported |
|
|
16103 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
|
|
16104 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
16105 | ;; |
|
|
16106 | |
|
|
16107 | osf3*) |
|
|
16108 | if test "$GCC" = yes; then |
|
|
16109 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
|
16110 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
16111 | else |
|
|
16112 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
|
16113 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
16114 | fi |
|
|
16115 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16116 | hardcode_libdir_separator_GCJ=: |
|
|
16117 | ;; |
|
|
16118 | |
|
|
16119 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
16120 | if test "$GCC" = yes; then |
|
|
16121 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
|
16122 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
16123 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16124 | else |
|
|
16125 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
|
16126 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
16127 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
16128 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
|
16129 | |
|
|
16130 | # Both c and cxx compiler support -rpath directly |
|
|
16131 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
|
|
16132 | fi |
|
|
16133 | hardcode_libdir_separator_GCJ=: |
|
|
16134 | ;; |
|
|
16135 | |
|
|
16136 | sco3.2v5*) |
|
|
16137 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16138 | hardcode_shlibpath_var_GCJ=no |
|
|
16139 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
|
16140 | runpath_var=LD_RUN_PATH |
|
|
16141 | hardcode_runpath_var=yes |
|
|
16142 | ;; |
|
|
16143 | |
|
|
16144 | solaris*) |
|
|
16145 | no_undefined_flag_GCJ=' -z text' |
|
|
16146 | if test "$GCC" = yes; then |
|
|
16147 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16148 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
16149 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
16150 | else |
|
|
16151 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16152 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
16153 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
16154 | fi |
|
|
16155 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16156 | hardcode_shlibpath_var_GCJ=no |
|
|
16157 | case $host_os in |
|
|
16158 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
16159 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
16160 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
|
|
16161 | esac |
|
|
16162 | link_all_deplibs_GCJ=yes |
|
|
16163 | ;; |
|
|
16164 | |
|
|
16165 | sunos4*) |
|
|
16166 | if test "x$host_vendor" = xsequent; then |
|
|
16167 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
16168 | # files that make .init and .fini sections work. |
|
|
16169 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16170 | else |
|
|
16171 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
16172 | fi |
|
|
16173 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16174 | hardcode_direct_GCJ=yes |
|
|
16175 | hardcode_minus_L_GCJ=yes |
|
|
16176 | hardcode_shlibpath_var_GCJ=no |
|
|
16177 | ;; |
|
|
16178 | |
|
|
16179 | sysv4) |
|
|
16180 | case $host_vendor in |
|
|
16181 | sni) |
|
|
16182 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16183 | hardcode_direct_GCJ=yes # is this really true??? |
|
|
16184 | ;; |
|
|
16185 | siemens) |
|
|
16186 | ## LD is ld it makes a PLAMLIB |
|
|
16187 | ## CC just makes a GrossModule. |
|
|
16188 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
16189 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
|
|
16190 | hardcode_direct_GCJ=no |
|
|
16191 | ;; |
|
|
16192 | motorola) |
|
|
16193 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16194 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
|
|
16195 | ;; |
|
|
16196 | esac |
|
|
16197 | runpath_var='LD_RUN_PATH' |
|
|
16198 | hardcode_shlibpath_var_GCJ=no |
|
|
16199 | ;; |
|
|
16200 | |
|
|
16201 | sysv4.3*) |
|
|
16202 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16203 | hardcode_shlibpath_var_GCJ=no |
|
|
16204 | export_dynamic_flag_spec_GCJ='-Bexport' |
|
|
16205 | ;; |
|
|
16206 | |
|
|
16207 | sysv4*MP*) |
|
|
16208 | if test -d /usr/nec; then |
|
|
16209 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16210 | hardcode_shlibpath_var_GCJ=no |
|
|
16211 | runpath_var=LD_RUN_PATH |
|
|
16212 | hardcode_runpath_var=yes |
|
|
16213 | ld_shlibs_GCJ=yes |
|
|
16214 | fi |
|
|
16215 | ;; |
|
|
16216 | |
|
|
16217 | sysv4.2uw2*) |
|
|
16218 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
16219 | hardcode_direct_GCJ=yes |
|
|
16220 | hardcode_minus_L_GCJ=no |
|
|
16221 | hardcode_shlibpath_var_GCJ=no |
|
|
16222 | hardcode_runpath_var=yes |
|
|
16223 | runpath_var=LD_RUN_PATH |
|
|
16224 | ;; |
|
|
16225 | |
|
|
16226 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
|
|
16227 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
|
|
16228 | if test "$GCC" = yes; then |
|
|
16229 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16230 | else |
|
|
16231 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16232 | fi |
|
|
16233 | runpath_var='LD_RUN_PATH' |
|
|
16234 | hardcode_shlibpath_var_GCJ=no |
|
|
16235 | ;; |
|
|
16236 | |
|
|
16237 | sysv5*) |
|
|
16238 | no_undefined_flag_GCJ=' -z text' |
|
|
16239 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
16240 | # object files and a static libstdc++, better avoid it by now |
|
|
16241 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16242 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
16243 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
16244 | hardcode_libdir_flag_spec_GCJ= |
|
|
16245 | hardcode_shlibpath_var_GCJ=no |
|
|
16246 | runpath_var='LD_RUN_PATH' |
|
|
16247 | ;; |
|
|
16248 | |
|
|
16249 | uts4*) |
|
|
16250 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16251 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16252 | hardcode_shlibpath_var_GCJ=no |
|
|
16253 | ;; |
|
|
16254 | |
|
|
16255 | *) |
|
|
16256 | ld_shlibs_GCJ=no |
|
|
16257 | ;; |
|
|
16258 | esac |
|
|
16259 | fi |
|
|
16260 | |
|
|
16261 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
|
|
16262 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
|
|
16263 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
|
|
16264 | |
|
|
16265 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
16266 | if test "$GCC" = yes; then |
|
|
16267 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
16268 | fi |
|
|
16269 | |
|
|
16270 | # |
|
|
16271 | # Do we need to explicitly link libc? |
|
|
16272 | # |
|
|
16273 | case "x$archive_cmds_need_lc_GCJ" in |
|
|
16274 | x|xyes) |
|
|
16275 | # Assume -lc should be added |
|
|
16276 | archive_cmds_need_lc_GCJ=yes |
|
|
16277 | |
|
|
16278 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
16279 | case $archive_cmds_GCJ in |
|
|
16280 | *'~'*) |
|
|
16281 | # FIXME: we may have to deal with multi-command sequences. |
|
|
16282 | ;; |
|
|
16283 | '$CC '*) |
|
|
16284 | # Test whether the compiler implicitly links with -lc since on some |
|
|
16285 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
16286 | # to ld, don't add -lc before -lgcc. |
|
|
16287 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
16288 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
16289 | $rm conftest* |
|
|
16290 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
16291 | |
|
|
16292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
16293 | (eval $ac_compile) 2>&5 |
|
|
16294 | ac_status=$? |
|
|
16295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16296 | (exit $ac_status); } 2>conftest.err; then |
|
|
16297 | soname=conftest |
|
|
16298 | lib=conftest |
|
|
16299 | libobjs=conftest.$ac_objext |
|
|
16300 | deplibs= |
|
|
16301 | wl=$lt_prog_compiler_wl_GCJ |
|
|
16302 | compiler_flags=-v |
|
|
16303 | linker_flags=-v |
|
|
16304 | verstring= |
|
|
16305 | output_objdir=. |
|
|
16306 | libname=conftest |
|
|
16307 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
|
|
16308 | allow_undefined_flag_GCJ= |
|
|
16309 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
16310 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
16311 | ac_status=$? |
|
|
16312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16313 | (exit $ac_status); } |
|
|
16314 | then |
|
|
16315 | archive_cmds_need_lc_GCJ=no |
|
|
16316 | else |
|
|
16317 | archive_cmds_need_lc_GCJ=yes |
|
|
16318 | fi |
|
|
16319 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
|
|
16320 | else |
|
|
16321 | cat conftest.err 1>&5 |
|
|
16322 | fi |
|
|
16323 | $rm conftest* |
|
|
16324 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
|
|
16325 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
|
|
16326 | ;; |
|
|
16327 | esac |
|
|
16328 | fi |
|
|
16329 | ;; |
|
|
16330 | esac |
|
|
16331 | |
|
|
16332 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
16333 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
16334 | library_names_spec= |
|
|
16335 | libname_spec='lib$name' |
|
|
16336 | soname_spec= |
|
|
16337 | shrext_cmds=".so" |
|
|
16338 | postinstall_cmds= |
|
|
16339 | postuninstall_cmds= |
|
|
16340 | finish_cmds= |
|
|
16341 | finish_eval= |
|
|
16342 | shlibpath_var= |
|
|
16343 | shlibpath_overrides_runpath=unknown |
|
|
16344 | version_type=none |
|
|
16345 | dynamic_linker="$host_os ld.so" |
|
|
16346 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
16347 | if test "$GCC" = yes; then |
|
|
16348 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
16349 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
16350 | # if the path contains ";" then we assume it to be the separator |
|
|
16351 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
16352 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
16353 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
16354 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
16355 | else |
|
|
16356 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
16357 | fi |
|
|
16358 | else |
|
|
16359 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
16360 | fi |
|
|
16361 | need_lib_prefix=unknown |
|
|
16362 | hardcode_into_libs=no |
|
|
16363 | |
|
|
16364 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
16365 | # flags to be left without arguments |
|
|
16366 | need_version=unknown |
|
|
16367 | |
|
|
16368 | case $host_os in |
|
|
16369 | aix3*) |
|
|
16370 | version_type=linux |
|
|
16371 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
16372 | shlibpath_var=LIBPATH |
|
|
16373 | |
|
|
16374 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
16375 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16376 | ;; |
|
|
16377 | |
|
|
16378 | aix4* | aix5*) |
|
|
16379 | version_type=linux |
|
|
16380 | need_lib_prefix=no |
|
|
16381 | need_version=no |
|
|
16382 | hardcode_into_libs=yes |
|
|
16383 | if test "$host_cpu" = ia64; then |
|
|
16384 | # AIX 5 supports IA64 |
|
|
16385 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
16386 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16387 | else |
|
|
16388 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
16389 | # for dependence libraries. The import file would start with |
|
|
16390 | # the line `#! .'. This would cause the generated library to |
|
|
16391 | # depend on `.', always an invalid library. This was fixed in |
|
|
16392 | # development snapshots of GCC prior to 3.0. |
|
|
16393 | case $host_os in |
|
|
16394 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
16395 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
16396 | echo ' yes ' |
|
|
16397 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
16398 | : |
|
|
16399 | else |
|
|
16400 | can_build_shared=no |
|
|
16401 | fi |
|
|
16402 | ;; |
|
|
16403 | esac |
|
|
16404 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
16405 | # soname into executable. Probably we can add versioning support to |
|
|
16406 | # collect2, so additional links can be useful in future. |
|
|
16407 | if test "$aix_use_runtimelinking" = yes; then |
|
|
16408 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
16409 | # instead of lib<name>.a to let people know that these are not |
|
|
16410 | # typical AIX shared libraries. |
|
|
16411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16412 | else |
|
|
16413 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
16414 | # and later when we are not doing run time linking. |
|
|
16415 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
16416 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16417 | fi |
|
|
16418 | shlibpath_var=LIBPATH |
|
|
16419 | fi |
|
|
16420 | ;; |
|
|
16421 | |
|
|
16422 | amigaos*) |
|
|
16423 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
16424 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
16425 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
|
16426 | ;; |
|
|
16427 | |
|
|
16428 | beos*) |
|
|
16429 | library_names_spec='${libname}${shared_ext}' |
|
|
16430 | dynamic_linker="$host_os ld.so" |
|
|
16431 | shlibpath_var=LIBRARY_PATH |
|
|
16432 | ;; |
|
|
16433 | |
|
|
16434 | bsdi4*) |
|
|
16435 | version_type=linux |
|
|
16436 | need_version=no |
|
|
16437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16438 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16439 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
16440 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16441 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
16442 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
16443 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
16444 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
16445 | # libtool to hard-code these into programs |
|
|
16446 | ;; |
|
|
16447 | |
|
|
16448 | cygwin* | mingw* | pw32*) |
|
|
16449 | version_type=windows |
|
|
16450 | shrext_cmds=".dll" |
|
|
16451 | need_version=no |
|
|
16452 | need_lib_prefix=no |
|
|
16453 | |
|
|
16454 | case $GCC,$host_os in |
|
|
16455 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
16456 | library_names_spec='$libname.dll.a' |
|
|
16457 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
16458 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
16459 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
16460 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
16461 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
16462 | $install_prog $dir/$dlname \$dldir/$dlname' |
|
|
16463 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
16464 | dlpath=$dir/\$dldll~ |
|
|
16465 | $rm \$dlpath' |
|
|
16466 | shlibpath_overrides_runpath=yes |
|
|
16467 | |
|
|
16468 | case $host_os in |
|
|
16469 | cygwin*) |
|
|
16470 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
16471 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
16472 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
16473 | ;; |
|
|
16474 | mingw*) |
|
|
16475 | # MinGW DLLs use traditional 'lib' prefix |
|
|
16476 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
16477 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
16478 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
16479 | # It is most probably a Windows format PATH printed by |
|
|
16480 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
16481 | # path with ; separators, and with drive letters. We can handle the |
|
|
16482 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
16483 | # especially as we might pass files found there to a mingw objdump, |
|
|
16484 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
16485 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
16486 | else |
|
|
16487 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
16488 | fi |
|
|
16489 | ;; |
|
|
16490 | pw32*) |
|
|
16491 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
16492 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
|
|
16493 | ;; |
|
|
16494 | esac |
|
|
16495 | ;; |
|
|
16496 | |
|
|
16497 | *) |
|
|
16498 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
16499 | ;; |
|
|
16500 | esac |
|
|
16501 | dynamic_linker='Win32 ld.exe' |
|
|
16502 | # FIXME: first we should search . and the directory the executable is in |
|
|
16503 | shlibpath_var=PATH |
|
|
16504 | ;; |
|
|
16505 | |
|
|
16506 | darwin* | rhapsody*) |
|
|
16507 | dynamic_linker="$host_os dyld" |
|
|
16508 | version_type=darwin |
|
|
16509 | need_lib_prefix=no |
|
|
16510 | need_version=no |
|
|
16511 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
16512 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
16513 | shlibpath_overrides_runpath=yes |
|
|
16514 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
16515 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
|
|
16516 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
16517 | if test "$GCC" = yes; then |
|
|
16518 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
16519 | else |
|
|
16520 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
16521 | fi |
|
|
16522 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
16523 | ;; |
|
|
16524 | |
|
|
16525 | dgux*) |
|
|
16526 | version_type=linux |
|
|
16527 | need_lib_prefix=no |
|
|
16528 | need_version=no |
|
|
16529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
16530 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16531 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16532 | ;; |
|
|
16533 | |
|
|
16534 | freebsd1*) |
|
|
16535 | dynamic_linker=no |
|
|
16536 | ;; |
|
|
16537 | |
|
|
16538 | kfreebsd*-gnu) |
|
|
16539 | version_type=linux |
|
|
16540 | need_lib_prefix=no |
|
|
16541 | need_version=no |
|
|
16542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16543 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16544 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16545 | shlibpath_overrides_runpath=no |
|
|
16546 | hardcode_into_libs=yes |
|
|
16547 | dynamic_linker='GNU ld.so' |
|
|
16548 | ;; |
|
|
16549 | |
|
|
16550 | freebsd*) |
|
|
16551 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
16552 | version_type=freebsd-$objformat |
|
|
16553 | case $version_type in |
|
|
16554 | freebsd-elf*) |
|
|
16555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
16556 | need_version=no |
|
|
16557 | need_lib_prefix=no |
|
|
16558 | ;; |
|
|
16559 | freebsd-*) |
|
|
16560 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
16561 | need_version=yes |
|
|
16562 | ;; |
|
|
16563 | esac |
|
|
16564 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16565 | case $host_os in |
|
|
16566 | freebsd2*) |
|
|
16567 | shlibpath_overrides_runpath=yes |
|
|
16568 | ;; |
|
|
16569 | freebsd3.01* | freebsdelf3.01*) |
|
|
16570 | shlibpath_overrides_runpath=yes |
|
|
16571 | hardcode_into_libs=yes |
|
|
16572 | ;; |
|
|
16573 | *) # from 3.2 on |
|
|
16574 | shlibpath_overrides_runpath=no |
|
|
16575 | hardcode_into_libs=yes |
|
|
16576 | ;; |
|
|
16577 | esac |
|
|
16578 | ;; |
|
|
16579 | |
|
|
16580 | gnu*) |
|
|
16581 | version_type=linux |
|
|
16582 | need_lib_prefix=no |
|
|
16583 | need_version=no |
|
|
16584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
16585 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16586 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16587 | hardcode_into_libs=yes |
|
|
16588 | ;; |
|
|
16589 | |
|
|
16590 | hpux9* | hpux10* | hpux11*) |
|
|
16591 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
16592 | # link against other versions. |
|
|
16593 | version_type=sunos |
|
|
16594 | need_lib_prefix=no |
|
|
16595 | need_version=no |
|
|
16596 | case "$host_cpu" in |
|
|
16597 | ia64*) |
|
|
16598 | shrext_cmds='.so' |
|
|
16599 | hardcode_into_libs=yes |
|
|
16600 | dynamic_linker="$host_os dld.so" |
|
|
16601 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16602 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
16603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16604 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16605 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
16606 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
16607 | else |
|
|
16608 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
16609 | fi |
|
|
16610 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
16611 | ;; |
|
|
16612 | hppa*64*) |
|
|
16613 | shrext_cmds='.sl' |
|
|
16614 | hardcode_into_libs=yes |
|
|
16615 | dynamic_linker="$host_os dld.sl" |
|
|
16616 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
16617 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
16618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16619 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16620 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
16621 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
16622 | ;; |
|
|
16623 | *) |
|
|
16624 | shrext_cmds='.sl' |
|
|
16625 | dynamic_linker="$host_os dld.sl" |
|
|
16626 | shlibpath_var=SHLIB_PATH |
|
|
16627 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
16628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16629 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16630 | ;; |
|
|
16631 | esac |
|
|
16632 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
16633 | postinstall_cmds='chmod 555 $lib' |
|
|
16634 | ;; |
|
|
16635 | |
|
|
16636 | irix5* | irix6* | nonstopux*) |
|
|
16637 | case $host_os in |
|
|
16638 | nonstopux*) version_type=nonstopux ;; |
|
|
16639 | *) |
|
|
16640 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
16641 | version_type=linux |
|
|
16642 | else |
|
|
16643 | version_type=irix |
|
|
16644 | fi ;; |
|
|
16645 | esac |
|
|
16646 | need_lib_prefix=no |
|
|
16647 | need_version=no |
|
|
16648 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
16650 | case $host_os in |
|
|
16651 | irix5* | nonstopux*) |
|
|
16652 | libsuff= shlibsuff= |
|
|
16653 | ;; |
|
|
16654 | *) |
|
|
16655 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
16656 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
16657 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
16658 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
16659 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
16660 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
16661 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
16662 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
16663 | esac |
|
|
16664 | ;; |
|
|
16665 | esac |
|
|
16666 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
16667 | shlibpath_overrides_runpath=no |
|
|
16668 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
16669 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
16670 | hardcode_into_libs=yes |
|
|
16671 | ;; |
|
|
16672 | |
|
|
16673 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
16674 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
16675 | dynamic_linker=no |
|
|
16676 | ;; |
|
|
16677 | |
|
|
16678 | # This must be Linux ELF. |
|
|
16679 | linux*) |
|
|
16680 | version_type=linux |
|
|
16681 | need_lib_prefix=no |
|
|
16682 | need_version=no |
|
|
16683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16684 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16685 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
16686 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16687 | shlibpath_overrides_runpath=no |
|
|
16688 | # This implies no fast_install, which is unacceptable. |
|
|
16689 | # Some rework will be needed to allow for fast_install |
|
|
16690 | # before this can be enabled. |
|
|
16691 | hardcode_into_libs=yes |
|
|
16692 | |
|
|
16693 | # Append ld.so.conf contents to the search path |
|
|
16694 | if test -f /etc/ld.so.conf; then |
|
|
16695 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
|
|
16696 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
16697 | fi |
|
|
16698 | |
|
|
16699 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
16700 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
16701 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
16702 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
16703 | # people can always --disable-shared, the test was removed, and we |
|
|
16704 | # assume the GNU/Linux dynamic linker is in use. |
|
|
16705 | dynamic_linker='GNU/Linux ld.so' |
|
|
16706 | ;; |
|
|
16707 | |
|
|
16708 | netbsdelf*-gnu) |
|
|
16709 | version_type=linux |
|
|
16710 | need_lib_prefix=no |
|
|
16711 | need_version=no |
|
|
16712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16713 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16714 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16715 | shlibpath_overrides_runpath=no |
|
|
16716 | hardcode_into_libs=yes |
|
|
16717 | dynamic_linker='NetBSD ld.elf_so' |
|
|
16718 | ;; |
|
|
16719 | |
|
|
16720 | knetbsd*-gnu) |
|
|
16721 | version_type=linux |
|
|
16722 | need_lib_prefix=no |
|
|
16723 | need_version=no |
|
|
16724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16725 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16726 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16727 | shlibpath_overrides_runpath=no |
|
|
16728 | hardcode_into_libs=yes |
|
|
16729 | dynamic_linker='GNU ld.so' |
|
|
16730 | ;; |
|
|
16731 | |
|
|
16732 | netbsd*) |
|
|
16733 | version_type=sunos |
|
|
16734 | need_lib_prefix=no |
|
|
16735 | need_version=no |
|
|
16736 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
16737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16738 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
16739 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
16740 | else |
|
|
16741 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16742 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16743 | dynamic_linker='NetBSD ld.elf_so' |
|
|
16744 | fi |
|
|
16745 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16746 | shlibpath_overrides_runpath=yes |
|
|
16747 | hardcode_into_libs=yes |
|
|
16748 | ;; |
|
|
16749 | |
|
|
16750 | newsos6) |
|
|
16751 | version_type=linux |
|
|
16752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16753 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16754 | shlibpath_overrides_runpath=yes |
|
|
16755 | ;; |
|
|
16756 | |
|
|
16757 | nto-qnx*) |
|
|
16758 | version_type=linux |
|
|
16759 | need_lib_prefix=no |
|
|
16760 | need_version=no |
|
|
16761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16762 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16763 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16764 | shlibpath_overrides_runpath=yes |
|
|
16765 | ;; |
|
|
16766 | |
|
|
16767 | openbsd*) |
|
|
16768 | version_type=sunos |
|
|
16769 | need_lib_prefix=no |
|
|
16770 | need_version=yes |
|
|
16771 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16772 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
16773 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16774 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
16775 | case $host_os in |
|
|
16776 | openbsd2.[89] | openbsd2.[89].*) |
|
|
16777 | shlibpath_overrides_runpath=no |
|
|
16778 | ;; |
|
|
16779 | *) |
|
|
16780 | shlibpath_overrides_runpath=yes |
|
|
16781 | ;; |
|
|
16782 | esac |
|
|
16783 | else |
|
|
16784 | shlibpath_overrides_runpath=yes |
|
|
16785 | fi |
|
|
16786 | ;; |
|
|
16787 | |
|
|
16788 | os2*) |
|
|
16789 | libname_spec='$name' |
|
|
16790 | shrext_cmds=".dll" |
|
|
16791 | need_lib_prefix=no |
|
|
16792 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
16793 | dynamic_linker='OS/2 ld.exe' |
|
|
16794 | shlibpath_var=LIBPATH |
|
|
16795 | ;; |
|
|
16796 | |
|
|
16797 | osf3* | osf4* | osf5*) |
|
|
16798 | version_type=osf |
|
|
16799 | need_lib_prefix=no |
|
|
16800 | need_version=no |
|
|
16801 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16803 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16804 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
16805 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
16806 | ;; |
|
|
16807 | |
|
|
16808 | sco3.2v5*) |
|
|
16809 | version_type=osf |
|
|
16810 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16812 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16813 | ;; |
|
|
16814 | |
|
|
16815 | solaris*) |
|
|
16816 | version_type=linux |
|
|
16817 | need_lib_prefix=no |
|
|
16818 | need_version=no |
|
|
16819 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16820 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16821 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16822 | shlibpath_overrides_runpath=yes |
|
|
16823 | hardcode_into_libs=yes |
|
|
16824 | # ldd complains unless libraries are executable |
|
|
16825 | postinstall_cmds='chmod +x $lib' |
|
|
16826 | ;; |
|
|
16827 | |
|
|
16828 | sunos4*) |
|
|
16829 | version_type=sunos |
|
|
16830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16831 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
16832 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16833 | shlibpath_overrides_runpath=yes |
|
|
16834 | if test "$with_gnu_ld" = yes; then |
|
|
16835 | need_lib_prefix=no |
|
|
16836 | fi |
|
|
16837 | need_version=yes |
|
|
16838 | ;; |
|
|
16839 | |
|
|
16840 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
16841 | version_type=linux |
|
|
16842 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16843 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16844 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16845 | case $host_vendor in |
|
|
16846 | sni) |
|
|
16847 | shlibpath_overrides_runpath=no |
|
|
16848 | need_lib_prefix=no |
|
|
16849 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
16850 | runpath_var=LD_RUN_PATH |
|
|
16851 | ;; |
|
|
16852 | siemens) |
|
|
16853 | need_lib_prefix=no |
|
|
16854 | ;; |
|
|
16855 | motorola) |
|
|
16856 | need_lib_prefix=no |
|
|
16857 | need_version=no |
|
|
16858 | shlibpath_overrides_runpath=no |
|
|
16859 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
16860 | ;; |
|
|
16861 | esac |
|
|
16862 | ;; |
|
|
16863 | |
|
|
16864 | sysv4*MP*) |
|
|
16865 | if test -d /usr/nec ;then |
|
|
16866 | version_type=linux |
|
|
16867 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
16868 | soname_spec='$libname${shared_ext}.$major' |
|
|
16869 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16870 | fi |
|
|
16871 | ;; |
|
|
16872 | |
|
|
16873 | uts4*) |
|
|
16874 | version_type=linux |
|
|
16875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16876 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16877 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16878 | ;; |
|
|
16879 | |
|
|
16880 | *) |
|
|
16881 | dynamic_linker=no |
|
|
16882 | ;; |
|
|
16883 | esac |
|
|
16884 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
16885 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
16886 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
16887 | |
|
|
16888 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
16889 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
16890 | hardcode_action_GCJ= |
|
|
16891 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
|
|
16892 | test -n "$runpath_var GCJ" || \ |
|
|
16893 | test "X$hardcode_automatic_GCJ"="Xyes" ; then |
|
|
16894 | |
|
|
16895 | # We can hardcode non-existant directories. |
|
|
16896 | if test "$hardcode_direct_GCJ" != no && |
|
|
16897 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
16898 | # have to relink, otherwise we might link with an installed library |
|
|
16899 | # when we should be linking with a yet-to-be-installed one |
|
|
16900 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
|
|
16901 | test "$hardcode_minus_L_GCJ" != no; then |
|
|
16902 | # Linking always hardcodes the temporary library directory. |
|
|
16903 | hardcode_action_GCJ=relink |
|
|
16904 | else |
|
|
16905 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
16906 | hardcode_action_GCJ=immediate |
|
|
16907 | fi |
|
|
16908 | else |
|
|
16909 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
16910 | # directories. |
|
|
16911 | hardcode_action_GCJ=unsupported |
|
|
16912 | fi |
|
|
16913 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
|
|
16914 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
|
|
16915 | |
|
|
16916 | if test "$hardcode_action_GCJ" = relink; then |
|
|
16917 | # Fast installation is not supported |
|
|
16918 | enable_fast_install=no |
|
|
16919 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
16920 | test "$enable_shared" = no; then |
|
|
16921 | # Fast installation is not necessary |
|
|
16922 | enable_fast_install=needless |
|
|
16923 | fi |
|
|
16924 | |
|
|
16925 | striplib= |
|
|
16926 | old_striplib= |
|
|
16927 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
16928 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
16929 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
16930 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
16931 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
16932 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
16933 | echo "${ECHO_T}yes" >&6 |
|
|
16934 | else |
|
|
16935 | # FIXME - insert some real tests, host_os isn't really good enough |
|
|
16936 | case $host_os in |
|
|
16937 | darwin*) |
|
|
16938 | if test -n "$STRIP" ; then |
|
|
16939 | striplib="$STRIP -x" |
|
|
16940 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
16941 | echo "${ECHO_T}yes" >&6 |
|
|
16942 | else |
|
|
16943 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
16944 | echo "${ECHO_T}no" >&6 |
|
|
16945 | fi |
|
|
16946 | ;; |
|
|
16947 | *) |
|
|
16948 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
16949 | echo "${ECHO_T}no" >&6 |
|
|
16950 | ;; |
|
|
16951 | esac |
|
|
16952 | fi |
|
|
16953 | |
|
|
16954 | if test "x$enable_dlopen" != xyes; then |
|
|
16955 | enable_dlopen=unknown |
|
|
16956 | enable_dlopen_self=unknown |
|
|
16957 | enable_dlopen_self_static=unknown |
|
|
16958 | else |
|
|
16959 | lt_cv_dlopen=no |
|
|
16960 | lt_cv_dlopen_libs= |
|
|
16961 | |
|
|
16962 | case $host_os in |
|
|
16963 | beos*) |
|
|
16964 | lt_cv_dlopen="load_add_on" |
|
|
16965 | lt_cv_dlopen_libs= |
|
|
16966 | lt_cv_dlopen_self=yes |
|
|
16967 | ;; |
|
|
16968 | |
|
|
16969 | mingw* | pw32*) |
|
|
16970 | lt_cv_dlopen="LoadLibrary" |
|
|
16971 | lt_cv_dlopen_libs= |
|
|
16972 | ;; |
|
|
16973 | |
|
|
16974 | cygwin*) |
|
|
16975 | lt_cv_dlopen="dlopen" |
|
|
16976 | lt_cv_dlopen_libs= |
|
|
16977 | ;; |
|
|
16978 | |
|
|
16979 | darwin*) |
|
|
16980 | # if libdl is installed we need to link against it |
|
|
16981 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
16982 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
16983 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
16984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
16985 | else |
|
|
16986 | ac_check_lib_save_LIBS=$LIBS |
|
|
16987 | LIBS="-ldl $LIBS" |
|
|
16988 | cat >conftest.$ac_ext <<_ACEOF |
|
|
16989 | /* confdefs.h. */ |
|
|
16990 | _ACEOF |
|
|
16991 | cat confdefs.h >>conftest.$ac_ext |
|
|
16992 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
16993 | /* end confdefs.h. */ |
|
|
16994 | |
|
|
16995 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
16996 | #ifdef __cplusplus |
|
|
16997 | extern "C" |
|
|
16998 | #endif |
|
|
16999 | /* We use char because int might match the return type of a gcc2 |
|
|
17000 | builtin and then its argument prototype would still apply. */ |
|
|
17001 | char dlopen (); |
|
|
17002 | int |
|
|
17003 | main () |
|
|
17004 | { |
|
|
17005 | dlopen (); |
|
|
17006 | ; |
|
|
17007 | return 0; |
|
|
17008 | } |
|
|
17009 | _ACEOF |
|
|
17010 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
17011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17012 | (eval $ac_link) 2>conftest.er1 |
|
|
17013 | ac_status=$? |
|
|
17014 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
17015 | rm -f conftest.er1 |
|
|
17016 | cat conftest.err >&5 |
|
|
17017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17018 | (exit $ac_status); } && |
|
|
17019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
17020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17021 | (eval $ac_try) 2>&5 |
|
|
17022 | ac_status=$? |
|
|
17023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17024 | (exit $ac_status); }; } && |
|
|
17025 | { ac_try='test -s conftest$ac_exeext' |
|
|
17026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17027 | (eval $ac_try) 2>&5 |
|
|
17028 | ac_status=$? |
|
|
17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17030 | (exit $ac_status); }; }; then |
|
|
17031 | ac_cv_lib_dl_dlopen=yes |
|
|
17032 | else |
|
|
17033 | echo "$as_me: failed program was:" >&5 |
|
|
17034 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
17035 | |
|
|
17036 | ac_cv_lib_dl_dlopen=no |
|
|
17037 | fi |
|
|
17038 | rm -f conftest.err conftest.$ac_objext \ |
|
|
17039 | conftest$ac_exeext conftest.$ac_ext |
|
|
17040 | LIBS=$ac_check_lib_save_LIBS |
|
|
17041 | fi |
|
|
17042 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
17043 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
17044 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
17045 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
17046 | else |
|
|
17047 | |
|
|
17048 | lt_cv_dlopen="dyld" |
|
|
17049 | lt_cv_dlopen_libs= |
|
|
17050 | lt_cv_dlopen_self=yes |
|
|
17051 | |
|
|
17052 | fi |
|
|
17053 | |
|
|
17054 | ;; |
|
|
17055 | |
|
|
17056 | *) |
|
|
17057 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
|
17058 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
|
17059 | if test "${ac_cv_func_shl_load+set}" = set; then |
|
|
17060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
17061 | else |
|
|
17062 | cat >conftest.$ac_ext <<_ACEOF |
|
|
17063 | /* confdefs.h. */ |
|
|
17064 | _ACEOF |
|
|
17065 | cat confdefs.h >>conftest.$ac_ext |
|
|
17066 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
17067 | /* end confdefs.h. */ |
|
|
17068 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
17069 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
17070 | #define shl_load innocuous_shl_load |
|
|
17071 | |
|
|
17072 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
17073 | which can conflict with char shl_load (); below. |
|
|
17074 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
17075 | <limits.h> exists even on freestanding compilers. */ |
|
|
17076 | |
|
|
17077 | #ifdef __STDC__ |
|
|
17078 | # include <limits.h> |
|
|
17079 | #else |
|
|
17080 | # include <assert.h> |
|
|
17081 | #endif |
|
|
17082 | |
|
|
17083 | #undef shl_load |
|
|
17084 | |
|
|
17085 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
17086 | #ifdef __cplusplus |
|
|
17087 | extern "C" |
|
|
17088 | { |
|
|
17089 | #endif |
|
|
17090 | /* We use char because int might match the return type of a gcc2 |
|
|
17091 | builtin and then its argument prototype would still apply. */ |
|
|
17092 | char shl_load (); |
|
|
17093 | /* The GNU C library defines this for functions which it implements |
|
|
17094 | to always fail with ENOSYS. Some functions are actually named |
|
|
17095 | something starting with __ and the normal name is an alias. */ |
|
|
17096 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
17097 | choke me |
|
|
17098 | #else |
|
|
17099 | char (*f) () = shl_load; |
|
|
17100 | #endif |
|
|
17101 | #ifdef __cplusplus |
|
|
17102 | } |
|
|
17103 | #endif |
|
|
17104 | |
|
|
17105 | int |
|
|
17106 | main () |
|
|
17107 | { |
|
|
17108 | return f != shl_load; |
|
|
17109 | ; |
|
|
17110 | return 0; |
|
|
17111 | } |
|
|
17112 | _ACEOF |
|
|
17113 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
17114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17115 | (eval $ac_link) 2>conftest.er1 |
|
|
17116 | ac_status=$? |
|
|
17117 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
17118 | rm -f conftest.er1 |
|
|
17119 | cat conftest.err >&5 |
|
|
17120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17121 | (exit $ac_status); } && |
|
|
17122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
17123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17124 | (eval $ac_try) 2>&5 |
|
|
17125 | ac_status=$? |
|
|
17126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17127 | (exit $ac_status); }; } && |
|
|
17128 | { ac_try='test -s conftest$ac_exeext' |
|
|
17129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17130 | (eval $ac_try) 2>&5 |
|
|
17131 | ac_status=$? |
|
|
17132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17133 | (exit $ac_status); }; }; then |
|
|
17134 | ac_cv_func_shl_load=yes |
|
|
17135 | else |
|
|
17136 | echo "$as_me: failed program was:" >&5 |
|
|
17137 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
17138 | |
|
|
17139 | ac_cv_func_shl_load=no |
|
|
17140 | fi |
|
|
17141 | rm -f conftest.err conftest.$ac_objext \ |
|
|
17142 | conftest$ac_exeext conftest.$ac_ext |
|
|
17143 | fi |
|
|
17144 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
17145 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
17146 | if test $ac_cv_func_shl_load = yes; then |
|
|
17147 | lt_cv_dlopen="shl_load" |
|
|
17148 | else |
|
|
17149 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
17150 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
|
17151 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
17152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
17153 | else |
|
|
17154 | ac_check_lib_save_LIBS=$LIBS |
|
|
17155 | LIBS="-ldld $LIBS" |
|
|
17156 | cat >conftest.$ac_ext <<_ACEOF |
|
|
17157 | /* confdefs.h. */ |
|
|
17158 | _ACEOF |
|
|
17159 | cat confdefs.h >>conftest.$ac_ext |
|
|
17160 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
17161 | /* end confdefs.h. */ |
|
|
17162 | |
|
|
17163 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
17164 | #ifdef __cplusplus |
|
|
17165 | extern "C" |
|
|
17166 | #endif |
|
|
17167 | /* We use char because int might match the return type of a gcc2 |
|
|
17168 | builtin and then its argument prototype would still apply. */ |
|
|
17169 | char shl_load (); |
|
|
17170 | int |
|
|
17171 | main () |
|
|
17172 | { |
|
|
17173 | shl_load (); |
|
|
17174 | ; |
|
|
17175 | return 0; |
|
|
17176 | } |
|
|
17177 | _ACEOF |
|
|
17178 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
17179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17180 | (eval $ac_link) 2>conftest.er1 |
|
|
17181 | ac_status=$? |
|
|
17182 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
17183 | rm -f conftest.er1 |
|
|
17184 | cat conftest.err >&5 |
|
|
17185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17186 | (exit $ac_status); } && |
|
|
17187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
17188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17189 | (eval $ac_try) 2>&5 |
|
|
17190 | ac_status=$? |
|
|
17191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17192 | (exit $ac_status); }; } && |
|
|
17193 | { ac_try='test -s conftest$ac_exeext' |
|
|
17194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17195 | (eval $ac_try) 2>&5 |
|
|
17196 | ac_status=$? |
|
|
17197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17198 | (exit $ac_status); }; }; then |
|
|
17199 | ac_cv_lib_dld_shl_load=yes |
|
|
17200 | else |
|
|
17201 | echo "$as_me: failed program was:" >&5 |
|
|
17202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
17203 | |
|
|
17204 | ac_cv_lib_dld_shl_load=no |
|
|
17205 | fi |
|
|
17206 | rm -f conftest.err conftest.$ac_objext \ |
|
|
17207 | conftest$ac_exeext conftest.$ac_ext |
|
|
17208 | LIBS=$ac_check_lib_save_LIBS |
|
|
17209 | fi |
|
|
17210 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
17211 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
17212 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
17213 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
|
17214 | else |
|
|
17215 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
17216 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
17217 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
17218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
17219 | else |
|
|
17220 | cat >conftest.$ac_ext <<_ACEOF |
|
|
17221 | /* confdefs.h. */ |
|
|
17222 | _ACEOF |
|
|
17223 | cat confdefs.h >>conftest.$ac_ext |
|
|
17224 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
17225 | /* end confdefs.h. */ |
|
|
17226 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
17227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
17228 | #define dlopen innocuous_dlopen |
|
|
17229 | |
|
|
17230 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
17231 | which can conflict with char dlopen (); below. |
|
|
17232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
17233 | <limits.h> exists even on freestanding compilers. */ |
|
|
17234 | |
|
|
17235 | #ifdef __STDC__ |
|
|
17236 | # include <limits.h> |
|
|
17237 | #else |
|
|
17238 | # include <assert.h> |
|
|
17239 | #endif |
|
|
17240 | |
|
|
17241 | #undef dlopen |
|
|
17242 | |
|
|
17243 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
17244 | #ifdef __cplusplus |
|
|
17245 | extern "C" |
|
|
17246 | { |
|
|
17247 | #endif |
|
|
17248 | /* We use char because int might match the return type of a gcc2 |
|
|
17249 | builtin and then its argument prototype would still apply. */ |
|
|
17250 | char dlopen (); |
|
|
17251 | /* The GNU C library defines this for functions which it implements |
|
|
17252 | to always fail with ENOSYS. Some functions are actually named |
|
|
17253 | something starting with __ and the normal name is an alias. */ |
|
|
17254 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
|
17255 | choke me |
|
|
17256 | #else |
|
|
17257 | char (*f) () = dlopen; |
|
|
17258 | #endif |
|
|
17259 | #ifdef __cplusplus |
|
|
17260 | } |
|
|
17261 | #endif |
|
|
17262 | |
|
|
17263 | int |
|
|
17264 | main () |
|
|
17265 | { |
|
|
17266 | return f != dlopen; |
|
|
17267 | ; |
|
|
17268 | return 0; |
|
|
17269 | } |
|
|
17270 | _ACEOF |
|
|
17271 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
17272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17273 | (eval $ac_link) 2>conftest.er1 |
|
|
17274 | ac_status=$? |
|
|
17275 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
17276 | rm -f conftest.er1 |
|
|
17277 | cat conftest.err >&5 |
|
|
17278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17279 | (exit $ac_status); } && |
|
|
17280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
17281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17282 | (eval $ac_try) 2>&5 |
|
|
17283 | ac_status=$? |
|
|
17284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17285 | (exit $ac_status); }; } && |
|
|
17286 | { ac_try='test -s conftest$ac_exeext' |
|
|
17287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17288 | (eval $ac_try) 2>&5 |
|
|
17289 | ac_status=$? |
|
|
17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17291 | (exit $ac_status); }; }; then |
|
|
17292 | ac_cv_func_dlopen=yes |
|
|
17293 | else |
|
|
17294 | echo "$as_me: failed program was:" >&5 |
|
|
17295 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
17296 | |
|
|
17297 | ac_cv_func_dlopen=no |
|
|
17298 | fi |
|
|
17299 | rm -f conftest.err conftest.$ac_objext \ |
|
|
17300 | conftest$ac_exeext conftest.$ac_ext |
|
|
17301 | fi |
|
|
17302 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
17303 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
|
17304 | if test $ac_cv_func_dlopen = yes; then |
|
|
17305 | lt_cv_dlopen="dlopen" |
|
|
17306 | else |
|
|
17307 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
17308 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
17309 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
17310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
17311 | else |
|
|
17312 | ac_check_lib_save_LIBS=$LIBS |
|
|
17313 | LIBS="-ldl $LIBS" |
|
|
17314 | cat >conftest.$ac_ext <<_ACEOF |
|
|
17315 | /* confdefs.h. */ |
|
|
17316 | _ACEOF |
|
|
17317 | cat confdefs.h >>conftest.$ac_ext |
|
|
17318 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
17319 | /* end confdefs.h. */ |
|
|
17320 | |
|
|
17321 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
17322 | #ifdef __cplusplus |
|
|
17323 | extern "C" |
|
|
17324 | #endif |
|
|
17325 | /* We use char because int might match the return type of a gcc2 |
|
|
17326 | builtin and then its argument prototype would still apply. */ |
|
|
17327 | char dlopen (); |
|
|
17328 | int |
|
|
17329 | main () |
|
|
17330 | { |
|
|
17331 | dlopen (); |
|
|
17332 | ; |
|
|
17333 | return 0; |
|
|
17334 | } |
|
|
17335 | _ACEOF |
|
|
17336 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
17337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17338 | (eval $ac_link) 2>conftest.er1 |
|
|
17339 | ac_status=$? |
|
|
17340 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
17341 | rm -f conftest.er1 |
|
|
17342 | cat conftest.err >&5 |
|
|
17343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17344 | (exit $ac_status); } && |
|
|
17345 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
17346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17347 | (eval $ac_try) 2>&5 |
|
|
17348 | ac_status=$? |
|
|
17349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17350 | (exit $ac_status); }; } && |
|
|
17351 | { ac_try='test -s conftest$ac_exeext' |
|
|
17352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17353 | (eval $ac_try) 2>&5 |
|
|
17354 | ac_status=$? |
|
|
17355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17356 | (exit $ac_status); }; }; then |
|
|
17357 | ac_cv_lib_dl_dlopen=yes |
|
|
17358 | else |
|
|
17359 | echo "$as_me: failed program was:" >&5 |
|
|
17360 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
17361 | |
|
|
17362 | ac_cv_lib_dl_dlopen=no |
|
|
17363 | fi |
|
|
17364 | rm -f conftest.err conftest.$ac_objext \ |
|
|
17365 | conftest$ac_exeext conftest.$ac_ext |
|
|
17366 | LIBS=$ac_check_lib_save_LIBS |
|
|
17367 | fi |
|
|
17368 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
17369 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
17370 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
17371 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
17372 | else |
|
|
17373 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
17374 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
17375 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
17376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
17377 | else |
|
|
17378 | ac_check_lib_save_LIBS=$LIBS |
|
|
17379 | LIBS="-lsvld $LIBS" |
|
|
17380 | cat >conftest.$ac_ext <<_ACEOF |
|
|
17381 | /* confdefs.h. */ |
|
|
17382 | _ACEOF |
|
|
17383 | cat confdefs.h >>conftest.$ac_ext |
|
|
17384 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
17385 | /* end confdefs.h. */ |
|
|
17386 | |
|
|
17387 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
17388 | #ifdef __cplusplus |
|
|
17389 | extern "C" |
|
|
17390 | #endif |
|
|
17391 | /* We use char because int might match the return type of a gcc2 |
|
|
17392 | builtin and then its argument prototype would still apply. */ |
|
|
17393 | char dlopen (); |
|
|
17394 | int |
|
|
17395 | main () |
|
|
17396 | { |
|
|
17397 | dlopen (); |
|
|
17398 | ; |
|
|
17399 | return 0; |
|
|
17400 | } |
|
|
17401 | _ACEOF |
|
|
17402 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
17403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17404 | (eval $ac_link) 2>conftest.er1 |
|
|
17405 | ac_status=$? |
|
|
17406 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
17407 | rm -f conftest.er1 |
|
|
17408 | cat conftest.err >&5 |
|
|
17409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17410 | (exit $ac_status); } && |
|
|
17411 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
17412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17413 | (eval $ac_try) 2>&5 |
|
|
17414 | ac_status=$? |
|
|
17415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17416 | (exit $ac_status); }; } && |
|
|
17417 | { ac_try='test -s conftest$ac_exeext' |
|
|
17418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17419 | (eval $ac_try) 2>&5 |
|
|
17420 | ac_status=$? |
|
|
17421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17422 | (exit $ac_status); }; }; then |
|
|
17423 | ac_cv_lib_svld_dlopen=yes |
|
|
17424 | else |
|
|
17425 | echo "$as_me: failed program was:" >&5 |
|
|
17426 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
17427 | |
|
|
17428 | ac_cv_lib_svld_dlopen=no |
|
|
17429 | fi |
|
|
17430 | rm -f conftest.err conftest.$ac_objext \ |
|
|
17431 | conftest$ac_exeext conftest.$ac_ext |
|
|
17432 | LIBS=$ac_check_lib_save_LIBS |
|
|
17433 | fi |
|
|
17434 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
17435 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
|
17436 | if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
17437 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
17438 | else |
|
|
17439 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
|
17440 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
|
17441 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
|
17442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
17443 | else |
|
|
17444 | ac_check_lib_save_LIBS=$LIBS |
|
|
17445 | LIBS="-ldld $LIBS" |
|
|
17446 | cat >conftest.$ac_ext <<_ACEOF |
|
|
17447 | /* confdefs.h. */ |
|
|
17448 | _ACEOF |
|
|
17449 | cat confdefs.h >>conftest.$ac_ext |
|
|
17450 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
17451 | /* end confdefs.h. */ |
|
|
17452 | |
|
|
17453 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
17454 | #ifdef __cplusplus |
|
|
17455 | extern "C" |
|
|
17456 | #endif |
|
|
17457 | /* We use char because int might match the return type of a gcc2 |
|
|
17458 | builtin and then its argument prototype would still apply. */ |
|
|
17459 | char dld_link (); |
|
|
17460 | int |
|
|
17461 | main () |
|
|
17462 | { |
|
|
17463 | dld_link (); |
|
|
17464 | ; |
|
|
17465 | return 0; |
|
|
17466 | } |
|
|
17467 | _ACEOF |
|
|
17468 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
17469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17470 | (eval $ac_link) 2>conftest.er1 |
|
|
17471 | ac_status=$? |
|
|
17472 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
17473 | rm -f conftest.er1 |
|
|
17474 | cat conftest.err >&5 |
|
|
17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17476 | (exit $ac_status); } && |
|
|
17477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
17478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17479 | (eval $ac_try) 2>&5 |
|
|
17480 | ac_status=$? |
|
|
17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17482 | (exit $ac_status); }; } && |
|
|
17483 | { ac_try='test -s conftest$ac_exeext' |
|
|
17484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
17485 | (eval $ac_try) 2>&5 |
|
|
17486 | ac_status=$? |
|
|
17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17488 | (exit $ac_status); }; }; then |
|
|
17489 | ac_cv_lib_dld_dld_link=yes |
|
|
17490 | else |
|
|
17491 | echo "$as_me: failed program was:" >&5 |
|
|
17492 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
17493 | |
|
|
17494 | ac_cv_lib_dld_dld_link=no |
|
|
17495 | fi |
|
|
17496 | rm -f conftest.err conftest.$ac_objext \ |
|
|
17497 | conftest$ac_exeext conftest.$ac_ext |
|
|
17498 | LIBS=$ac_check_lib_save_LIBS |
|
|
17499 | fi |
|
|
17500 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
|
17501 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
|
17502 | if test $ac_cv_lib_dld_dld_link = yes; then |
|
|
17503 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
17504 | fi |
|
|
17505 | |
|
|
17506 | |
|
|
17507 | fi |
|
|
17508 | |
|
|
17509 | |
|
|
17510 | fi |
|
|
17511 | |
|
|
17512 | |
|
|
17513 | fi |
|
|
17514 | |
|
|
17515 | |
|
|
17516 | fi |
|
|
17517 | |
|
|
17518 | |
|
|
17519 | fi |
|
|
17520 | |
|
|
17521 | ;; |
|
|
17522 | esac |
|
|
17523 | |
|
|
17524 | if test "x$lt_cv_dlopen" != xno; then |
|
|
17525 | enable_dlopen=yes |
|
|
17526 | else |
|
|
17527 | enable_dlopen=no |
|
|
17528 | fi |
|
|
17529 | |
|
|
17530 | case $lt_cv_dlopen in |
|
|
17531 | dlopen) |
|
|
17532 | save_CPPFLAGS="$CPPFLAGS" |
|
|
17533 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
17534 | |
|
|
17535 | save_LDFLAGS="$LDFLAGS" |
|
|
17536 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
17537 | |
|
|
17538 | save_LIBS="$LIBS" |
|
|
17539 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
17540 | |
|
|
17541 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
17542 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
17543 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
17544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
17545 | else |
|
|
17546 | if test "$cross_compiling" = yes; then : |
|
|
17547 | lt_cv_dlopen_self=cross |
|
|
17548 | else |
|
|
17549 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
17550 | lt_status=$lt_dlunknown |
|
|
17551 | cat > conftest.$ac_ext <<EOF |
|
|
17552 | #line 17552 "configure" |
|
|
17553 | #include "confdefs.h" |
|
|
17554 | |
|
|
17555 | #if HAVE_DLFCN_H |
|
|
17556 | #include <dlfcn.h> |
|
|
17557 | #endif |
|
|
17558 | |
|
|
17559 | #include <stdio.h> |
|
|
17560 | |
|
|
17561 | #ifdef RTLD_GLOBAL |
|
|
17562 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
17563 | #else |
|
|
17564 | # ifdef DL_GLOBAL |
|
|
17565 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
17566 | # else |
|
|
17567 | # define LT_DLGLOBAL 0 |
|
|
17568 | # endif |
|
|
17569 | #endif |
|
|
17570 | |
|
|
17571 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
17572 | find out it does not work in some platform. */ |
|
|
17573 | #ifndef LT_DLLAZY_OR_NOW |
|
|
17574 | # ifdef RTLD_LAZY |
|
|
17575 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
17576 | # else |
|
|
17577 | # ifdef DL_LAZY |
|
|
17578 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
17579 | # else |
|
|
17580 | # ifdef RTLD_NOW |
|
|
17581 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
17582 | # else |
|
|
17583 | # ifdef DL_NOW |
|
|
17584 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
17585 | # else |
|
|
17586 | # define LT_DLLAZY_OR_NOW 0 |
|
|
17587 | # endif |
|
|
17588 | # endif |
|
|
17589 | # endif |
|
|
17590 | # endif |
|
|
17591 | #endif |
|
|
17592 | |
|
|
17593 | #ifdef __cplusplus |
|
|
17594 | extern "C" void exit (int); |
|
|
17595 | #endif |
|
|
17596 | |
|
|
17597 | void fnord() { int i=42;} |
|
|
17598 | int main () |
|
|
17599 | { |
|
|
17600 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
17601 | int status = $lt_dlunknown; |
|
|
17602 | |
|
|
17603 | if (self) |
|
|
17604 | { |
|
|
17605 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
17606 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
17607 | /* dlclose (self); */ |
|
|
17608 | } |
|
|
17609 | |
|
|
17610 | exit (status); |
|
|
17611 | } |
|
|
17612 | EOF |
|
|
17613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17614 | (eval $ac_link) 2>&5 |
|
|
17615 | ac_status=$? |
|
|
17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17617 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
17618 | (./conftest; exit; ) 2>/dev/null |
|
|
17619 | lt_status=$? |
|
|
17620 | case x$lt_status in |
|
|
17621 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
17622 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
17623 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
17624 | esac |
|
|
17625 | else : |
|
|
17626 | # compilation failed |
|
|
17627 | lt_cv_dlopen_self=no |
|
|
17628 | fi |
|
|
17629 | fi |
|
|
17630 | rm -fr conftest* |
|
|
17631 | |
|
|
17632 | |
|
|
17633 | fi |
|
|
17634 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
17635 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
17636 | |
|
|
17637 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
17638 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
17639 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
17640 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
17641 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
17642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
17643 | else |
|
|
17644 | if test "$cross_compiling" = yes; then : |
|
|
17645 | lt_cv_dlopen_self_static=cross |
|
|
17646 | else |
|
|
17647 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
17648 | lt_status=$lt_dlunknown |
|
|
17649 | cat > conftest.$ac_ext <<EOF |
|
|
17650 | #line 17650 "configure" |
|
|
17651 | #include "confdefs.h" |
|
|
17652 | |
|
|
17653 | #if HAVE_DLFCN_H |
|
|
17654 | #include <dlfcn.h> |
|
|
17655 | #endif |
|
|
17656 | |
|
|
17657 | #include <stdio.h> |
|
|
17658 | |
|
|
17659 | #ifdef RTLD_GLOBAL |
|
|
17660 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
17661 | #else |
|
|
17662 | # ifdef DL_GLOBAL |
|
|
17663 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
17664 | # else |
|
|
17665 | # define LT_DLGLOBAL 0 |
|
|
17666 | # endif |
|
|
17667 | #endif |
|
|
17668 | |
|
|
17669 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
17670 | find out it does not work in some platform. */ |
|
|
17671 | #ifndef LT_DLLAZY_OR_NOW |
|
|
17672 | # ifdef RTLD_LAZY |
|
|
17673 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
17674 | # else |
|
|
17675 | # ifdef DL_LAZY |
|
|
17676 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
17677 | # else |
|
|
17678 | # ifdef RTLD_NOW |
|
|
17679 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
17680 | # else |
|
|
17681 | # ifdef DL_NOW |
|
|
17682 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
17683 | # else |
|
|
17684 | # define LT_DLLAZY_OR_NOW 0 |
|
|
17685 | # endif |
|
|
17686 | # endif |
|
|
17687 | # endif |
|
|
17688 | # endif |
|
|
17689 | #endif |
|
|
17690 | |
|
|
17691 | #ifdef __cplusplus |
|
|
17692 | extern "C" void exit (int); |
|
|
17693 | #endif |
|
|
17694 | |
|
|
17695 | void fnord() { int i=42;} |
|
|
17696 | int main () |
|
|
17697 | { |
|
|
17698 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
17699 | int status = $lt_dlunknown; |
|
|
17700 | |
|
|
17701 | if (self) |
|
|
17702 | { |
|
|
17703 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
17704 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
17705 | /* dlclose (self); */ |
|
|
17706 | } |
|
|
17707 | |
|
|
17708 | exit (status); |
|
|
17709 | } |
|
|
17710 | EOF |
|
|
17711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
17712 | (eval $ac_link) 2>&5 |
|
|
17713 | ac_status=$? |
|
|
17714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
17715 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
17716 | (./conftest; exit; ) 2>/dev/null |
|
|
17717 | lt_status=$? |
|
|
17718 | case x$lt_status in |
|
|
17719 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
17720 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
17721 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
17722 | esac |
|
|
17723 | else : |
|
|
17724 | # compilation failed |
|
|
17725 | lt_cv_dlopen_self_static=no |
|
|
17726 | fi |
|
|
17727 | fi |
|
|
17728 | rm -fr conftest* |
|
|
17729 | |
|
|
17730 | |
|
|
17731 | fi |
|
|
17732 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
17733 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
17734 | fi |
|
|
17735 | |
|
|
17736 | CPPFLAGS="$save_CPPFLAGS" |
|
|
17737 | LDFLAGS="$save_LDFLAGS" |
|
|
17738 | LIBS="$save_LIBS" |
|
|
17739 | ;; |
|
|
17740 | esac |
|
|
17741 | |
|
|
17742 | case $lt_cv_dlopen_self in |
|
|
17743 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
17744 | *) enable_dlopen_self=unknown ;; |
|
|
17745 | esac |
|
|
17746 | |
|
|
17747 | case $lt_cv_dlopen_self_static in |
|
|
17748 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
17749 | *) enable_dlopen_self_static=unknown ;; |
|
|
17750 | esac |
|
|
17751 | fi |
|
|
17752 | |
|
|
17753 | |
|
|
17754 | # The else clause should only fire when bootstrapping the |
|
|
17755 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
17756 | # with your package, and you will get complaints that there are |
|
|
17757 | # no rules to generate ltmain.sh. |
|
|
17758 | if test -f "$ltmain"; then |
|
|
17759 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
17760 | # without removal of \ escapes. |
|
|
17761 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
17762 | setopt NO_GLOB_SUBST |
|
|
17763 | fi |
|
|
17764 | # Now quote all the things that may contain metacharacters while being |
|
|
17765 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
17766 | # variables and quote the copies for generation of the libtool script. |
|
|
17767 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
|
17768 | SED SHELL STRIP \ |
|
|
17769 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
17770 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
17771 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
17772 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
17773 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
17774 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
17775 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
17776 | compiler_GCJ \ |
|
|
17777 | CC_GCJ \ |
|
|
17778 | LD_GCJ \ |
|
|
17779 | lt_prog_compiler_wl_GCJ \ |
|
|
17780 | lt_prog_compiler_pic_GCJ \ |
|
|
17781 | lt_prog_compiler_static_GCJ \ |
|
|
17782 | lt_prog_compiler_no_builtin_flag_GCJ \ |
|
|
17783 | export_dynamic_flag_spec_GCJ \ |
|
|
17784 | thread_safe_flag_spec_GCJ \ |
|
|
17785 | whole_archive_flag_spec_GCJ \ |
|
|
17786 | enable_shared_with_static_runtimes_GCJ \ |
|
|
17787 | old_archive_cmds_GCJ \ |
|
|
17788 | old_archive_from_new_cmds_GCJ \ |
|
|
17789 | predep_objects_GCJ \ |
|
|
17790 | postdep_objects_GCJ \ |
|
|
17791 | predeps_GCJ \ |
|
|
17792 | postdeps_GCJ \ |
|
|
17793 | compiler_lib_search_path_GCJ \ |
|
|
17794 | archive_cmds_GCJ \ |
|
|
17795 | archive_expsym_cmds_GCJ \ |
|
|
17796 | postinstall_cmds_GCJ \ |
|
|
17797 | postuninstall_cmds_GCJ \ |
|
|
17798 | old_archive_from_expsyms_cmds_GCJ \ |
|
|
17799 | allow_undefined_flag_GCJ \ |
|
|
17800 | no_undefined_flag_GCJ \ |
|
|
17801 | export_symbols_cmds_GCJ \ |
|
|
17802 | hardcode_libdir_flag_spec_GCJ \ |
|
|
17803 | hardcode_libdir_flag_spec_ld_GCJ \ |
|
|
17804 | hardcode_libdir_separator_GCJ \ |
|
|
17805 | hardcode_automatic_GCJ \ |
|
|
17806 | module_cmds_GCJ \ |
|
|
17807 | module_expsym_cmds_GCJ \ |
|
|
17808 | lt_cv_prog_compiler_c_o_GCJ \ |
|
|
17809 | exclude_expsyms_GCJ \ |
|
|
17810 | include_expsyms_GCJ; do |
|
|
17811 | |
|
|
17812 | case $var in |
|
|
17813 | old_archive_cmds_GCJ | \ |
|
|
17814 | old_archive_from_new_cmds_GCJ | \ |
|
|
17815 | archive_cmds_GCJ | \ |
|
|
17816 | archive_expsym_cmds_GCJ | \ |
|
|
17817 | module_cmds_GCJ | \ |
|
|
17818 | module_expsym_cmds_GCJ | \ |
|
|
17819 | old_archive_from_expsyms_cmds_GCJ | \ |
|
|
17820 | export_symbols_cmds_GCJ | \ |
|
|
17821 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
17822 | postinstall_cmds | postuninstall_cmds | \ |
|
|
17823 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
17824 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
17825 | # Double-quote double-evaled strings. |
|
|
17826 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
17827 | ;; |
|
|
17828 | *) |
|
|
17829 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
17830 | ;; |
|
|
17831 | esac |
|
|
17832 | done |
|
|
17833 | |
|
|
17834 | case $lt_echo in |
|
|
17835 | *'\$0 --fallback-echo"') |
|
|
17836 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
17837 | ;; |
|
|
17838 | esac |
|
|
17839 | |
|
|
17840 | cfgfile="$ofile" |
|
|
17841 | |
|
|
17842 | cat <<__EOF__ >> "$cfgfile" |
|
|
17843 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
17844 | |
|
|
17845 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
17846 | |
|
|
17847 | # Shell to use when invoking shell scripts. |
|
|
17848 | SHELL=$lt_SHELL |
|
|
17849 | |
|
|
17850 | # Whether or not to build shared libraries. |
|
|
17851 | build_libtool_libs=$enable_shared |
|
|
17852 | |
|
|
17853 | # Whether or not to build static libraries. |
|
|
17854 | build_old_libs=$enable_static |
|
|
17855 | |
|
|
17856 | # Whether or not to add -lc for building shared libraries. |
|
|
17857 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
|
|
17858 | |
|
|
17859 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
17860 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
|
|
17861 | |
|
|
17862 | # Whether or not to optimize for fast installation. |
|
|
17863 | fast_install=$enable_fast_install |
|
|
17864 | |
|
|
17865 | # The host system. |
|
|
17866 | host_alias=$host_alias |
|
|
17867 | host=$host |
|
|
17868 | |
|
|
17869 | # An echo program that does not interpret backslashes. |
|
|
17870 | echo=$lt_echo |
|
|
17871 | |
|
|
17872 | # The archiver. |
|
|
17873 | AR=$lt_AR |
|
|
17874 | AR_FLAGS=$lt_AR_FLAGS |
|
|
17875 | |
|
|
17876 | # A C compiler. |
|
|
17877 | LTCC=$lt_LTCC |
|
|
17878 | |
|
|
17879 | # A language-specific compiler. |
|
|
17880 | CC=$lt_compiler_GCJ |
|
|
17881 | |
|
|
17882 | # Is the compiler the GNU C compiler? |
|
|
17883 | with_gcc=$GCC_GCJ |
|
|
17884 | |
|
|
17885 | # An ERE matcher. |
|
|
17886 | EGREP=$lt_EGREP |
|
|
17887 | |
|
|
17888 | # The linker used to build libraries. |
|
|
17889 | LD=$lt_LD_GCJ |
|
|
17890 | |
|
|
17891 | # Whether we need hard or soft links. |
|
|
17892 | LN_S=$lt_LN_S |
|
|
17893 | |
|
|
17894 | # A BSD-compatible nm program. |
|
|
17895 | NM=$lt_NM |
|
|
17896 | |
|
|
17897 | # A symbol stripping program |
|
|
17898 | STRIP=$lt_STRIP |
|
|
17899 | |
|
|
17900 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
17901 | MAGIC_CMD=$MAGIC_CMD |
|
|
17902 | |
|
|
17903 | # Used on cygwin: DLL creation program. |
|
|
17904 | DLLTOOL="$DLLTOOL" |
|
|
17905 | |
|
|
17906 | # Used on cygwin: object dumper. |
|
|
17907 | OBJDUMP="$OBJDUMP" |
|
|
17908 | |
|
|
17909 | # Used on cygwin: assembler. |
|
|
17910 | AS="$AS" |
|
|
17911 | |
|
|
17912 | # The name of the directory that contains temporary libtool files. |
|
|
17913 | objdir=$objdir |
|
|
17914 | |
|
|
17915 | # How to create reloadable object files. |
|
|
17916 | reload_flag=$lt_reload_flag |
|
|
17917 | reload_cmds=$lt_reload_cmds |
|
|
17918 | |
|
|
17919 | # How to pass a linker flag through the compiler. |
|
|
17920 | wl=$lt_lt_prog_compiler_wl_GCJ |
|
|
17921 | |
|
|
17922 | # Object file suffix (normally "o"). |
|
|
17923 | objext="$ac_objext" |
|
|
17924 | |
|
|
17925 | # Old archive suffix (normally "a"). |
|
|
17926 | libext="$libext" |
|
|
17927 | |
|
|
17928 | # Shared library suffix (normally ".so"). |
|
|
17929 | shrext_cmds='$shrext_cmds' |
|
|
17930 | |
|
|
17931 | # Executable file suffix (normally ""). |
|
|
17932 | exeext="$exeext" |
|
|
17933 | |
|
|
17934 | # Additional compiler flags for building library objects. |
|
|
17935 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
|
|
17936 | pic_mode=$pic_mode |
|
|
17937 | |
|
|
17938 | # What is the maximum length of a command? |
|
|
17939 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
17940 | |
|
|
17941 | # Does compiler simultaneously support -c and -o options? |
|
|
17942 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
|
|
17943 | |
|
|
17944 | # Must we lock files when doing compilation ? |
|
|
17945 | need_locks=$lt_need_locks |
|
|
17946 | |
|
|
17947 | # Do we need the lib prefix for modules? |
|
|
17948 | need_lib_prefix=$need_lib_prefix |
|
|
17949 | |
|
|
17950 | # Do we need a version for libraries? |
|
|
17951 | need_version=$need_version |
|
|
17952 | |
|
|
17953 | # Whether dlopen is supported. |
|
|
17954 | dlopen_support=$enable_dlopen |
|
|
17955 | |
|
|
17956 | # Whether dlopen of programs is supported. |
|
|
17957 | dlopen_self=$enable_dlopen_self |
|
|
17958 | |
|
|
17959 | # Whether dlopen of statically linked programs is supported. |
|
|
17960 | dlopen_self_static=$enable_dlopen_self_static |
|
|
17961 | |
|
|
17962 | # Compiler flag to prevent dynamic linking. |
|
|
17963 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
|
|
17964 | |
|
|
17965 | # Compiler flag to turn off builtin functions. |
|
|
17966 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
|
|
17967 | |
|
|
17968 | # Compiler flag to allow reflexive dlopens. |
|
|
17969 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
|
|
17970 | |
|
|
17971 | # Compiler flag to generate shared objects directly from archives. |
|
|
17972 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
|
|
17973 | |
|
|
17974 | # Compiler flag to generate thread-safe objects. |
|
|
17975 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
|
|
17976 | |
|
|
17977 | # Library versioning type. |
|
|
17978 | version_type=$version_type |
|
|
17979 | |
|
|
17980 | # Format of library name prefix. |
|
|
17981 | libname_spec=$lt_libname_spec |
|
|
17982 | |
|
|
17983 | # List of archive names. First name is the real one, the rest are links. |
|
|
17984 | # The last name is the one that the linker finds with -lNAME. |
|
|
17985 | library_names_spec=$lt_library_names_spec |
|
|
17986 | |
|
|
17987 | # The coded name of the library, if different from the real name. |
|
|
17988 | soname_spec=$lt_soname_spec |
|
|
17989 | |
|
|
17990 | # Commands used to build and install an old-style archive. |
|
|
17991 | RANLIB=$lt_RANLIB |
|
|
17992 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
|
|
17993 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
17994 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
17995 | |
|
|
17996 | # Create an old-style archive from a shared archive. |
|
|
17997 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
|
|
17998 | |
|
|
17999 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
18000 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
|
|
18001 | |
|
|
18002 | # Commands used to build and install a shared archive. |
|
|
18003 | archive_cmds=$lt_archive_cmds_GCJ |
|
|
18004 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
|
|
18005 | postinstall_cmds=$lt_postinstall_cmds |
|
|
18006 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
18007 | |
|
|
18008 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
18009 | module_cmds=$lt_module_cmds_GCJ |
|
|
18010 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
|
|
18011 | |
|
|
18012 | # Commands to strip libraries. |
|
|
18013 | old_striplib=$lt_old_striplib |
|
|
18014 | striplib=$lt_striplib |
|
|
18015 | |
|
|
18016 | # Dependencies to place before the objects being linked to create a |
|
|
18017 | # shared library. |
|
|
18018 | predep_objects=$lt_predep_objects_GCJ |
|
|
18019 | |
|
|
18020 | # Dependencies to place after the objects being linked to create a |
|
|
18021 | # shared library. |
|
|
18022 | postdep_objects=$lt_postdep_objects_GCJ |
|
|
18023 | |
|
|
18024 | # Dependencies to place before the objects being linked to create a |
|
|
18025 | # shared library. |
|
|
18026 | predeps=$lt_predeps_GCJ |
|
|
18027 | |
|
|
18028 | # Dependencies to place after the objects being linked to create a |
|
|
18029 | # shared library. |
|
|
18030 | postdeps=$lt_postdeps_GCJ |
|
|
18031 | |
|
|
18032 | # The library search path used internally by the compiler when linking |
|
|
18033 | # a shared library. |
|
|
18034 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
|
|
18035 | |
|
|
18036 | # Method to check whether dependent libraries are shared objects. |
|
|
18037 | deplibs_check_method=$lt_deplibs_check_method |
|
|
18038 | |
|
|
18039 | # Command to use when deplibs_check_method == file_magic. |
|
|
18040 | file_magic_cmd=$lt_file_magic_cmd |
|
|
18041 | |
|
|
18042 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
18043 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
|
|
18044 | |
|
|
18045 | # Flag that forces no undefined symbols. |
|
|
18046 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
|
|
18047 | |
|
|
18048 | # Commands used to finish a libtool library installation in a directory. |
|
|
18049 | finish_cmds=$lt_finish_cmds |
|
|
18050 | |
|
|
18051 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
18052 | finish_eval=$lt_finish_eval |
|
|
18053 | |
|
|
18054 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
18055 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
18056 | |
|
|
18057 | # Transform the output of nm in a proper C declaration |
|
|
18058 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
18059 | |
|
|
18060 | # Transform the output of nm in a C name address pair |
|
|
18061 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
18062 | |
|
|
18063 | # This is the shared library runtime path variable. |
|
|
18064 | runpath_var=$runpath_var |
|
|
18065 | |
|
|
18066 | # This is the shared library path variable. |
|
|
18067 | shlibpath_var=$shlibpath_var |
|
|
18068 | |
|
|
18069 | # Is shlibpath searched before the hard-coded library search path? |
|
|
18070 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
18071 | |
|
|
18072 | # How to hardcode a shared library path into an executable. |
|
|
18073 | hardcode_action=$hardcode_action_GCJ |
|
|
18074 | |
|
|
18075 | # Whether we should hardcode library paths into libraries. |
|
|
18076 | hardcode_into_libs=$hardcode_into_libs |
|
|
18077 | |
|
|
18078 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
18079 | # This must work even if \$libdir does not exist. |
|
|
18080 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
|
|
18081 | |
|
|
18082 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
18083 | # a binary during linking. This must work even if \$libdir does |
|
|
18084 | # not exist. |
|
|
18085 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
|
|
18086 | |
|
|
18087 | # Whether we need a single -rpath flag with a separated argument. |
|
|
18088 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
|
18089 | |
|
|
18090 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
18091 | # resulting binary. |
|
|
18092 | hardcode_direct=$hardcode_direct_GCJ |
|
|
18093 | |
|
|
18094 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
18095 | # resulting binary. |
|
|
18096 | hardcode_minus_L=$hardcode_minus_L_GCJ |
|
|
18097 | |
|
|
18098 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
18099 | # the resulting binary. |
|
|
18100 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
|
18101 | |
|
|
18102 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
18103 | # and all subsequent libraries and executables linked against it. |
|
|
18104 | hardcode_automatic=$hardcode_automatic_GCJ |
|
|
18105 | |
|
|
18106 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
18107 | # restored at relink time. |
|
|
18108 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
18109 | |
|
|
18110 | # Whether libtool must link a program against all its dependency libraries. |
|
|
18111 | link_all_deplibs=$link_all_deplibs_GCJ |
|
|
18112 | |
|
|
18113 | # Compile-time system search path for libraries |
|
|
18114 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
18115 | |
|
|
18116 | # Run-time system search path for libraries |
|
|
18117 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
18118 | |
|
|
18119 | # Fix the shell variable \$srcfile for the compiler. |
|
|
18120 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
|
|
18121 | |
|
|
18122 | # Set to yes if exported symbols are required. |
|
|
18123 | always_export_symbols=$always_export_symbols_GCJ |
|
|
18124 | |
|
|
18125 | # The commands to list exported symbols. |
|
|
18126 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
|
18127 | |
|
|
18128 | # The commands to extract the exported symbol list from a shared archive. |
|
|
18129 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
18130 | |
|
|
18131 | # Symbols that should not be listed in the preloaded symbols. |
|
|
18132 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
|
18133 | |
|
|
18134 | # Symbols that must always be exported. |
|
|
18135 | include_expsyms=$lt_include_expsyms_GCJ |
|
|
18136 | |
|
|
18137 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
18138 | |
|
|
18139 | __EOF__ |
|
|
18140 | |
|
|
18141 | |
|
|
18142 | else |
|
|
18143 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
18144 | # `config.status --recheck' to rerun these tests and create the |
|
|
18145 | # libtool script then. |
|
|
18146 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
18147 | if test -f "$ltmain_in"; then |
|
|
18148 | test -f Makefile && make "$ltmain" |
|
|
18149 | fi |
|
|
18150 | fi |
|
|
18151 | |
|
|
18152 | |
|
|
18153 | ac_ext=c |
|
|
18154 | ac_cpp='$CPP $CPPFLAGS' |
|
|
18155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
18156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
18157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
18158 | |
|
|
18159 | CC="$lt_save_CC" |
|
|
18160 | |
|
|
18161 | else |
|
|
18162 | tagname="" |
|
|
18163 | fi |
|
|
18164 | ;; |
|
|
18165 | |
|
|
18166 | RC) |
|
|
18167 | |
|
|
18168 | |
|
|
18169 | |
|
|
18170 | # Source file extension for RC test sources. |
|
|
18171 | ac_ext=rc |
|
|
18172 | |
|
|
18173 | # Object file extension for compiled RC test sources. |
|
|
18174 | objext=o |
|
|
18175 | objext_RC=$objext |
|
|
18176 | |
|
|
18177 | # Code to be used in simple compile tests |
|
|
18178 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
|
18179 | |
|
|
18180 | # Code to be used in simple link tests |
|
|
18181 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
|
18182 | |
|
|
18183 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
18184 | |
|
|
18185 | # If no C compiler was specified, use CC. |
|
|
18186 | LTCC=${LTCC-"$CC"} |
|
|
18187 | |
|
|
18188 | # Allow CC to be a program name with arguments. |
|
|
18189 | compiler=$CC |
|
|
18190 | |
|
|
18191 | |
|
|
18192 | # Allow CC to be a program name with arguments. |
|
|
18193 | lt_save_CC="$CC" |
|
|
18194 | CC=${RC-"windres"} |
|
|
18195 | compiler=$CC |
|
|
18196 | compiler_RC=$CC |
|
|
18197 | lt_cv_prog_compiler_c_o_RC=yes |
|
|
18198 | |
|
|
18199 | # The else clause should only fire when bootstrapping the |
|
|
18200 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
18201 | # with your package, and you will get complaints that there are |
|
|
18202 | # no rules to generate ltmain.sh. |
|
|
18203 | if test -f "$ltmain"; then |
|
|
18204 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
18205 | # without removal of \ escapes. |
|
|
18206 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
18207 | setopt NO_GLOB_SUBST |
|
|
18208 | fi |
|
|
18209 | # Now quote all the things that may contain metacharacters while being |
|
|
18210 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
18211 | # variables and quote the copies for generation of the libtool script. |
|
|
18212 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
|
18213 | SED SHELL STRIP \ |
|
|
18214 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
18215 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
18216 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
18217 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
18218 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
18219 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
18220 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
18221 | compiler_RC \ |
|
|
18222 | CC_RC \ |
|
|
18223 | LD_RC \ |
|
|
18224 | lt_prog_compiler_wl_RC \ |
|
|
18225 | lt_prog_compiler_pic_RC \ |
|
|
18226 | lt_prog_compiler_static_RC \ |
|
|
18227 | lt_prog_compiler_no_builtin_flag_RC \ |
|
|
18228 | export_dynamic_flag_spec_RC \ |
|
|
18229 | thread_safe_flag_spec_RC \ |
|
|
18230 | whole_archive_flag_spec_RC \ |
|
|
18231 | enable_shared_with_static_runtimes_RC \ |
|
|
18232 | old_archive_cmds_RC \ |
|
|
18233 | old_archive_from_new_cmds_RC \ |
|
|
18234 | predep_objects_RC \ |
|
|
18235 | postdep_objects_RC \ |
|
|
18236 | predeps_RC \ |
|
|
18237 | postdeps_RC \ |
|
|
18238 | compiler_lib_search_path_RC \ |
|
|
18239 | archive_cmds_RC \ |
|
|
18240 | archive_expsym_cmds_RC \ |
|
|
18241 | postinstall_cmds_RC \ |
|
|
18242 | postuninstall_cmds_RC \ |
|
|
18243 | old_archive_from_expsyms_cmds_RC \ |
|
|
18244 | allow_undefined_flag_RC \ |
|
|
18245 | no_undefined_flag_RC \ |
|
|
18246 | export_symbols_cmds_RC \ |
|
|
18247 | hardcode_libdir_flag_spec_RC \ |
|
|
18248 | hardcode_libdir_flag_spec_ld_RC \ |
|
|
18249 | hardcode_libdir_separator_RC \ |
|
|
18250 | hardcode_automatic_RC \ |
|
|
18251 | module_cmds_RC \ |
|
|
18252 | module_expsym_cmds_RC \ |
|
|
18253 | lt_cv_prog_compiler_c_o_RC \ |
|
|
18254 | exclude_expsyms_RC \ |
|
|
18255 | include_expsyms_RC; do |
|
|
18256 | |
|
|
18257 | case $var in |
|
|
18258 | old_archive_cmds_RC | \ |
|
|
18259 | old_archive_from_new_cmds_RC | \ |
|
|
18260 | archive_cmds_RC | \ |
|
|
18261 | archive_expsym_cmds_RC | \ |
|
|
18262 | module_cmds_RC | \ |
|
|
18263 | module_expsym_cmds_RC | \ |
|
|
18264 | old_archive_from_expsyms_cmds_RC | \ |
|
|
18265 | export_symbols_cmds_RC | \ |
|
|
18266 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
18267 | postinstall_cmds | postuninstall_cmds | \ |
|
|
18268 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
18269 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
18270 | # Double-quote double-evaled strings. |
|
|
18271 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
18272 | ;; |
|
|
18273 | *) |
|
|
18274 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
18275 | ;; |
|
|
18276 | esac |
|
|
18277 | done |
|
|
18278 | |
|
|
18279 | case $lt_echo in |
|
|
18280 | *'\$0 --fallback-echo"') |
|
|
18281 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
18282 | ;; |
|
|
18283 | esac |
|
|
18284 | |
|
|
18285 | cfgfile="$ofile" |
|
|
18286 | |
|
|
18287 | cat <<__EOF__ >> "$cfgfile" |
|
|
18288 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
18289 | |
|
|
18290 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
18291 | |
|
|
18292 | # Shell to use when invoking shell scripts. |
|
|
18293 | SHELL=$lt_SHELL |
|
|
18294 | |
|
|
18295 | # Whether or not to build shared libraries. |
|
|
18296 | build_libtool_libs=$enable_shared |
|
|
18297 | |
|
|
18298 | # Whether or not to build static libraries. |
|
|
18299 | build_old_libs=$enable_static |
|
|
18300 | |
|
|
18301 | # Whether or not to add -lc for building shared libraries. |
|
|
18302 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
|
|
18303 | |
|
|
18304 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
18305 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
|
|
18306 | |
|
|
18307 | # Whether or not to optimize for fast installation. |
|
|
18308 | fast_install=$enable_fast_install |
|
|
18309 | |
|
|
18310 | # The host system. |
|
|
18311 | host_alias=$host_alias |
|
|
18312 | host=$host |
|
|
18313 | |
|
|
18314 | # An echo program that does not interpret backslashes. |
|
|
18315 | echo=$lt_echo |
|
|
18316 | |
|
|
18317 | # The archiver. |
|
|
18318 | AR=$lt_AR |
|
|
18319 | AR_FLAGS=$lt_AR_FLAGS |
|
|
18320 | |
|
|
18321 | # A C compiler. |
|
|
18322 | LTCC=$lt_LTCC |
|
|
18323 | |
|
|
18324 | # A language-specific compiler. |
|
|
18325 | CC=$lt_compiler_RC |
|
|
18326 | |
|
|
18327 | # Is the compiler the GNU C compiler? |
|
|
18328 | with_gcc=$GCC_RC |
|
|
18329 | |
|
|
18330 | # An ERE matcher. |
|
|
18331 | EGREP=$lt_EGREP |
|
|
18332 | |
|
|
18333 | # The linker used to build libraries. |
|
|
18334 | LD=$lt_LD_RC |
|
|
18335 | |
|
|
18336 | # Whether we need hard or soft links. |
|
|
18337 | LN_S=$lt_LN_S |
|
|
18338 | |
|
|
18339 | # A BSD-compatible nm program. |
|
|
18340 | NM=$lt_NM |
|
|
18341 | |
|
|
18342 | # A symbol stripping program |
|
|
18343 | STRIP=$lt_STRIP |
|
|
18344 | |
|
|
18345 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
18346 | MAGIC_CMD=$MAGIC_CMD |
|
|
18347 | |
|
|
18348 | # Used on cygwin: DLL creation program. |
|
|
18349 | DLLTOOL="$DLLTOOL" |
|
|
18350 | |
|
|
18351 | # Used on cygwin: object dumper. |
|
|
18352 | OBJDUMP="$OBJDUMP" |
|
|
18353 | |
|
|
18354 | # Used on cygwin: assembler. |
|
|
18355 | AS="$AS" |
|
|
18356 | |
|
|
18357 | # The name of the directory that contains temporary libtool files. |
|
|
18358 | objdir=$objdir |
|
|
18359 | |
|
|
18360 | # How to create reloadable object files. |
|
|
18361 | reload_flag=$lt_reload_flag |
|
|
18362 | reload_cmds=$lt_reload_cmds |
|
|
18363 | |
|
|
18364 | # How to pass a linker flag through the compiler. |
|
|
18365 | wl=$lt_lt_prog_compiler_wl_RC |
|
|
18366 | |
|
|
18367 | # Object file suffix (normally "o"). |
|
|
18368 | objext="$ac_objext" |
|
|
18369 | |
|
|
18370 | # Old archive suffix (normally "a"). |
|
|
18371 | libext="$libext" |
|
|
18372 | |
|
|
18373 | # Shared library suffix (normally ".so"). |
|
|
18374 | shrext_cmds='$shrext_cmds' |
|
|
18375 | |
|
|
18376 | # Executable file suffix (normally ""). |
|
|
18377 | exeext="$exeext" |
|
|
18378 | |
|
|
18379 | # Additional compiler flags for building library objects. |
|
|
18380 | pic_flag=$lt_lt_prog_compiler_pic_RC |
|
|
18381 | pic_mode=$pic_mode |
|
|
18382 | |
|
|
18383 | # What is the maximum length of a command? |
|
|
18384 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
18385 | |
|
|
18386 | # Does compiler simultaneously support -c and -o options? |
|
|
18387 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
|
|
18388 | |
|
|
18389 | # Must we lock files when doing compilation ? |
|
|
18390 | need_locks=$lt_need_locks |
|
|
18391 | |
|
|
18392 | # Do we need the lib prefix for modules? |
|
|
18393 | need_lib_prefix=$need_lib_prefix |
|
|
18394 | |
|
|
18395 | # Do we need a version for libraries? |
|
|
18396 | need_version=$need_version |
|
|
18397 | |
|
|
18398 | # Whether dlopen is supported. |
|
|
18399 | dlopen_support=$enable_dlopen |
|
|
18400 | |
|
|
18401 | # Whether dlopen of programs is supported. |
|
|
18402 | dlopen_self=$enable_dlopen_self |
|
|
18403 | |
|
|
18404 | # Whether dlopen of statically linked programs is supported. |
|
|
18405 | dlopen_self_static=$enable_dlopen_self_static |
|
|
18406 | |
|
|
18407 | # Compiler flag to prevent dynamic linking. |
|
|
18408 | link_static_flag=$lt_lt_prog_compiler_static_RC |
|
|
18409 | |
|
|
18410 | # Compiler flag to turn off builtin functions. |
|
|
18411 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
|
|
18412 | |
|
|
18413 | # Compiler flag to allow reflexive dlopens. |
|
|
18414 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
|
|
18415 | |
|
|
18416 | # Compiler flag to generate shared objects directly from archives. |
|
|
18417 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
|
|
18418 | |
|
|
18419 | # Compiler flag to generate thread-safe objects. |
|
|
18420 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
|
|
18421 | |
|
|
18422 | # Library versioning type. |
|
|
18423 | version_type=$version_type |
|
|
18424 | |
|
|
18425 | # Format of library name prefix. |
|
|
18426 | libname_spec=$lt_libname_spec |
|
|
18427 | |
|
|
18428 | # List of archive names. First name is the real one, the rest are links. |
|
|
18429 | # The last name is the one that the linker finds with -lNAME. |
|
|
18430 | library_names_spec=$lt_library_names_spec |
|
|
18431 | |
|
|
18432 | # The coded name of the library, if different from the real name. |
|
|
18433 | soname_spec=$lt_soname_spec |
|
|
18434 | |
|
|
18435 | # Commands used to build and install an old-style archive. |
|
|
18436 | RANLIB=$lt_RANLIB |
|
|
18437 | old_archive_cmds=$lt_old_archive_cmds_RC |
|
|
18438 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
18439 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
18440 | |
|
|
18441 | # Create an old-style archive from a shared archive. |
|
|
18442 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
|
|
18443 | |
|
|
18444 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
18445 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
|
|
18446 | |
|
|
18447 | # Commands used to build and install a shared archive. |
|
|
18448 | archive_cmds=$lt_archive_cmds_RC |
|
|
18449 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
|
|
18450 | postinstall_cmds=$lt_postinstall_cmds |
|
|
18451 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
18452 | |
|
|
18453 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
18454 | module_cmds=$lt_module_cmds_RC |
|
|
18455 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
|
|
18456 | |
|
|
18457 | # Commands to strip libraries. |
|
|
18458 | old_striplib=$lt_old_striplib |
|
|
18459 | striplib=$lt_striplib |
|
|
18460 | |
|
|
18461 | # Dependencies to place before the objects being linked to create a |
|
|
18462 | # shared library. |
|
|
18463 | predep_objects=$lt_predep_objects_RC |
|
|
18464 | |
|
|
18465 | # Dependencies to place after the objects being linked to create a |
|
|
18466 | # shared library. |
|
|
18467 | postdep_objects=$lt_postdep_objects_RC |
|
|
18468 | |
|
|
18469 | # Dependencies to place before the objects being linked to create a |
|
|
18470 | # shared library. |
|
|
18471 | predeps=$lt_predeps_RC |
|
|
18472 | |
|
|
18473 | # Dependencies to place after the objects being linked to create a |
|
|
18474 | # shared library. |
|
|
18475 | postdeps=$lt_postdeps_RC |
|
|
18476 | |
|
|
18477 | # The library search path used internally by the compiler when linking |
|
|
18478 | # a shared library. |
|
|
18479 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
|
|
18480 | |
|
|
18481 | # Method to check whether dependent libraries are shared objects. |
|
|
18482 | deplibs_check_method=$lt_deplibs_check_method |
|
|
18483 | |
|
|
18484 | # Command to use when deplibs_check_method == file_magic. |
|
|
18485 | file_magic_cmd=$lt_file_magic_cmd |
|
|
18486 | |
|
|
18487 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
18488 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
|
|
18489 | |
|
|
18490 | # Flag that forces no undefined symbols. |
|
|
18491 | no_undefined_flag=$lt_no_undefined_flag_RC |
|
|
18492 | |
|
|
18493 | # Commands used to finish a libtool library installation in a directory. |
|
|
18494 | finish_cmds=$lt_finish_cmds |
|
|
18495 | |
|
|
18496 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
18497 | finish_eval=$lt_finish_eval |
|
|
18498 | |
|
|
18499 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
18500 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
18501 | |
|
|
18502 | # Transform the output of nm in a proper C declaration |
|
|
18503 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
18504 | |
|
|
18505 | # Transform the output of nm in a C name address pair |
|
|
18506 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
18507 | |
|
|
18508 | # This is the shared library runtime path variable. |
|
|
18509 | runpath_var=$runpath_var |
|
|
18510 | |
|
|
18511 | # This is the shared library path variable. |
|
|
18512 | shlibpath_var=$shlibpath_var |
|
|
18513 | |
|
|
18514 | # Is shlibpath searched before the hard-coded library search path? |
|
|
18515 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
18516 | |
|
|
18517 | # How to hardcode a shared library path into an executable. |
|
|
18518 | hardcode_action=$hardcode_action_RC |
|
|
18519 | |
|
|
18520 | # Whether we should hardcode library paths into libraries. |
|
|
18521 | hardcode_into_libs=$hardcode_into_libs |
|
|
18522 | |
|
|
18523 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
18524 | # This must work even if \$libdir does not exist. |
|
|
18525 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
|
|
18526 | |
|
|
18527 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
18528 | # a binary during linking. This must work even if \$libdir does |
|
|
18529 | # not exist. |
|
|
18530 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
|
|
18531 | |
|
|
18532 | # Whether we need a single -rpath flag with a separated argument. |
|
|
18533 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
|
|
18534 | |
|
|
18535 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
18536 | # resulting binary. |
|
|
18537 | hardcode_direct=$hardcode_direct_RC |
|
|
18538 | |
|
|
18539 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
18540 | # resulting binary. |
|
|
18541 | hardcode_minus_L=$hardcode_minus_L_RC |
|
|
18542 | |
|
|
18543 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
18544 | # the resulting binary. |
|
|
18545 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
|
|
18546 | |
|
|
18547 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
18548 | # and all subsequent libraries and executables linked against it. |
|
|
18549 | hardcode_automatic=$hardcode_automatic_RC |
|
|
18550 | |
|
|
18551 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
18552 | # restored at relink time. |
|
|
18553 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
18554 | |
|
|
18555 | # Whether libtool must link a program against all its dependency libraries. |
|
|
18556 | link_all_deplibs=$link_all_deplibs_RC |
|
|
18557 | |
|
|
18558 | # Compile-time system search path for libraries |
|
|
18559 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
18560 | |
|
|
18561 | # Run-time system search path for libraries |
|
|
18562 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
18563 | |
|
|
18564 | # Fix the shell variable \$srcfile for the compiler. |
|
|
18565 | fix_srcfile_path="$fix_srcfile_path_RC" |
|
|
18566 | |
|
|
18567 | # Set to yes if exported symbols are required. |
|
|
18568 | always_export_symbols=$always_export_symbols_RC |
|
|
18569 | |
|
|
18570 | # The commands to list exported symbols. |
|
|
18571 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
|
|
18572 | |
|
|
18573 | # The commands to extract the exported symbol list from a shared archive. |
|
|
18574 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
18575 | |
|
|
18576 | # Symbols that should not be listed in the preloaded symbols. |
|
|
18577 | exclude_expsyms=$lt_exclude_expsyms_RC |
|
|
18578 | |
|
|
18579 | # Symbols that must always be exported. |
|
|
18580 | include_expsyms=$lt_include_expsyms_RC |
|
|
18581 | |
|
|
18582 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
18583 | |
|
|
18584 | __EOF__ |
|
|
18585 | |
|
|
18586 | |
|
|
18587 | else |
|
|
18588 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
18589 | # `config.status --recheck' to rerun these tests and create the |
|
|
18590 | # libtool script then. |
|
|
18591 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
18592 | if test -f "$ltmain_in"; then |
|
|
18593 | test -f Makefile && make "$ltmain" |
|
|
18594 | fi |
|
|
18595 | fi |
|
|
18596 | |
|
|
18597 | |
|
|
18598 | ac_ext=c |
|
|
18599 | ac_cpp='$CPP $CPPFLAGS' |
|
|
18600 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
18601 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
18602 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
18603 | |
|
|
18604 | CC="$lt_save_CC" |
|
|
18605 | |
|
|
18606 | ;; |
|
|
18607 | |
|
|
18608 | *) |
|
|
18609 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
|
|
18610 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
|
|
18611 | { (exit 1); exit 1; }; } |
|
|
18612 | ;; |
|
|
18613 | esac |
|
|
18614 | |
|
|
18615 | # Append the new tag name to the list of available tags. |
|
|
18616 | if test -n "$tagname" ; then |
|
|
18617 | available_tags="$available_tags $tagname" |
|
|
18618 | fi |
|
|
18619 | fi |
|
|
18620 | done |
|
|
18621 | IFS="$lt_save_ifs" |
|
|
18622 | |
|
|
18623 | # Now substitute the updated list of available tags. |
|
|
18624 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
|
|
18625 | mv "${ofile}T" "$ofile" |
|
|
18626 | chmod +x "$ofile" |
|
|
18627 | else |
|
|
18628 | rm -f "${ofile}T" |
|
|
18629 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
|
|
18630 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
|
|
18631 | { (exit 1); exit 1; }; } |
|
|
18632 | fi |
|
|
18633 | fi |
|
|
18634 | |
|
|
18635 | |
|
|
18636 | |
|
|
18637 | # This can be used to rebuild libtool when needed |
|
|
18638 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
18639 | |
|
|
18640 | # Always use our own libtool. |
|
|
18641 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
18642 | |
|
|
18643 | # Prevent multiple expansion |
|
|
18644 | |
|
|
18645 | |
|
|
18646 | |
|
|
18647 | |
|
|
18648 | |
|
|
18649 | |
|
|
18650 | |
|
|
18651 | |
|
|
18652 | |
|
|
18653 | |
|
|
18654 | |
|
|
18655 | |
|
|
18656 | |
|
|
18657 | |
|
|
18658 | |
|
|
18659 | |
|
|
18660 | |
|
|
18661 | |
8558 | |
18662 | |
8559 | |
18663 | |
8560 | ac_ext=c |
18664 | ac_ext=c |
8561 | ac_cpp='$CPP $CPPFLAGS' |
18665 | ac_cpp='$CPP $CPPFLAGS' |
8562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
9278 | ac_cpp='$CPP $CPPFLAGS' |
19382 | ac_cpp='$CPP $CPPFLAGS' |
9279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9282 | |
19386 | |
9283 | depcc="$CC" am_compiler_list= |
|
|
9284 | |
|
|
9285 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
|
|
9286 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
|
|
9287 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
|
|
9288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9289 | else |
|
|
9290 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
|
9291 | # We make a subdir and do the tests there. Otherwise we can end up |
|
|
9292 | # making bogus files that we don't know about and never remove. For |
|
|
9293 | # instance it was reported that on HP-UX the gcc test will end up |
|
|
9294 | # making a dummy file named `D' -- because `-MD' means `put the output |
|
|
9295 | # in D'. |
|
|
9296 | mkdir conftest.dir |
|
|
9297 | # Copy depcomp to subdir because otherwise we won't find it if we're |
|
|
9298 | # using a relative directory. |
|
|
9299 | cp "$am_depcomp" conftest.dir |
|
|
9300 | cd conftest.dir |
|
|
9301 | # We will build objects and dependencies in a subdirectory because |
|
|
9302 | # it helps to detect inapplicable dependency modes. For instance |
|
|
9303 | # both Tru64's cc and ICC support -MD to output dependencies as a |
|
|
9304 | # side effect of compilation, but ICC will put the dependencies in |
|
|
9305 | # the current directory while Tru64 will put them in the object |
|
|
9306 | # directory. |
|
|
9307 | mkdir sub |
|
|
9308 | |
|
|
9309 | am_cv_CC_dependencies_compiler_type=none |
|
|
9310 | if test "$am_compiler_list" = ""; then |
|
|
9311 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
|
9312 | fi |
|
|
9313 | for depmode in $am_compiler_list; do |
|
|
9314 | # Setup a source with many dependencies, because some compilers |
|
|
9315 | # like to wrap large dependency lists on column 80 (with \), and |
|
|
9316 | # we should not choose a depcomp mode which is confused by this. |
|
|
9317 | # |
|
|
9318 | # We need to recreate these files for each test, as the compiler may |
|
|
9319 | # overwrite some of them when testing with obscure command lines. |
|
|
9320 | # This happens at least with the AIX C compiler. |
|
|
9321 | : > sub/conftest.c |
|
|
9322 | for i in 1 2 3 4 5 6; do |
|
|
9323 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
|
9324 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
|
9325 | # Solaris 8's {/usr,}/bin/sh. |
|
|
9326 | touch sub/conftst$i.h |
|
|
9327 | done |
|
|
9328 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
|
9329 | |
|
|
9330 | case $depmode in |
|
|
9331 | nosideeffect) |
|
|
9332 | # after this tag, mechanisms are not by side-effect, so they'll |
|
|
9333 | # only be used when explicitly requested |
|
|
9334 | if test "x$enable_dependency_tracking" = xyes; then |
|
|
9335 | continue |
|
|
9336 | else |
|
|
9337 | break |
|
|
9338 | fi |
|
|
9339 | ;; |
|
|
9340 | none) break ;; |
|
|
9341 | esac |
|
|
9342 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
|
9343 | # mode. It turns out that the SunPro C++ compiler does not properly |
|
|
9344 | # handle `-M -o', and we need to detect this. |
|
|
9345 | if depmode=$depmode \ |
|
|
9346 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
|
|
9347 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
|
9348 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
|
|
9349 | >/dev/null 2>conftest.err && |
|
|
9350 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
|
9351 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
|
|
9352 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
|
9353 | # icc doesn't choke on unknown options, it will just issue warnings |
|
|
9354 | # or remarks (even with -Werror). So we grep stderr for any message |
|
|
9355 | # that says an option was ignored or not supported. |
|
|
9356 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
|
|
9357 | # icc: Command line warning: ignoring option '-M'; no argument required |
|
|
9358 | # The diagnosis changed in icc 8.0: |
|
|
9359 | # icc: Command line remark: option '-MP' not supported |
|
|
9360 | if (grep 'ignoring option' conftest.err || |
|
|
9361 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
|
9362 | am_cv_CC_dependencies_compiler_type=$depmode |
|
|
9363 | break |
|
|
9364 | fi |
|
|
9365 | fi |
|
|
9366 | done |
|
|
9367 | |
|
|
9368 | cd .. |
|
|
9369 | rm -rf conftest.dir |
|
|
9370 | else |
|
|
9371 | am_cv_CC_dependencies_compiler_type=none |
|
|
9372 | fi |
|
|
9373 | |
|
|
9374 | fi |
|
|
9375 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
|
9376 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
|
|
9377 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
|
9378 | |
|
|
9379 | |
|
|
9380 | |
|
|
9381 | if |
|
|
9382 | test "x$enable_dependency_tracking" != xno \ |
|
|
9383 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
|
9384 | am__fastdepCC_TRUE= |
|
|
9385 | am__fastdepCC_FALSE='#' |
|
|
9386 | else |
|
|
9387 | am__fastdepCC_TRUE='#' |
|
|
9388 | am__fastdepCC_FALSE= |
|
|
9389 | fi |
|
|
9390 | |
|
|
9391 | |
|
|
9392 | |
19387 | |
9393 | case "$target" in |
19388 | case "$target" in |
9394 | alpha-dec-osf*) |
19389 | alpha-dec-osf*) |
9395 | # If we are not using gcc, we want the ansi version of cc. |
19390 | # If we are not using gcc, we want the ansi version of cc. |
9396 | if test -z "$GCC"; then |
19391 | if test -z "$GCC"; then |
… | |
… | |
9635 | ac_cpp='$CPP $CPPFLAGS' |
19630 | ac_cpp='$CPP $CPPFLAGS' |
9636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9639 | |
19634 | |
|
|
19635 | missing_dir=`cd $ac_aux_dir && pwd` |
|
|
19636 | for ac_prog in flex lex |
|
|
19637 | do |
|
|
19638 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
19639 | set dummy $ac_prog; ac_word=$2 |
|
|
19640 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
19641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
19642 | if test "${ac_cv_prog_LEX+set}" = set; then |
|
|
19643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
19644 | else |
|
|
19645 | if test -n "$LEX"; then |
|
|
19646 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
|
|
19647 | else |
|
|
19648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
19649 | for as_dir in $PATH |
|
|
19650 | do |
|
|
19651 | IFS=$as_save_IFS |
|
|
19652 | test -z "$as_dir" && as_dir=. |
|
|
19653 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
19654 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
19655 | ac_cv_prog_LEX="$ac_prog" |
|
|
19656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
19657 | break 2 |
|
|
19658 | fi |
|
|
19659 | done |
|
|
19660 | done |
|
|
19661 | |
|
|
19662 | fi |
|
|
19663 | fi |
|
|
19664 | LEX=$ac_cv_prog_LEX |
|
|
19665 | if test -n "$LEX"; then |
|
|
19666 | echo "$as_me:$LINENO: result: $LEX" >&5 |
|
|
19667 | echo "${ECHO_T}$LEX" >&6 |
|
|
19668 | else |
|
|
19669 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
19670 | echo "${ECHO_T}no" >&6 |
|
|
19671 | fi |
|
|
19672 | |
|
|
19673 | test -n "$LEX" && break |
|
|
19674 | done |
|
|
19675 | test -n "$LEX" || LEX="$missing_dir/missing flex" |
|
|
19676 | |
9640 | for ac_prog in flex lex |
19677 | for ac_prog in flex lex |
9641 | do |
19678 | do |
9642 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19679 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
9643 | set dummy $ac_prog; ac_word=$2 |
19680 | set dummy $ac_prog; ac_word=$2 |
9644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
9906 | _ACEOF |
19943 | _ACEOF |
9907 | |
19944 | |
9908 | fi |
19945 | fi |
9909 | |
19946 | |
9910 | fi |
19947 | fi |
9911 | if test "$LEX" = :; then |
19948 | |
9912 | LEX=${am_missing_run}flex |
|
|
9913 | fi |
|
|
9914 | for ac_prog in gawk mawk nawk awk |
19949 | for ac_prog in gawk mawk nawk awk |
9915 | do |
19950 | do |
9916 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
19951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
9917 | set dummy $ac_prog; ac_word=$2 |
19952 | set dummy $ac_prog; ac_word=$2 |
9918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
10617 | /* confdefs.h. */ |
20652 | /* confdefs.h. */ |
10618 | _ACEOF |
20653 | _ACEOF |
10619 | cat confdefs.h >>conftest.$ac_ext |
20654 | cat confdefs.h >>conftest.$ac_ext |
10620 | cat >>conftest.$ac_ext <<_ACEOF |
20655 | cat >>conftest.$ac_ext <<_ACEOF |
10621 | /* end confdefs.h. */ |
20656 | /* end confdefs.h. */ |
10622 | #include <X11/Xlib.h> |
20657 | #include <X11/Intrinsic.h> |
10623 | _ACEOF |
20658 | _ACEOF |
10624 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
20659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
10625 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
20660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
10626 | ac_status=$? |
20661 | ac_status=$? |
10627 | grep -v '^ *+' conftest.er1 >conftest.err |
20662 | grep -v '^ *+' conftest.er1 >conftest.err |
… | |
… | |
10644 | else |
20679 | else |
10645 | echo "$as_me: failed program was:" >&5 |
20680 | echo "$as_me: failed program was:" >&5 |
10646 | sed 's/^/| /' conftest.$ac_ext >&5 |
20681 | sed 's/^/| /' conftest.$ac_ext >&5 |
10647 | |
20682 | |
10648 | for ac_dir in $ac_x_header_dirs; do |
20683 | for ac_dir in $ac_x_header_dirs; do |
10649 | if test -r "$ac_dir/X11/Xlib.h"; then |
20684 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
10650 | ac_x_includes=$ac_dir |
20685 | ac_x_includes=$ac_dir |
10651 | break |
20686 | break |
10652 | fi |
20687 | fi |
10653 | done |
20688 | done |
10654 | fi |
20689 | fi |
… | |
… | |
10658 | if test "$ac_x_libraries" = no; then |
20693 | if test "$ac_x_libraries" = no; then |
10659 | # Check for the libraries. |
20694 | # Check for the libraries. |
10660 | # See if we find them without any special options. |
20695 | # See if we find them without any special options. |
10661 | # Don't add to $LIBS permanently. |
20696 | # Don't add to $LIBS permanently. |
10662 | ac_save_LIBS=$LIBS |
20697 | ac_save_LIBS=$LIBS |
10663 | LIBS="-lX11 $LIBS" |
20698 | LIBS="-lXt $LIBS" |
10664 | cat >conftest.$ac_ext <<_ACEOF |
20699 | cat >conftest.$ac_ext <<_ACEOF |
10665 | /* confdefs.h. */ |
20700 | /* confdefs.h. */ |
10666 | _ACEOF |
20701 | _ACEOF |
10667 | cat confdefs.h >>conftest.$ac_ext |
20702 | cat confdefs.h >>conftest.$ac_ext |
10668 | cat >>conftest.$ac_ext <<_ACEOF |
20703 | cat >>conftest.$ac_ext <<_ACEOF |
10669 | /* end confdefs.h. */ |
20704 | /* end confdefs.h. */ |
10670 | #include <X11/Xlib.h> |
20705 | #include <X11/Intrinsic.h> |
10671 | int |
20706 | int |
10672 | main () |
20707 | main () |
10673 | { |
20708 | { |
10674 | XrmInitialize () |
20709 | XtMalloc (0) |
10675 | ; |
20710 | ; |
10676 | return 0; |
20711 | return 0; |
10677 | } |
20712 | } |
10678 | _ACEOF |
20713 | _ACEOF |
10679 | rm -f conftest.$ac_objext conftest$ac_exeext |
20714 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
10707 | LIBS=$ac_save_LIBS |
20742 | LIBS=$ac_save_LIBS |
10708 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
20743 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
10709 | do |
20744 | do |
10710 | # Don't even attempt the hair of trying to link an X program! |
20745 | # Don't even attempt the hair of trying to link an X program! |
10711 | for ac_extension in a so sl; do |
20746 | for ac_extension in a so sl; do |
10712 | if test -r $ac_dir/libX11.$ac_extension; then |
20747 | if test -r $ac_dir/libXt.$ac_extension; then |
10713 | ac_x_libraries=$ac_dir |
20748 | ac_x_libraries=$ac_dir |
10714 | break 2 |
20749 | break 2 |
10715 | fi |
20750 | fi |
10716 | done |
20751 | done |
10717 | done |
20752 | done |
… | |
… | |
15852 | fi |
25887 | fi |
15853 | |
25888 | |
15854 | |
25889 | |
15855 | |
25890 | |
15856 | |
25891 | |
15857 | |
|
|
15858 | pkgstatedir=$localstatedir/$PACKAGE |
25892 | pkgstatedir=$localstatedir/$PACKAGE |
15859 | |
25893 | |
15860 | pkgconfdir=$sysconfdir/$PACKAGE |
25894 | pkgconfdir=$sysconfdir/$PACKAGE |
15861 | |
25895 | |
15862 | |
25896 | |
… | |
… | |
15889 | cat >>confdefs.h <<_ACEOF |
25923 | cat >>confdefs.h <<_ACEOF |
15890 | #define BUNZIP "${BUNZIP}" |
25924 | #define BUNZIP "${BUNZIP}" |
15891 | _ACEOF |
25925 | _ACEOF |
15892 | |
25926 | |
15893 | |
25927 | |
15894 | if true; then |
|
|
15895 | # Extract the first word of "perl5", so it can be a program name with args. |
25928 | # Extract the first word of "perl5", so it can be a program name with args. |
15896 | set dummy perl5; ac_word=$2 |
25929 | set dummy perl5; ac_word=$2 |
15897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25930 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
25931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
15899 | if test "${ac_cv_path_PERL+set}" = set; then |
25932 | if test "${ac_cv_path_PERL+set}" = set; then |
15900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
15929 | else |
25962 | else |
15930 | echo "$as_me:$LINENO: result: no" >&5 |
25963 | echo "$as_me:$LINENO: result: no" >&5 |
15931 | echo "${ECHO_T}no" >&6 |
25964 | echo "${ECHO_T}no" >&6 |
15932 | fi |
25965 | fi |
15933 | |
25966 | |
15934 | # Extract the first word of "perl", so it can be a program name with args. |
25967 | # Extract the first word of "perl", so it can be a program name with args. |
15935 | set dummy perl; ac_word=$2 |
25968 | set dummy perl; ac_word=$2 |
15936 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25969 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
25970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
15938 | if test "${ac_cv_path_PERL+set}" = set; then |
25971 | if test "${ac_cv_path_PERL+set}" = set; then |
15939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
15969 | echo "$as_me:$LINENO: result: no" >&5 |
26002 | echo "$as_me:$LINENO: result: no" >&5 |
15970 | echo "${ECHO_T}no" >&6 |
26003 | echo "${ECHO_T}no" >&6 |
15971 | fi |
26004 | fi |
15972 | |
26005 | |
15973 | |
26006 | |
15974 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
26007 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
15975 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
26008 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
15976 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
26009 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
15977 | |
26010 | |
15978 | save_CFLAGS="$CFLAGS" |
26011 | save_CFLAGS="$CFLAGS" |
15979 | save_LIBS="$LIBS" |
26012 | save_LIBS="$LIBS" |
15980 | CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
26013 | CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
15981 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
26014 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
15982 | cat >conftest.$ac_ext <<_ACEOF |
26015 | cat >conftest.$ac_ext <<_ACEOF |
15983 | /* confdefs.h. */ |
26016 | /* confdefs.h. */ |
15984 | _ACEOF |
26017 | _ACEOF |
15985 | cat confdefs.h >>conftest.$ac_ext |
26018 | cat confdefs.h >>conftest.$ac_ext |
15986 | cat >>conftest.$ac_ext <<_ACEOF |
26019 | cat >>conftest.$ac_ext <<_ACEOF |
15987 | /* end confdefs.h. */ |
26020 | /* end confdefs.h. */ |
… | |
… | |
15992 | |
26025 | |
15993 | int |
26026 | int |
15994 | main () |
26027 | main () |
15995 | { |
26028 | { |
15996 | |
26029 | |
15997 | PerlInterpreter *perl = perl_alloc (); |
26030 | PerlInterpreter *perl = perl_alloc (); |
15998 | |
26031 | |
15999 | ; |
26032 | ; |
16000 | return 0; |
26033 | return 0; |
16001 | } |
26034 | } |
16002 | _ACEOF |
26035 | _ACEOF |
… | |
… | |
16028 | |
26061 | |
16029 | perl_link=no |
26062 | perl_link=no |
16030 | fi |
26063 | fi |
16031 | rm -f conftest.err conftest.$ac_objext \ |
26064 | rm -f conftest.err conftest.$ac_objext \ |
16032 | conftest$ac_exeext conftest.$ac_ext |
26065 | conftest$ac_exeext conftest.$ac_ext |
16033 | CXXFLAGS="$save_CFLAGS" |
26066 | CXXFLAGS="$save_CFLAGS" |
16034 | LIBS="$save_LIBS" |
26067 | LIBS="$save_LIBS" |
16035 | |
26068 | |
16036 | if test x$perl_link = xyes; then |
26069 | if test x$perl_link = xyes; then |
16037 | echo "$as_me:$LINENO: result: ok" >&5 |
26070 | echo "$as_me:$LINENO: result: ok" >&5 |
16038 | echo "${ECHO_T}ok" >&6 |
26071 | echo "${ECHO_T}ok" >&6 |
16039 | |
26072 | |
16040 | cat >>confdefs.h <<\_ACEOF |
26073 | cat >>confdefs.h <<\_ACEOF |
16041 | #define ENABLE_PERL 1 |
26074 | #define ENABLE_PERL 1 |
16042 | _ACEOF |
26075 | _ACEOF |
16043 | |
26076 | |
16044 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
26077 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
16045 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
26078 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
16046 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
26079 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
16047 | PERL_PLUGIN=yes |
26080 | PERL_PLUGIN=yes |
16048 | else |
26081 | else |
16049 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
26082 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
16050 | echo "$as_me: error: no, unable to link" >&2;} |
26083 | echo "$as_me: error: no, unable to link" >&2;} |
16051 | { (exit 1); exit 1; }; } |
26084 | { (exit 1); exit 1; }; } |
16052 | fi |
26085 | fi |
16053 | else |
26086 | else |
16054 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
26087 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
16055 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
26088 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
16056 | { (exit 1); exit 1; }; } |
26089 | { (exit 1); exit 1; }; } |
16057 | fi |
|
|
16058 | fi |
26090 | fi |
16059 | |
26091 | |
16060 | |
26092 | |
16061 | |
26093 | |
16062 | |
26094 | |
… | |
… | |
16068 | else |
26100 | else |
16069 | PERL_PLUGIN_TRUE='#' |
26101 | PERL_PLUGIN_TRUE='#' |
16070 | PERL_PLUGIN_FALSE= |
26102 | PERL_PLUGIN_FALSE= |
16071 | fi |
26103 | fi |
16072 | |
26104 | |
16073 | |
|
|
16074 | |
|
|
16075 | cat >conftest.$ac_ext <<_ACEOF |
|
|
16076 | /* confdefs.h. */ |
|
|
16077 | _ACEOF |
|
|
16078 | cat confdefs.h >>conftest.$ac_ext |
|
|
16079 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
16080 | /* end confdefs.h. */ |
|
|
16081 | |
|
|
16082 | #include <EXTERN.h> |
|
|
16083 | #include <perl.h> |
|
|
16084 | #include <XSUB.h> |
|
|
16085 | |
|
|
16086 | int |
|
|
16087 | main () |
|
|
16088 | { |
|
|
16089 | |
|
|
16090 | PerlInterpreter *perl = perl_alloc (); |
|
|
16091 | |
|
|
16092 | ; |
|
|
16093 | return 0; |
|
|
16094 | } |
|
|
16095 | _ACEOF |
|
|
16096 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
16097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
16098 | (eval $ac_link) 2>conftest.er1 |
|
|
16099 | ac_status=$? |
|
|
16100 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
16101 | rm -f conftest.er1 |
|
|
16102 | cat conftest.err >&5 |
|
|
16103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16104 | (exit $ac_status); } && |
|
|
16105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
16106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
16107 | (eval $ac_try) 2>&5 |
|
|
16108 | ac_status=$? |
|
|
16109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16110 | (exit $ac_status); }; } && |
|
|
16111 | { ac_try='test -s conftest$ac_exeext' |
|
|
16112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
16113 | (eval $ac_try) 2>&5 |
|
|
16114 | ac_status=$? |
|
|
16115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16116 | (exit $ac_status); }; }; then |
|
|
16117 | rxvt_perl_link=yes |
|
|
16118 | else |
|
|
16119 | echo "$as_me: failed program was:" >&5 |
|
|
16120 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
16121 | |
|
|
16122 | rxvt_perl_link=no |
|
|
16123 | fi |
|
|
16124 | rm -f conftest.err conftest.$ac_objext \ |
|
|
16125 | conftest$ac_exeext conftest.$ac_ext |
|
|
16126 | if test x$support_perl = xyes; then |
|
|
16127 | support_frills=yes |
|
|
16128 | fi |
|
|
16129 | |
26105 | |
16130 | ############################################# |
26106 | ############################################# |
16131 | # Plugin configuration |
26107 | # Plugin configuration |
16132 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
26108 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
16133 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
26109 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
… | |
… | |
16203 | HAVE_LIBDL_FALSE='#' |
26179 | HAVE_LIBDL_FALSE='#' |
16204 | else |
26180 | else |
16205 | HAVE_LIBDL_TRUE='#' |
26181 | HAVE_LIBDL_TRUE='#' |
16206 | HAVE_LIBDL_FALSE= |
26182 | HAVE_LIBDL_FALSE= |
16207 | fi |
26183 | fi |
16208 | |
|
|
16209 | |
26184 | |
16210 | if test "x$cf_have_libdl" = "xyes" ; then |
26185 | if test "x$cf_have_libdl" = "xyes" ; then |
16211 | ############### |
26186 | ############### |
16212 | # Python plugin |
26187 | # Python plugin |
16213 | |
26188 | |
… | |
… | |
17104 | PYTHON_PLUGIN_TRUE='#' |
27079 | PYTHON_PLUGIN_TRUE='#' |
17105 | PYTHON_PLUGIN_FALSE= |
27080 | PYTHON_PLUGIN_FALSE= |
17106 | fi |
27081 | fi |
17107 | |
27082 | |
17108 | |
27083 | |
17109 | |
|
|
17110 | ac_config_files="$ac_config_files Makefile crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile crossedit/Cnv/Makefile crossedit/bitmaps/Makefile doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile lib/Makefile random_maps/Makefile socket/Makefile server/Makefile include/Makefile utils/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile plugins/Makefile plugins/cfperl/Makefile plugins/cfpython/Makefile plugins/cfanim/Makefile devel/Makefile" |
27084 | ac_config_files="$ac_config_files Makefile crossedit/Makefile crossedit/doc/Makefile crossedit/include/Makefile crossedit/Cnv/Makefile crossedit/bitmaps/Makefile doc/Makefile doc/Developers/Makefile doc/spell-docs/Makefile doc/spoiler/Makefile doc/spoiler-html/Makefile doc/playbook/Makefile doc/playbook-html/Makefile doc/scripts/Makefile lib/Makefile random_maps/Makefile socket/Makefile server/Makefile include/Makefile utils/Makefile lib/checkarch.pl lib/collect.pl utils/add_throw.perl utils/crossloop.tmpl utils/crossloop.pl.tmpl utils/metaserver.pl utils/crossloop.web utils/scores.pl utils/player_dl.pl common/Makefile plugins/Makefile plugins/cfpython/Makefile plugins/cfpython/include/Makefile plugins/cfanim/Makefile plugins/cfanim/include/Makefile plugins/common/Makefile plugins/common/include/Makefile devel/Makefile plugins/cfperl/Makefile" |
17111 | cat >confcache <<\_ACEOF |
27085 | cat >confcache <<\_ACEOF |
17112 | # This file is a shell script that caches the results of configure |
27086 | # This file is a shell script that caches the results of configure |
17113 | # tests run on this system so they can be shared between configure |
27087 | # tests run on this system so they can be shared between configure |
17114 | # scripts and configure runs, see configure's option --config-cache. |
27088 | # scripts and configure runs, see configure's option --config-cache. |
17115 | # It is not useful on other systems. If it contains results you don't |
27089 | # It is not useful on other systems. If it contains results you don't |
… | |
… | |
17197 | LIBOBJS=$ac_libobjs |
27171 | LIBOBJS=$ac_libobjs |
17198 | |
27172 | |
17199 | LTLIBOBJS=$ac_ltlibobjs |
27173 | LTLIBOBJS=$ac_ltlibobjs |
17200 | |
27174 | |
17201 | |
27175 | |
17202 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
|
|
17203 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
|
|
17204 | Usually this means the macro was only invoked conditionally." >&5 |
|
|
17205 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
|
|
17206 | Usually this means the macro was only invoked conditionally." >&2;} |
|
|
17207 | { (exit 1); exit 1; }; } |
|
|
17208 | fi |
|
|
17209 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
|
|
17210 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
|
|
17211 | Usually this means the macro was only invoked conditionally." >&5 |
|
|
17212 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
|
|
17213 | Usually this means the macro was only invoked conditionally." >&2;} |
|
|
17214 | { (exit 1); exit 1; }; } |
|
|
17215 | fi |
|
|
17216 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
|
17217 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
|
17218 | Usually this means the macro was only invoked conditionally." >&5 |
|
|
17219 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
|
17220 | Usually this means the macro was only invoked conditionally." >&2;} |
|
|
17221 | { (exit 1); exit 1; }; } |
|
|
17222 | fi |
|
|
17223 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
|
17224 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
|
|
17225 | Usually this means the macro was only invoked conditionally." >&5 |
|
|
17226 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
|
|
17227 | Usually this means the macro was only invoked conditionally." >&2;} |
|
|
17228 | { (exit 1); exit 1; }; } |
|
|
17229 | fi |
|
|
17230 | if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then |
|
|
17231 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined. |
|
|
17232 | Usually this means the macro was only invoked conditionally." >&5 |
|
|
17233 | echo "$as_me: error: conditional \"HAVE_X\" was never defined. |
|
|
17234 | Usually this means the macro was only invoked conditionally." >&2;} |
|
|
17235 | { (exit 1); exit 1; }; } |
|
|
17236 | fi |
|
|
17237 | if test -z "${PERL_PLUGIN_TRUE}" && test -z "${PERL_PLUGIN_FALSE}"; then |
|
|
17238 | { { echo "$as_me:$LINENO: error: conditional \"PERL_PLUGIN\" was never defined. |
|
|
17239 | Usually this means the macro was only invoked conditionally." >&5 |
|
|
17240 | echo "$as_me: error: conditional \"PERL_PLUGIN\" was never defined. |
|
|
17241 | Usually this means the macro was only invoked conditionally." >&2;} |
|
|
17242 | { (exit 1); exit 1; }; } |
|
|
17243 | fi |
|
|
17244 | if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then |
|
|
17245 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined. |
|
|
17246 | Usually this means the macro was only invoked conditionally." >&5 |
|
|
17247 | echo "$as_me: error: conditional \"HAVE_LIBDL\" was never defined. |
|
|
17248 | Usually this means the macro was only invoked conditionally." >&2;} |
|
|
17249 | { (exit 1); exit 1; }; } |
|
|
17250 | fi |
|
|
17251 | if test -z "${PYTHON_PLUGIN_TRUE}" && test -z "${PYTHON_PLUGIN_FALSE}"; then |
|
|
17252 | { { echo "$as_me:$LINENO: error: conditional \"PYTHON_PLUGIN\" was never defined. |
|
|
17253 | Usually this means the macro was only invoked conditionally." >&5 |
|
|
17254 | echo "$as_me: error: conditional \"PYTHON_PLUGIN\" was never defined. |
|
|
17255 | Usually this means the macro was only invoked conditionally." >&2;} |
|
|
17256 | { (exit 1); exit 1; }; } |
|
|
17257 | fi |
|
|
17258 | |
27176 | |
17259 | : ${CONFIG_STATUS=./config.status} |
27177 | : ${CONFIG_STATUS=./config.status} |
17260 | ac_clean_files_save=$ac_clean_files |
27178 | ac_clean_files_save=$ac_clean_files |
17261 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
27179 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
17262 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
27180 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
… | |
… | |
17524 | ## Running $as_me. ## |
27442 | ## Running $as_me. ## |
17525 | _ASBOX |
27443 | _ASBOX |
17526 | } >&5 |
27444 | } >&5 |
17527 | cat >&5 <<_CSEOF |
27445 | cat >&5 <<_CSEOF |
17528 | |
27446 | |
17529 | This file was extended by crossfire $as_me 1.8.0, which was |
27447 | This file was extended by crossfire $as_me 1.9.0, which was |
17530 | generated by GNU Autoconf 2.59. Invocation command line was |
27448 | generated by GNU Autoconf 2.59. Invocation command line was |
17531 | |
27449 | |
17532 | CONFIG_FILES = $CONFIG_FILES |
27450 | CONFIG_FILES = $CONFIG_FILES |
17533 | CONFIG_HEADERS = $CONFIG_HEADERS |
27451 | CONFIG_HEADERS = $CONFIG_HEADERS |
17534 | CONFIG_LINKS = $CONFIG_LINKS |
27452 | CONFIG_LINKS = $CONFIG_LINKS |
… | |
… | |
17587 | Report bugs to <bug-autoconf@gnu.org>." |
27505 | Report bugs to <bug-autoconf@gnu.org>." |
17588 | _ACEOF |
27506 | _ACEOF |
17589 | |
27507 | |
17590 | cat >>$CONFIG_STATUS <<_ACEOF |
27508 | cat >>$CONFIG_STATUS <<_ACEOF |
17591 | ac_cs_version="\\ |
27509 | ac_cs_version="\\ |
17592 | crossfire config.status 1.8.0 |
27510 | crossfire config.status 1.9.0 |
17593 | configured by $0, generated by GNU Autoconf 2.59, |
27511 | configured by $0, generated by GNU Autoconf 2.59, |
17594 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
27512 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
17595 | |
27513 | |
17596 | Copyright (C) 2003 Free Software Foundation, Inc. |
27514 | Copyright (C) 2003 Free Software Foundation, Inc. |
17597 | This config.status script is free software; the Free Software Foundation |
27515 | This config.status script is free software; the Free Software Foundation |
… | |
… | |
17685 | |
27603 | |
17686 | cat >>$CONFIG_STATUS <<_ACEOF |
27604 | cat >>$CONFIG_STATUS <<_ACEOF |
17687 | # |
27605 | # |
17688 | # INIT-COMMANDS section. |
27606 | # INIT-COMMANDS section. |
17689 | # |
27607 | # |
17690 | |
|
|
17691 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
|
17692 | |
|
|
17693 | |
|
|
17694 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
17695 | # if CDPATH is set. |
|
|
17696 | if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi |
|
|
17697 | |
|
|
17698 | sed_quote_subst='$sed_quote_subst' |
|
|
17699 | double_quote_subst='$double_quote_subst' |
|
|
17700 | delay_variable_subst='$delay_variable_subst' |
|
|
17701 | macro_version='`$echo "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17702 | macro_revision='`$echo "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17703 | enable_shared='`$echo "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17704 | enable_static='`$echo "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17705 | pic_mode='`$echo "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17706 | enable_fast_install='`$echo "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17707 | host_alias='`$echo "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17708 | host='`$echo "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17709 | SED='`$echo "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17710 | Xsed='`$echo "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17711 | GREP='`$echo "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17712 | EGREP='`$echo "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17713 | LD='`$echo "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17714 | reload_flag='`$echo "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17715 | reload_cmds='`$echo "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17716 | NM='`$echo "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17717 | LN_S='`$echo "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17718 | deplibs_check_method='`$echo "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17719 | file_magic_cmd='`$echo "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17720 | AR='`$echo "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17721 | AR_FLAGS='`$echo "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17722 | STRIP='`$echo "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17723 | RANLIB='`$echo "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17724 | old_postinstall_cmds='`$echo "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17725 | old_postuninstall_cmds='`$echo "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17726 | old_archive_cmds='`$echo "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17727 | lt_cv_sys_max_cmd_len='`$echo "X$lt_cv_sys_max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17728 | lt_cv_sys_global_symbol_pipe='`$echo "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17729 | lt_cv_sys_global_symbol_to_cdecl='`$echo "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17730 | lt_cv_sys_global_symbol_to_c_name_address='`$echo "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17731 | ac_objext='`$echo "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17732 | exeext='`$echo "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17733 | objdir='`$echo "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17734 | CC='`$echo "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17735 | compiler='`$echo "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17736 | GCC='`$echo "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17737 | SHELL='`$echo "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17738 | echo='`$echo "X$echo" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17739 | MAGIC_CMD='`$echo "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17740 | lt_prog_compiler_no_builtin_flag='`$echo "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17741 | lt_prog_compiler_wl='`$echo "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17742 | lt_prog_compiler_pic='`$echo "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17743 | lt_prog_compiler_static='`$echo "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17744 | lt_cv_prog_compiler_c_o='`$echo "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17745 | need_locks='`$echo "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17746 | libext='`$echo "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17747 | shrext_cmds='`$echo "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17748 | extract_expsyms_cmds='`$echo "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17749 | variables_saved_for_relink='`$echo "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17750 | archive_cmds_need_lc='`$echo "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17751 | enable_shared_with_static_runtimes='`$echo "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17752 | export_dynamic_flag_spec='`$echo "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17753 | whole_archive_flag_spec='`$echo "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17754 | old_archive_from_new_cmds='`$echo "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17755 | old_archive_from_expsyms_cmds='`$echo "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17756 | archive_cmds='`$echo "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17757 | archive_expsym_cmds='`$echo "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17758 | module_cmds='`$echo "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17759 | module_expsym_cmds='`$echo "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17760 | allow_undefined_flag='`$echo "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17761 | no_undefined_flag='`$echo "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17762 | hardcode_libdir_flag_spec='`$echo "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17763 | hardcode_libdir_flag_spec_ld='`$echo "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17764 | hardcode_libdir_separator='`$echo "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17765 | hardcode_direct='`$echo "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17766 | hardcode_minus_L='`$echo "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17767 | hardcode_shlibpath_var='`$echo "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17768 | hardcode_automatic='`$echo "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17769 | inherit_rpath='`$echo "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17770 | link_all_deplibs='`$echo "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17771 | fix_srcfile_path='`$echo "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17772 | always_export_symbols='`$echo "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17773 | export_symbols_cmds='`$echo "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17774 | exclude_expsyms='`$echo "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17775 | include_expsyms='`$echo "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17776 | need_lib_prefix='`$echo "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17777 | need_version='`$echo "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17778 | version_type='`$echo "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17779 | runpath_var='`$echo "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17780 | shlibpath_var='`$echo "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17781 | shlibpath_overrides_runpath='`$echo "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17782 | libname_spec='`$echo "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17783 | library_names_spec='`$echo "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17784 | soname_spec='`$echo "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17785 | postinstall_cmds='`$echo "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17786 | postuninstall_cmds='`$echo "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17787 | finish_cmds='`$echo "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17788 | finish_eval='`$echo "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17789 | hardcode_into_libs='`$echo "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17790 | sys_lib_search_path_spec='`$echo "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17791 | sys_lib_dlsearch_path_spec='`$echo "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17792 | hardcode_action='`$echo "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17793 | old_striplib='`$echo "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17794 | striplib='`$echo "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17795 | enable_dlopen='`$echo "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17796 | enable_dlopen_self='`$echo "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17797 | enable_dlopen_self_static='`$echo "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
|
17798 | |
|
|
17799 | LTCC='$LTCC' |
|
|
17800 | compiler='$compiler_DEFAULT' |
|
|
17801 | |
|
|
17802 | # Quote evaled strings. |
|
|
17803 | for var in SED GREP EGREP LD reload_flag NM LN_S deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address CC compiler SHELL echo lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks shrext_cmds variables_saved_for_relink export_dynamic_flag_spec whole_archive_flag_spec allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do |
|
|
17804 | eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
|
|
17805 | done |
|
|
17806 | |
|
|
17807 | # Double-quote double-evaled strings. |
|
|
17808 | for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do |
|
|
17809 | eval "lt_\$var=\\\\\\"\\\`\\\$echo \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
|
|
17810 | done |
|
|
17811 | |
|
|
17812 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
|
|
17813 | case \$lt_echo in |
|
|
17814 | *'\\\$0 --fallback-echo"') lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
|
|
17815 | ;; |
|
|
17816 | esac |
|
|
17817 | |
|
|
17818 | ac_aux_dir='$ac_aux_dir' |
|
|
17819 | |
|
|
17820 | # See if we are running on zsh, and set the options which allow our |
|
|
17821 | # commands through without removal of \ escapes INIT. |
|
|
17822 | if test -n "\${ZSH_VERSION+set}" ; then |
|
|
17823 | setopt NO_GLOB_SUBST |
|
|
17824 | fi |
|
|
17825 | |
|
|
17826 | |
|
|
17827 | PACKAGE='$PACKAGE' |
|
|
17828 | VERSION='$VERSION' |
|
|
17829 | TIMESTAMP='$TIMESTAMP' |
|
|
17830 | rm='$rm' |
|
|
17831 | ofile='$ofile' |
|
|
17832 | |
|
|
17833 | |
27608 | |
17834 | |
27609 | |
17835 | |
27610 | |
17836 | _ACEOF |
27611 | _ACEOF |
17837 | |
27612 | |
… | |
… | |
17871 | "utils/crossloop.web" ) CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;; |
27646 | "utils/crossloop.web" ) CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;; |
17872 | "utils/scores.pl" ) CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;; |
27647 | "utils/scores.pl" ) CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;; |
17873 | "utils/player_dl.pl" ) CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;; |
27648 | "utils/player_dl.pl" ) CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;; |
17874 | "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; |
27649 | "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; |
17875 | "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; |
27650 | "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; |
|
|
27651 | "plugins/cfpython/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;; |
|
|
27652 | "plugins/cfpython/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/include/Makefile" ;; |
|
|
27653 | "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;; |
|
|
27654 | "plugins/cfanim/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/include/Makefile" ;; |
|
|
27655 | "plugins/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/Makefile" ;; |
|
|
27656 | "plugins/common/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/include/Makefile" ;; |
|
|
27657 | "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;; |
17876 | "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;; |
27658 | "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;; |
17877 | "plugins/cfpython/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;; |
|
|
17878 | "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;; |
|
|
17879 | "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;; |
|
|
17880 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
27659 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
17881 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
|
|
17882 | "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; |
27660 | "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; |
17883 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
27661 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17884 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
27662 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
17885 | { (exit 1); exit 1; }; };; |
27663 | { (exit 1); exit 1; }; };; |
17886 | esac |
27664 | esac |
… | |
… | |
17966 | s,@ECHO_T@,$ECHO_T,;t t |
27744 | s,@ECHO_T@,$ECHO_T,;t t |
17967 | s,@LIBS@,$LIBS,;t t |
27745 | s,@LIBS@,$LIBS,;t t |
17968 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
27746 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
17969 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
27747 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
17970 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
27748 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
17971 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
|
|
17972 | s,@PACKAGE@,$PACKAGE,;t t |
27749 | s,@PACKAGE@,$PACKAGE,;t t |
17973 | s,@VERSION@,$VERSION,;t t |
27750 | s,@VERSION@,$VERSION,;t t |
17974 | s,@ACLOCAL@,$ACLOCAL,;t t |
27751 | s,@ACLOCAL@,$ACLOCAL,;t t |
17975 | s,@AUTOCONF@,$AUTOCONF,;t t |
27752 | s,@AUTOCONF@,$AUTOCONF,;t t |
17976 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
27753 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
17977 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
27754 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
17978 | s,@MAKEINFO@,$MAKEINFO,;t t |
27755 | s,@MAKEINFO@,$MAKEINFO,;t t |
17979 | s,@install_sh@,$install_sh,;t t |
|
|
17980 | s,@STRIP@,$STRIP,;t t |
|
|
17981 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
17982 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
|
|
17983 | s,@mkdir_p@,$mkdir_p,;t t |
|
|
17984 | s,@AWK@,$AWK,;t t |
|
|
17985 | s,@SET_MAKE@,$SET_MAKE,;t t |
27756 | s,@SET_MAKE@,$SET_MAKE,;t t |
17986 | s,@am__leading_dot@,$am__leading_dot,;t t |
|
|
17987 | s,@AMTAR@,$AMTAR,;t t |
|
|
17988 | s,@am__tar@,$am__tar,;t t |
|
|
17989 | s,@am__untar@,$am__untar,;t t |
|
|
17990 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
27757 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
17991 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
27758 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
17992 | s,@MAINT@,$MAINT,;t t |
27759 | s,@MAINT@,$MAINT,;t t |
17993 | s,@LIBTOOL@,$LIBTOOL,;t t |
|
|
17994 | s,@build@,$build,;t t |
27760 | s,@build@,$build,;t t |
17995 | s,@build_cpu@,$build_cpu,;t t |
27761 | s,@build_cpu@,$build_cpu,;t t |
17996 | s,@build_vendor@,$build_vendor,;t t |
27762 | s,@build_vendor@,$build_vendor,;t t |
17997 | s,@build_os@,$build_os,;t t |
27763 | s,@build_os@,$build_os,;t t |
17998 | s,@host@,$host,;t t |
27764 | s,@host@,$host,;t t |
… | |
… | |
18004 | s,@LDFLAGS@,$LDFLAGS,;t t |
27770 | s,@LDFLAGS@,$LDFLAGS,;t t |
18005 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
27771 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
18006 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
27772 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
18007 | s,@EXEEXT@,$EXEEXT,;t t |
27773 | s,@EXEEXT@,$EXEEXT,;t t |
18008 | s,@OBJEXT@,$OBJEXT,;t t |
27774 | s,@OBJEXT@,$OBJEXT,;t t |
18009 | s,@DEPDIR@,$DEPDIR,;t t |
|
|
18010 | s,@am__include@,$am__include,;t t |
|
|
18011 | s,@am__quote@,$am__quote,;t t |
|
|
18012 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
|
|
18013 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
|
|
18014 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
|
|
18015 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
|
|
18016 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
|
|
18017 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
|
|
18018 | s,@SED@,$SED,;t t |
|
|
18019 | s,@EGREP@,$EGREP,;t t |
27775 | s,@EGREP@,$EGREP,;t t |
18020 | s,@LD@,$LD,;t t |
|
|
18021 | s,@NM@,$NM,;t t |
|
|
18022 | s,@LN_S@,$LN_S,;t t |
27776 | s,@LN_S@,$LN_S,;t t |
|
|
27777 | s,@ECHO@,$ECHO,;t t |
18023 | s,@AR@,$AR,;t t |
27778 | s,@AR@,$AR,;t t |
18024 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
27779 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
18025 | s,@RANLIB@,$RANLIB,;t t |
27780 | s,@RANLIB@,$RANLIB,;t t |
18026 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
27781 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
18027 | s,@ECHO@,$ECHO,;t t |
27782 | s,@STRIP@,$STRIP,;t t |
|
|
27783 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
18028 | s,@CPP@,$CPP,;t t |
27784 | s,@CPP@,$CPP,;t t |
|
|
27785 | s,@CXX@,$CXX,;t t |
|
|
27786 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
|
|
27787 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
|
|
27788 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
27789 | s,@F77@,$F77,;t t |
|
|
27790 | s,@FFLAGS@,$FFLAGS,;t t |
|
|
27791 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
|
|
27792 | s,@LIBTOOL@,$LIBTOOL,;t t |
18029 | s,@LEX@,$LEX,;t t |
27793 | s,@LEX@,$LEX,;t t |
18030 | s,@LEXLIB@,$LEXLIB,;t t |
27794 | s,@LEXLIB@,$LEXLIB,;t t |
18031 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
27795 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
|
|
27796 | s,@AWK@,$AWK,;t t |
18032 | s,@LATEX@,$LATEX,;t t |
27797 | s,@LATEX@,$LATEX,;t t |
18033 | s,@GZIP@,$GZIP,;t t |
27798 | s,@GZIP@,$GZIP,;t t |
18034 | s,@GUNZIP@,$GUNZIP,;t t |
27799 | s,@GUNZIP@,$GUNZIP,;t t |
18035 | s,@TAR@,$TAR,;t t |
27800 | s,@TAR@,$TAR,;t t |
18036 | s,@PERL@,$PERL,;t t |
27801 | s,@PERL@,$PERL,;t t |
… | |
… | |
18525 | fi |
28290 | fi |
18526 | else |
28291 | else |
18527 | cat $tmp/config.h |
28292 | cat $tmp/config.h |
18528 | rm -f $tmp/config.h |
28293 | rm -f $tmp/config.h |
18529 | fi |
28294 | fi |
18530 | # Compute $ac_file's index in $config_headers. |
|
|
18531 | _am_stamp_count=1 |
|
|
18532 | for _am_header in $config_headers :; do |
|
|
18533 | case $_am_header in |
|
|
18534 | $ac_file | $ac_file:* ) |
|
|
18535 | break ;; |
|
|
18536 | * ) |
|
|
18537 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
|
18538 | esac |
|
|
18539 | done |
|
|
18540 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
|
|
18541 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
18542 | X$ac_file : 'X\(//\)[^/]' \| \ |
|
|
18543 | X$ac_file : 'X\(//\)$' \| \ |
|
|
18544 | X$ac_file : 'X\(/\)' \| \ |
|
|
18545 | . : '\(.\)' 2>/dev/null || |
|
|
18546 | echo X$ac_file | |
|
|
18547 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
18548 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
18549 | /^X\(\/\/\)$/{ s//\1/; q; } |
|
|
18550 | /^X\(\/\).*/{ s//\1/; q; } |
|
|
18551 | s/.*/./; q'`/stamp-h$_am_stamp_count |
|
|
18552 | done |
28295 | done |
18553 | _ACEOF |
28296 | _ACEOF |
18554 | cat >>$CONFIG_STATUS <<\_ACEOF |
28297 | cat >>$CONFIG_STATUS <<\_ACEOF |
18555 | |
28298 | |
18556 | # |
28299 | # |
… | |
… | |
18663 | |
28406 | |
18664 | |
28407 | |
18665 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
28408 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
18666 | echo "$as_me: executing $ac_dest commands" >&6;} |
28409 | echo "$as_me: executing $ac_dest commands" >&6;} |
18667 | case $ac_dest in |
28410 | case $ac_dest in |
18668 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
28411 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;; |
18669 | # Strip MF so we end up with the name of the file. |
|
|
18670 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
|
18671 | # Check whether this is an Automake generated Makefile or not. |
|
|
18672 | # We used to match only the files named `Makefile.in', but |
|
|
18673 | # some people rename them; so instead we look at the file content. |
|
|
18674 | # Grep'ing the first line is not enough: some people post-process |
|
|
18675 | # each Makefile.in and add a new line on top of each file to say so. |
|
|
18676 | # So let's grep whole file. |
|
|
18677 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
|
|
18678 | dirpart=`(dirname "$mf") 2>/dev/null || |
|
|
18679 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
18680 | X"$mf" : 'X\(//\)[^/]' \| \ |
|
|
18681 | X"$mf" : 'X\(//\)$' \| \ |
|
|
18682 | X"$mf" : 'X\(/\)' \| \ |
|
|
18683 | . : '\(.\)' 2>/dev/null || |
|
|
18684 | echo X"$mf" | |
|
|
18685 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
18686 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
18687 | /^X\(\/\/\)$/{ s//\1/; q; } |
|
|
18688 | /^X\(\/\).*/{ s//\1/; q; } |
|
|
18689 | s/.*/./; q'` |
|
|
18690 | else |
|
|
18691 | continue |
|
|
18692 | fi |
|
|
18693 | # Extract the definition of DEPDIR, am__include, and am__quote |
|
|
18694 | # from the Makefile without running `make'. |
|
|
18695 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
|
18696 | test -z "$DEPDIR" && continue |
|
|
18697 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|
|
18698 | test -z "am__include" && continue |
|
|
18699 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
|
18700 | # When using ansi2knr, U may be empty or an underscore; expand it |
|
|
18701 | U=`sed -n 's/^U = //p' < "$mf"` |
|
|
18702 | # Find all dependency output files, they are included files with |
|
|
18703 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
|
|
18704 | # simplest approach to changing $(DEPDIR) to its actual value in the |
|
|
18705 | # expansion. |
|
|
18706 | for file in `sed -n " |
|
|
18707 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
|
18708 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|
|
18709 | # Make sure the directory exists. |
|
|
18710 | test -f "$dirpart/$file" && continue |
|
|
18711 | fdir=`(dirname "$file") 2>/dev/null || |
|
|
18712 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
18713 | X"$file" : 'X\(//\)[^/]' \| \ |
|
|
18714 | X"$file" : 'X\(//\)$' \| \ |
|
|
18715 | X"$file" : 'X\(/\)' \| \ |
|
|
18716 | . : '\(.\)' 2>/dev/null || |
|
|
18717 | echo X"$file" | |
|
|
18718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
18719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
18720 | /^X\(\/\/\)$/{ s//\1/; q; } |
|
|
18721 | /^X\(\/\).*/{ s//\1/; q; } |
|
|
18722 | s/.*/./; q'` |
|
|
18723 | { if $as_mkdir_p; then |
|
|
18724 | mkdir -p $dirpart/$fdir |
|
|
18725 | else |
|
|
18726 | as_dir=$dirpart/$fdir |
|
|
18727 | as_dirs= |
|
|
18728 | while test ! -d "$as_dir"; do |
|
|
18729 | as_dirs="$as_dir $as_dirs" |
|
|
18730 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
|
|
18731 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
18732 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
18733 | X"$as_dir" : 'X\(//\)$' \| \ |
|
|
18734 | X"$as_dir" : 'X\(/\)' \| \ |
|
|
18735 | . : '\(.\)' 2>/dev/null || |
|
|
18736 | echo X"$as_dir" | |
|
|
18737 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
|
|
18738 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
|
|
18739 | /^X\(\/\/\)$/{ s//\1/; q; } |
|
|
18740 | /^X\(\/\).*/{ s//\1/; q; } |
|
|
18741 | s/.*/./; q'` |
|
|
18742 | done |
|
|
18743 | test ! -n "$as_dirs" || mkdir $as_dirs |
|
|
18744 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
|
|
18745 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
|
|
18746 | { (exit 1); exit 1; }; }; } |
|
|
18747 | |
|
|
18748 | # echo "creating $dirpart/$file" |
|
|
18749 | echo '# dummy' > "$dirpart/$file" |
|
|
18750 | done |
|
|
18751 | done |
|
|
18752 | ;; |
|
|
18753 | libtool ) |
|
|
18754 | |
|
|
18755 | # See if we are running on zsh, and set the options which allow our |
|
|
18756 | # commands through without removal of \ escapes. |
|
|
18757 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
18758 | setopt NO_GLOB_SUBST |
|
|
18759 | fi |
|
|
18760 | |
|
|
18761 | cfgfile="${ofile}T" |
|
|
18762 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
|
18763 | $rm -f "$cfgfile" |
|
|
18764 | |
|
|
18765 | cat <<_LT_EOF >> "$cfgfile" |
|
|
18766 | #! $SHELL |
|
|
18767 | |
|
|
18768 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
18769 | # Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION |
|
|
18770 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
18771 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
18772 | # |
|
|
18773 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 |
|
|
18774 | # Free Software Foundation, Inc. |
|
|
18775 | # |
|
|
18776 | # This file is part of GNU Libtool: |
|
|
18777 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
18778 | # |
|
|
18779 | # This program is free software; you can redistribute it and/or modify |
|
|
18780 | # it under the terms of the GNU General Public License as published by |
|
|
18781 | # the Free Software Foundation; either version 2 of the License, or |
|
|
18782 | # (at your option) any later version. |
|
|
18783 | # |
|
|
18784 | # This program is distributed in the hope that it will be useful, but |
|
|
18785 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
18786 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
18787 | # General Public License for more details. |
|
|
18788 | # |
|
|
18789 | # You should have received a copy of the GNU General Public License |
|
|
18790 | # along with this program; if not, write to the Free Software |
|
|
18791 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
18792 | # |
|
|
18793 | # As a special exception to the GNU General Public License, if you |
|
|
18794 | # distribute this file as part of a program that contains a |
|
|
18795 | # configuration script generated by Autoconf, you may include it under |
|
|
18796 | # the same distribution terms that you use for the rest of that program. |
|
|
18797 | |
|
|
18798 | |
|
|
18799 | |
|
|
18800 | # The names of the tagged configurations supported by this script. |
|
|
18801 | available_tags="" |
|
|
18802 | |
|
|
18803 | # ### BEGIN LIBTOOL CONFIG |
|
|
18804 | |
|
|
18805 | # Which release of libtool.m4 was used? |
|
|
18806 | macro_version=$macro_version |
|
|
18807 | macro_revision=$macro_revision |
|
|
18808 | |
|
|
18809 | # Whether or not to build shared libraries. |
|
|
18810 | build_libtool_libs=$enable_shared |
|
|
18811 | |
|
|
18812 | # Whether or not to build static libraries. |
|
|
18813 | build_old_libs=$enable_static |
|
|
18814 | |
|
|
18815 | # What type of objects to build. |
|
|
18816 | pic_mode=$pic_mode |
|
|
18817 | |
|
|
18818 | # Whether or not to optimize for fast installation. |
|
|
18819 | fast_install=$enable_fast_install |
|
|
18820 | |
|
|
18821 | # The host system. |
|
|
18822 | host_alias=$host_alias |
|
|
18823 | host=$host |
|
|
18824 | |
|
|
18825 | # A sed program that does not truncate output. |
|
|
18826 | SED=$lt_SED |
|
|
18827 | |
|
|
18828 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
18829 | Xsed="\$SED -e s/^X//" |
|
|
18830 | |
|
|
18831 | # A grep program that handles long line. |
|
|
18832 | GREP=$lt_GREP |
|
|
18833 | |
|
|
18834 | # An ERE matcher. |
|
|
18835 | EGREP=$lt_EGREP |
|
|
18836 | |
|
|
18837 | # How to create reloadable object files. |
|
|
18838 | reload_flag=$lt_reload_flag |
|
|
18839 | reload_cmds=$lt_reload_cmds |
|
|
18840 | |
|
|
18841 | # A BSD-compatible nm program. |
|
|
18842 | NM=$lt_NM |
|
|
18843 | |
|
|
18844 | # Whether we need soft or hard links. |
|
|
18845 | LN_S=$lt_LN_S |
|
|
18846 | |
|
|
18847 | # Method to check whether dependent libraries are shared objects. |
|
|
18848 | deplibs_check_method=$lt_deplibs_check_method |
|
|
18849 | |
|
|
18850 | # Command to use when deplibs_check_method == "file_magic". |
|
|
18851 | file_magic_cmd=$lt_file_magic_cmd |
|
|
18852 | |
|
|
18853 | # The archiver. |
|
|
18854 | AR=$lt_AR |
|
|
18855 | AR_FLAGS=$lt_AR_FLAGS |
|
|
18856 | |
|
|
18857 | # A symbol stripping program. |
|
|
18858 | STRIP=$lt_STRIP |
|
|
18859 | |
|
|
18860 | # Commands used to install an old-style archive. |
|
|
18861 | RANLIB=$lt_RANLIB |
|
|
18862 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
18863 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
18864 | |
|
|
18865 | # What is the maximum length of a command? |
|
|
18866 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
18867 | |
|
|
18868 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
18869 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
18870 | |
|
|
18871 | # Transform the output of nm in a proper C declaration. |
|
|
18872 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
18873 | |
|
|
18874 | # Transform the output of nm in a C name address pair. |
|
|
18875 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
18876 | |
|
|
18877 | # Object file suffix (normally "o"). |
|
|
18878 | objext=$ac_objext |
|
|
18879 | |
|
|
18880 | # Executable file suffix (normally ""). |
|
|
18881 | exeext=$exeext |
|
|
18882 | |
|
|
18883 | # The name of the directory that contains temporary libtool files. |
|
|
18884 | objdir=$objdir |
|
|
18885 | |
|
|
18886 | # A C compiler. |
|
|
18887 | LTCC=$lt_CC |
|
|
18888 | |
|
|
18889 | # Shell to use when invoking shell scripts. |
|
|
18890 | SHELL=$lt_SHELL |
|
|
18891 | |
|
|
18892 | # An echo program that does not interpret backslashes. |
|
|
18893 | echo=$lt_echo |
|
|
18894 | |
|
|
18895 | # Used to examine libraries when file_magic_cmd begins "file". |
|
|
18896 | MAGIC_CMD=$MAGIC_CMD |
|
|
18897 | |
|
|
18898 | # Does compiler simultaneously support -c and -o options? |
|
|
18899 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
|
18900 | |
|
|
18901 | # Must we lock files when doing compilation? |
|
|
18902 | need_locks=$lt_need_locks |
|
|
18903 | |
|
|
18904 | # Old archive suffix (normally "a"). |
|
|
18905 | libext=$libext |
|
|
18906 | |
|
|
18907 | # Shared library suffix (normally ".so"). |
|
|
18908 | shrext_cmds=$lt_shrext_cmds |
|
|
18909 | |
|
|
18910 | # The commands to extract the exported symbol list from a shared archive. |
|
|
18911 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
18912 | |
|
|
18913 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
18914 | # restored at link time. |
|
|
18915 | variables_saved_for_relink=$lt_variables_saved_for_relink |
|
|
18916 | |
|
|
18917 | # Do we need the "lib" prefix for modules? |
|
|
18918 | need_lib_prefix=$need_lib_prefix |
|
|
18919 | |
|
|
18920 | # Do we need a version for libraries? |
|
|
18921 | need_version=$need_version |
|
|
18922 | |
|
|
18923 | # Library versioning type. |
|
|
18924 | version_type=$version_type |
|
|
18925 | |
|
|
18926 | # Shared library runtime path variable. |
|
|
18927 | runpath_var=$runpath_var |
|
|
18928 | |
|
|
18929 | # Shared library path variable. |
|
|
18930 | shlibpath_var=$shlibpath_var |
|
|
18931 | |
|
|
18932 | # Is shibpath searched before the hard-coded library search path? |
|
|
18933 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
18934 | |
|
|
18935 | # Format of library name prefix. |
|
|
18936 | libname_spec=$lt_libname_spec |
|
|
18937 | |
|
|
18938 | # List of archive names. First name is the real one,the rest are links. |
|
|
18939 | # The last name is the one that the linker finds with -lNAME |
|
|
18940 | library_names_spec=$lt_library_names_spec |
|
|
18941 | |
|
|
18942 | # The coded name of the library,if different from the real name. |
|
|
18943 | soname_spec=$lt_soname_spec |
|
|
18944 | |
|
|
18945 | # Command to use after installation of a shared archive. |
|
|
18946 | postinstall_cmds=$lt_postinstall_cmds |
|
|
18947 | |
|
|
18948 | # Command to use after uninstallation of a shared archive. |
|
|
18949 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
18950 | |
|
|
18951 | # Commands used to finish a libtool library installation in a directory. |
|
|
18952 | finish_cmds=$lt_finish_cmds |
|
|
18953 | |
|
|
18954 | # As "finish_cmds",except a single script fragment to be evaled but |
|
|
18955 | # not shown. |
|
|
18956 | finish_eval=$lt_finish_eval |
|
|
18957 | |
|
|
18958 | # Whether we should hardcode library paths into libraries. |
|
|
18959 | hardcode_into_libs=$hardcode_into_libs |
|
|
18960 | |
|
|
18961 | # Compile-time system search path for libraries. |
|
|
18962 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
18963 | |
|
|
18964 | # Run-time system search path for libraries. |
|
|
18965 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
18966 | |
|
|
18967 | # Commands to strip libraries. |
|
|
18968 | old_striplib=$lt_old_striplib |
|
|
18969 | striplib=$lt_striplib |
|
|
18970 | |
|
|
18971 | # Whether dlopen is supported. |
|
|
18972 | dlopen_support=$enable_dlopen |
|
|
18973 | |
|
|
18974 | # Whether dlopen of programs is supported. |
|
|
18975 | dlopen_self=$enable_dlopen_self |
|
|
18976 | |
|
|
18977 | # Whether dlopen of statically linked programs is supported. |
|
|
18978 | dlopen_self_static=$enable_dlopen_self_static |
|
|
18979 | |
|
|
18980 | |
|
|
18981 | # The linker used to build libraries. |
|
|
18982 | LD=$lt_LD |
|
|
18983 | |
|
|
18984 | # Commands used to build an old-style archive. |
|
|
18985 | old_archive_cmds=$lt_old_archive_cmds |
|
|
18986 | |
|
|
18987 | # A language specific compiler. |
|
|
18988 | CC=$lt_compiler |
|
|
18989 | |
|
|
18990 | # Is the compiler the GNU C compiler? |
|
|
18991 | with_gcc=$GCC |
|
|
18992 | |
|
|
18993 | # Compiler flag to turn off builtin functions. |
|
|
18994 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
|
18995 | |
|
|
18996 | # How to pass a linker flag through the compiler. |
|
|
18997 | wl=$lt_lt_prog_compiler_wl |
|
|
18998 | |
|
|
18999 | # Additional compiler flags for building library objects. |
|
|
19000 | pic_flag=$lt_lt_prog_compiler_pic |
|
|
19001 | |
|
|
19002 | # Compiler flag to prevent dynamic linking. |
|
|
19003 | link_static_flag=$lt_lt_prog_compiler_static |
|
|
19004 | |
|
|
19005 | # Whether or not to add -lc for building shared libraries. |
|
|
19006 | build_libtool_need_lc=$archive_cmds_need_lc |
|
|
19007 | |
|
|
19008 | # Whether or not to disallow shared libs when runtime libs are static. |
|
|
19009 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
|
19010 | |
|
|
19011 | # Compiler flag to allow reflexive dlopens. |
|
|
19012 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
19013 | |
|
|
19014 | # Compiler flag to generate shared objects directly from archives. |
|
|
19015 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
19016 | |
|
|
19017 | # Create an old-style archive from a shared archive. |
|
|
19018 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
19019 | |
|
|
19020 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
19021 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
19022 | |
|
|
19023 | # Commands used to build a shared archive. |
|
|
19024 | archive_cmds=$lt_archive_cmds |
|
|
19025 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
19026 | |
|
|
19027 | # Commands used to build a loadable module if different from building |
|
|
19028 | # a shared archive. |
|
|
19029 | module_cmds=$lt_module_cmds |
|
|
19030 | module_expsym_cmds=$lt_module_expsym_cmds |
|
|
19031 | |
|
|
19032 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
19033 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
19034 | |
|
|
19035 | # Flag that enforces no undefined symbols. |
|
|
19036 | no_undefined_flag=$lt_no_undefined_flag |
|
|
19037 | |
|
|
19038 | # Flag to hardcode $libdir into a binary during linking. |
|
|
19039 | # This must work even if $libdir does not exist |
|
|
19040 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
19041 | |
|
|
19042 | # If ld is used when linking,flag to hardcode $libdir into a binary |
|
|
19043 | # during linking. This must work even if $libdir does not exist. |
|
|
19044 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
|
19045 | |
|
|
19046 | # Whether we need a single "-rpath" flag with a separated argument. |
|
|
19047 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
19048 | |
|
|
19049 | # Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
|
|
19050 | # DIR into the resulting binary. |
|
|
19051 | hardcode_direct=$hardcode_direct |
|
|
19052 | |
|
|
19053 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
|
|
19054 | # into the resulting binary. |
|
|
19055 | hardcode_minus_L=$hardcode_minus_L |
|
|
19056 | |
|
|
19057 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
|
|
19058 | # into the resulting binary. |
|
|
19059 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
19060 | |
|
|
19061 | # Set to "yes" if building a shared library automatically hardcodes DIR |
|
|
19062 | # into the library and all subsequent libraries and executables linked |
|
|
19063 | # against it. |
|
|
19064 | hardcode_automatic=$hardcode_automatic |
|
|
19065 | |
|
|
19066 | # Set to yes if linker adds runtime paths of dependent libraries |
|
|
19067 | # to runtime path list. |
|
|
19068 | inherit_rpath=$inherit_rpath |
|
|
19069 | |
|
|
19070 | # Whether libtool must link a program against all its dependency libraries. |
|
|
19071 | link_all_deplibs=$link_all_deplibs |
|
|
19072 | |
|
|
19073 | # Fix the shell variable $srcfile for the compiler. |
|
|
19074 | fix_srcfile_path=$lt_fix_srcfile_path |
|
|
19075 | |
|
|
19076 | # Set to "yes" if exported symbols are required. |
|
|
19077 | always_export_symbols=$always_export_symbols |
|
|
19078 | |
|
|
19079 | # The commands to list exported symbols. |
|
|
19080 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
19081 | |
|
|
19082 | # Symbols that should not be listed in the preloaded symbols. |
|
|
19083 | exclude_expsyms=$lt_exclude_expsyms |
|
|
19084 | |
|
|
19085 | # Symbols that must always be exported. |
|
|
19086 | include_expsyms=$lt_include_expsyms |
|
|
19087 | |
|
|
19088 | # How to hardcode a shared library path into an executable. |
|
|
19089 | hardcode_action=$hardcode_action |
|
|
19090 | |
|
|
19091 | # ### END LIBTOOL CONFIG |
|
|
19092 | |
|
|
19093 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
19094 | # if CDPATH is set. |
|
|
19095 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
19096 | |
|
|
19097 | _LT_EOF |
|
|
19098 | |
|
|
19099 | case $host_os in |
|
|
19100 | aix3*) |
|
|
19101 | cat <<\_LT_EOF >> "$cfgfile" |
|
|
19102 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
19103 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
19104 | # vanish in a puff of smoke. |
|
|
19105 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
19106 | COLLECT_NAMES= |
|
|
19107 | export COLLECT_NAMES |
|
|
19108 | fi |
|
|
19109 | _LT_EOF |
|
|
19110 | ;; |
|
|
19111 | esac |
|
|
19112 | |
|
|
19113 | |
|
|
19114 | case $ac_aux_dir in |
|
|
19115 | $srcdir) ltmain=./ltmain.sh ;; |
|
|
19116 | $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;; |
|
|
19117 | esac |
|
|
19118 | test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh" |
|
|
19119 | |
|
|
19120 | |
|
|
19121 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
19122 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
19123 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
19124 | # is reportedly fixed, but why not run on old versions too? |
|
|
19125 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
|
19126 | |
|
|
19127 | mv -f "$cfgfile" "$ofile" || |
|
|
19128 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
|
19129 | chmod +x "$ofile" |
|
|
19130 | |
|
|
19131 | ;; |
|
|
19132 | esac |
28412 | esac |
19133 | done |
28413 | done |
19134 | _ACEOF |
28414 | _ACEOF |
19135 | |
28415 | |
19136 | cat >>$CONFIG_STATUS <<\_ACEOF |
28416 | cat >>$CONFIG_STATUS <<\_ACEOF |