ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/configure
(Generate patch)

Comparing deliantra/server/configure (file contents):
Revision 1.1.1.2 by elmex, Wed Mar 15 14:04:35 2006 UTC vs.
Revision 1.2 by root, Fri Feb 3 07:25:24 2006 UTC

1#! /bin/sh 1#! /bin/sh
2# From configure.ac Id: configure.ac. 2# From configure.ac Id: configure.ac.
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.9.0. 4# Generated by GNU Autoconf 2.59 for crossfire 1.8.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
271fi 271fi
272 272
273if test "X$1" = X--fallback-echo; then 273if test "X$1" = X--fallback-echo; then
274 # used as fallback echo 274 # used as fallback echo
275 shift 275 shift
276 cat <<EOF 276 cat <<_LT_EOF
277$* 277$*
278EOF 278_LT_EOF
279 exit 0 279 exit 0
280fi 280fi
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.
392fi 392fi
393 393
394 394
395 395
396 396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host. 397# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 398# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too. 399# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 400ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 401
422: ${ac_max_here_lines=38} 418: ${ac_max_here_lines=38}
423 419
424# Identity of this package. 420# Identity of this package.
425PACKAGE_NAME='crossfire' 421PACKAGE_NAME='crossfire'
426PACKAGE_TARNAME='crossfire' 422PACKAGE_TARNAME='crossfire'
427PACKAGE_VERSION='1.9.0' 423PACKAGE_VERSION='1.8.0'
428PACKAGE_STRING='crossfire 1.9.0' 424PACKAGE_STRING='crossfire 1.8.0'
429PACKAGE_BUGREPORT='crossfire-devel@listserv.real-time.com' 425PACKAGE_BUGREPORT='crossfire-devel@listserv.real-time.com'
430 426
431ac_unique_file="server/main.c" 427ac_unique_file="server/main.c"
432ac_default_prefix=/usr/games/crossfire 428ac_default_prefix=/usr/games/crossfire
433# Factoring default headers for most tests. 429# Factoring default headers for most tests.
465#endif 461#endif
466#if HAVE_UNISTD_H 462#if HAVE_UNISTD_H
467# include <unistd.h> 463# include <unistd.h>
468#endif" 464#endif"
469 465
470ac_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 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL 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 HAVE_LIBDL_TRUE HAVE_LIBDL_FALSE PYTHON_LIB PY_LIBS PY_INCLUDES PYTHON_PLUGIN_TRUE PYTHON_PLUGIN_FALSE PLUGIN_PYTHON LTLIBOBJS' 466ac_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'
471ac_subst_files='' 467ac_subst_files=''
472 468
473# Initialize some variables set by options. 469# Initialize some variables set by options.
474ac_init_help= 470ac_init_help=
475ac_init_version=false 471ac_init_version=false
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set} 923ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP 924ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set} 925ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP 926ac_cv_env_CPP_value=$CPP
931ac_env_CXX_set=${CXX+set}
932ac_env_CXX_value=$CXX
933ac_cv_env_CXX_set=${CXX+set}
934ac_cv_env_CXX_value=$CXX
935ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_env_CXXFLAGS_value=$CXXFLAGS
937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
951 927
952# 928#
953# Report the --help message. 929# Report the --help message.
954# 930#
955if test "$ac_init_help" = "long"; then 931if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing. 932 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh. 933 # This message is too long to be a string in the A/UX 3.1 sh.
958 cat <<_ACEOF 934 cat <<_ACEOF
959\`configure' configures crossfire 1.9.0 to adapt to many kinds of systems. 935\`configure' configures crossfire 1.8.0 to adapt to many kinds of systems.
960 936
961Usage: $0 [OPTION]... [VAR=VALUE]... 937Usage: $0 [OPTION]... [VAR=VALUE]...
962 938
963To assign environment variables (e.g., CC, CFLAGS...), specify them as 939To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE. See below for descriptions of some of the useful variables. 940VAR=VALUE. See below for descriptions of some of the useful variables.
1024_ACEOF 1000_ACEOF
1025fi 1001fi
1026 1002
1027if test -n "$ac_init_help"; then 1003if test -n "$ac_init_help"; then
1028 case $ac_init_help in 1004 case $ac_init_help in
1029 short | recursive ) echo "Configuration of crossfire 1.9.0:";; 1005 short | recursive ) echo "Configuration of crossfire 1.8.0:";;
1030 esac 1006 esac
1031 cat <<\_ACEOF 1007 cat <<\_ACEOF
1032 1008
1033Optional Features: 1009Optional Features:
1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1010 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1047 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working 1023 --enable-dmalloc Use the dmalloc library if available, may prevent plugins from working
1048 1024
1049Optional Packages: 1025Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1053 --with-pic try to use only PIC/non-PIC objects [default=use 1028 --with-pic try to use only PIC/non-PIC objects [default=use
1054 both] 1029 both]
1055 --with-tags[=TAGS] 1030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 include additional configurations [automatic]
1057 --with-python=dir Directory to look for python headers/library (default=standard system location) 1031 --with-python=dir Directory to look for python headers/library (default=standard system location)
1058 --with-x use the X Window System 1032 --with-x use the X Window System
1059 1033
1060Some influential environment variables: 1034Some influential environment variables:
1061 CC C compiler command 1035 CC C compiler command
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1037 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir> 1038 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1039 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir> 1040 headers in a nonstandard directory <include dir>
1067 CPP C preprocessor 1041 CPP C preprocessor
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1073 1042
1074Use these variables to override the choices made by `configure' or to help 1043Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations. 1044it to find libraries and programs with nonstandard names/locations.
1076 1045
1077Report bugs to <crossfire-devel@listserv.real-time.com>. 1046Report bugs to <crossfire-devel@listserv.real-time.com>.
1161 echo 1130 echo
1162 $ac_configure --help 1131 $ac_configure --help
1163 else 1132 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1133 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi 1134 fi
1166 cd $ac_popdir 1135 cd "$ac_popdir"
1167 done 1136 done
1168fi 1137fi
1169 1138
1170test -n "$ac_init_help" && exit 0 1139test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then 1140if $ac_init_version; then
1172 cat <<\_ACEOF 1141 cat <<\_ACEOF
1173crossfire configure 1.9.0 1142crossfire configure 1.8.0
1174generated by GNU Autoconf 2.59 1143generated by GNU Autoconf 2.59
1175 1144
1176Copyright (C) 2003 Free Software Foundation, Inc. 1145Copyright (C) 2003 Free Software Foundation, Inc.
1177This configure script is free software; the Free Software Foundation 1146This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it. 1147gives unlimited permission to copy, distribute and modify it.
1182exec 5>config.log 1151exec 5>config.log
1183cat >&5 <<_ACEOF 1152cat >&5 <<_ACEOF
1184This file contains any messages produced by compilers while 1153This file contains any messages produced by compilers while
1185running configure, to aid debugging if configure makes a mistake. 1154running configure, to aid debugging if configure makes a mistake.
1186 1155
1187It was created by crossfire $as_me 1.9.0, which was 1156It was created by crossfire $as_me 1.8.0, which was
1188generated by GNU Autoconf 2.59. Invocation command line was 1157generated by GNU Autoconf 2.59. Invocation command line was
1189 1158
1190 $ $0 $@ 1159 $ $0 $@
1191 1160
1192_ACEOF 1161_ACEOF
1826fi 1795fi
1827 1796
1828 1797
1829# Define the identity of the package. 1798# Define the identity of the package.
1830 PACKAGE='crossfire' 1799 PACKAGE='crossfire'
1831 VERSION='1.9.0' 1800 VERSION='1.8.0'
1832 1801
1833 1802
1834cat >>confdefs.h <<_ACEOF 1803cat >>confdefs.h <<_ACEOF
1835#define PACKAGE "$PACKAGE" 1804#define PACKAGE "$PACKAGE"
1836_ACEOF 1805_ACEOF
1987 1956
1988 1957
1989 1958
1990 1959
1991 1960
1992# Check whether --enable-shared or --disable-shared was given.
1993if test "${enable_shared+set}" = set; then
1994 enableval="$enable_shared"
1995 p=${PACKAGE-default}
1996 case $enableval in
1997 yes) enable_shared=yes ;;
1998 no) enable_shared=no ;;
1999 *)
2000 enable_shared=no
2001 # Look at the argument we got. We use all the common list separators.
2002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2003 for pkg in $enableval; do
2004 IFS="$lt_save_ifs"
2005 if test "X$pkg" = "X$p"; then
2006 enable_shared=yes
2007 fi
2008 done
2009 IFS="$lt_save_ifs"
2010 ;;
2011 esac
2012else
2013 enable_shared=yes
2014fi;
2015 1961
2016# Check whether --enable-static or --disable-static was given.
2017if test "${enable_static+set}" = set; then
2018 enableval="$enable_static"
2019 p=${PACKAGE-default}
2020 case $enableval in
2021 yes) enable_static=yes ;;
2022 no) enable_static=no ;;
2023 *)
2024 enable_static=no
2025 # Look at the argument we got. We use all the common list separators.
2026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2027 for pkg in $enableval; do
2028 IFS="$lt_save_ifs"
2029 if test "X$pkg" = "X$p"; then
2030 enable_static=yes
2031 fi
2032 done
2033 IFS="$lt_save_ifs"
2034 ;;
2035 esac
2036else
2037 enable_static=yes
2038fi;
2039 1962
2040# Check whether --enable-fast-install or --disable-fast-install was given. 1963macro_version=''
2041if test "${enable_fast_install+set}" = set; then 1964macro_revision='1.1467'
2042 enableval="$enable_fast_install" 1965
2043 p=${PACKAGE-default} 1966
2044 case $enableval in 1967
2045 yes) enable_fast_install=yes ;; 1968
2046 no) enable_fast_install=no ;; 1969
2047 *) 1970
2048 enable_fast_install=no 1971
2049 # Look at the argument we got. We use all the common list separators. 1972
2050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1973
2051 for pkg in $enableval; do 1974
2052 IFS="$lt_save_ifs" 1975
2053 if test "X$pkg" = "X$p"; then 1976
2054 enable_fast_install=yes 1977case $ac_aux_dir in
2055 fi 1978 $srcdir) ltmain=./ltmain.sh ;;
2056 done 1979 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
2057 IFS="$lt_save_ifs" 1980esac
2058 ;; 1981test -f "$ltmain" || ltmain="$ac_aux_dir/ltmain.sh"
2059 esac
2060else
2061 enable_fast_install=yes
2062fi;
2063 1982
2064# Make sure we can run config.sub. 1983# Make sure we can run config.sub.
2065$ac_config_sub sun4 >/dev/null 2>&1 || 1984$ac_config_sub sun4 >/dev/null 2>&1 ||
2066 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1985 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2067echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1986echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2746 grep -v '^ *+' conftest.er1 >conftest.err 2665 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1 2666 rm -f conftest.er1
2748 cat conftest.err >&5 2667 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && 2669 (exit $ac_status); } &&
2751 { ac_try='test -z "$ac_c_werror_flag" 2670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2752 || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5 2672 (eval $ac_try) 2>&5
2755 ac_status=$? 2673 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } && 2675 (exit $ac_status); }; } &&
2805 grep -v '^ *+' conftest.er1 >conftest.err 2723 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1 2724 rm -f conftest.er1
2807 cat conftest.err >&5 2725 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } && 2727 (exit $ac_status); } &&
2810 { ac_try='test -z "$ac_c_werror_flag" 2728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2811 || test ! -s conftest.err'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5 2730 (eval $ac_try) 2>&5
2814 ac_status=$? 2731 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; } && 2733 (exit $ac_status); }; } &&
2922 grep -v '^ *+' conftest.er1 >conftest.err 2839 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1 2840 rm -f conftest.er1
2924 cat conftest.err >&5 2841 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } && 2843 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag" 2844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5 2846 (eval $ac_try) 2>&5
2931 ac_status=$? 2847 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } && 2849 (exit $ac_status); }; } &&
2977 grep -v '^ *+' conftest.er1 >conftest.err 2893 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1 2894 rm -f conftest.er1
2979 cat conftest.err >&5 2895 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && 2897 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag" 2898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983 || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5 2900 (eval $ac_try) 2>&5
2986 ac_status=$? 2901 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } && 2903 (exit $ac_status); }; } &&
3023 grep -v '^ *+' conftest.er1 >conftest.err 2938 grep -v '^ *+' conftest.er1 >conftest.err
3024 rm -f conftest.er1 2939 rm -f conftest.er1
3025 cat conftest.err >&5 2940 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && 2942 (exit $ac_status); } &&
3028 { ac_try='test -z "$ac_c_werror_flag" 2943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3029 || test ! -s conftest.err'
3030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 (eval $ac_try) 2>&5 2945 (eval $ac_try) 2>&5
3032 ac_status=$? 2946 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } && 2948 (exit $ac_status); }; } &&
3068 grep -v '^ *+' conftest.er1 >conftest.err 2982 grep -v '^ *+' conftest.er1 >conftest.err
3069 rm -f conftest.er1 2983 rm -f conftest.er1
3070 cat conftest.err >&5 2984 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && 2986 (exit $ac_status); } &&
3073 { ac_try='test -z "$ac_c_werror_flag" 2987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3074 || test ! -s conftest.err'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5 2989 (eval $ac_try) 2>&5
3077 ac_status=$? 2990 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; } && 2992 (exit $ac_status); }; } &&
3269 fi 3182 fi
3270 done 3183 done
3271done 3184done
3272SED=$lt_cv_path_SED 3185SED=$lt_cv_path_SED
3273 3186
3187
3274fi 3188fi
3275 3189
3276echo "$as_me:$LINENO: result: $SED" >&5 3190echo "$as_me:$LINENO: result: $SED" >&5
3277echo "${ECHO_T}$SED" >&6 3191echo "${ECHO_T}$SED" >&6
3192
3193test -z "$SED" && SED=sed
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3278 3204
3279echo "$as_me:$LINENO: checking for egrep" >&5 3205echo "$as_me:$LINENO: checking for egrep" >&5
3280echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3206echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3281if test "${ac_cv_prog_egrep+set}" = set; then 3207if test "${ac_cv_prog_egrep+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6 3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3290echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3216echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3291 EGREP=$ac_cv_prog_egrep 3217 EGREP=$ac_cv_prog_egrep
3292 3218
3293 3219
3294 3220
3221test -z "$GREP" && GREP=grep
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3295# Check whether --with-gnu-ld or --without-gnu-ld was given. 3234# Check whether --with-gnu-ld or --without-gnu-ld was given.
3296if test "${with_gnu_ld+set}" = set; then 3235if test "${with_gnu_ld+set}" = set; then
3297 withval="$with_gnu_ld" 3236 withval="$with_gnu_ld"
3298 test "$withval" = no || with_gnu_ld=yes 3237 test "$withval" = no || with_gnu_ld=yes
3299else 3238else
3300 with_gnu_ld=no 3239 with_gnu_ld=no
3301fi; 3240fi;
3241
3302ac_prog=ld 3242ac_prog=ld
3303if test "$GCC" = yes; then 3243if test "$GCC" = yes; then
3304 # Check if gcc -print-prog-name=ld gives a path. 3244 # Check if gcc -print-prog-name=ld gives a path.
3305 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3245 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3306echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3246echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3315 # Accept absolute paths. 3255 # Accept absolute paths.
3316 [\\/]* | ?:[\\/]*) 3256 [\\/]* | ?:[\\/]*)
3317 re_direlt='/[^/][^/]*/\.\./' 3257 re_direlt='/[^/][^/]*/\.\./'
3318 # Canonicalize the pathname of ld 3258 # Canonicalize the pathname of ld
3319 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3259 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3320 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3260 while echo $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do
3321 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3261 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3322 done 3262 done
3323 test -z "$LD" && LD="$ac_prog" 3263 test -z "$LD" && LD="$ac_prog"
3324 ;; 3264 ;;
3325 "") 3265 "")
3396echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3336echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3397echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3337echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3398with_gnu_ld=$lt_cv_prog_gnu_ld 3338with_gnu_ld=$lt_cv_prog_gnu_ld
3399 3339
3400 3340
3341
3342
3343
3344
3345
3346
3347
3401echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3348echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3402echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3349echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3403if test "${lt_cv_ld_reload_flag+set}" = set; then 3350if test "${lt_cv_ld_reload_flag+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6 3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3405else 3352else
3411case $reload_flag in 3358case $reload_flag in
3412"" | " "*) ;; 3359"" | " "*) ;;
3413*) reload_flag=" $reload_flag" ;; 3360*) reload_flag=" $reload_flag" ;;
3414esac 3361esac
3415reload_cmds='$LD$reload_flag -o $output$reload_objs' 3362reload_cmds='$LD$reload_flag -o $output$reload_objs'
3363case $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 ;;
3371esac
3372
3373
3374
3375
3376
3377
3378
3379
3416 3380
3417echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3381echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3382echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419if test "${lt_cv_path_NM+set}" = set; then 3383if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6 3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3457fi 3421fi
3458fi 3422fi
3459echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3423echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3460echo "${ECHO_T}$lt_cv_path_NM" >&6 3424echo "${ECHO_T}$lt_cv_path_NM" >&6
3461NM="$lt_cv_path_NM" 3425NM="$lt_cv_path_NM"
3426test -z "$NM" && NM=nm
3427
3428
3429
3430
3431
3462 3432
3463echo "$as_me:$LINENO: checking whether ln -s works" >&5 3433echo "$as_me:$LINENO: checking whether ln -s works" >&5
3464echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3434echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3465LN_S=$as_ln_s 3435LN_S=$as_ln_s
3466if test "$LN_S" = "ln -s"; then 3436if test "$LN_S" = "ln -s"; then
3468echo "${ECHO_T}yes" >&6 3438echo "${ECHO_T}yes" >&6
3469else 3439else
3470 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3440 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3471echo "${ECHO_T}no, using $LN_S" >&6 3441echo "${ECHO_T}no, using $LN_S" >&6
3472fi 3442fi
3443
3473 3444
3474echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3445echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3475echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3446echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3476if test "${lt_cv_deplibs_check_method+set}" = set; then 3447if test "${lt_cv_deplibs_check_method+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6 3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 # func_win32_libid is a shell function defined in ltmain.sh 3480 # func_win32_libid is a shell function defined in ltmain.sh
3510 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3511 lt_cv_file_magic_cmd='func_win32_libid' 3482 lt_cv_file_magic_cmd='func_win32_libid'
3512 ;; 3483 ;;
3513 3484
3514mingw* | pw32*)
3515 # Base MSYS/MinGW do not provide the 'file' command needed by 3485 # Base MSYS/MinGW do not provide the 'file' command needed by
3516 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3486 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3487mingw* | pw32*)
3517 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3488 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3518 lt_cv_file_magic_cmd='$OBJDUMP -f' 3489 lt_cv_file_magic_cmd='$OBJDUMP -f'
3519 ;; 3490 ;;
3520 3491
3521darwin* | rhapsody*) 3492darwin* | rhapsody*)
3522 lt_cv_deplibs_check_method=pass_all 3493 lt_cv_deplibs_check_method=pass_all
3523 ;; 3494 ;;
3524 3495
3525freebsd* | kfreebsd*-gnu) 3496freebsd* | kfreebsd*-gnu)
3526 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3497 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3527 case $host_cpu in 3498 case $host_cpu in
3528 i*86 ) 3499 i*86 )
3529 # Not sure whether the presence of OpenBSD here was a mistake. 3500 # Not sure whether the presence of OpenBSD here was a mistake.
3530 # Let's accept both of them until this is cleared up. 3501 # Let's accept both of them until this is cleared up.
3531 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3502 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3570 lt_cv_deplibs_check_method=pass_all 3541 lt_cv_deplibs_check_method=pass_all
3571 ;; 3542 ;;
3572 3543
3573# This must be Linux ELF. 3544# This must be Linux ELF.
3574linux*) 3545linux*)
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`
3575 lt_cv_deplibs_check_method=pass_all 3555 lt_cv_deplibs_check_method=pass_all
3576 ;; 3556 ;;
3577 3557
3578netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3558netbsd* | knetbsd*-gnu)
3579 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3581 else 3561 else
3582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3583 fi 3563 fi
3584 ;; 3564 ;;
3594 ;; 3574 ;;
3595 3575
3596openbsd*) 3576openbsd*)
3597 lt_cv_file_magic_cmd=/usr/bin/file 3577 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3578 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3601 else 3581 else
3602 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3582 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3603 fi 3583 fi
3604 ;; 3584 ;;
3652test -z "$deplibs_check_method" && deplibs_check_method=unknown 3632test -z "$deplibs_check_method" && deplibs_check_method=unknown
3653 3633
3654 3634
3655 3635
3656 3636
3637
3638
3639
3640
3641
3642
3643
3644
3645if 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.
3647set dummy ${ac_tool_prefix}ar; ac_word=$2
3648echo "$as_me:$LINENO: checking for $ac_word" >&5
3649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650if test "${ac_cv_prog_AR+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652else
3653 if test -n "$AR"; then
3654 ac_cv_prog_AR="$AR" # Let the user override the test.
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
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
3667done
3668done
3669
3670fi
3671fi
3672AR=$ac_cv_prog_AR
3673if test -n "$AR"; then
3674 echo "$as_me:$LINENO: result: $AR" >&5
3675echo "${ECHO_T}$AR" >&6
3676else
3677 echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
3679fi
3680
3681fi
3682if 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.
3685set dummy ar; ac_word=$2
3686echo "$as_me:$LINENO: checking for $ac_word" >&5
3687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691 if test -n "$ac_ct_AR"; then
3692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
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
3705done
3706done
3707
3708 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3709fi
3710fi
3711ac_ct_AR=$ac_cv_prog_ac_ct_AR
3712if test -n "$ac_ct_AR"; then
3713 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3714echo "${ECHO_T}$ac_ct_AR" >&6
3715else
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
3718fi
3719
3720 AR=$ac_ct_AR
3721else
3722 AR="$ac_cv_prog_AR"
3723fi
3724
3725test -z "$AR" && AR=ar
3726test -z "$AR_FLAGS" && AR_FLAGS=cru
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738if 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.
3740set dummy ${ac_tool_prefix}strip; ac_word=$2
3741echo "$as_me:$LINENO: checking for $ac_word" >&5
3742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743if test "${ac_cv_prog_STRIP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745else
3746 if test -n "$STRIP"; then
3747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
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
3760done
3761done
3762
3763fi
3764fi
3765STRIP=$ac_cv_prog_STRIP
3766if test -n "$STRIP"; then
3767 echo "$as_me:$LINENO: result: $STRIP" >&5
3768echo "${ECHO_T}$STRIP" >&6
3769else
3770 echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
3772fi
3773
3774fi
3775if 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.
3778set dummy strip; ac_word=$2
3779echo "$as_me:$LINENO: checking for $ac_word" >&5
3780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 if test -n "$ac_ct_STRIP"; then
3785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3786else
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
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
3798done
3799done
3800
3801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3802fi
3803fi
3804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3805if test -n "$ac_ct_STRIP"; then
3806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3807echo "${ECHO_T}$ac_ct_STRIP" >&6
3808else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811fi
3812
3813 STRIP=$ac_ct_STRIP
3814else
3815 STRIP="$ac_cv_prog_STRIP"
3816fi
3817
3818test -z "$STRIP" && STRIP=:
3819
3820
3821
3822
3823
3824
3825if 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.
3827set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3828echo "$as_me:$LINENO: checking for $ac_word" >&5
3829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830if test "${ac_cv_prog_RANLIB+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833 if test -n "$RANLIB"; then
3834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
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
3847done
3848done
3849
3850fi
3851fi
3852RANLIB=$ac_cv_prog_RANLIB
3853if test -n "$RANLIB"; then
3854 echo "$as_me:$LINENO: result: $RANLIB" >&5
3855echo "${ECHO_T}$RANLIB" >&6
3856else
3857 echo "$as_me:$LINENO: result: no" >&5
3858echo "${ECHO_T}no" >&6
3859fi
3860
3861fi
3862if 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.
3865set dummy ranlib; ac_word=$2
3866echo "$as_me:$LINENO: checking for $ac_word" >&5
3867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 if test -n "$ac_ct_RANLIB"; then
3872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
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
3885done
3886done
3887
3888 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3889fi
3890fi
3891ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3892if test -n "$ac_ct_RANLIB"; then
3893 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3894echo "${ECHO_T}$ac_ct_RANLIB" >&6
3895else
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
3898fi
3899
3900 RANLIB=$ac_ct_RANLIB
3901else
3902 RANLIB="$ac_cv_prog_RANLIB"
3903fi
3904
3905test -z "$RANLIB" && RANLIB=:
3906
3907
3908
3909
3910
3911
3912# Determine commands to create old-style static archives.
3913old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3914old_postinstall_cmds='chmod 644 $oldlib'
3915old_postuninstall_cmds=
3916
3917if 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"
3927fi
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
3945echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3946echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3947if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3949else
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
4012fi
4013
4014if test -n $lt_cv_sys_max_cmd_len ; then
4015 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4016echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4017else
4018 echo "$as_me:$LINENO: result: none" >&5
4019echo "${ECHO_T}none" >&6
4020fi
4021
4022
4023
4024
4025
4026
4027
4028# Check for command to grab the raw symbol name followed by C symbol from nm.
4029echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4030echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4031if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
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.
4039symcode='[BCDEGRST]'
4040
4041# Regexp to match symbols that can be accessed directly from C.
4042sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4043
4044# Transform the above into a raw symbol and a C symbol.
4045symxfrm='\1 \2\3 \3'
4046
4047# Transform an extracted symbol line into a proper C declaration
4048lt_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
4051lt_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.
4054case $host_os in
4055aix*)
4056 symcode='[BCDT]'
4057 ;;
4058cygwin* | mingw* | pw32*)
4059 symcode='[ABCDGISTW]'
4060 ;;
4061hpux*) # 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 ;;
4068irix* | nonstopux*)
4069 symcode='[BCDEGRST]'
4070 ;;
4071osf*)
4072 symcode='[BCDEGQRST]'
4073 ;;
4074solaris* | sysv5*)
4075 symcode='[BDRT]'
4076 ;;
4077sysv4)
4078 symcode='[DFNSTU]'
4079 ;;
4080esac
4081
4082# Handle CRLF in mingw tool chain
4083opt_cr=
4084case $build_os in
4085mingw*)
4086 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4087 ;;
4088esac
4089
4090# If we're using GNU nm, then use its standard symbol codes.
4091case `$NM -V 2>&1` in
4092*GNU* | *'with BFD'*)
4093 symcode='[ABCDGIRSTW]' ;;
4094esac
4095
4096# Try without a prefix undercore, then with it.
4097for 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
4108extern "C" {
4109#endif
4110char nm_test_var;
4111void nm_test_func(){}
4112#ifdef __cplusplus
4113}
4114#endif
4115int 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
4142extern "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. */
4158const struct {
4159 const char *name;
4160 lt_ptr_t address;
4161}
4162lt_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
4210done
4211
4212fi
4213
4214if test -z "$lt_cv_sys_global_symbol_pipe"; then
4215 lt_cv_sys_global_symbol_to_cdecl=
4216fi
4217if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4218 echo "$as_me:$LINENO: result: failed" >&5
4219echo "${ECHO_T}failed" >&6
4220else
4221 echo "$as_me:$LINENO: result: ok" >&5
4222echo "${ECHO_T}ok" >&6
4223fi
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
3657# If no C compiler was specified, use CC. 4258# If no C compiler was specified, use CC.
3658LTCC=${LTCC-"$CC"} 4259LTCC=${LTCC-"$CC"}
3659 4260
3660# Allow CC to be a program name with arguments. 4261# Allow CC to be a program name with arguments.
3661compiler=$CC 4262compiler=$CC
3690 fi 4291 fi
3691 rm -rf conftest* 4292 rm -rf conftest*
3692 ;; 4293 ;;
3693*-*-irix6*) 4294*-*-irix6*)
3694 # Find out which ABI we are using. 4295 # Find out which ABI we are using.
3695 echo '#line 3695 "configure"' > conftest.$ac_ext 4296 echo '#line 4296 "configure"' > conftest.$ac_ext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5 4298 (eval $ac_compile) 2>&5
3698 ac_status=$? 4299 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; then 4301 (exit $ac_status); }; then
3810 grep -v '^ *+' conftest.er1 >conftest.err 4411 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1 4412 rm -f conftest.er1
3812 cat conftest.err >&5 4413 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } && 4415 (exit $ac_status); } &&
3815 { ac_try='test -z "$ac_c_werror_flag" 4416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5 4418 (eval $ac_try) 2>&5
3819 ac_status=$? 4419 ac_status=$?
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } && 4421 (exit $ac_status); }; } &&
3846 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4446 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3847 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3848 CFLAGS="$SAVE_CFLAGS" 4448 CFLAGS="$SAVE_CFLAGS"
3849 fi 4449 fi
3850 ;; 4450 ;;
3851
3852esac 4451esac
3853 4452
3854need_locks="$enable_libtool_lock" 4453need_locks="$enable_libtool_lock"
3855
3856 4454
3857ac_ext=c 4455ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS' 4456ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 grep -v '^ *+' conftest.er1 >conftest.err 4718 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1 4719 rm -f conftest.er1
4122 cat conftest.err >&5 4720 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } && 4722 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" 4723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 || test ! -s conftest.err'
4127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 (eval $ac_try) 2>&5 4725 (eval $ac_try) 2>&5
4129 ac_status=$? 4726 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); }; } && 4728 (exit $ac_status); }; } &&
4291 grep -v '^ *+' conftest.er1 >conftest.err 4888 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1 4889 rm -f conftest.er1
4293 cat conftest.err >&5 4890 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && 4892 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag" 4893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5 4895 (eval $ac_try) 2>&5
4300 ac_status=$? 4896 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } && 4898 (exit $ac_status); }; } &&
4329 4925
4330 4926
4331for ac_header in dlfcn.h 4927for ac_header in dlfcn.h
4332do 4928do
4333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4334if eval "test \"\${$as_ac_Header+set}\" = set"; then
4335 echo "$as_me:$LINENO: checking for $ac_header" >&5 4930echo "$as_me:$LINENO: checking for $ac_header" >&5
4336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4337if eval "test \"\${$as_ac_Header+set}\" = set"; then 4932if eval "test \"\${$as_ac_Header+set}\" = set"; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6 4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4339fi
4340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342else 4934else
4343 # Is the header compilable?
4344echo "$as_me:$LINENO: checking $ac_header usability" >&5
4345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4346cat >conftest.$ac_ext <<_ACEOF 4935 cat >conftest.$ac_ext <<_ACEOF
4347/* confdefs.h. */ 4936/* confdefs.h. */
4348_ACEOF 4937_ACEOF
4349cat confdefs.h >>conftest.$ac_ext 4938cat confdefs.h >>conftest.$ac_ext
4350cat >>conftest.$ac_ext <<_ACEOF 4939cat >>conftest.$ac_ext <<_ACEOF
4351/* end confdefs.h. */ 4940/* end confdefs.h. */
4352$ac_includes_default 4941$ac_includes_default
4942
4353#include <$ac_header> 4943#include <$ac_header>
4354_ACEOF 4944_ACEOF
4355rm -f conftest.$ac_objext 4945rm -f conftest.$ac_objext
4356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>conftest.er1 4947 (eval $ac_compile) 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err 4949 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1 4950 rm -f conftest.er1
4361 cat conftest.err >&5 4951 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && 4953 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_c_werror_flag" 4954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4365 || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5 4956 (eval $ac_try) 2>&5
4368 ac_status=$? 4957 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } && 4959 (exit $ac_status); }; } &&
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5 4962 (eval $ac_try) 2>&5
4374 ac_status=$? 4963 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then 4965 (exit $ac_status); }; }; then
4377 ac_header_compiler=yes 4966 eval "$as_ac_Header=yes"
4378else 4967else
4379 echo "$as_me: failed program was:" >&5 4968 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5 4969sed 's/^/| /' conftest.$ac_ext >&5
4381 4970
4382ac_header_compiler=no 4971eval "$as_ac_Header=no"
4383fi 4972fi
4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4386echo "${ECHO_T}$ac_header_compiler" >&6
4387
4388# Is the header present?
4389echo "$as_me:$LINENO: checking $ac_header presence" >&5
4390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4391cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
4397#include <$ac_header>
4398_ACEOF
4399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } >/dev/null; then
4407 if test -s conftest.err; then
4408 ac_cpp_err=$ac_c_preproc_warn_flag
4409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4410 else
4411 ac_cpp_err=
4412 fi
4413else
4414 ac_cpp_err=yes
4415fi
4416if test -z "$ac_cpp_err"; then
4417 ac_header_preproc=yes
4418else
4419 echo "$as_me: failed program was:" >&5
4420sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 ac_header_preproc=no
4423fi
4424rm -f conftest.err conftest.$ac_ext
4425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4426echo "${ECHO_T}$ac_header_preproc" >&6
4427
4428# So? What about this header?
4429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4430 yes:no: )
4431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4435 ac_header_preproc=yes
4436 ;;
4437 no:yes:* )
4438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4450 (
4451 cat <<\_ASBOX
4452## ----------------------------------------------------- ##
4453## Report this to crossfire-devel@listserv.real-time.com ##
4454## ----------------------------------------------------- ##
4455_ASBOX
4456 ) |
4457 sed "s/^/$as_me: WARNING: /" >&2
4458 ;;
4459esac
4460echo "$as_me:$LINENO: checking for $ac_header" >&5
4461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4462if eval "test \"\${$as_ac_Header+set}\" = set"; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465 eval "$as_ac_Header=\$ac_header_preproc"
4466fi 4974fi
4467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4469
4470fi
4471if test `eval echo '${'$as_ac_Header'}'` = yes; then 4977if test `eval echo '${'$as_ac_Header'}'` = yes; then
4472 cat >>confdefs.h <<_ACEOF 4978 cat >>confdefs.h <<_ACEOF
4473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4474_ACEOF 4980_ACEOF
4475 4981
4476fi 4982fi
4477 4983
4478done 4984done
4479 4985
4480ac_ext=cc 4986
4481ac_cpp='$CXXCPP $CPPFLAGS' 4987# This can be used to rebuild libtool when needed
4482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4988LIBTOOL_DEPS="$ltmain"
4483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4989
4484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4990# Always use our own libtool.
4485if test -n "$ac_tool_prefix"; then 4991LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4486 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4992
4487 do 4993# Set options
4488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4994enable_dlopen=no
4489set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4995
4490echo "$as_me:$LINENO: checking for $ac_word" >&5 4996enable_win32_dll=no
4491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4997
4998# Check whether --enable-shared or --disable-shared was given.
4492if test "${ac_cv_prog_CXX+set}" = set; then 4999if test "${enable_shared+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6 5000 enableval="$enable_shared"
4494else 5001 p=${PACKAGE-default}
4495 if test -n "$CXX"; then 5002 case $enableval in
4496 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5003 yes) enable_shared=yes ;;
4497else 5004 no) enable_shared=no ;;
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5005 *)
4499for as_dir in $PATH 5006 enable_shared=no
4500do 5007 # Look at the argument we got. We use all the common list separators.
4501 IFS=$as_save_IFS 5008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4502 test -z "$as_dir" && as_dir=. 5009 for pkg in $enableval; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do 5010 IFS="$lt_save_ifs"
4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5011 if test "X$pkg" = "X$p"; then
4505 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5012 enable_shared=yes
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
4511
4512fi 5013 fi
4513fi
4514CXX=$ac_cv_prog_CXX
4515if test -n "$CXX"; then
4516 echo "$as_me:$LINENO: result: $CXX" >&5
4517echo "${ECHO_T}$CXX" >&6
4518else
4519 echo "$as_me:$LINENO: result: no" >&5
4520echo "${ECHO_T}no" >&6
4521fi
4522
4523 test -n "$CXX" && break
4524 done
4525fi
4526if test -z "$CXX"; then
4527 ac_ct_CXX=$CXX
4528 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4529do
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531set dummy $ac_prog; ac_word=$2
4532echo "$as_me:$LINENO: checking for $ac_word" >&5
4533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 if test -n "$ac_ct_CXX"; then
4538 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_ac_ct_CXX="$ac_prog"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551done
4552done
4553
4554fi
4555fi
4556ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4557if test -n "$ac_ct_CXX"; then
4558 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4559echo "${ECHO_T}$ac_ct_CXX" >&6
4560else
4561 echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563fi
4564
4565 test -n "$ac_ct_CXX" && break
4566done
4567test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4568
4569 CXX=$ac_ct_CXX
4570fi
4571
4572
4573# Provide some information about the compiler.
4574echo "$as_me:$LINENO:" \
4575 "checking for C++ compiler version" >&5
4576ac_compiler=`set X $ac_compile; echo $2`
4577{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4578 (eval $ac_compiler --version </dev/null >&5) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }
4582{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4583 (eval $ac_compiler -v </dev/null >&5) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }
4587{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4588 (eval $ac_compiler -V </dev/null >&5) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }
4592
4593echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4594echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4595if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598 cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h. */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h. */
4604
4605int
4606main ()
4607{
4608#ifndef __GNUC__
4609 choke me
4610#endif
4611
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext
4617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_cxx_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_compiler_gnu=yes
4639else
4640 echo "$as_me: failed program was:" >&5
4641sed 's/^/| /' conftest.$ac_ext >&5
4642
4643ac_compiler_gnu=no
4644fi
4645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4647
4648fi
4649echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4650echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4651GXX=`test $ac_compiler_gnu = yes && echo yes`
4652ac_test_CXXFLAGS=${CXXFLAGS+set}
4653ac_save_CXXFLAGS=$CXXFLAGS
4654CXXFLAGS="-g"
4655echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4656echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4657if test "${ac_cv_prog_cxx_g+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 cat >conftest.$ac_ext <<_ACEOF
4661/* confdefs.h. */
4662_ACEOF
4663cat confdefs.h >>conftest.$ac_ext
4664cat >>conftest.$ac_ext <<_ACEOF
4665/* end confdefs.h. */
4666
4667int
4668main ()
4669{
4670
4671 ;
4672 return 0;
4673}
4674_ACEOF
4675rm -f conftest.$ac_objext
4676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>conftest.er1
4678 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -z "$ac_cxx_werror_flag"
4685 || test ! -s conftest.err'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 (eval $ac_try) 2>&5
4688 ac_status=$?
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 (eval $ac_try) 2>&5
4694 ac_status=$?
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_prog_cxx_g=yes
4698else
4699 echo "$as_me: failed program was:" >&5
4700sed 's/^/| /' conftest.$ac_ext >&5
4701
4702ac_cv_prog_cxx_g=no
4703fi
4704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4705fi
4706echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4707echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4708if test "$ac_test_CXXFLAGS" = set; then
4709 CXXFLAGS=$ac_save_CXXFLAGS
4710elif test $ac_cv_prog_cxx_g = yes; then
4711 if test "$GXX" = yes; then
4712 CXXFLAGS="-g -O2"
4713 else
4714 CXXFLAGS="-g"
4715 fi
4716else
4717 if test "$GXX" = yes; then
4718 CXXFLAGS="-O2"
4719 else
4720 CXXFLAGS=
4721 fi
4722fi
4723for ac_declaration in \
4724 '' \
4725 'extern "C" void std::exit (int) throw (); using std::exit;' \
4726 'extern "C" void std::exit (int); using std::exit;' \
4727 'extern "C" void exit (int) throw ();' \
4728 'extern "C" void exit (int);' \
4729 'void exit (int);'
4730do
4731 cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
4737$ac_declaration
4738#include <stdlib.h>
4739int
4740main ()
4741{
4742exit (42);
4743 ;
4744 return 0;
4745}
4746_ACEOF
4747rm -f conftest.$ac_objext
4748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4749 (eval $ac_compile) 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_cxx_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 :
4770else
4771 echo "$as_me: failed program was:" >&5
4772sed 's/^/| /' conftest.$ac_ext >&5
4773
4774continue
4775fi
4776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4777 cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h. */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h. */
4783$ac_declaration
4784int
4785main ()
4786{
4787exit (42);
4788 ;
4789 return 0;
4790}
4791_ACEOF
4792rm -f conftest.$ac_objext
4793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_cxx_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 break
4815else
4816 echo "$as_me: failed program was:" >&5
4817sed 's/^/| /' conftest.$ac_ext >&5
4818
4819fi
4820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821done
4822rm -f conftest*
4823if test -n "$ac_declaration"; then
4824 echo '#ifdef __cplusplus' >>confdefs.h
4825 echo $ac_declaration >>confdefs.h
4826 echo '#endif' >>confdefs.h
4827fi
4828
4829ac_ext=cc
4830ac_cpp='$CXXCPP $CPPFLAGS'
4831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4834
4835depcc="$CXX" am_compiler_list=
4836
4837echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4838echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4839if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4843 # We make a subdir and do the tests there. Otherwise we can end up
4844 # making bogus files that we don't know about and never remove. For
4845 # instance it was reported that on HP-UX the gcc test will end up
4846 # making a dummy file named `D' -- because `-MD' means `put the output
4847 # in D'.
4848 mkdir conftest.dir
4849 # Copy depcomp to subdir because otherwise we won't find it if we're
4850 # using a relative directory.
4851 cp "$am_depcomp" conftest.dir
4852 cd conftest.dir
4853 # We will build objects and dependencies in a subdirectory because
4854 # it helps to detect inapplicable dependency modes. For instance
4855 # both Tru64's cc and ICC support -MD to output dependencies as a
4856 # side effect of compilation, but ICC will put the dependencies in
4857 # the current directory while Tru64 will put them in the object
4858 # directory.
4859 mkdir sub
4860
4861 am_cv_CXX_dependencies_compiler_type=none
4862 if test "$am_compiler_list" = ""; then
4863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4864 fi
4865 for depmode in $am_compiler_list; do
4866 # Setup a source with many dependencies, because some compilers
4867 # like to wrap large dependency lists on column 80 (with \), and
4868 # we should not choose a depcomp mode which is confused by this.
4869 #
4870 # We need to recreate these files for each test, as the compiler may
4871 # overwrite some of them when testing with obscure command lines.
4872 # This happens at least with the AIX C compiler.
4873 : > sub/conftest.c
4874 for i in 1 2 3 4 5 6; do
4875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4876 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4877 # Solaris 8's {/usr,}/bin/sh.
4878 touch sub/conftst$i.h
4879 done 5014 done
4880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5015 IFS="$lt_save_ifs"
4881
4882 case $depmode in
4883 nosideeffect)
4884 # after this tag, mechanisms are not by side-effect, so they'll
4885 # only be used when explicitly requested
4886 if test "x$enable_dependency_tracking" = xyes; then
4887 continue
4888 else
4889 break
4890 fi
4891 ;; 5016 ;;
4892 none) break ;;
4893 esac 5017 esac
4894 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4895 # mode. It turns out that the SunPro C++ compiler does not properly
4896 # handle `-M -o', and we need to detect this.
4897 if depmode=$depmode \
4898 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4900 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4901 >/dev/null 2>conftest.err &&
4902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4903 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4905 # icc doesn't choke on unknown options, it will just issue warnings
4906 # or remarks (even with -Werror). So we grep stderr for any message
4907 # that says an option was ignored or not supported.
4908 # When given -MP, icc 7.0 and 7.1 complain thusly:
4909 # icc: Command line warning: ignoring option '-M'; no argument required
4910 # The diagnosis changed in icc 8.0:
4911 # icc: Command line remark: option '-MP' not supported
4912 if (grep 'ignoring option' conftest.err ||
4913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4914 am_cv_CXX_dependencies_compiler_type=$depmode
4915 break
4916 fi
4917 fi
4918 done
4919
4920 cd ..
4921 rm -rf conftest.dir
4922else
4923 am_cv_CXX_dependencies_compiler_type=none
4924fi
4925
4926fi
4927echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4928echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4929CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4930
4931
4932
4933if
4934 test "x$enable_dependency_tracking" != xno \
4935 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4936 am__fastdepCXX_TRUE=
4937 am__fastdepCXX_FALSE='#'
4938else
4939 am__fastdepCXX_TRUE='#'
4940 am__fastdepCXX_FALSE=
4941fi
4942
4943
4944ac_ext=cc
4945ac_cpp='$CXXCPP $CPPFLAGS'
4946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4950echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4951if test -z "$CXXCPP"; then
4952 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4953 echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955 # Double quotes because CXXCPP needs to be expanded
4956 for CXXCPP in "$CXX -E" "/lib/cpp"
4957 do
4958 ac_preproc_ok=false
4959for ac_cxx_preproc_warn_flag in '' yes
4960do
4961 # Use a header file that comes with gcc, so configuring glibc
4962 # with a fresh cross-compiler works.
4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4964 # <limits.h> exists even on freestanding compilers.
4965 # On the NeXT, cc -E runs the code through the compiler's parser,
4966 # not just through cpp. "Syntax error" is here to catch this case.
4967 cat >conftest.$ac_ext <<_ACEOF
4968/* confdefs.h. */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h. */
4973#ifdef __STDC__
4974# include <limits.h>
4975#else 5018else
4976# include <assert.h> 5019 enable_shared=yes
4977#endif
4978 Syntax error
4979_ACEOF
4980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4982 ac_status=$?
4983 grep -v '^ *+' conftest.er1 >conftest.err
4984 rm -f conftest.er1
4985 cat conftest.err >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev/null; then
4988 if test -s conftest.err; then
4989 ac_cpp_err=$ac_cxx_preproc_warn_flag
4990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4991 else
4992 ac_cpp_err=
4993 fi
4994else
4995 ac_cpp_err=yes
4996fi 5020fi;
4997if test -z "$ac_cpp_err"; then
4998 :
4999else
5000 echo "$as_me: failed program was:" >&5
5001sed 's/^/| /' conftest.$ac_ext >&5
5002 5021
5003 # Broken: fails on valid input.
5004continue
5005fi
5006rm -f conftest.err conftest.$ac_ext
5007 5022
5008 # OK, works on sane cases. Now check whether non-existent headers
5009 # can be detected and how.
5010 cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
5016#include <ac_nonexistent.h>
5017_ACEOF
5018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_cxx_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5029 else
5030 ac_cpp_err=
5031 fi
5032else
5033 ac_cpp_err=yes
5034fi
5035if test -z "$ac_cpp_err"; then
5036 # Broken: success on invalid input.
5037continue
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041 5023
5042 # Passes both tests.
5043ac_preproc_ok=:
5044break
5045fi
5046rm -f conftest.err conftest.$ac_ext
5047 5024
5048done
5049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050rm -f conftest.err conftest.$ac_ext
5051if $ac_preproc_ok; then
5052 break
5053fi
5054 5025
5055 done
5056 ac_cv_prog_CXXCPP=$CXXCPP
5057 5026
5058fi
5059 CXXCPP=$ac_cv_prog_CXXCPP
5060else
5061 ac_cv_prog_CXXCPP=$CXXCPP
5062fi
5063echo "$as_me:$LINENO: result: $CXXCPP" >&5
5064echo "${ECHO_T}$CXXCPP" >&6
5065ac_preproc_ok=false
5066for ac_cxx_preproc_warn_flag in '' yes
5067do
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080#ifdef __STDC__
5081# include <limits.h>
5082#else
5083# include <assert.h>
5084#endif
5085 Syntax error
5086_ACEOF
5087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev/null; then
5095 if test -s conftest.err; then
5096 ac_cpp_err=$ac_cxx_preproc_warn_flag
5097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5098 else
5099 ac_cpp_err=
5100 fi
5101else
5102 ac_cpp_err=yes
5103fi
5104if test -z "$ac_cpp_err"; then
5105 :
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109 5027
5110 # Broken: fails on valid input.
5111continue
5112fi
5113rm -f conftest.err conftest.$ac_ext
5114 5028
5115 # OK, works on sane cases. Now check whether non-existent headers 5029# Check whether --enable-static or --disable-static was given.
5116 # can be detected and how. 5030if test "${enable_static+set}" = set; then
5117 cat >conftest.$ac_ext <<_ACEOF 5031 enableval="$enable_static"
5118/* confdefs.h. */ 5032 p=${PACKAGE-default}
5119_ACEOF 5033 case $enableval in
5120cat confdefs.h >>conftest.$ac_ext 5034 yes) enable_static=yes ;;
5121cat >>conftest.$ac_ext <<_ACEOF 5035 no) enable_static=no ;;
5122/* end confdefs.h. */ 5036 *)
5123#include <ac_nonexistent.h> 5037 enable_static=no
5124_ACEOF 5038 # Look at the argument we got. We use all the common list separators.
5125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5040 for pkg in $enableval; do
5127 ac_status=$? 5041 IFS="$lt_save_ifs"
5128 grep -v '^ *+' conftest.er1 >conftest.err 5042 if test "X$pkg" = "X$p"; then
5129 rm -f conftest.er1 5043 enable_static=yes
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_cxx_preproc_warn_flag
5135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5136 else
5137 ac_cpp_err=
5138 fi
5139else
5140 ac_cpp_err=yes
5141fi
5142if test -z "$ac_cpp_err"; then
5143 # Broken: success on invalid input.
5144continue
5145else
5146 echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
5149 # Passes both tests.
5150ac_preproc_ok=:
5151break
5152fi
5153rm -f conftest.err conftest.$ac_ext
5154
5155done
5156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157rm -f conftest.err conftest.$ac_ext
5158if $ac_preproc_ok; then
5159 :
5160else
5161 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5162See \`config.log' for more details." >&5
5163echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5164See \`config.log' for more details." >&2;}
5165 { (exit 1); exit 1; }; }
5166fi
5167
5168ac_ext=cc
5169ac_cpp='$CXXCPP $CPPFLAGS'
5170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173
5174
5175ac_ext=f
5176ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5177ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5179if test -n "$ac_tool_prefix"; then
5180 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5181 do
5182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_F77+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 if test -n "$F77"; then
5190 ac_cv_prog_F77="$F77" # Let the user override the test.
5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
5205
5206fi
5207fi
5208F77=$ac_cv_prog_F77
5209if test -n "$F77"; then
5210 echo "$as_me:$LINENO: result: $F77" >&5
5211echo "${ECHO_T}$F77" >&6
5212else
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
5215fi
5216
5217 test -n "$F77" && break
5218 done
5219fi
5220if test -z "$F77"; then
5221 ac_ct_F77=$F77
5222 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5223do
5224 # Extract the first word of "$ac_prog", so it can be a program name with args.
5225set dummy $ac_prog; ac_word=$2
5226echo "$as_me:$LINENO: checking for $ac_word" >&5
5227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 if test -n "$ac_ct_F77"; then
5232 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5233else
5234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235for as_dir in $PATH
5236do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_ac_ct_F77="$ac_prog"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245done
5246done
5247
5248fi
5249fi
5250ac_ct_F77=$ac_cv_prog_ac_ct_F77
5251if test -n "$ac_ct_F77"; then
5252 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5253echo "${ECHO_T}$ac_ct_F77" >&6
5254else
5255 echo "$as_me:$LINENO: result: no" >&5
5256echo "${ECHO_T}no" >&6
5257fi
5258
5259 test -n "$ac_ct_F77" && break
5260done
5261
5262 F77=$ac_ct_F77
5263fi
5264
5265
5266# Provide some information about the compiler.
5267echo "$as_me:5267:" \
5268 "checking for Fortran 77 compiler version" >&5
5269ac_compiler=`set X $ac_compile; echo $2`
5270{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5271 (eval $ac_compiler --version </dev/null >&5) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }
5275{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5276 (eval $ac_compiler -v </dev/null >&5) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }
5280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5281 (eval $ac_compiler -V </dev/null >&5) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5285rm -f a.out
5286
5287# If we don't use `.F' as extension, the preprocessor is not run on the
5288# input file. (Note that this only needs to work for GNU compilers.)
5289ac_save_ext=$ac_ext
5290ac_ext=F
5291echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5292echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5293if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295else
5296 cat >conftest.$ac_ext <<_ACEOF
5297 program main
5298#ifndef __GNUC__
5299 choke me
5300#endif
5301
5302 end
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -z "$ac_f77_werror_flag"
5314 || test ! -s conftest.err'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; }; then
5326 ac_compiler_gnu=yes
5327else
5328 echo "$as_me: failed program was:" >&5
5329sed 's/^/| /' conftest.$ac_ext >&5
5330
5331ac_compiler_gnu=no
5332fi
5333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5335
5336fi
5337echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5338echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5339ac_ext=$ac_save_ext
5340ac_test_FFLAGS=${FFLAGS+set}
5341ac_save_FFLAGS=$FFLAGS
5342FFLAGS=
5343echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5344echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5345if test "${ac_cv_prog_f77_g+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348 FFLAGS=-g
5349cat >conftest.$ac_ext <<_ACEOF
5350 program main
5351
5352 end
5353_ACEOF
5354rm -f conftest.$ac_objext
5355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_f77_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_prog_f77_g=yes
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381ac_cv_prog_f77_g=no
5382fi
5383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5384
5385fi
5386echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5387echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5388if test "$ac_test_FFLAGS" = set; then
5389 FFLAGS=$ac_save_FFLAGS
5390elif test $ac_cv_prog_f77_g = yes; then
5391 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5392 FFLAGS="-g -O2"
5393 else
5394 FFLAGS="-g"
5395 fi
5396else
5397 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5398 FFLAGS="-O2"
5399 else
5400 FFLAGS=
5401 fi
5402fi
5403
5404G77=`test $ac_compiler_gnu = yes && echo yes`
5405ac_ext=c
5406ac_cpp='$CPP $CPPFLAGS'
5407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
5411
5412
5413# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5414
5415# find the maximum length of command line arguments
5416echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5417echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5418if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421 i=0
5422 teststring="ABCD"
5423
5424 case $build_os in
5425 msdosdjgpp*)
5426 # On DJGPP, this test can blow up pretty badly due to problems in libc
5427 # (any single argument exceeding 2000 bytes causes a buffer overrun
5428 # during glob expansion). Even if it were fixed, the result of this
5429 # check would be larger than it should be.
5430 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5431 ;;
5432
5433 gnu*)
5434 # Under GNU Hurd, this test is not required because there is
5435 # no limit to the length of command line arguments.
5436 # Libtool will interpret -1 as no limit whatsoever
5437 lt_cv_sys_max_cmd_len=-1;
5438 ;;
5439
5440 cygwin* | mingw*)
5441 # On Win9x/ME, this test blows up -- it succeeds, but takes
5442 # about 5 minutes as the teststring grows exponentially.
5443 # Worse, since 9x/ME are not pre-emptively multitasking,
5444 # you end up with a "frozen" computer, even though with patience
5445 # the test eventually succeeds (with a max line length of 256k).
5446 # Instead, let's just punt: use the minimum linelength reported by
5447 # all of the supported platforms: 8192 (on NT/2K/XP).
5448 lt_cv_sys_max_cmd_len=8192;
5449 ;;
5450
5451 amigaos*)
5452 # On AmigaOS with pdksh, this test takes hours, literally.
5453 # So we just punt and use a minimum line length of 8192.
5454 lt_cv_sys_max_cmd_len=8192;
5455 ;;
5456
5457 *)
5458 # If test is not a shell built-in, we'll probably end up computing a
5459 # maximum length that is only half of the actual maximum length, but
5460 # we can't tell.
5461 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5462 = "XX$teststring") >/dev/null 2>&1 &&
5463 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5464 lt_cv_sys_max_cmd_len=$new_result &&
5465 test $i != 17 # 1/2 MB should be enough
5466 do
5467 i=`expr $i + 1`
5468 teststring=$teststring$teststring
5469 done
5470 teststring=
5471 # Add a significant safety factor because C++ compilers can tack on massive
5472 # amounts of additional arguments before passing them to the linker.
5473 # It appears as though 1/2 is a usable value.
5474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5475 ;;
5476 esac
5477
5478fi
5479
5480if test -n $lt_cv_sys_max_cmd_len ; then
5481 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5482echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5483else
5484 echo "$as_me:$LINENO: result: none" >&5
5485echo "${ECHO_T}none" >&6
5486fi
5487
5488
5489
5490
5491# Check for command to grab the raw symbol name followed by C symbol from nm.
5492echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5493echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5494if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497
5498# These are sane defaults that work on at least a few old systems.
5499# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5500
5501# Character class describing NM global symbol codes.
5502symcode='[BCDEGRST]'
5503
5504# Regexp to match symbols that can be accessed directly from C.
5505sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5506
5507# Transform the above into a raw symbol and a C symbol.
5508symxfrm='\1 \2\3 \3'
5509
5510# Transform an extracted symbol line into a proper C declaration
5511lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5512
5513# Transform an extracted symbol line into symbol name and symbol address
5514lt_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'"
5515
5516# Define system-specific variables.
5517case $host_os in
5518aix*)
5519 symcode='[BCDT]'
5520 ;;
5521cygwin* | mingw* | pw32*)
5522 symcode='[ABCDGISTW]'
5523 ;;
5524hpux*) # Its linker distinguishes data from code symbols
5525 if test "$host_cpu" = ia64; then
5526 symcode='[ABCDEGRST]'
5527 fi
5528 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5529 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'"
5530 ;;
5531irix* | nonstopux*)
5532 symcode='[BCDEGRST]'
5533 ;;
5534osf*)
5535 symcode='[BCDEGQRST]'
5536 ;;
5537solaris* | sysv5*)
5538 symcode='[BDRT]'
5539 ;;
5540sysv4)
5541 symcode='[DFNSTU]'
5542 ;;
5543esac
5544
5545# Handle CRLF in mingw tool chain
5546opt_cr=
5547case $build_os in
5548mingw*)
5549 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5550 ;;
5551esac
5552
5553# If we're using GNU nm, then use its standard symbol codes.
5554case `$NM -V 2>&1` in
5555*GNU* | *'with BFD'*)
5556 symcode='[ABCDGIRSTW]' ;;
5557esac
5558
5559# Try without a prefix undercore, then with it.
5560for ac_symprfx in "" "_"; do
5561
5562 # Write the raw and C identifiers.
5563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5564
5565 # Check to see that the pipe works correctly.
5566 pipe_works=no
5567
5568 rm -f conftest*
5569 cat > conftest.$ac_ext <<EOF
5570#ifdef __cplusplus
5571extern "C" {
5572#endif
5573char nm_test_var;
5574void nm_test_func(){}
5575#ifdef __cplusplus
5576}
5577#endif
5578int main(){nm_test_var='a';nm_test_func();return(0);}
5579EOF
5580
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 # Now try to grab the symbols.
5587 nlist=conftest.nm
5588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && test -s "$nlist"; then
5593 # Try sorting and uniquifying the output.
5594 if sort "$nlist" | uniq > "$nlist"T; then
5595 mv -f "$nlist"T "$nlist"
5596 else
5597 rm -f "$nlist"T
5598 fi
5599
5600 # Make sure that we snagged all the symbols we need.
5601 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5602 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5603 cat <<EOF > conftest.$ac_ext
5604#ifdef __cplusplus
5605extern "C" {
5606#endif
5607
5608EOF
5609 # Now generate the symbol file.
5610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5611
5612 cat <<EOF >> conftest.$ac_ext
5613#if defined (__STDC__) && __STDC__
5614# define lt_ptr_t void *
5615#else
5616# define lt_ptr_t char *
5617# define const
5618#endif
5619
5620/* The mapping between symbol names and symbols. */
5621const struct {
5622 const char *name;
5623 lt_ptr_t address;
5624}
5625lt_preloaded_symbols[] =
5626{
5627EOF
5628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5629 cat <<\EOF >> conftest.$ac_ext
5630 {0, (lt_ptr_t) 0}
5631};
5632
5633#ifdef __cplusplus
5634}
5635#endif
5636EOF
5637 # Now try linking the two files.
5638 mv conftest.$ac_objext conftstm.$ac_objext
5639 lt_save_LIBS="$LIBS"
5640 lt_save_CFLAGS="$CFLAGS"
5641 LIBS="conftstm.$ac_objext"
5642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5648 pipe_works=yes
5649 fi
5650 LIBS="$lt_save_LIBS"
5651 CFLAGS="$lt_save_CFLAGS"
5652 else
5653 echo "cannot find nm_test_func in $nlist" >&5
5654 fi 5044 fi
5655 else 5045 done
5656 echo "cannot find nm_test_var in $nlist" >&5 5046 IFS="$lt_save_ifs"
5657 fi 5047 ;;
5658 else 5048 esac
5659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5660 fi
5661 else 5049else
5662 echo "$progname: failed program was:" >&5 5050 enable_static=yes
5663 cat conftest.$ac_ext >&5
5664 fi
5665 rm -f conftest* conftst*
5666
5667 # Do not use the global_symbol_pipe unless it works.
5668 if test "$pipe_works" = yes; then
5669 break
5670 else
5671 lt_cv_sys_global_symbol_pipe=
5672 fi
5673done
5674
5675fi 5051fi;
5676 5052
5677if test -z "$lt_cv_sys_global_symbol_pipe"; then 5053
5678 lt_cv_sys_global_symbol_to_cdecl= 5054
5055
5056
5057
5058
5059
5060
5061# Check whether --with-pic or --without-pic was given.
5062if test "${with_pic+set}" = set; then
5063 withval="$with_pic"
5064 pic_mode="$withval"
5065else
5066 pic_mode=default
5679fi 5067fi;
5680if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5068
5681 echo "$as_me:$LINENO: result: failed" >&5 5069test -z "$pic_mode" && pic_mode=default
5682echo "${ECHO_T}failed" >&6 5070
5071
5072
5073
5074
5075
5076
5077# Check whether --enable-fast-install or --disable-fast-install was given.
5078if 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
5683else 5097else
5684 echo "$as_me:$LINENO: result: ok" >&5 5098 enable_fast_install=yes
5685echo "${ECHO_T}ok" >&6 5099fi;
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116test -z "$LN_S" && LN_S="ln -s"
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131if test -n "${ZSH_VERSION+set}" ; then
5132 setopt NO_GLOB_SUBST
5686fi 5133fi
5687 5134
5688echo "$as_me:$LINENO: checking for objdir" >&5 5135echo "$as_me:$LINENO: checking for objdir" >&5
5689echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5136echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5690if test "${lt_cv_objdir+set}" = set; then 5137if test "${lt_cv_objdir+set}" = set; then
5701rmdir .libs 2>/dev/null 5148rmdir .libs 2>/dev/null
5702fi 5149fi
5703echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5150echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5704echo "${ECHO_T}$lt_cv_objdir" >&6 5151echo "${ECHO_T}$lt_cv_objdir" >&6
5705objdir=$lt_cv_objdir 5152objdir=$lt_cv_objdir
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5706 5168
5707 5169
5708 5170
5709 5171
5710 5172
5730 5192
5731# Sed substitution to delay expansion of an escaped shell variable in a 5193# Sed substitution to delay expansion of an escaped shell variable in a
5732# double_quote_subst'ed string. 5194# double_quote_subst'ed string.
5733delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5195delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5734 5196
5197# Sed substitution to delay expansion of an escaped single quote.
5198delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5199
5735# Sed substitution to avoid accidental globbing in evaled expressions 5200# Sed substitution to avoid accidental globbing in evaled expressions
5736no_glob_subst='s/\*/\\\*/g' 5201no_glob_subst='s/\*/\\\*/g'
5737 5202
5738# Constants: 5203# Constants:
5739rm="rm -f" 5204rm="rm -f"
5740 5205
5741# Global variables: 5206# Global variables:
5742default_ofile=libtool 5207default_ofile=libtool
5208ofile="$default_ofile"
5743can_build_shared=yes 5209can_build_shared=yes
5744 5210
5745# All known linkers require a `.a' archive for static linking (except M$VC, 5211# All known linkers require a `.a' archive for static linking (except M$VC,
5746# which needs '.lib'). 5212# which needs '.lib').
5747libext=a 5213libext=a
5748ltmain="$ac_aux_dir/ltmain.sh" 5214
5749ofile="$default_ofile"
5750with_gnu_ld="$lt_cv_prog_gnu_ld" 5215with_gnu_ld="$lt_cv_prog_gnu_ld"
5751
5752if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5754set dummy ${ac_tool_prefix}ar; ac_word=$2
5755echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757if test "${ac_cv_prog_AR+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 if test -n "$AR"; then
5761 ac_cv_prog_AR="$AR" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_AR="${ac_tool_prefix}ar"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775done
5776
5777fi
5778fi
5779AR=$ac_cv_prog_AR
5780if test -n "$AR"; then
5781 echo "$as_me:$LINENO: result: $AR" >&5
5782echo "${ECHO_T}$AR" >&6
5783else
5784 echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6
5786fi
5787
5788fi
5789if test -z "$ac_cv_prog_AR"; then
5790 ac_ct_AR=$AR
5791 # Extract the first word of "ar", so it can be a program name with args.
5792set dummy ar; ac_word=$2
5793echo "$as_me:$LINENO: checking for $ac_word" >&5
5794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5795if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798 if test -n "$ac_ct_AR"; then
5799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_ac_ct_AR="ar"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812done
5813done
5814
5815 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5816fi
5817fi
5818ac_ct_AR=$ac_cv_prog_ac_ct_AR
5819if test -n "$ac_ct_AR"; then
5820 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5821echo "${ECHO_T}$ac_ct_AR" >&6
5822else
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825fi
5826
5827 AR=$ac_ct_AR
5828else
5829 AR="$ac_cv_prog_AR"
5830fi
5831
5832if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5835echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837if test "${ac_cv_prog_RANLIB+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 if test -n "$RANLIB"; then
5841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855done
5856
5857fi
5858fi
5859RANLIB=$ac_cv_prog_RANLIB
5860if test -n "$RANLIB"; then
5861 echo "$as_me:$LINENO: result: $RANLIB" >&5
5862echo "${ECHO_T}$RANLIB" >&6
5863else
5864 echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
5866fi
5867
5868fi
5869if test -z "$ac_cv_prog_RANLIB"; then
5870 ac_ct_RANLIB=$RANLIB
5871 # Extract the first word of "ranlib", so it can be a program name with args.
5872set dummy ranlib; ac_word=$2
5873echo "$as_me:$LINENO: checking for $ac_word" >&5
5874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878 if test -n "$ac_ct_RANLIB"; then
5879 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888 ac_cv_prog_ac_ct_RANLIB="ranlib"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893done
5894
5895 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5896fi
5897fi
5898ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5899if test -n "$ac_ct_RANLIB"; then
5900 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5901echo "${ECHO_T}$ac_ct_RANLIB" >&6
5902else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905fi
5906
5907 RANLIB=$ac_ct_RANLIB
5908else
5909 RANLIB="$ac_cv_prog_RANLIB"
5910fi
5911
5912if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5914set dummy ${ac_tool_prefix}strip; ac_word=$2
5915echo "$as_me:$LINENO: checking for $ac_word" >&5
5916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917if test "${ac_cv_prog_STRIP+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919else
5920 if test -n "$STRIP"; then
5921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5922else
5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934done
5935done
5936
5937fi
5938fi
5939STRIP=$ac_cv_prog_STRIP
5940if test -n "$STRIP"; then
5941 echo "$as_me:$LINENO: result: $STRIP" >&5
5942echo "${ECHO_T}$STRIP" >&6
5943else
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946fi
5947
5948fi
5949if test -z "$ac_cv_prog_STRIP"; then
5950 ac_ct_STRIP=$STRIP
5951 # Extract the first word of "strip", so it can be a program name with args.
5952set dummy strip; ac_word=$2
5953echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958 if test -n "$ac_ct_STRIP"; then
5959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_ac_ct_STRIP="strip"
5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2
5971 fi
5972done
5973done
5974
5975 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5976fi
5977fi
5978ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979if test -n "$ac_ct_STRIP"; then
5980 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5981echo "${ECHO_T}$ac_ct_STRIP" >&6
5982else
5983 echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
5985fi
5986
5987 STRIP=$ac_ct_STRIP
5988else
5989 STRIP="$ac_cv_prog_STRIP"
5990fi
5991
5992 5216
5993old_CC="$CC" 5217old_CC="$CC"
5994old_CFLAGS="$CFLAGS" 5218old_CFLAGS="$CFLAGS"
5995 5219
5996# Set sane defaults for various variables 5220# Set sane defaults for various variables
5997test -z "$AR" && AR=ar
5998test -z "$AR_FLAGS" && AR_FLAGS=cru
5999test -z "$AS" && AS=as
6000test -z "$CC" && CC=cc 5221test -z "$CC" && CC=cc
6001test -z "$LTCC" && LTCC=$CC 5222test -z "$LTCC" && LTCC=$CC
6002test -z "$DLLTOOL" && DLLTOOL=dlltool
6003test -z "$LD" && LD=ld 5223test -z "$LD" && LD=ld
6004test -z "$LN_S" && LN_S="ln -s" 5224test -z "$ac_objext" && ac_objext=o
5225
5226cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5227
5228# Only perform the check for file, if the check method requires it
6005test -z "$MAGIC_CMD" && MAGIC_CMD=file 5229test -z "$MAGIC_CMD" && MAGIC_CMD=file
6006test -z "$NM" && NM=nm
6007test -z "$SED" && SED=sed
6008test -z "$OBJDUMP" && OBJDUMP=objdump
6009test -z "$RANLIB" && RANLIB=:
6010test -z "$STRIP" && STRIP=:
6011test -z "$ac_objext" && ac_objext=o
6012
6013# Determine commands to create old-style static archives.
6014old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6015old_postinstall_cmds='chmod 644 $oldlib'
6016old_postuninstall_cmds=
6017
6018if test -n "$RANLIB"; then
6019 case $host_os in
6020 openbsd*)
6021 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6022 ;;
6023 *)
6024 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6025 ;;
6026 esac
6027 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6028fi
6029
6030# Only perform the check for file, if the check method requires it
6031case $deplibs_check_method in 5230case $deplibs_check_method in
6032file_magic*) 5231file_magic*)
6033 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5232 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6034 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5233 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6035echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5234echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6058 $EGREP "$file_magic_regex" > /dev/null; then 5257 $EGREP "$file_magic_regex" > /dev/null; then
6059 : 5258 :
6060 else 5259 else
6061 cat <<EOF 1>&2 5260 cat <<_LT_EOF 1>&2
6062 5261
6063*** Warning: the command libtool uses to detect shared libraries, 5262*** Warning: the command libtool uses to detect shared libraries,
6064*** $file_magic_cmd, produces output that libtool cannot recognize. 5263*** $file_magic_cmd, produces output that libtool cannot recognize.
6065*** The result is that libtool may fail to recognize shared libraries 5264*** The result is that libtool may fail to recognize shared libraries
6066*** as such. This will affect the creation of libtool libraries that 5265*** as such. This will affect the creation of libtool libraries that
6067*** depend on shared libraries, but programs linked with such libtool 5266*** depend on shared libraries, but programs linked with such libtool
6068*** libraries will work regardless of this problem. Nevertheless, you 5267*** libraries will work regardless of this problem. Nevertheless, you
6069*** may want to report the problem to your system manager and/or to 5268*** may want to report the problem to your system manager and/or to
6070*** bug-libtool@gnu.org 5269*** bug-libtool@gnu.org
6071 5270
6072EOF 5271_LT_EOF
6073 fi ;; 5272 fi ;;
6074 esac 5273 esac
6075 fi 5274 fi
6076 break 5275 break
6077 fi 5276 fi
6088echo "${ECHO_T}$MAGIC_CMD" >&6 5287echo "${ECHO_T}$MAGIC_CMD" >&6
6089else 5288else
6090 echo "$as_me:$LINENO: result: no" >&5 5289 echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6 5290echo "${ECHO_T}no" >&6
6092fi 5291fi
5292
5293
5294
5295
6093 5296
6094if test -z "$lt_cv_path_MAGIC_CMD"; then 5297if test -z "$lt_cv_path_MAGIC_CMD"; then
6095 if test -n "$ac_tool_prefix"; then 5298 if test -n "$ac_tool_prefix"; then
6096 echo "$as_me:$LINENO: checking for file" >&5 5299 echo "$as_me:$LINENO: checking for file" >&5
6097echo $ECHO_N "checking for file... $ECHO_C" >&6 5300echo $ECHO_N "checking for file... $ECHO_C" >&6
6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6120 $EGREP "$file_magic_regex" > /dev/null; then 5323 $EGREP "$file_magic_regex" > /dev/null; then
6121 : 5324 :
6122 else 5325 else
6123 cat <<EOF 1>&2 5326 cat <<_LT_EOF 1>&2
6124 5327
6125*** Warning: the command libtool uses to detect shared libraries, 5328*** Warning: the command libtool uses to detect shared libraries,
6126*** $file_magic_cmd, produces output that libtool cannot recognize. 5329*** $file_magic_cmd, produces output that libtool cannot recognize.
6127*** The result is that libtool may fail to recognize shared libraries 5330*** The result is that libtool may fail to recognize shared libraries
6128*** as such. This will affect the creation of libtool libraries that 5331*** as such. This will affect the creation of libtool libraries that
6129*** depend on shared libraries, but programs linked with such libtool 5332*** depend on shared libraries, but programs linked with such libtool
6130*** libraries will work regardless of this problem. Nevertheless, you 5333*** libraries will work regardless of this problem. Nevertheless, you
6131*** may want to report the problem to your system manager and/or to 5334*** may want to report the problem to your system manager and/or to
6132*** bug-libtool@gnu.org 5335*** bug-libtool@gnu.org
6133 5336
6134EOF 5337_LT_EOF
6135 fi ;; 5338 fi ;;
6136 esac 5339 esac
6137 fi 5340 fi
6138 break 5341 break
6139 fi 5342 fi
6151else 5354else
6152 echo "$as_me:$LINENO: result: no" >&5 5355 echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6 5356echo "${ECHO_T}no" >&6
6154fi 5357fi
6155 5358
5359
6156 else 5360 else
6157 MAGIC_CMD=: 5361 MAGIC_CMD=:
6158 fi 5362 fi
6159fi 5363fi
6160 5364
6161 fi 5365 fi
6162 ;; 5366 ;;
6163esac 5367esac
6164 5368
6165enable_dlopen=no
6166enable_win32_dll=no
6167
6168# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5369# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6169if test "${enable_libtool_lock+set}" = set; then 5370if test "${enable_libtool_lock+set}" = set; then
6170 enableval="$enable_libtool_lock" 5371 enableval="$enable_libtool_lock"
6171 5372
6172fi; 5373fi;
6173test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5374test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6174 5375
6175
6176# Check whether --with-pic or --without-pic was given.
6177if test "${with_pic+set}" = set; then
6178 withval="$with_pic"
6179 pic_mode="$withval"
6180else
6181 pic_mode=default
6182fi;
6183test -z "$pic_mode" && pic_mode=default
6184
6185# Use C for the default configuration in the libtool script 5376# Use C for the default configuration in the libtool script
6186tagname= 5377
6187lt_save_CC="$CC" 5378lt_save_CC="$CC"
6188ac_ext=c 5379ac_ext=c
6189ac_cpp='$CPP $CPPFLAGS' 5380ac_cpp='$CPP $CPPFLAGS'
6190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204 5395
6205# Code to be used in simple link tests 5396# Code to be used in simple link tests
6206lt_simple_link_test_code='int main(){return(0);}\n' 5397lt_simple_link_test_code='int main(){return(0);}\n'
6207 5398
6208 5399
5400
5401
5402
5403
5404
5405
6209# If no C compiler was specified, use CC. 5406# If no C compiler was specified, use CC.
6210LTCC=${LTCC-"$CC"} 5407LTCC=${LTCC-"$CC"}
6211 5408
6212# Allow CC to be a program name with arguments. 5409# Allow CC to be a program name with arguments.
6213compiler=$CC 5410compiler=$CC
6214 5411
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.
5414compiler_DEFAULT=$CC
6215 5415
6216# 5416#
6217# Check for any special shared library compilation flags. 5417# Check for any special shared library compilation flags.
6218# 5418#
6219lt_prog_cc_shlib= 5419lt_prog_cc_shlib=
6225 esac 5425 esac
6226fi 5426fi
6227if test -n "$lt_prog_cc_shlib"; then 5427if test -n "$lt_prog_cc_shlib"; then
6228 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5428 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6229echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5429echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6230 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5430 if echo "$old_CC $old_CFLAGS " | $GREP "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6231 else 5431 else
6232 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5432 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6233echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5433echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6234 lt_cv_prog_cc_can_build_shared=no 5434 lt_cv_prog_cc_can_build_shared=no
6235 fi 5435 fi
6236fi 5436fi
5437
5438
5439## CAVEAT EMPTOR:
5440## There is no encapsulation within the following macros, do not change
5441## the running order or otherwise move them around unless you know exactly
5442## what you are doing...
5443if test -n "$compiler"; then
5444
5445lt_prog_compiler_no_builtin_flag=
5446
5447if test "$GCC" = yes; then
5448 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5449
5450 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5451echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5452if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
5454else
5455 lt_cv_prog_compiler_rtti_exceptions=no
5456 ac_outfile=conftest.$ac_objext
5457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5458 lt_compiler_flag="-fno-rtti -fno-exceptions"
5459 # Insert the option either (1) after the last *FLAGS variable, or
5460 # (2) before a word containing "conftest.", or (3) at the end.
5461 # Note that $ac_compile itself does not contain backslashes and begins
5462 # with a dollar sign (not a hyphen), so the echo should work correctly.
5463 # The option is referenced via a variable to avoid confusing sed.
5464 lt_compile=`echo "$ac_compile" | $SED \
5465 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5467 -e 's:$: $lt_compiler_flag:'`
5468 (eval echo "\"\$as_me:5468: $lt_compile\"" >&5)
5469 (eval "$lt_compile" 2>conftest.err)
5470 ac_status=$?
5471 cat conftest.err >&5
5472 echo "$as_me:5472: \$? = $ac_status" >&5
5473 if (exit $ac_status) && test -s "$ac_outfile"; then
5474 # The compiler can only warn and ignore the option if not recognized
5475 # So say no if there are warnings
5476 if test ! -s conftest.err; then
5477 lt_cv_prog_compiler_rtti_exceptions=yes
5478 fi
5479 fi
5480 $rm conftest*
5481
5482fi
5483echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5484echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5485
5486if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5488else
5489 :
5490fi
5491
5492fi
5493
5494
5495
5496
5497
5498
5499 lt_prog_compiler_wl=
5500lt_prog_compiler_pic=
5501lt_prog_compiler_static=
5502
5503echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5504echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5505
5506 if test "$GCC" = yes; then
5507 lt_prog_compiler_wl='-Wl,'
5508 lt_prog_compiler_static='-static'
5509
5510 case $host_os in
5511 aix*)
5512 # All AIX code is PIC.
5513 if test "$host_cpu" = ia64; then
5514 # AIX 5 now supports IA64 processor
5515 lt_prog_compiler_static='-Bstatic'
5516 fi
5517 ;;
5518
5519 amigaos*)
5520 if test "$host_cpu" = m68k; then
5521 # FIXME: we need at least 68020 code to build shared libraries, but
5522 # adding the `-m68020' flag to GCC prevents building anything better,
5523 # like `-m68040'.
5524 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5525 fi
5526 ;;
5527
5528 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5529 # PIC is the default for these OSes.
5530 ;;
5531
5532 mingw* | pw32* | os2*)
5533 # This hack is so that the source file can tell whether it is being
5534 # built for inclusion in a dll (and should export symbols for example).
5535 lt_prog_compiler_pic='-DDLL_EXPORT'
5536 ;;
5537
5538 darwin* | rhapsody*)
5539 # PIC is the default on this platform
5540 # Common symbols not allowed in MH_DYLIB files
5541 lt_prog_compiler_pic='-fno-common'
5542 ;;
5543
5544 msdosdjgpp*)
5545 # Just because we use GCC doesn't mean we suddenly get shared libraries
5546 # on systems that don't support them.
5547 lt_prog_compiler_can_build_shared=no
5548 enable_shared=no
5549 ;;
5550
5551 sysv4*MP*)
5552 if test -d /usr/nec; then
5553 lt_prog_compiler_pic=-Kconform_pic
5554 fi
5555 ;;
5556
5557 hpux*)
5558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5559 # not for PA HP-UX.
5560 case "$host_cpu" in
5561 hppa*64*|ia64*)
5562 # +Z the default
5563 ;;
5564 *)
5565 lt_prog_compiler_pic='-fPIC'
5566 ;;
5567 esac
5568 ;;
5569
5570 *)
5571 lt_prog_compiler_pic='-fPIC'
5572 ;;
5573 esac
5574 else
5575 # PORTME Check for flag to pass linker flags through the system compiler.
5576 case $host_os in
5577 aix*)
5578 lt_prog_compiler_wl='-Wl,'
5579 if test "$host_cpu" = ia64; then
5580 # AIX 5 now supports IA64 processor
5581 lt_prog_compiler_static='-Bstatic'
5582 else
5583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5584 fi
5585 ;;
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
5597 mingw* | pw32* | os2*)
5598 # 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).
5600 lt_prog_compiler_pic='-DDLL_EXPORT'
5601 ;;
5602
5603 hpux9* | hpux10* | hpux11*)
5604 lt_prog_compiler_wl='-Wl,'
5605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5606 # not for PA HP-UX.
5607 case "$host_cpu" in
5608 hppa*64*|ia64*)
5609 # +Z the default
5610 ;;
5611 *)
5612 lt_prog_compiler_pic='+Z'
5613 ;;
5614 esac
5615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5616 lt_prog_compiler_static='${wl}-a ${wl}archive'
5617 ;;
5618
5619 irix5* | irix6* | nonstopux*)
5620 lt_prog_compiler_wl='-Wl,'
5621 # PIC (with -KPIC) is the default.
5622 lt_prog_compiler_static='-non_shared'
5623 ;;
5624
5625 newsos6)
5626 lt_prog_compiler_pic='-KPIC'
5627 lt_prog_compiler_static='-Bstatic'
5628 ;;
5629
5630 linux*)
5631 case $CC in
5632 icc* | ecc*)
5633 lt_prog_compiler_wl='-Wl,'
5634 lt_prog_compiler_pic='-KPIC'
5635 lt_prog_compiler_static='-static'
5636 ;;
5637 ccc*)
5638 lt_prog_compiler_wl='-Wl,'
5639 # All Alpha code is PIC.
5640 lt_prog_compiler_static='-non_shared'
5641 ;;
5642 esac
5643 ;;
5644
5645 osf3* | osf4* | osf5*)
5646 lt_prog_compiler_wl='-Wl,'
5647 # All OSF/1 code is PIC.
5648 lt_prog_compiler_static='-non_shared'
5649 ;;
5650
5651 sco3.2v5*)
5652 lt_prog_compiler_pic='-Kpic'
5653 lt_prog_compiler_static='-dn'
5654 ;;
5655
5656 solaris*)
5657 lt_prog_compiler_wl='-Wl,'
5658 lt_prog_compiler_pic='-KPIC'
5659 lt_prog_compiler_static='-Bstatic'
5660 ;;
5661
5662 sunos4*)
5663 lt_prog_compiler_wl='-Qoption ld '
5664 lt_prog_compiler_pic='-PIC'
5665 lt_prog_compiler_static='-Bstatic'
5666 ;;
5667
5668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5669 lt_prog_compiler_wl='-Wl,'
5670 lt_prog_compiler_pic='-KPIC'
5671 lt_prog_compiler_static='-Bstatic'
5672 ;;
5673
5674 sysv4*MP*)
5675 if test -d /usr/nec ;then
5676 lt_prog_compiler_pic='-Kconform_pic'
5677 lt_prog_compiler_static='-Bstatic'
5678 fi
5679 ;;
5680
5681 uts4*)
5682 lt_prog_compiler_pic='-pic'
5683 lt_prog_compiler_static='-Bstatic'
5684 ;;
5685
5686 *)
5687 lt_prog_compiler_can_build_shared=no
5688 ;;
5689 esac
5690 fi
5691
5692case "$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 ;;
5700esac
5701echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5702echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5703
5704
5705
5706
5707
5708
5709#
5710# Check to make sure the PIC flag actually works.
5711#
5712if test -n "$lt_prog_compiler_pic"; then
5713 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5714echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5715if test "${lt_prog_compiler_pic_works+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718 lt_prog_compiler_pic_works=no
5719 ac_outfile=conftest.$ac_objext
5720 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5721 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5722 # Insert the option either (1) after the last *FLAGS variable, or
5723 # (2) before a word containing "conftest.", or (3) at the end.
5724 # Note that $ac_compile itself does not contain backslashes and begins
5725 # with a dollar sign (not a hyphen), so the echo should work correctly.
5726 # The option is referenced via a variable to avoid confusing sed.
5727 lt_compile=`echo "$ac_compile" | $SED \
5728 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5730 -e 's:$: $lt_compiler_flag:'`
5731 (eval echo "\"\$as_me:5731: $lt_compile\"" >&5)
5732 (eval "$lt_compile" 2>conftest.err)
5733 ac_status=$?
5734 cat conftest.err >&5
5735 echo "$as_me:5735: \$? = $ac_status" >&5
5736 if (exit $ac_status) && test -s "$ac_outfile"; then
5737 # The compiler can only warn and ignore the option if not recognized
5738 # So say no if there are warnings
5739 if test ! -s conftest.err; then
5740 lt_prog_compiler_pic_works=yes
5741 fi
5742 fi
5743 $rm conftest*
5744
5745fi
5746echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5747echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5748
5749if test x"$lt_prog_compiler_pic_works" = xyes; then
5750 case $lt_prog_compiler_pic in
5751 "" | " "*) ;;
5752 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5753 esac
5754else
5755 lt_prog_compiler_pic=
5756 lt_prog_compiler_can_build_shared=no
5757fi
5758
5759fi
5760
5761
5762
5763
6237 5764
6238 5765
6239# 5766#
6240# Check to make sure the static flag actually works. 5767# Check to make sure the static flag actually works.
6241# 5768#
6272fi 5799fi
6273 5800
6274 5801
6275 5802
6276 5803
6277lt_prog_compiler_no_builtin_flag=
6278 5804
6279if test "$GCC" = yes; then
6280 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6281 5805
6282 5806
6283echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6284echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6285if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288 lt_cv_prog_compiler_rtti_exceptions=no
6289 ac_outfile=conftest.$ac_objext
6290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6291 lt_compiler_flag="-fno-rtti -fno-exceptions"
6292 # Insert the option either (1) after the last *FLAGS variable, or
6293 # (2) before a word containing "conftest.", or (3) at the end.
6294 # Note that $ac_compile itself does not contain backslashes and begins
6295 # with a dollar sign (not a hyphen), so the echo should work correctly.
6296 # The option is referenced via a variable to avoid confusing sed.
6297 lt_compile=`echo "$ac_compile" | $SED \
6298 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6300 -e 's:$: $lt_compiler_flag:'`
6301 (eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
6302 (eval "$lt_compile" 2>conftest.err)
6303 ac_status=$?
6304 cat conftest.err >&5
6305 echo "$as_me:6305: \$? = $ac_status" >&5
6306 if (exit $ac_status) && test -s "$ac_outfile"; then
6307 # The compiler can only warn and ignore the option if not recognized
6308 # So say no if there are warnings
6309 if test ! -s conftest.err; then
6310 lt_cv_prog_compiler_rtti_exceptions=yes
6311 fi
6312 fi
6313 $rm conftest*
6314
6315fi
6316echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6317echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6318
6319if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6320 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6321else
6322 :
6323fi
6324
6325fi
6326
6327lt_prog_compiler_wl=
6328lt_prog_compiler_pic=
6329lt_prog_compiler_static=
6330
6331echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6332echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6333
6334 if test "$GCC" = yes; then
6335 lt_prog_compiler_wl='-Wl,'
6336 lt_prog_compiler_static='-static'
6337
6338 case $host_os in
6339 aix*)
6340 # All AIX code is PIC.
6341 if test "$host_cpu" = ia64; then
6342 # AIX 5 now supports IA64 processor
6343 lt_prog_compiler_static='-Bstatic'
6344 fi
6345 ;;
6346
6347 amigaos*)
6348 # FIXME: we need at least 68020 code to build shared libraries, but
6349 # adding the `-m68020' flag to GCC prevents building anything better,
6350 # like `-m68040'.
6351 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6352 ;;
6353
6354 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6355 # PIC is the default for these OSes.
6356 ;;
6357
6358 mingw* | pw32* | os2*)
6359 # This hack is so that the source file can tell whether it is being
6360 # built for inclusion in a dll (and should export symbols for example).
6361 lt_prog_compiler_pic='-DDLL_EXPORT'
6362 ;;
6363
6364 darwin* | rhapsody*)
6365 # PIC is the default on this platform
6366 # Common symbols not allowed in MH_DYLIB files
6367 lt_prog_compiler_pic='-fno-common'
6368 ;;
6369
6370 msdosdjgpp*)
6371 # Just because we use GCC doesn't mean we suddenly get shared libraries
6372 # on systems that don't support them.
6373 lt_prog_compiler_can_build_shared=no
6374 enable_shared=no
6375 ;;
6376
6377 sysv4*MP*)
6378 if test -d /usr/nec; then
6379 lt_prog_compiler_pic=-Kconform_pic
6380 fi
6381 ;;
6382
6383 hpux*)
6384 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6385 # not for PA HP-UX.
6386 case "$host_cpu" in
6387 hppa*64*|ia64*)
6388 # +Z the default
6389 ;;
6390 *)
6391 lt_prog_compiler_pic='-fPIC'
6392 ;;
6393 esac
6394 ;;
6395
6396 *)
6397 lt_prog_compiler_pic='-fPIC'
6398 ;;
6399 esac
6400 else
6401 # PORTME Check for flag to pass linker flags through the system compiler.
6402 case $host_os in
6403 aix*)
6404 lt_prog_compiler_wl='-Wl,'
6405 if test "$host_cpu" = ia64; then
6406 # AIX 5 now supports IA64 processor
6407 lt_prog_compiler_static='-Bstatic'
6408 else
6409 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6410 fi
6411 ;;
6412
6413 mingw* | pw32* | os2*)
6414 # This hack is so that the source file can tell whether it is being
6415 # built for inclusion in a dll (and should export symbols for example).
6416 lt_prog_compiler_pic='-DDLL_EXPORT'
6417 ;;
6418
6419 hpux9* | hpux10* | hpux11*)
6420 lt_prog_compiler_wl='-Wl,'
6421 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6422 # not for PA HP-UX.
6423 case "$host_cpu" in
6424 hppa*64*|ia64*)
6425 # +Z the default
6426 ;;
6427 *)
6428 lt_prog_compiler_pic='+Z'
6429 ;;
6430 esac
6431 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6432 lt_prog_compiler_static='${wl}-a ${wl}archive'
6433 ;;
6434
6435 irix5* | irix6* | nonstopux*)
6436 lt_prog_compiler_wl='-Wl,'
6437 # PIC (with -KPIC) is the default.
6438 lt_prog_compiler_static='-non_shared'
6439 ;;
6440
6441 newsos6)
6442 lt_prog_compiler_pic='-KPIC'
6443 lt_prog_compiler_static='-Bstatic'
6444 ;;
6445
6446 linux*)
6447 case $CC in
6448 icc* | ecc*)
6449 lt_prog_compiler_wl='-Wl,'
6450 lt_prog_compiler_pic='-KPIC'
6451 lt_prog_compiler_static='-static'
6452 ;;
6453 ccc*)
6454 lt_prog_compiler_wl='-Wl,'
6455 # All Alpha code is PIC.
6456 lt_prog_compiler_static='-non_shared'
6457 ;;
6458 esac
6459 ;;
6460
6461 osf3* | osf4* | osf5*)
6462 lt_prog_compiler_wl='-Wl,'
6463 # All OSF/1 code is PIC.
6464 lt_prog_compiler_static='-non_shared'
6465 ;;
6466
6467 sco3.2v5*)
6468 lt_prog_compiler_pic='-Kpic'
6469 lt_prog_compiler_static='-dn'
6470 ;;
6471
6472 solaris*)
6473 lt_prog_compiler_wl='-Wl,'
6474 lt_prog_compiler_pic='-KPIC'
6475 lt_prog_compiler_static='-Bstatic'
6476 ;;
6477
6478 sunos4*)
6479 lt_prog_compiler_wl='-Qoption ld '
6480 lt_prog_compiler_pic='-PIC'
6481 lt_prog_compiler_static='-Bstatic'
6482 ;;
6483
6484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6485 lt_prog_compiler_wl='-Wl,'
6486 lt_prog_compiler_pic='-KPIC'
6487 lt_prog_compiler_static='-Bstatic'
6488 ;;
6489
6490 sysv4*MP*)
6491 if test -d /usr/nec ;then
6492 lt_prog_compiler_pic='-Kconform_pic'
6493 lt_prog_compiler_static='-Bstatic'
6494 fi
6495 ;;
6496
6497 uts4*)
6498 lt_prog_compiler_pic='-pic'
6499 lt_prog_compiler_static='-Bstatic'
6500 ;;
6501
6502 *)
6503 lt_prog_compiler_can_build_shared=no
6504 ;;
6505 esac
6506 fi
6507
6508echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6509echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6510
6511#
6512# Check to make sure the PIC flag actually works.
6513#
6514if test -n "$lt_prog_compiler_pic"; then
6515
6516echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6517echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6518if test "${lt_prog_compiler_pic_works+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521 lt_prog_compiler_pic_works=no
6522 ac_outfile=conftest.$ac_objext
6523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6524 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6525 # Insert the option either (1) after the last *FLAGS variable, or
6526 # (2) before a word containing "conftest.", or (3) at the end.
6527 # Note that $ac_compile itself does not contain backslashes and begins
6528 # with a dollar sign (not a hyphen), so the echo should work correctly.
6529 # The option is referenced via a variable to avoid confusing sed.
6530 lt_compile=`echo "$ac_compile" | $SED \
6531 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6533 -e 's:$: $lt_compiler_flag:'`
6534 (eval echo "\"\$as_me:6534: $lt_compile\"" >&5)
6535 (eval "$lt_compile" 2>conftest.err)
6536 ac_status=$?
6537 cat conftest.err >&5
6538 echo "$as_me:6538: \$? = $ac_status" >&5
6539 if (exit $ac_status) && test -s "$ac_outfile"; then
6540 # The compiler can only warn and ignore the option if not recognized
6541 # So say no if there are warnings
6542 if test ! -s conftest.err; then
6543 lt_prog_compiler_pic_works=yes
6544 fi
6545 fi
6546 $rm conftest*
6547
6548fi
6549echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6550echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6551
6552if test x"$lt_prog_compiler_pic_works" = xyes; then
6553 case $lt_prog_compiler_pic in
6554 "" | " "*) ;;
6555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6556 esac
6557else
6558 lt_prog_compiler_pic=
6559 lt_prog_compiler_can_build_shared=no
6560fi
6561
6562fi
6563case "$host_os" in
6564 # For platforms which do not support PIC, -DPIC is meaningless:
6565 *djgpp*)
6566 lt_prog_compiler_pic=
6567 ;;
6568 *)
6569 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6570 ;;
6571esac
6572
6573echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5807 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6574echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5808echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6575if test "${lt_cv_prog_compiler_c_o+set}" = set; then 5809if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6 5810 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else 5811else
6578 lt_cv_prog_compiler_c_o=no 5812 lt_cv_prog_compiler_c_o=no
6589 # with a dollar sign (not a hyphen), so the echo should work correctly. 5823 # with a dollar sign (not a hyphen), so the echo should work correctly.
6590 lt_compile=`echo "$ac_compile" | $SED \ 5824 lt_compile=`echo "$ac_compile" | $SED \
6591 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5825 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6593 -e 's:$: $lt_compiler_flag:'` 5827 -e 's:$: $lt_compiler_flag:'`
6594 (eval echo "\"\$as_me:6594: $lt_compile\"" >&5) 5828 (eval echo "\"\$as_me:5828: $lt_compile\"" >&5)
6595 (eval "$lt_compile" 2>out/conftest.err) 5829 (eval "$lt_compile" 2>out/conftest.err)
6596 ac_status=$? 5830 ac_status=$?
6597 cat out/conftest.err >&5 5831 cat out/conftest.err >&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5 5832 echo "$as_me:5832: \$? = $ac_status" >&5
6599 if (exit $ac_status) && test -s out/conftest2.$ac_objext 5833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6600 then 5834 then
6601 # The compiler can only warn and ignore the option if not recognized 5835 # The compiler can only warn and ignore the option if not recognized
6602 # So say no if there are warnings 5836 # So say no if there are warnings
6603 if test ! -s out/conftest.err; then 5837 if test ! -s out/conftest.err; then
6615 $rm conftest* 5849 $rm conftest*
6616 5850
6617fi 5851fi
6618echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 5852echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6619echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 5853echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5854
5855
5856
5857
5858
6620 5859
6621 5860
6622hard_links="nottested" 5861hard_links="nottested"
6623if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 5862if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6624 # do not overwrite the value of need_locks provided by the user 5863 # do not overwrite the value of need_locks provided by the user
6639 fi 5878 fi
6640else 5879else
6641 need_locks=no 5880 need_locks=no
6642fi 5881fi
6643 5882
5883
5884
5885
5886
5887
6644echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 5888 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6645echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 5889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6646 5890
6647 runpath_var= 5891 runpath_var=
6648 allow_undefined_flag= 5892 allow_undefined_flag=
6649 enable_shared_with_static_runtimes=no 5893 always_export_symbols=no
6650 archive_cmds= 5894 archive_cmds=
6651 archive_expsym_cmds= 5895 archive_expsym_cmds=
6652 old_archive_From_new_cmds= 5896 enable_shared_with_static_runtimes=no
6653 old_archive_from_expsyms_cmds=
6654 export_dynamic_flag_spec= 5897 export_dynamic_flag_spec=
6655 whole_archive_flag_spec= 5898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6656 thread_safe_flag_spec= 5899 hardcode_automatic=no
5900 hardcode_direct=no
6657 hardcode_libdir_flag_spec= 5901 hardcode_libdir_flag_spec=
6658 hardcode_libdir_flag_spec_ld= 5902 hardcode_libdir_flag_spec_ld=
6659 hardcode_libdir_separator= 5903 hardcode_libdir_separator=
6660 hardcode_direct=no
6661 hardcode_minus_L=no 5904 hardcode_minus_L=no
6662 hardcode_shlibpath_var=unsupported 5905 hardcode_shlibpath_var=unsupported
5906 inherit_rpath=no
6663 link_all_deplibs=unknown 5907 link_all_deplibs=unknown
6664 hardcode_automatic=no
6665 module_cmds= 5908 module_cmds=
6666 module_expsym_cmds= 5909 module_expsym_cmds=
6667 always_export_symbols=no 5910 old_archive_from_new_cmds=
6668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5911 old_archive_from_expsyms_cmds=
5912 thread_safe_flag_spec=
5913 whole_archive_flag_spec=
6669 # include_expsyms should be a list of space-separated symbols to be *always* 5914 # include_expsyms should be a list of space-separated symbols to be *always*
6670 # included in the symbol list 5915 # included in the symbol list
6671 include_expsyms= 5916 include_expsyms=
6672 # exclude_expsyms can be an extended regexp of symbols to exclude 5917 # exclude_expsyms can be an extended regexp of symbols to exclude
6673 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6704 case $host_os in 5949 case $host_os in
6705 aix3* | aix4* | aix5*) 5950 aix3* | aix4* | aix5*)
6706 # On AIX/PPC, the GNU linker is very broken 5951 # On AIX/PPC, the GNU linker is very broken
6707 if test "$host_cpu" != ia64; then 5952 if test "$host_cpu" != ia64; then
6708 ld_shlibs=no 5953 ld_shlibs=no
6709 cat <<EOF 1>&2 5954 cat <<_LT_EOF 1>&2
6710 5955
6711*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5956*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6712*** to be unable to reliably create shared libraries on AIX. 5957*** to be unable to reliably create shared libraries on AIX.
6713*** Therefore, libtool is disabling shared libraries support. If you 5958*** Therefore, libtool is disabling shared libraries support. If you
6714*** really care for shared libraries, you may want to modify your PATH 5959*** really care for shared libraries, you may want to modify your PATH
6715*** so that a non-GNU linker is found, and then restart. 5960*** so that a non-GNU linker is found, and then restart.
6716 5961
6717EOF 5962_LT_EOF
6718 fi 5963 fi
6719 ;; 5964 ;;
6720 5965
6721 amigaos*) 5966 amigaos*)
5967 if test "$host_cpu" = m68k; then
6722 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)' 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)'
6723 hardcode_libdir_flag_spec='-L$libdir' 5969 hardcode_libdir_flag_spec='-L$libdir'
6724 hardcode_minus_L=yes 5970 hardcode_minus_L=yes
5971 fi
6725 5972
6726 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5973 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6727 # that the semantics of dynamic libraries on AmigaOS, at least up 5974 # that the semantics of dynamic libraries on AmigaOS, at least up
6728 # to version 4, is to share data among multiple programs linked 5975 # to version 4, is to share data among multiple programs linked
6729 # with the same dynamic library. Since this doesn't match the 5976 # with the same dynamic library. Since this doesn't match the
6731 # them. 5978 # them.
6732 ld_shlibs=no 5979 ld_shlibs=no
6733 ;; 5980 ;;
6734 5981
6735 beos*) 5982 beos*)
6736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5983 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6737 allow_undefined_flag=unsupported 5984 allow_undefined_flag=unsupported
6738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6739 # support --undefined. This deserves some investigation. FIXME 5986 # support --undefined. This deserves some investigation. FIXME
6740 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5987 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6741 else 5988 else
6750 allow_undefined_flag=unsupported 5997 allow_undefined_flag=unsupported
6751 always_export_symbols=no 5998 always_export_symbols=no
6752 enable_shared_with_static_runtimes=yes 5999 enable_shared_with_static_runtimes=yes
6753 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6754 6001
6755 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6757 # If the export-symbols file already is a .def file (1st line 6004 # If the export-symbols file already is a .def file (1st line
6758 # is EXPORTS), use it as is; otherwise, prepend... 6005 # is EXPORTS), use it as is; otherwise, prepend...
6759 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6006 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6760 cp $export_symbols $output_objdir/$soname.def; 6007 cp $export_symbols $output_objdir/$soname.def;
6766 else 6013 else
6767 ld_shlibs=no 6014 ld_shlibs=no
6768 fi 6015 fi
6769 ;; 6016 ;;
6770 6017
6771 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6018 netbsd*)
6772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6773 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6020 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6774 wlarc= 6021 wlarc=
6775 else 6022 else
6776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -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'
6778 fi 6025 fi
6779 ;; 6026 ;;
6780 6027
6781 solaris* | sysv5*) 6028 solaris* | sysv5*)
6782 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6029 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6783 ld_shlibs=no 6030 ld_shlibs=no
6784 cat <<EOF 1>&2 6031 cat <<_LT_EOF 1>&2
6785 6032
6786*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6033*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6787*** create shared libraries on Solaris systems. Therefore, libtool 6034*** create shared libraries on Solaris systems. Therefore, libtool
6788*** is disabling shared libraries support. We urge you to upgrade GNU 6035*** is disabling shared libraries support. We urge you to upgrade GNU
6789*** binutils to release 2.9.1 or newer. Another option is to modify 6036*** binutils to release 2.9.1 or newer. Another option is to modify
6790*** your PATH or compiler configuration so that the native linker is 6037*** your PATH or compiler configuration so that the native linker is
6791*** used, and then restart. 6038*** used, and then restart.
6792 6039
6793EOF 6040_LT_EOF
6794 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6041 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -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'
6797 else 6044 else
6798 ld_shlibs=no 6045 ld_shlibs=no
6799 fi 6046 fi
6805 hardcode_direct=yes 6052 hardcode_direct=yes
6806 hardcode_shlibpath_var=no 6053 hardcode_shlibpath_var=no
6807 ;; 6054 ;;
6808 6055
6809 linux*) 6056 linux*)
6810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6057 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
6811 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812 archive_cmds="$tmp_archive_cmds"
6813 supports_anon_versioning=no
6814 case `$LD -v 2>/dev/null` in 6059 case `$LD -v 2>&1` in
6815 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6060 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6818 *\ 2.11.*) ;; # other 2.11 versions 6063 *\ 2.11.*) ;; # other 2.11 versions
6819 *) supports_anon_versioning=yes ;; 6064 *) supports_anon_versioning=yes ;;
6820 esac 6065 esac
6821 if test $supports_anon_versioning = yes; then 6066 if test "x$supports_anon_versioning" = xyes; then
6822 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 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'
6823cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6824$echo "local: *; };" >> $output_objdir/$libname.ver~
6825 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6826 else 6068 else
6827 archive_expsym_cmds="$tmp_archive_cmds" 6069 archive_expsym_cmds=$archive_cmds
6828 fi 6070 fi
6829 link_all_deplibs=no
6830 else 6071 else
6831 ld_shlibs=no 6072 ld_shlibs=no
6832 fi 6073 fi
6833 ;; 6074 ;;
6834 6075
6835 *) 6076 *)
6836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6077 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -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'
6839 else 6080 else
6840 ld_shlibs=no 6081 ld_shlibs=no
6841 fi 6082 fi
6845 if test "$ld_shlibs" = yes; then 6086 if test "$ld_shlibs" = yes; then
6846 runpath_var=LD_RUN_PATH 6087 runpath_var=LD_RUN_PATH
6847 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6088 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6848 export_dynamic_flag_spec='${wl}--export-dynamic' 6089 export_dynamic_flag_spec='${wl}--export-dynamic'
6849 # ancient GNU ld didn't support --whole-archive et. al. 6090 # ancient GNU ld didn't support --whole-archive et. al.
6850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6091 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6851 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6092 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6852 else 6093 else
6853 whole_archive_flag_spec= 6094 whole_archive_flag_spec=
6854 fi 6095 fi
6855 fi 6096 fi
6878 exp_sym_flag='-Bexport' 6119 exp_sym_flag='-Bexport'
6879 no_entry_flag="" 6120 no_entry_flag=""
6880 else 6121 else
6881 # If we're using GNU nm, then we don't want the "-C" option. 6122 # If we're using GNU nm, then we don't want the "-C" option.
6882 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6123 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6124 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6884 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' 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'
6885 else 6126 else
6886 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' 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'
6887 fi 6128 fi
6888 aix_use_runtimelinking=no 6129 aix_use_runtimelinking=no
6917 if test "$GCC" = yes; then 6158 if test "$GCC" = yes; then
6918 case $host_os in aix4.012|aix4.012.*) 6159 case $host_os in aix4.012|aix4.012.*)
6919 # We only want to do this on AIX 4.2 and lower, the check 6160 # We only want to do this on AIX 4.2 and lower, the check
6920 # below for broken collect2 doesn't work under 4.3+ 6161 # below for broken collect2 doesn't work under 4.3+
6921 collect2name=`${CC} -print-prog-name=collect2` 6162 collect2name=`${CC} -print-prog-name=collect2`
6922 if test -f "$collect2name" && \ 6163 if test -f "$collect2name" &&
6923 strings "$collect2name" | grep resolve_lib_name >/dev/null 6164 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6924 then 6165 then
6925 # We have reworked collect2 6166 # We have reworked collect2
6926 hardcode_direct=yes 6167 hardcode_direct=yes
6927 else 6168 else
6928 # We have old collect2 6169 # We have old collect2
6956 always_export_symbols=yes 6197 always_export_symbols=yes
6957 if test "$aix_use_runtimelinking" = yes; then 6198 if test "$aix_use_runtimelinking" = yes; then
6958 # Warning - without using the other runtime loading flags (-brtl), 6199 # Warning - without using the other runtime loading flags (-brtl),
6959 # -berok will link without error, but may produce a broken library. 6200 # -berok will link without error, but may produce a broken library.
6960 allow_undefined_flag='-berok' 6201 allow_undefined_flag='-berok'
6961 # Determine the default libpath from the value encoded in an empty executable. 6202 # Determine the default libpath from the value encoded in an
6203 # empty executable.
6962 cat >conftest.$ac_ext <<_ACEOF 6204 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */ 6205/* confdefs.h. */
6964_ACEOF 6206_ACEOF
6965cat confdefs.h >>conftest.$ac_ext 6207cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF 6208cat >>conftest.$ac_ext <<_ACEOF
6981 grep -v '^ *+' conftest.er1 >conftest.err 6223 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1 6224 rm -f conftest.er1
6983 cat conftest.err >&5 6225 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && 6227 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag" 6228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5 6230 (eval $ac_try) 2>&5
6990 ac_status=$? 6231 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } && 6233 (exit $ac_status); }; } &&
7011 conftest$ac_exeext conftest.$ac_ext 6252 conftest$ac_exeext conftest.$ac_ext
7012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7013 6254
7014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7015 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" 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"
7016 else 6257 else
7017 if test "$host_cpu" = ia64; then 6258 if test "$host_cpu" = ia64; then
7018 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7019 allow_undefined_flag="-z nodefs" 6260 allow_undefined_flag="-z nodefs"
7020 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" 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"
7021 else 6262 else
7022 # Determine the default libpath from the value encoded in an empty executable. 6263 # Determine the default libpath from the value encoded in an
6264 # empty executable.
7023 cat >conftest.$ac_ext <<_ACEOF 6265 cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */ 6266/* confdefs.h. */
7025_ACEOF 6267_ACEOF
7026cat confdefs.h >>conftest.$ac_ext 6268cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF 6269cat >>conftest.$ac_ext <<_ACEOF
7042 grep -v '^ *+' conftest.er1 >conftest.err 6284 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1 6285 rm -f conftest.er1
7044 cat conftest.err >&5 6286 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && 6288 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_c_werror_flag" 6289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5 6291 (eval $ac_try) 2>&5
7051 ac_status=$? 6292 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } && 6294 (exit $ac_status); }; } &&
7087 fi 6328 fi
7088 fi 6329 fi
7089 ;; 6330 ;;
7090 6331
7091 amigaos*) 6332 amigaos*)
6333 if test "$host_cpu" = m68k; then
7092 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)' 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)'
7093 hardcode_libdir_flag_spec='-L$libdir' 6335 hardcode_libdir_flag_spec='-L$libdir'
7094 hardcode_minus_L=yes 6336 hardcode_minus_L=yes
6337 fi
7095 # see comment about different semantics on the GNU ld section 6338 # see comment about different semantics on the GNU ld section
7096 ld_shlibs=no 6339 ld_shlibs=no
7097 ;; 6340 ;;
7098 6341
7099 bsdi4*) 6342 bsdi4*)
7112 # Tell ltmain to make .dll files, not .so files. 6355 # Tell ltmain to make .dll files, not .so files.
7113 shrext_cmds=".dll" 6356 shrext_cmds=".dll"
7114 # FIXME: Setting linknames here is a bad hack. 6357 # FIXME: Setting linknames here is a bad hack.
7115 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6358 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7116 # The linker will automatically build a .lib file if we build a DLL. 6359 # The linker will automatically build a .lib file if we build a DLL.
7117 old_archive_From_new_cmds='true' 6360 old_archive_from_new_cmds='true'
7118 # FIXME: Should let the user specify the lib program. 6361 # FIXME: Should let the user specify the lib program.
7119 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6362 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7120 fix_srcfile_path='`cygpath -w "$srcfile"`' 6363 fix_srcfile_path='`cygpath -w "$srcfile"`'
7121 enable_shared_with_static_runtimes=yes 6364 enable_shared_with_static_runtimes=yes
7122 ;; 6365 ;;
7123 6366
7124 darwin* | rhapsody*) 6367 darwin* | rhapsody*)
7125 if test "$GXX" = yes ; then 6368 case "$host_os" in
6369 rhapsody* | darwin1.[012])
6370 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6371 ;;
6372 *) # Darwin 1.3 on
6373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6374 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${Wl}suppress'
6375 else
6376 case ${MACOSX_DEPLOYMENT_TARGET} in
6377 10.[012])
6378 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6379 ;;
6380 10.*)
6381 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6382 ;;
6383 esac
6384 fi
6385 ;;
6386 esac
7126 archive_cmds_need_lc=no 6387 archive_cmds_need_lc=no
7127 case "$host_os" in
7128 rhapsody* | darwin1.[012])
7129 allow_undefined_flag='-undefined suppress'
7130 ;;
7131 *) # Darwin 1.3 on
7132 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7133 allow_undefined_flag='-flat_namespace -undefined suppress'
7134 else
7135 case ${MACOSX_DEPLOYMENT_TARGET} in
7136 10.[012])
7137 allow_undefined_flag='-flat_namespace -undefined suppress'
7138 ;;
7139 10.*)
7140 allow_undefined_flag='-undefined dynamic_lookup'
7141 ;;
7142 esac
7143 fi
7144 ;;
7145 esac
7146 lt_int_apple_cc_single_mod=no
7147 output_verbose_link_cmd='echo'
7148 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7149 lt_int_apple_cc_single_mod=yes
7150 fi
7151 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7152 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7153 else
7154 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'
7155 fi
7156 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7157 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7158 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7159 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}'
7160 else
7161 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}'
7162 fi
7163 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}'
7164 hardcode_direct=no 6388 hardcode_direct=no
7165 hardcode_automatic=yes 6389 hardcode_automatic=yes
7166 hardcode_shlibpath_var=unsupported 6390 hardcode_shlibpath_var=unsupported
7167 whole_archive_flag_spec='-all_load $convenience' 6391 whole_archive_flag_spec='-all_load $convenience'
7168 link_all_deplibs=yes 6392 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}'
7169 else 6400 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 *)
7170 ld_shlibs=no 6411 ld_shlibs=no
6412 ;;
6413 esac
7171 fi 6414 fi
7172 ;; 6415 ;;
7173
7174 dgux*) 6416 dgux*)
7175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7176 hardcode_libdir_flag_spec='-L$libdir' 6418 hardcode_libdir_flag_spec='-L$libdir'
7177 hardcode_shlibpath_var=no 6419 hardcode_shlibpath_var=no
7178 ;; 6420 ;;
7277 ;; 6519 ;;
7278 6520
7279 irix5* | irix6* | nonstopux*) 6521 irix5* | irix6* | nonstopux*)
7280 if test "$GCC" = yes; then 6522 if test "$GCC" = yes; then
7281 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' 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'
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'
7282 else 6525 else
7283 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' 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'
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'
7284 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6528 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7285 fi 6529 fi
7286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7287 hardcode_libdir_separator=: 6531 hardcode_libdir_separator=:
6532 inherit_rpath=yes
7288 link_all_deplibs=yes 6533 link_all_deplibs=yes
7289 ;; 6534 ;;
7290 6535
7291 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6536 netbsd*)
7292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7293 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7294 else 6539 else
7295 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6540 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7296 fi 6541 fi
7297 hardcode_libdir_flag_spec='-R$libdir' 6542 hardcode_libdir_flag_spec='-R$libdir'
7308 ;; 6553 ;;
7309 6554
7310 openbsd*) 6555 openbsd*)
7311 hardcode_direct=yes 6556 hardcode_direct=yes
7312 hardcode_shlibpath_var=no 6557 hardcode_shlibpath_var=no
7313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7316 export_dynamic_flag_spec='${wl}-E' 6561 export_dynamic_flag_spec='${wl}-E'
7317 else 6562 else
7318 case $host_os in 6563 case $host_os in
7331 os2*) 6576 os2*)
7332 hardcode_libdir_flag_spec='-L$libdir' 6577 hardcode_libdir_flag_spec='-L$libdir'
7333 hardcode_minus_L=yes 6578 hardcode_minus_L=yes
7334 allow_undefined_flag=unsupported 6579 allow_undefined_flag=unsupported
7335 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' 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'
7336 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6581 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7337 ;; 6582 ;;
7338 6583
7339 osf3*) 6584 osf3*)
7340 if test "$GCC" = yes; then 6585 if test "$GCC" = yes; then
7341 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7486 6731
7487 *) 6732 *)
7488 ld_shlibs=no 6733 ld_shlibs=no
7489 ;; 6734 ;;
7490 esac 6735 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
7491 fi 6744 fi
7492 6745
7493echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6746echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7494echo "${ECHO_T}$ld_shlibs" >&6 6747echo "${ECHO_T}$ld_shlibs" >&6
7495test "$ld_shlibs" = no && can_build_shared=no 6748test "$ld_shlibs" = no && can_build_shared=no
7496 6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
7497variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6764variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7498if test "$GCC" = yes; then 6765if test "$GCC" = yes; then
7499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7500fi 6767fi
6768
6769
6770
6771
6772
7501 6773
7502# 6774#
7503# Do we need to explicitly link libc? 6775# Do we need to explicitly link libc?
7504# 6776#
7505case "x$archive_cmds_need_lc" in 6777case "x$archive_cmds_need_lc" in
7536 verstring= 6808 verstring=
7537 output_objdir=. 6809 output_objdir=.
7538 libname=conftest 6810 libname=conftest
7539 lt_save_allow_undefined_flag=$allow_undefined_flag 6811 lt_save_allow_undefined_flag=$allow_undefined_flag
7540 allow_undefined_flag= 6812 allow_undefined_flag=
7541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 6813 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7542 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 6814 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7543 ac_status=$? 6815 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } 6817 (exit $ac_status); }
7546 then 6818 then
7547 archive_cmds_need_lc=no 6819 archive_cmds_need_lc=no
7559 esac 6831 esac
7560 fi 6832 fi
7561 ;; 6833 ;;
7562esac 6834esac
7563 6835
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
7564echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6968echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7565echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6969echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7566library_names_spec= 6970library_names_spec=
7567libname_spec='lib$name' 6971libname_spec='lib$name'
7568soname_spec= 6972soname_spec=
7575shlibpath_overrides_runpath=unknown 6979shlibpath_overrides_runpath=unknown
7576version_type=none 6980version_type=none
7577dynamic_linker="$host_os ld.so" 6981dynamic_linker="$host_os ld.so"
7578sys_lib_dlsearch_path_spec="/lib /usr/lib" 6982sys_lib_dlsearch_path_spec="/lib /usr/lib"
7579if test "$GCC" = yes; then 6983if test "$GCC" = yes; then
7580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 6984 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7581 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 6985 if echo "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
7582 # if the path contains ";" then we assume it to be the separator 6986 # if the path contains ";" then we assume it to be the separator
7583 # otherwise default to the standard path separator (i.e. ":") - it is 6987 # otherwise default to the standard path separator (i.e. ":") - it is
7584 # assumed that no part of a normal pathname contains ";" but that should 6988 # assumed that no part of a normal pathname contains ";" but that should
7585 # okay in the real world where ";" in dirpaths is itself problematic. 6989 # okay in the real world where ";" in dirpaths is itself problematic.
7586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 6990 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7624 # development snapshots of GCC prior to 3.0. 7028 # development snapshots of GCC prior to 3.0.
7625 case $host_os in 7029 case $host_os in
7626 aix4 | aix4.[01] | aix4.[01].*) 7030 aix4 | aix4.[01] | aix4.[01].*)
7627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7031 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7628 echo ' yes ' 7032 echo ' yes '
7629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7033 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7630 : 7034 :
7631 else 7035 else
7632 can_build_shared=no 7036 can_build_shared=no
7633 fi 7037 fi
7634 ;; 7038 ;;
7650 shlibpath_var=LIBPATH 7054 shlibpath_var=LIBPATH
7651 fi 7055 fi
7652 ;; 7056 ;;
7653 7057
7654amigaos*) 7058amigaos*)
7059 if test "$host_cpu" = m68k; then
7655 library_names_spec='$libname.ixlibrary $libname.a' 7060 library_names_spec='$libname.ixlibrary $libname.a'
7656 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7657 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' 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'
7063 else
7064 dynamic_linker=no
7065 fi
7658 ;; 7066 ;;
7659 7067
7660beos*) 7068beos*)
7661 library_names_spec='${libname}${shared_ext}' 7069 library_names_spec='${libname}${shared_ext}'
7662 dynamic_linker="$host_os ld.so" 7070 dynamic_linker="$host_os ld.so"
7704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7705 ;; 7113 ;;
7706 mingw*) 7114 mingw*)
7707 # MinGW DLLs use traditional 'lib' prefix 7115 # MinGW DLLs use traditional 'lib' prefix
7708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7117 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7118 if echo "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7711 # It is most probably a Windows format PATH printed by 7119 # It is most probably a Windows format PATH printed by
7712 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7713 # path with ; separators, and with drive letters. We can handle the 7121 # path with ; separators, and with drive letters. We can handle the
7714 # drive letters (cygwin fileutils understands them), so leave them, 7122 # drive letters (cygwin fileutils understands them), so leave them,
7715 # especially as we might pass files found there to a mingw objdump, 7123 # especially as we might pass files found there to a mingw objdump,
7745 shlibpath_overrides_runpath=yes 7153 shlibpath_overrides_runpath=yes
7746 shlibpath_var=DYLD_LIBRARY_PATH 7154 shlibpath_var=DYLD_LIBRARY_PATH
7747 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7155 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7156 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7749 if test "$GCC" = yes; then 7157 if test "$GCC" = yes; then
7750 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"` 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"`
7751 else 7159 else
7752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7160 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7753 fi 7161 fi
7754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7755 ;; 7163 ;;
7935 # people can always --disable-shared, the test was removed, and we 7343 # people can always --disable-shared, the test was removed, and we
7936 # assume the GNU/Linux dynamic linker is in use. 7344 # assume the GNU/Linux dynamic linker is in use.
7937 dynamic_linker='GNU/Linux ld.so' 7345 dynamic_linker='GNU/Linux ld.so'
7938 ;; 7346 ;;
7939 7347
7940netbsdelf*-gnu)
7941 version_type=linux
7942 need_lib_prefix=no
7943 need_version=no
7944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7945 soname_spec='${libname}${release}${shared_ext}$major'
7946 shlibpath_var=LD_LIBRARY_PATH
7947 shlibpath_overrides_runpath=no
7948 hardcode_into_libs=yes
7949 dynamic_linker='NetBSD ld.elf_so'
7950 ;;
7951
7952knetbsd*-gnu) 7348knetbsd*-gnu)
7953 version_type=linux 7349 version_type=linux
7954 need_lib_prefix=no 7350 need_lib_prefix=no
7955 need_version=no 7351 need_version=no
7956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7963 7359
7964netbsd*) 7360netbsd*)
7965 version_type=sunos 7361 version_type=sunos
7966 need_lib_prefix=no 7362 need_lib_prefix=no
7967 need_version=no 7363 need_version=no
7968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7971 dynamic_linker='NetBSD (a.out) ld.so' 7367 dynamic_linker='NetBSD (a.out) ld.so'
7972 else 7368 else
7973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8001 need_lib_prefix=no 7397 need_lib_prefix=no
8002 need_version=yes 7398 need_version=yes
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8005 shlibpath_var=LD_LIBRARY_PATH 7401 shlibpath_var=LD_LIBRARY_PATH
8006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7402 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8007 case $host_os in 7403 case $host_os in
8008 openbsd2.[89] | openbsd2.[89].*) 7404 openbsd2.[89] | openbsd2.[89].*)
8009 shlibpath_overrides_runpath=no 7405 shlibpath_overrides_runpath=no
8010 ;; 7406 ;;
8011 *) 7407 *)
8076 shlibpath_var=LD_LIBRARY_PATH 7472 shlibpath_var=LD_LIBRARY_PATH
8077 case $host_vendor in 7473 case $host_vendor in
8078 sni) 7474 sni)
8079 shlibpath_overrides_runpath=no 7475 shlibpath_overrides_runpath=no
8080 need_lib_prefix=no 7476 need_lib_prefix=no
8081 export_dynamic_flag_spec='${wl}-Blargedynsym'
8082 runpath_var=LD_RUN_PATH 7477 runpath_var=LD_RUN_PATH
8083 ;; 7478 ;;
8084 siemens) 7479 siemens)
8085 need_lib_prefix=no 7480 need_lib_prefix=no
8086 ;; 7481 ;;
8115esac 7510esac
8116echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7511echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8117echo "${ECHO_T}$dynamic_linker" >&6 7512echo "${ECHO_T}$dynamic_linker" >&6
8118test "$dynamic_linker" = no && can_build_shared=no 7513test "$dynamic_linker" = no && can_build_shared=no
8119 7514
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
8120echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7595 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8121echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7596echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8122hardcode_action= 7597hardcode_action=
8123if test -n "$hardcode_libdir_flag_spec" || \ 7598if test -n "$hardcode_libdir_flag_spec" ||
8124 test -n "$runpath_var " || \ 7599 test -n "$runpath_var " ||
8125 test "X$hardcode_automatic"="Xyes" ; then 7600 test "X$hardcode_automatic"="Xyes" ; then
8126 7601
8127 # We can hardcode non-existant directories. 7602 # We can hardcode non-existant directories.
8128 if test "$hardcode_direct" != no && 7603 if test "$hardcode_direct" != no &&
8129 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8143 hardcode_action=unsupported 7618 hardcode_action=unsupported
8144fi 7619fi
8145echo "$as_me:$LINENO: result: $hardcode_action" >&5 7620echo "$as_me:$LINENO: result: $hardcode_action" >&5
8146echo "${ECHO_T}$hardcode_action" >&6 7621echo "${ECHO_T}$hardcode_action" >&6
8147 7622
8148if test "$hardcode_action" = relink; then 7623if test "$hardcode_action" = relink ||
7624 test "$inherit_rpath" = yes; then
8149 # Fast installation is not supported 7625 # Fast installation is not supported
8150 enable_fast_install=no 7626 enable_fast_install=no
8151elif test "$shlibpath_overrides_runpath" = yes || 7627elif test "$shlibpath_overrides_runpath" = yes ||
8152 test "$enable_shared" = no; then 7628 test "$enable_shared" = no; then
8153 # Fast installation is not necessary 7629 # Fast installation is not necessary
8154 enable_fast_install=needless 7630 enable_fast_install=needless
8155fi 7631fi
8156 7632
7633
7634
7635
7636
7637
7638
8157striplib= 7639striplib=
8158old_striplib= 7640old_striplib=
8159echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7641echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8160echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7642echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8161if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7643if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
8162 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8163 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7645 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8164 echo "$as_me:$LINENO: result: yes" >&5 7646 echo "$as_me:$LINENO: result: yes" >&5
8165echo "${ECHO_T}yes" >&6 7647echo "${ECHO_T}yes" >&6
8166else 7648else
8181echo "${ECHO_T}no" >&6 7663echo "${ECHO_T}no" >&6
8182 ;; 7664 ;;
8183 esac 7665 esac
8184fi 7666fi
8185 7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
8186if test "x$enable_dlopen" != xyes; then 7678 if test "x$enable_dlopen" != xyes; then
8187 enable_dlopen=unknown 7679 enable_dlopen=unknown
8188 enable_dlopen_self=unknown 7680 enable_dlopen_self=unknown
8189 enable_dlopen_self_static=unknown 7681 enable_dlopen_self_static=unknown
8190else 7682else
8191 lt_cv_dlopen=no 7683 lt_cv_dlopen=no
8246 grep -v '^ *+' conftest.er1 >conftest.err 7738 grep -v '^ *+' conftest.er1 >conftest.err
8247 rm -f conftest.er1 7739 rm -f conftest.er1
8248 cat conftest.err >&5 7740 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && 7742 (exit $ac_status); } &&
8251 { ac_try='test -z "$ac_c_werror_flag" 7743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8252 || test ! -s conftest.err'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 (eval $ac_try) 2>&5 7745 (eval $ac_try) 2>&5
8255 ac_status=$? 7746 ac_status=$?
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } && 7748 (exit $ac_status); }; } &&
8350 grep -v '^ *+' conftest.er1 >conftest.err 7841 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1 7842 rm -f conftest.er1
8352 cat conftest.err >&5 7843 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && 7845 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag" 7846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356 || test ! -s conftest.err'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5 7848 (eval $ac_try) 2>&5
8359 ac_status=$? 7849 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } && 7851 (exit $ac_status); }; } &&
8416 grep -v '^ *+' conftest.er1 >conftest.err 7906 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1 7907 rm -f conftest.er1
8418 cat conftest.err >&5 7908 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && 7910 (exit $ac_status); } &&
8421 { ac_try='test -z "$ac_c_werror_flag" 7911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8422 || test ! -s conftest.err'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5 7913 (eval $ac_try) 2>&5
8425 ac_status=$? 7914 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } && 7916 (exit $ac_status); }; } &&
8510 grep -v '^ *+' conftest.er1 >conftest.err 7999 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1 8000 rm -f conftest.er1
8512 cat conftest.err >&5 8001 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } && 8003 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag" 8004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5 8006 (eval $ac_try) 2>&5
8519 ac_status=$? 8007 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } && 8009 (exit $ac_status); }; } &&
8576 grep -v '^ *+' conftest.er1 >conftest.err 8064 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1 8065 rm -f conftest.er1
8578 cat conftest.err >&5 8066 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && 8068 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" 8069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5 8071 (eval $ac_try) 2>&5
8585 ac_status=$? 8072 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } && 8074 (exit $ac_status); }; } &&
8643 grep -v '^ *+' conftest.er1 >conftest.err 8130 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1 8131 rm -f conftest.er1
8645 cat conftest.err >&5 8132 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && 8134 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag" 8135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5 8137 (eval $ac_try) 2>&5
8652 ac_status=$? 8138 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } && 8140 (exit $ac_status); }; } &&
8710 grep -v '^ *+' conftest.er1 >conftest.err 8196 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1 8197 rm -f conftest.er1
8712 cat conftest.err >&5 8198 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && 8200 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_c_werror_flag" 8201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5 8203 (eval $ac_try) 2>&5
8719 ac_status=$? 8204 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } && 8206 (exit $ac_status); }; } &&
8785 if test "$cross_compiling" = yes; then : 8270 if test "$cross_compiling" = yes; then :
8786 lt_cv_dlopen_self=cross 8271 lt_cv_dlopen_self=cross
8787else 8272else
8788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8789 lt_status=$lt_dlunknown 8274 lt_status=$lt_dlunknown
8790 cat > conftest.$ac_ext <<EOF 8275 cat > conftest.$ac_ext <<_LT_EOF
8791#line 8791 "configure" 8276#line 8276 "configure"
8792#include "confdefs.h" 8277#include "confdefs.h"
8793 8278
8794#if HAVE_DLFCN_H 8279#if HAVE_DLFCN_H
8795#include <dlfcn.h> 8280#include <dlfcn.h>
8796#endif 8281#endif
8846 /* dlclose (self); */ 8331 /* dlclose (self); */
8847 } 8332 }
8848 8333
8849 exit (status); 8334 exit (status);
8850} 8335}
8851EOF 8336_LT_EOF
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>&5 8338 (eval $ac_link) 2>&5
8854 ac_status=$? 8339 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8341 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8883 if test "$cross_compiling" = yes; then : 8368 if test "$cross_compiling" = yes; then :
8884 lt_cv_dlopen_self_static=cross 8369 lt_cv_dlopen_self_static=cross
8885else 8370else
8886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8371 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8887 lt_status=$lt_dlunknown 8372 lt_status=$lt_dlunknown
8888 cat > conftest.$ac_ext <<EOF 8373 cat > conftest.$ac_ext <<_LT_EOF
8889#line 8889 "configure" 8374#line 8374 "configure"
8890#include "confdefs.h" 8375#include "confdefs.h"
8891 8376
8892#if HAVE_DLFCN_H 8377#if HAVE_DLFCN_H
8893#include <dlfcn.h> 8378#include <dlfcn.h>
8894#endif 8379#endif
8944 /* dlclose (self); */ 8429 /* dlclose (self); */
8945 } 8430 }
8946 8431
8947 exit (status); 8432 exit (status);
8948} 8433}
8949EOF 8434_LT_EOF
8950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8951 (eval $ac_link) 2>&5 8436 (eval $ac_link) 2>&5
8952 ac_status=$? 8437 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8439 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8988 *) enable_dlopen_self_static=unknown ;; 8473 *) enable_dlopen_self_static=unknown ;;
8989 esac 8474 esac
8990fi 8475fi
8991 8476
8992 8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8993# Report which librarie types wil actually be built 8493 # Report which library types will actually be built
8994echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8494 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8995echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8495echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8996echo "$as_me:$LINENO: result: $can_build_shared" >&5 8496 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8997echo "${ECHO_T}$can_build_shared" >&6 8497echo "${ECHO_T}$can_build_shared" >&6
8998 8498
8999echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8499 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9000echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8500echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9001test "$can_build_shared" = "no" && enable_shared=no 8501 test "$can_build_shared" = "no" && enable_shared=no
9002 8502
9003# On AIX, shared libraries and static libraries use the same namespace, and 8503 # On AIX, shared libraries and static libraries use the same namespace, and
9004# are all built from PIC. 8504 # are all built from PIC.
9005case "$host_os" in 8505 case "$host_os" in
9006aix3*) 8506 aix3*)
9007 test "$enable_shared" = yes && enable_static=no
9008 if test -n "$RANLIB"; then
9009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9010 postinstall_cmds='$RANLIB $lib'
9011 fi
9012 ;;
9013
9014aix4* | aix5*)
9015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9016 test "$enable_shared" = yes && enable_static=no 8507 test "$enable_shared" = yes && enable_static=no
9017 fi 8508 if test -n "$RANLIB"; then
9018 ;; 8509 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9019 darwin* | rhapsody*) 8510 postinstall_cmds='$RANLIB $lib'
9020 if test "$GCC" = yes; then
9021 archive_cmds_need_lc=no
9022 case "$host_os" in
9023 rhapsody* | darwin1.[012])
9024 allow_undefined_flag='-undefined suppress'
9025 ;;
9026 *) # Darwin 1.3 on
9027 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9028 allow_undefined_flag='-flat_namespace -undefined suppress'
9029 else
9030 case ${MACOSX_DEPLOYMENT_TARGET} in
9031 10.[012])
9032 allow_undefined_flag='-flat_namespace -undefined suppress'
9033 ;;
9034 10.*)
9035 allow_undefined_flag='-undefined dynamic_lookup'
9036 ;;
9037 esac
9038 fi 8511 fi
9039 ;;
9040 esac
9041 output_verbose_link_cmd='echo'
9042 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9043 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9045 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}'
9046 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}'
9047 hardcode_direct=no
9048 hardcode_automatic=yes
9049 hardcode_shlibpath_var=unsupported
9050 whole_archive_flag_spec='-all_load $convenience'
9051 link_all_deplibs=yes
9052 else
9053 ld_shlibs=no
9054 fi
9055 ;; 8512 ;;
9056esac
9057echo "$as_me:$LINENO: result: $enable_shared" >&5
9058echo "${ECHO_T}$enable_shared" >&6
9059 8513
9060echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8514 aix4* | aix5*)
9061echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8515 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9062# Make sure either enable_shared or enable_static is yes.
9063test "$enable_shared" = yes || enable_static=yes 8516 test "$enable_shared" = yes && enable_static=no
9064echo "$as_me:$LINENO: result: $enable_static" >&5
9065echo "${ECHO_T}$enable_static" >&6
9066
9067# The else clause should only fire when bootstrapping the
9068# libtool distribution, otherwise you forgot to ship ltmain.sh
9069# with your package, and you will get complaints that there are
9070# no rules to generate ltmain.sh.
9071if test -f "$ltmain"; then
9072 # See if we are running on zsh, and set the options which allow our commands through
9073 # without removal of \ escapes.
9074 if test -n "${ZSH_VERSION+set}" ; then
9075 setopt NO_GLOB_SUBST
9076 fi 8517 fi
9077 # Now quote all the things that may contain metacharacters while being
9078 # careful not to overquote the AC_SUBSTed values. We take copies of the
9079 # variables and quote the copies for generation of the libtool script.
9080 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9081 SED SHELL STRIP \
9082 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9083 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9084 deplibs_check_method reload_flag reload_cmds need_locks \
9085 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9086 lt_cv_sys_global_symbol_to_c_name_address \
9087 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9088 old_postinstall_cmds old_postuninstall_cmds \
9089 compiler \
9090 CC \
9091 LD \
9092 lt_prog_compiler_wl \
9093 lt_prog_compiler_pic \
9094 lt_prog_compiler_static \
9095 lt_prog_compiler_no_builtin_flag \
9096 export_dynamic_flag_spec \
9097 thread_safe_flag_spec \
9098 whole_archive_flag_spec \
9099 enable_shared_with_static_runtimes \
9100 old_archive_cmds \
9101 old_archive_from_new_cmds \
9102 predep_objects \
9103 postdep_objects \
9104 predeps \
9105 postdeps \
9106 compiler_lib_search_path \
9107 archive_cmds \
9108 archive_expsym_cmds \
9109 postinstall_cmds \
9110 postuninstall_cmds \
9111 old_archive_from_expsyms_cmds \
9112 allow_undefined_flag \
9113 no_undefined_flag \
9114 export_symbols_cmds \
9115 hardcode_libdir_flag_spec \
9116 hardcode_libdir_flag_spec_ld \
9117 hardcode_libdir_separator \
9118 hardcode_automatic \
9119 module_cmds \
9120 module_expsym_cmds \
9121 lt_cv_prog_compiler_c_o \
9122 exclude_expsyms \
9123 include_expsyms; do
9124
9125 case $var in
9126 old_archive_cmds | \
9127 old_archive_from_new_cmds | \
9128 archive_cmds | \
9129 archive_expsym_cmds | \
9130 module_cmds | \
9131 module_expsym_cmds | \
9132 old_archive_from_expsyms_cmds | \
9133 export_symbols_cmds | \
9134 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9135 postinstall_cmds | postuninstall_cmds | \
9136 old_postinstall_cmds | old_postuninstall_cmds | \
9137 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9138 # Double-quote double-evaled strings.
9139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9140 ;;
9141 *)
9142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9143 ;;
9144 esac
9145 done
9146
9147 case $lt_echo in
9148 *'\$0 --fallback-echo"')
9149 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9150 ;; 8518 ;;
9151 esac 8519 esac
8520 echo "$as_me:$LINENO: result: $enable_shared" >&5
8521echo "${ECHO_T}$enable_shared" >&6
9152 8522
9153cfgfile="${ofile}T" 8523 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9154 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8524echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9155 $rm -f "$cfgfile" 8525 # Make sure either enable_shared or enable_static is yes.
9156 { echo "$as_me:$LINENO: creating $ofile" >&5 8526 test "$enable_shared" = yes || enable_static=yes
9157echo "$as_me: creating $ofile" >&6;} 8527 echo "$as_me:$LINENO: result: $enable_static" >&5
8528echo "${ECHO_T}$enable_static" >&6
9158 8529
9159 cat <<__EOF__ >> "$cfgfile"
9160#! $SHELL
9161 8530
9162# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9163# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9164# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9165#
9166# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9167# Free Software Foundation, Inc.
9168#
9169# This file is part of GNU Libtool:
9170# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9171#
9172# This program is free software; you can redistribute it and/or modify
9173# it under the terms of the GNU General Public License as published by
9174# the Free Software Foundation; either version 2 of the License, or
9175# (at your option) any later version.
9176#
9177# This program is distributed in the hope that it will be useful, but
9178# WITHOUT ANY WARRANTY; without even the implied warranty of
9179# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9180# General Public License for more details.
9181#
9182# You should have received a copy of the GNU General Public License
9183# along with this program; if not, write to the Free Software
9184# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9185#
9186# As a special exception to the GNU General Public License, if you
9187# distribute this file as part of a program that contains a
9188# configuration script generated by Autoconf, you may include it under
9189# the same distribution terms that you use for the rest of that program.
9190 8531
9191# A sed program that does not truncate output.
9192SED=$lt_SED
9193 8532
9194# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9195Xsed="$SED -e s/^X//"
9196
9197# The HP-UX ksh and POSIX shell print the target directory to stdout
9198# if CDPATH is set.
9199if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9200
9201# The names of the tagged configurations supported by this script.
9202available_tags=
9203
9204# ### BEGIN LIBTOOL CONFIG
9205
9206# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9207
9208# Shell to use when invoking shell scripts.
9209SHELL=$lt_SHELL
9210
9211# Whether or not to build shared libraries.
9212build_libtool_libs=$enable_shared
9213
9214# Whether or not to build static libraries.
9215build_old_libs=$enable_static
9216
9217# Whether or not to add -lc for building shared libraries.
9218build_libtool_need_lc=$archive_cmds_need_lc
9219
9220# Whether or not to disallow shared libs when runtime libs are static
9221allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9222
9223# Whether or not to optimize for fast installation.
9224fast_install=$enable_fast_install
9225
9226# The host system.
9227host_alias=$host_alias
9228host=$host
9229
9230# An echo program that does not interpret backslashes.
9231echo=$lt_echo
9232
9233# The archiver.
9234AR=$lt_AR
9235AR_FLAGS=$lt_AR_FLAGS
9236
9237# A C compiler.
9238LTCC=$lt_LTCC
9239
9240# A language-specific compiler.
9241CC=$lt_compiler
9242
9243# Is the compiler the GNU C compiler?
9244with_gcc=$GCC
9245
9246# An ERE matcher.
9247EGREP=$lt_EGREP
9248
9249# The linker used to build libraries.
9250LD=$lt_LD
9251
9252# Whether we need hard or soft links.
9253LN_S=$lt_LN_S
9254
9255# A BSD-compatible nm program.
9256NM=$lt_NM
9257
9258# A symbol stripping program
9259STRIP=$lt_STRIP
9260
9261# Used to examine libraries when file_magic_cmd begins "file"
9262MAGIC_CMD=$MAGIC_CMD
9263
9264# Used on cygwin: DLL creation program.
9265DLLTOOL="$DLLTOOL"
9266
9267# Used on cygwin: object dumper.
9268OBJDUMP="$OBJDUMP"
9269
9270# Used on cygwin: assembler.
9271AS="$AS"
9272
9273# The name of the directory that contains temporary libtool files.
9274objdir=$objdir
9275
9276# How to create reloadable object files.
9277reload_flag=$lt_reload_flag
9278reload_cmds=$lt_reload_cmds
9279
9280# How to pass a linker flag through the compiler.
9281wl=$lt_lt_prog_compiler_wl
9282
9283# Object file suffix (normally "o").
9284objext="$ac_objext"
9285
9286# Old archive suffix (normally "a").
9287libext="$libext"
9288
9289# Shared library suffix (normally ".so").
9290shrext_cmds='$shrext_cmds'
9291
9292# Executable file suffix (normally "").
9293exeext="$exeext"
9294
9295# Additional compiler flags for building library objects.
9296pic_flag=$lt_lt_prog_compiler_pic
9297pic_mode=$pic_mode
9298
9299# What is the maximum length of a command?
9300max_cmd_len=$lt_cv_sys_max_cmd_len
9301
9302# Does compiler simultaneously support -c and -o options?
9303compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9304
9305# Must we lock files when doing compilation ?
9306need_locks=$lt_need_locks
9307
9308# Do we need the lib prefix for modules?
9309need_lib_prefix=$need_lib_prefix
9310
9311# Do we need a version for libraries?
9312need_version=$need_version
9313
9314# Whether dlopen is supported.
9315dlopen_support=$enable_dlopen
9316
9317# Whether dlopen of programs is supported.
9318dlopen_self=$enable_dlopen_self
9319
9320# Whether dlopen of statically linked programs is supported.
9321dlopen_self_static=$enable_dlopen_self_static
9322
9323# Compiler flag to prevent dynamic linking.
9324link_static_flag=$lt_lt_prog_compiler_static
9325
9326# Compiler flag to turn off builtin functions.
9327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9328
9329# Compiler flag to allow reflexive dlopens.
9330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9331
9332# Compiler flag to generate shared objects directly from archives.
9333whole_archive_flag_spec=$lt_whole_archive_flag_spec
9334
9335# Compiler flag to generate thread-safe objects.
9336thread_safe_flag_spec=$lt_thread_safe_flag_spec
9337
9338# Library versioning type.
9339version_type=$version_type
9340
9341# Format of library name prefix.
9342libname_spec=$lt_libname_spec
9343
9344# List of archive names. First name is the real one, the rest are links.
9345# The last name is the one that the linker finds with -lNAME.
9346library_names_spec=$lt_library_names_spec
9347
9348# The coded name of the library, if different from the real name.
9349soname_spec=$lt_soname_spec
9350
9351# Commands used to build and install an old-style archive.
9352RANLIB=$lt_RANLIB
9353old_archive_cmds=$lt_old_archive_cmds
9354old_postinstall_cmds=$lt_old_postinstall_cmds
9355old_postuninstall_cmds=$lt_old_postuninstall_cmds
9356
9357# Create an old-style archive from a shared archive.
9358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9359
9360# Create a temporary old-style archive to link instead of a shared archive.
9361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9362
9363# Commands used to build and install a shared archive.
9364archive_cmds=$lt_archive_cmds
9365archive_expsym_cmds=$lt_archive_expsym_cmds
9366postinstall_cmds=$lt_postinstall_cmds
9367postuninstall_cmds=$lt_postuninstall_cmds
9368
9369# Commands used to build a loadable module (assumed same as above if empty)
9370module_cmds=$lt_module_cmds
9371module_expsym_cmds=$lt_module_expsym_cmds
9372
9373# Commands to strip libraries.
9374old_striplib=$lt_old_striplib
9375striplib=$lt_striplib
9376
9377# Dependencies to place before the objects being linked to create a
9378# shared library.
9379predep_objects=$lt_predep_objects
9380
9381# Dependencies to place after the objects being linked to create a
9382# shared library.
9383postdep_objects=$lt_postdep_objects
9384
9385# Dependencies to place before the objects being linked to create a
9386# shared library.
9387predeps=$lt_predeps
9388
9389# Dependencies to place after the objects being linked to create a
9390# shared library.
9391postdeps=$lt_postdeps
9392
9393# The library search path used internally by the compiler when linking
9394# a shared library.
9395compiler_lib_search_path=$lt_compiler_lib_search_path
9396
9397# Method to check whether dependent libraries are shared objects.
9398deplibs_check_method=$lt_deplibs_check_method
9399
9400# Command to use when deplibs_check_method == file_magic.
9401file_magic_cmd=$lt_file_magic_cmd
9402
9403# Flag that allows shared libraries with undefined symbols to be built.
9404allow_undefined_flag=$lt_allow_undefined_flag
9405
9406# Flag that forces no undefined symbols.
9407no_undefined_flag=$lt_no_undefined_flag
9408
9409# Commands used to finish a libtool library installation in a directory.
9410finish_cmds=$lt_finish_cmds
9411
9412# Same as above, but a single script fragment to be evaled but not shown.
9413finish_eval=$lt_finish_eval
9414
9415# Take the output of nm and produce a listing of raw symbols and C names.
9416global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9417
9418# Transform the output of nm in a proper C declaration
9419global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9420
9421# Transform the output of nm in a C name address pair
9422global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9423
9424# This is the shared library runtime path variable.
9425runpath_var=$runpath_var
9426
9427# This is the shared library path variable.
9428shlibpath_var=$shlibpath_var
9429
9430# Is shlibpath searched before the hard-coded library search path?
9431shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9432
9433# How to hardcode a shared library path into an executable.
9434hardcode_action=$hardcode_action
9435
9436# Whether we should hardcode library paths into libraries.
9437hardcode_into_libs=$hardcode_into_libs
9438
9439# Flag to hardcode \$libdir into a binary during linking.
9440# This must work even if \$libdir does not exist.
9441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9442
9443# If ld is used when linking, flag to hardcode \$libdir into
9444# a binary during linking. This must work even if \$libdir does
9445# not exist.
9446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9447
9448# Whether we need a single -rpath flag with a separated argument.
9449hardcode_libdir_separator=$lt_hardcode_libdir_separator
9450
9451# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9452# resulting binary.
9453hardcode_direct=$hardcode_direct
9454
9455# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9456# resulting binary.
9457hardcode_minus_L=$hardcode_minus_L
9458
9459# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9460# the resulting binary.
9461hardcode_shlibpath_var=$hardcode_shlibpath_var
9462
9463# Set to yes if building a shared library automatically hardcodes DIR into the library
9464# and all subsequent libraries and executables linked against it.
9465hardcode_automatic=$hardcode_automatic
9466
9467# Variables whose values should be saved in libtool wrapper scripts and
9468# restored at relink time.
9469variables_saved_for_relink="$variables_saved_for_relink"
9470
9471# Whether libtool must link a program against all its dependency libraries.
9472link_all_deplibs=$link_all_deplibs
9473
9474# Compile-time system search path for libraries
9475sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9476
9477# Run-time system search path for libraries
9478sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9479
9480# Fix the shell variable \$srcfile for the compiler.
9481fix_srcfile_path="$fix_srcfile_path"
9482
9483# Set to yes if exported symbols are required.
9484always_export_symbols=$always_export_symbols
9485
9486# The commands to list exported symbols.
9487export_symbols_cmds=$lt_export_symbols_cmds
9488
9489# The commands to extract the exported symbol list from a shared archive.
9490extract_expsyms_cmds=$lt_extract_expsyms_cmds
9491
9492# Symbols that should not be listed in the preloaded symbols.
9493exclude_expsyms=$lt_exclude_expsyms
9494
9495# Symbols that must always be exported.
9496include_expsyms=$lt_include_expsyms
9497
9498# ### END LIBTOOL CONFIG
9499
9500__EOF__
9501
9502
9503 case $host_os in
9504 aix3*)
9505 cat <<\EOF >> "$cfgfile"
9506
9507# AIX sometimes has problems with the GCC collect2 program. For some
9508# reason, if we set the COLLECT_NAMES environment variable, the problems
9509# vanish in a puff of smoke.
9510if test "X${COLLECT_NAMES+set}" != Xset; then
9511 COLLECT_NAMES=
9512 export COLLECT_NAMES
9513fi 8533fi
9514EOF
9515 ;;
9516 esac
9517
9518 # We use sed instead of cat because bash on DJGPP gets confused if
9519 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9520 # text mode, it properly converts lines to CR/LF. This bash problem
9521 # is reportedly fixed, but why not run on old versions too?
9522 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9523
9524 mv -f "$cfgfile" "$ofile" || \
9525 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9526 chmod +x "$ofile"
9527
9528else
9529 # If there is no Makefile yet, we rely on a make rule to execute
9530 # `config.status --recheck' to rerun these tests and create the
9531 # libtool script then.
9532 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9533 if test -f "$ltmain_in"; then
9534 test -f Makefile && make "$ltmain"
9535 fi
9536fi
9537
9538
9539ac_ext=c 8534ac_ext=c
9540ac_cpp='$CPP $CPPFLAGS' 8535ac_cpp='$CPP $CPPFLAGS'
9541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9543ac_compiler_gnu=$ac_cv_c_compiler_gnu 8538ac_compiler_gnu=$ac_cv_c_compiler_gnu
9544 8539
9545CC="$lt_save_CC" 8540CC="$lt_save_CC"
9546 8541
9547 8542
9548# Check whether --with-tags or --without-tags was given.
9549if test "${with_tags+set}" = set; then
9550 withval="$with_tags"
9551 tagnames="$withval"
9552fi;
9553 8543
9554if test -f "$ltmain" && test -n "$tagnames"; then
9555 if test ! -f "${ofile}"; then
9556 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9557echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9558 fi
9559 8544
9560 if test -z "$LTCC"; then
9561 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9562 if test -z "$LTCC"; then
9563 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9564echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9565 else
9566 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9567echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9568 fi
9569 fi
9570 8545
9571 # Extract list of available tagged configurations in $ofile.
9572 # Note that this assumes the entire list is on one line.
9573 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9574 8546
9575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9576 for tagname in $tagnames; do
9577 IFS="$lt_save_ifs"
9578 # Check whether tagname contains only valid characters
9579 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9580 "") ;;
9581 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9582echo "$as_me: error: invalid tag name: $tagname" >&2;}
9583 { (exit 1); exit 1; }; }
9584 ;;
9585 esac
9586 8547
9587 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9588 then
9589 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9590echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9591 { (exit 1); exit 1; }; }
9592 fi
9593 8548
9594 # Update the list of available tags.
9595 if test -n "$tagname"; then
9596 echo appending configuration tag \"$tagname\" to $ofile
9597 8549
9598 case $tagname in
9599 CXX)
9600 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9601 ac_ext=cc
9602ac_cpp='$CXXCPP $CPPFLAGS'
9603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9606 8550
9607 8551
8552 ac_config_commands="$ac_config_commands libtool"
9608 8553
9609 8554
9610archive_cmds_need_lc_CXX=no
9611allow_undefined_flag_CXX=
9612always_export_symbols_CXX=no
9613archive_expsym_cmds_CXX=
9614export_dynamic_flag_spec_CXX=
9615hardcode_direct_CXX=no
9616hardcode_libdir_flag_spec_CXX=
9617hardcode_libdir_flag_spec_ld_CXX=
9618hardcode_libdir_separator_CXX=
9619hardcode_minus_L_CXX=no
9620hardcode_automatic_CXX=no
9621module_cmds_CXX=
9622module_expsym_cmds_CXX=
9623link_all_deplibs_CXX=unknown
9624old_archive_cmds_CXX=$old_archive_cmds
9625no_undefined_flag_CXX=
9626whole_archive_flag_spec_CXX=
9627enable_shared_with_static_runtimes_CXX=no
9628 8555
9629# Dependencies to place before and after the object being linked:
9630predep_objects_CXX=
9631postdep_objects_CXX=
9632predeps_CXX=
9633postdeps_CXX=
9634compiler_lib_search_path_CXX=
9635 8556
9636# Source file extension for C++ test sources. 8557# Only expand once:
9637ac_ext=cc
9638
9639# Object file extension for compiled C++ test sources.
9640objext=o
9641objext_CXX=$objext
9642
9643# Code to be used in simple compile tests
9644lt_simple_compile_test_code="int some_variable = 0;\n"
9645
9646# Code to be used in simple link tests
9647lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9648
9649# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9650
9651# If no C compiler was specified, use CC.
9652LTCC=${LTCC-"$CC"}
9653
9654# Allow CC to be a program name with arguments.
9655compiler=$CC
9656
9657
9658# Allow CC to be a program name with arguments.
9659lt_save_CC=$CC
9660lt_save_LD=$LD
9661lt_save_GCC=$GCC
9662GCC=$GXX
9663lt_save_with_gnu_ld=$with_gnu_ld
9664lt_save_path_LD=$lt_cv_path_LD
9665if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9666 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9667else
9668 unset lt_cv_prog_gnu_ld
9669fi
9670if test -n "${lt_cv_path_LDCXX+set}"; then
9671 lt_cv_path_LD=$lt_cv_path_LDCXX
9672else
9673 unset lt_cv_path_LD
9674fi
9675test -z "${LDCXX+set}" || LD=$LDCXX
9676CC=${CXX-"c++"}
9677compiler=$CC
9678compiler_CXX=$CC
9679cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9680
9681# We don't want -fno-exception wen compiling C++ code, so set the
9682# no_builtin_flag separately
9683if test "$GXX" = yes; then
9684 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9685else
9686 lt_prog_compiler_no_builtin_flag_CXX=
9687fi
9688
9689if test "$GXX" = yes; then
9690 # Set up default GNU C++ configuration
9691
9692
9693# Check whether --with-gnu-ld or --without-gnu-ld was given.
9694if test "${with_gnu_ld+set}" = set; then
9695 withval="$with_gnu_ld"
9696 test "$withval" = no || with_gnu_ld=yes
9697else
9698 with_gnu_ld=no
9699fi;
9700ac_prog=ld
9701if test "$GCC" = yes; then
9702 # Check if gcc -print-prog-name=ld gives a path.
9703 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9704echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9705 case $host in
9706 *-*-mingw*)
9707 # gcc leaves a trailing carriage return which upsets mingw
9708 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9709 *)
9710 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9711 esac
9712 case $ac_prog in
9713 # Accept absolute paths.
9714 [\\/]* | ?:[\\/]*)
9715 re_direlt='/[^/][^/]*/\.\./'
9716 # Canonicalize the pathname of ld
9717 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9718 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9719 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9720 done
9721 test -z "$LD" && LD="$ac_prog"
9722 ;;
9723 "")
9724 # If it fails, then pretend we aren't using GCC.
9725 ac_prog=ld
9726 ;;
9727 *)
9728 # If it is relative, then search for the first ld in PATH.
9729 with_gnu_ld=unknown
9730 ;;
9731 esac
9732elif test "$with_gnu_ld" = yes; then
9733 echo "$as_me:$LINENO: checking for GNU ld" >&5
9734echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9735else
9736 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9737echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9738fi
9739if test "${lt_cv_path_LD+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741else
9742 if test -z "$LD"; then
9743 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9744 for ac_dir in $PATH; do
9745 IFS="$lt_save_ifs"
9746 test -z "$ac_dir" && ac_dir=.
9747 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9748 lt_cv_path_LD="$ac_dir/$ac_prog"
9749 # Check to see if the program is GNU ld. I'd rather use --version,
9750 # but apparently some GNU ld's only accept -v.
9751 # Break only if it was the GNU/non-GNU ld that we prefer.
9752 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9753 *GNU* | *'with BFD'*)
9754 test "$with_gnu_ld" != no && break
9755 ;;
9756 *)
9757 test "$with_gnu_ld" != yes && break
9758 ;;
9759 esac
9760 fi
9761 done
9762 IFS="$lt_save_ifs"
9763else
9764 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9765fi
9766fi
9767
9768LD="$lt_cv_path_LD"
9769if test -n "$LD"; then
9770 echo "$as_me:$LINENO: result: $LD" >&5
9771echo "${ECHO_T}$LD" >&6
9772else
9773 echo "$as_me:$LINENO: result: no" >&5
9774echo "${ECHO_T}no" >&6
9775fi
9776test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9777echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9778 { (exit 1); exit 1; }; }
9779echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9780echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9781if test "${lt_cv_prog_gnu_ld+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783else
9784 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9785case `$LD -v 2>&1 </dev/null` in
9786*GNU* | *'with BFD'*)
9787 lt_cv_prog_gnu_ld=yes
9788 ;;
9789*)
9790 lt_cv_prog_gnu_ld=no
9791 ;;
9792esac
9793fi
9794echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9795echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9796with_gnu_ld=$lt_cv_prog_gnu_ld
9797
9798
9799
9800 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9801 # archiving commands below assume that GNU ld is being used.
9802 if test "$with_gnu_ld" = yes; then
9803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804 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'
9805
9806 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9808
9809 # If archive_cmds runs LD, not CC, wlarc should be empty
9810 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9811 # investigate it a little bit more. (MM)
9812 wlarc='${wl}'
9813
9814 # ancient GNU ld didn't support --whole-archive et. al.
9815 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9816 grep 'no-whole-archive' > /dev/null; then
9817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9818 else
9819 whole_archive_flag_spec_CXX=
9820 fi
9821 else
9822 with_gnu_ld=no
9823 wlarc=
9824
9825 # A generic and very simple default shared library creation
9826 # command for GNU C++ for the case where it uses the native
9827 # linker, instead of GNU ld. If possible, this setting should
9828 # overridden to take advantage of the native linker features on
9829 # the platform it is being used on.
9830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9831 fi
9832
9833 # Commands to make compiler produce verbose output that lists
9834 # what "hidden" libraries, object files and flags are used when
9835 # linking a shared library.
9836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9837
9838else
9839 GXX=no
9840 with_gnu_ld=no
9841 wlarc=
9842fi
9843
9844# PORTME: fill in a description of your system's C++ link characteristics
9845echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9846echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9847ld_shlibs_CXX=yes
9848case $host_os in
9849 aix3*)
9850 # FIXME: insert proper C++ library support
9851 ld_shlibs_CXX=no
9852 ;;
9853 aix4* | aix5*)
9854 if test "$host_cpu" = ia64; then
9855 # On IA64, the linker does run time linking by default, so we don't
9856 # have to do anything special.
9857 aix_use_runtimelinking=no
9858 exp_sym_flag='-Bexport'
9859 no_entry_flag=""
9860 else
9861 aix_use_runtimelinking=no
9862
9863 # Test if we are trying to use run time linking or normal
9864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9865 # need to do runtime linking.
9866 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9867 for ld_flag in $LDFLAGS; do
9868 case $ld_flag in
9869 *-brtl*)
9870 aix_use_runtimelinking=yes
9871 break
9872 ;;
9873 esac
9874 done
9875 esac
9876
9877 exp_sym_flag='-bexport'
9878 no_entry_flag='-bnoentry'
9879 fi
9880
9881 # When large executables or shared objects are built, AIX ld can
9882 # have problems creating the table of contents. If linking a library
9883 # or program results in "error TOC overflow" add -mminimal-toc to
9884 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9885 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9886
9887 archive_cmds_CXX=''
9888 hardcode_direct_CXX=yes
9889 hardcode_libdir_separator_CXX=':'
9890 link_all_deplibs_CXX=yes
9891
9892 if test "$GXX" = yes; then
9893 case $host_os in aix4.012|aix4.012.*)
9894 # We only want to do this on AIX 4.2 and lower, the check
9895 # below for broken collect2 doesn't work under 4.3+
9896 collect2name=`${CC} -print-prog-name=collect2`
9897 if test -f "$collect2name" && \
9898 strings "$collect2name" | grep resolve_lib_name >/dev/null
9899 then
9900 # We have reworked collect2
9901 hardcode_direct_CXX=yes
9902 else
9903 # We have old collect2
9904 hardcode_direct_CXX=unsupported
9905 # It fails to find uninstalled libraries when the uninstalled
9906 # path is not listed in the libpath. Setting hardcode_minus_L
9907 # to unsupported forces relinking
9908 hardcode_minus_L_CXX=yes
9909 hardcode_libdir_flag_spec_CXX='-L$libdir'
9910 hardcode_libdir_separator_CXX=
9911 fi
9912 esac
9913 shared_flag='-shared'
9914 else
9915 # not using gcc
9916 if test "$host_cpu" = ia64; then
9917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9918 # chokes on -Wl,-G. The following line is correct:
9919 shared_flag='-G'
9920 else
9921 if test "$aix_use_runtimelinking" = yes; then
9922 shared_flag='${wl}-G'
9923 else
9924 shared_flag='${wl}-bM:SRE'
9925 fi
9926 fi
9927 fi
9928
9929 # It seems that -bexpall does not export symbols beginning with
9930 # underscore (_), so it is better to generate a list of symbols to export.
9931 always_export_symbols_CXX=yes
9932 if test "$aix_use_runtimelinking" = yes; then
9933 # Warning - without using the other runtime loading flags (-brtl),
9934 # -berok will link without error, but may produce a broken library.
9935 allow_undefined_flag_CXX='-berok'
9936 # Determine the default libpath from the value encoded in an empty executable.
9937 cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h. */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943
9944int
9945main ()
9946{
9947
9948 ;
9949 return 0;
9950}
9951_ACEOF
9952rm -f conftest.$ac_objext conftest$ac_exeext
9953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954 (eval $ac_link) 2>conftest.er1
9955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_cxx_werror_flag"
9962 || test ! -s conftest.err'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 (eval $ac_try) 2>&5
9965 ac_status=$?
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974
9975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9976}'`
9977# Check for a 64-bit object if we didn't find anything.
9978if 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; }
9979}'`; fi
9980else
9981 echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984fi
9985rm -f conftest.err conftest.$ac_objext \
9986 conftest$ac_exeext conftest.$ac_ext
9987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9988
9989 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9990
9991 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"
9992 else
9993 if test "$host_cpu" = ia64; then
9994 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9995 allow_undefined_flag_CXX="-z nodefs"
9996 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"
9997 else
9998 # Determine the default libpath from the value encoded in an empty executable.
9999 cat >conftest.$ac_ext <<_ACEOF
10000/* confdefs.h. */
10001_ACEOF
10002cat confdefs.h >>conftest.$ac_ext
10003cat >>conftest.$ac_ext <<_ACEOF
10004/* end confdefs.h. */
10005
10006int
10007main ()
10008{
10009
10010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext conftest$ac_exeext
10015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_cxx_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036
10037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10038}'`
10039# Check for a 64-bit object if we didn't find anything.
10040if 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; }
10041}'`; fi
10042else
10043 echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
10046fi
10047rm -f conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10050
10051 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10052 # Warning - without using the other run time loading flags,
10053 # -berok will link without error, but may produce a broken library.
10054 no_undefined_flag_CXX=' ${wl}-bernotok'
10055 allow_undefined_flag_CXX=' ${wl}-berok'
10056 # -bexpall does not export symbols beginning with underscore (_)
10057 always_export_symbols_CXX=yes
10058 # Exported symbols can be pulled into shared objects from archives
10059 whole_archive_flag_spec_CXX=' '
10060 archive_cmds_need_lc_CXX=yes
10061 # This is similar to how AIX traditionally builds it's shared libraries.
10062 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'
10063 fi
10064 fi
10065 ;;
10066 chorus*)
10067 case $cc_basename in
10068 *)
10069 # FIXME: insert proper C++ library support
10070 ld_shlibs_CXX=no
10071 ;;
10072 esac
10073 ;;
10074
10075 cygwin* | mingw* | pw32*)
10076 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10077 # as there is no search path for DLLs.
10078 hardcode_libdir_flag_spec_CXX='-L$libdir'
10079 allow_undefined_flag_CXX=unsupported
10080 always_export_symbols_CXX=no
10081 enable_shared_with_static_runtimes_CXX=yes
10082
10083 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10084 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'
10085 # If the export-symbols file already is a .def file (1st line
10086 # is EXPORTS), use it as is; otherwise, prepend...
10087 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10088 cp $export_symbols $output_objdir/$soname.def;
10089 else
10090 echo EXPORTS > $output_objdir/$soname.def;
10091 cat $export_symbols >> $output_objdir/$soname.def;
10092 fi~
10093 $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'
10094 else
10095 ld_shlibs_CXX=no
10096 fi
10097 ;;
10098
10099 darwin* | rhapsody*)
10100 if test "$GXX" = yes; then
10101 archive_cmds_need_lc_CXX=no
10102 case "$host_os" in
10103 rhapsody* | darwin1.[012])
10104 allow_undefined_flag_CXX='-undefined suppress'
10105 ;;
10106 *) # Darwin 1.3 on
10107 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10108 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10109 else
10110 case ${MACOSX_DEPLOYMENT_TARGET} in
10111 10.[012])
10112 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10113 ;;
10114 10.*)
10115 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10116 ;;
10117 esac
10118 fi
10119 ;;
10120 esac
10121 lt_int_apple_cc_single_mod=no
10122 output_verbose_link_cmd='echo'
10123 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10124 lt_int_apple_cc_single_mod=yes
10125 fi
10126 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10127 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10128 else
10129 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'
10130 fi
10131 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10132
10133 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10134 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10135 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}'
10136 else
10137 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}'
10138 fi
10139 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}'
10140 hardcode_direct_CXX=no
10141 hardcode_automatic_CXX=yes
10142 hardcode_shlibpath_var_CXX=unsupported
10143 whole_archive_flag_spec_CXX='-all_load $convenience'
10144 link_all_deplibs_CXX=yes
10145 else
10146 ld_shlibs_CXX=no
10147 fi
10148 ;;
10149
10150 dgux*)
10151 case $cc_basename in
10152 ec++)
10153 # FIXME: insert proper C++ library support
10154 ld_shlibs_CXX=no
10155 ;;
10156 ghcx)
10157 # Green Hills C++ Compiler
10158 # FIXME: insert proper C++ library support
10159 ld_shlibs_CXX=no
10160 ;;
10161 *)
10162 # FIXME: insert proper C++ library support
10163 ld_shlibs_CXX=no
10164 ;;
10165 esac
10166 ;;
10167 freebsd12*)
10168 # C++ shared libraries reported to be fairly broken before switch to ELF
10169 ld_shlibs_CXX=no
10170 ;;
10171 freebsd-elf*)
10172 archive_cmds_need_lc_CXX=no
10173 ;;
10174 freebsd* | kfreebsd*-gnu)
10175 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10176 # conventions
10177 ld_shlibs_CXX=yes
10178 ;;
10179 gnu*)
10180 ;;
10181 hpux9*)
10182 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10183 hardcode_libdir_separator_CXX=:
10184 export_dynamic_flag_spec_CXX='${wl}-E'
10185 hardcode_direct_CXX=yes
10186 hardcode_minus_L_CXX=yes # Not in the search PATH,
10187 # but as the default
10188 # location of the library.
10189
10190 case $cc_basename in
10191 CC)
10192 # FIXME: insert proper C++ library support
10193 ld_shlibs_CXX=no
10194 ;;
10195 aCC)
10196 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'
10197 # Commands to make compiler produce verbose output that lists
10198 # what "hidden" libraries, object files and flags are used when
10199 # linking a shared library.
10200 #
10201 # There doesn't appear to be a way to prevent this compiler from
10202 # explicitly linking system object files so we need to strip them
10203 # from the output so that they don't get included in the library
10204 # dependencies.
10205 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'
10206 ;;
10207 *)
10208 if test "$GXX" = yes; then
10209 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'
10210 else
10211 # FIXME: insert proper C++ library support
10212 ld_shlibs_CXX=no
10213 fi
10214 ;;
10215 esac
10216 ;;
10217 hpux10*|hpux11*)
10218 if test $with_gnu_ld = no; then
10219 case "$host_cpu" in
10220 hppa*64*)
10221 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10222 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10223 hardcode_libdir_separator_CXX=:
10224 ;;
10225 ia64*)
10226 hardcode_libdir_flag_spec_CXX='-L$libdir'
10227 ;;
10228 *)
10229 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10230 hardcode_libdir_separator_CXX=:
10231 export_dynamic_flag_spec_CXX='${wl}-E'
10232 ;;
10233 esac
10234 fi
10235 case "$host_cpu" in
10236 hppa*64*)
10237 hardcode_direct_CXX=no
10238 hardcode_shlibpath_var_CXX=no
10239 ;;
10240 ia64*)
10241 hardcode_direct_CXX=no
10242 hardcode_shlibpath_var_CXX=no
10243 hardcode_minus_L_CXX=yes # Not in the search PATH,
10244 # but as the default
10245 # location of the library.
10246 ;;
10247 *)
10248 hardcode_direct_CXX=yes
10249 hardcode_minus_L_CXX=yes # Not in the search PATH,
10250 # but as the default
10251 # location of the library.
10252 ;;
10253 esac
10254
10255 case $cc_basename in
10256 CC)
10257 # FIXME: insert proper C++ library support
10258 ld_shlibs_CXX=no
10259 ;;
10260 aCC)
10261 case "$host_cpu" in
10262 hppa*64*|ia64*)
10263 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10264 ;;
10265 *)
10266 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10267 ;;
10268 esac
10269 # Commands to make compiler produce verbose output that lists
10270 # what "hidden" libraries, object files and flags are used when
10271 # linking a shared library.
10272 #
10273 # There doesn't appear to be a way to prevent this compiler from
10274 # explicitly linking system object files so we need to strip them
10275 # from the output so that they don't get included in the library
10276 # dependencies.
10277 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'
10278 ;;
10279 *)
10280 if test "$GXX" = yes; then
10281 if test $with_gnu_ld = no; then
10282 case "$host_cpu" in
10283 ia64*|hppa*64*)
10284 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10285 ;;
10286 *)
10287 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'
10288 ;;
10289 esac
10290 fi
10291 else
10292 # FIXME: insert proper C++ library support
10293 ld_shlibs_CXX=no
10294 fi
10295 ;;
10296 esac
10297 ;;
10298 irix5* | irix6*)
10299 case $cc_basename in
10300 CC)
10301 # SGI C++
10302 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'
10303
10304 # Archives containing C++ object files must be created using
10305 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10306 # necessary to make sure instantiated templates are included
10307 # in the archive.
10308 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10309 ;;
10310 *)
10311 if test "$GXX" = yes; then
10312 if test "$with_gnu_ld" = no; then
10313 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'
10314 else
10315 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'
10316 fi
10317 fi
10318 link_all_deplibs_CXX=yes
10319 ;;
10320 esac
10321 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10322 hardcode_libdir_separator_CXX=:
10323 ;;
10324 linux*)
10325 case $cc_basename in
10326 KCC)
10327 # Kuck and Associates, Inc. (KAI) C++ Compiler
10328
10329 # KCC will only create a shared library if the output file
10330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10331 # to its proper name (with version) after linking.
10332 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'
10333 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'
10334 # Commands to make compiler produce verbose output that lists
10335 # what "hidden" libraries, object files and flags are used when
10336 # linking a shared library.
10337 #
10338 # There doesn't appear to be a way to prevent this compiler from
10339 # explicitly linking system object files so we need to strip them
10340 # from the output so that they don't get included in the library
10341 # dependencies.
10342 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'
10343
10344 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10346
10347 # Archives containing C++ object files must be created using
10348 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10349 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10350 ;;
10351 icpc)
10352 # Intel C++
10353 with_gnu_ld=yes
10354 archive_cmds_need_lc_CXX=no
10355 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10356 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'
10357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10358 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10359 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10360 ;;
10361 cxx)
10362 # Compaq C++
10363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10364 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'
10365
10366 runpath_var=LD_RUN_PATH
10367 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10368 hardcode_libdir_separator_CXX=:
10369
10370 # Commands to make compiler produce verbose output that lists
10371 # what "hidden" libraries, object files and flags are used when
10372 # linking a shared library.
10373 #
10374 # There doesn't appear to be a way to prevent this compiler from
10375 # explicitly linking system object files so we need to strip them
10376 # from the output so that they don't get included in the library
10377 # dependencies.
10378 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'
10379 ;;
10380 esac
10381 ;;
10382 lynxos*)
10383 # FIXME: insert proper C++ library support
10384 ld_shlibs_CXX=no
10385 ;;
10386 m88k*)
10387 # FIXME: insert proper C++ library support
10388 ld_shlibs_CXX=no
10389 ;;
10390 mvs*)
10391 case $cc_basename in
10392 cxx)
10393 # FIXME: insert proper C++ library support
10394 ld_shlibs_CXX=no
10395 ;;
10396 *)
10397 # FIXME: insert proper C++ library support
10398 ld_shlibs_CXX=no
10399 ;;
10400 esac
10401 ;;
10402 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10404 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10405 wlarc=
10406 hardcode_libdir_flag_spec_CXX='-R$libdir'
10407 hardcode_direct_CXX=yes
10408 hardcode_shlibpath_var_CXX=no
10409 fi
10410 # Workaround some broken pre-1.5 toolchains
10411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10412 ;;
10413 osf3*)
10414 case $cc_basename in
10415 KCC)
10416 # Kuck and Associates, Inc. (KAI) C++ Compiler
10417
10418 # KCC will only create a shared library if the output file
10419 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10420 # to its proper name (with version) after linking.
10421 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'
10422
10423 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10424 hardcode_libdir_separator_CXX=:
10425
10426 # Archives containing C++ object files must be created using
10427 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10428 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10429
10430 ;;
10431 RCC)
10432 # Rational C++ 2.4.1
10433 # FIXME: insert proper C++ library support
10434 ld_shlibs_CXX=no
10435 ;;
10436 cxx)
10437 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10438 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'
10439
10440 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10441 hardcode_libdir_separator_CXX=:
10442
10443 # Commands to make compiler produce verbose output that lists
10444 # what "hidden" libraries, object files and flags are used when
10445 # linking a shared library.
10446 #
10447 # There doesn't appear to be a way to prevent this compiler from
10448 # explicitly linking system object files so we need to strip them
10449 # from the output so that they don't get included in the library
10450 # dependencies.
10451 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'
10452 ;;
10453 *)
10454 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10455 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10456 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'
10457
10458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10459 hardcode_libdir_separator_CXX=:
10460
10461 # Commands to make compiler produce verbose output that lists
10462 # what "hidden" libraries, object files and flags are used when
10463 # linking a shared library.
10464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10465
10466 else
10467 # FIXME: insert proper C++ library support
10468 ld_shlibs_CXX=no
10469 fi
10470 ;;
10471 esac
10472 ;;
10473 osf4* | osf5*)
10474 case $cc_basename in
10475 KCC)
10476 # Kuck and Associates, Inc. (KAI) C++ Compiler
10477
10478 # KCC will only create a shared library if the output file
10479 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10480 # to its proper name (with version) after linking.
10481 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'
10482
10483 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10484 hardcode_libdir_separator_CXX=:
10485
10486 # Archives containing C++ object files must be created using
10487 # the KAI C++ compiler.
10488 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10489 ;;
10490 RCC)
10491 # Rational C++ 2.4.1
10492 # FIXME: insert proper C++ library support
10493 ld_shlibs_CXX=no
10494 ;;
10495 cxx)
10496 allow_undefined_flag_CXX=' -expect_unresolved \*'
10497 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'
10498 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10499 echo "-hidden">> $lib.exp~
10500 $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~
10501 $rm $lib.exp'
10502
10503 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10504 hardcode_libdir_separator_CXX=:
10505
10506 # Commands to make compiler produce verbose output that lists
10507 # what "hidden" libraries, object files and flags are used when
10508 # linking a shared library.
10509 #
10510 # There doesn't appear to be a way to prevent this compiler from
10511 # explicitly linking system object files so we need to strip them
10512 # from the output so that they don't get included in the library
10513 # dependencies.
10514 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'
10515 ;;
10516 *)
10517 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10518 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10519 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'
10520
10521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10522 hardcode_libdir_separator_CXX=:
10523
10524 # Commands to make compiler produce verbose output that lists
10525 # what "hidden" libraries, object files and flags are used when
10526 # linking a shared library.
10527 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10528
10529 else
10530 # FIXME: insert proper C++ library support
10531 ld_shlibs_CXX=no
10532 fi
10533 ;;
10534 esac
10535 ;;
10536 psos*)
10537 # FIXME: insert proper C++ library support
10538 ld_shlibs_CXX=no
10539 ;;
10540 sco*)
10541 archive_cmds_need_lc_CXX=no
10542 case $cc_basename in
10543 CC)
10544 # FIXME: insert proper C++ library support
10545 ld_shlibs_CXX=no
10546 ;;
10547 *)
10548 # FIXME: insert proper C++ library support
10549 ld_shlibs_CXX=no
10550 ;;
10551 esac
10552 ;;
10553 sunos4*)
10554 case $cc_basename in
10555 CC)
10556 # Sun C++ 4.x
10557 # FIXME: insert proper C++ library support
10558 ld_shlibs_CXX=no
10559 ;;
10560 lcc)
10561 # Lucid
10562 # FIXME: insert proper C++ library support
10563 ld_shlibs_CXX=no
10564 ;;
10565 *)
10566 # FIXME: insert proper C++ library support
10567 ld_shlibs_CXX=no
10568 ;;
10569 esac
10570 ;;
10571 solaris*)
10572 case $cc_basename in
10573 CC)
10574 # Sun C++ 4.2, 5.x and Centerline C++
10575 no_undefined_flag_CXX=' -zdefs'
10576 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10577 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10578 $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'
10579
10580 hardcode_libdir_flag_spec_CXX='-R$libdir'
10581 hardcode_shlibpath_var_CXX=no
10582 case $host_os in
10583 solaris2.0-5 | solaris2.0-5.*) ;;
10584 *)
10585 # The C++ compiler is used as linker so we must use $wl
10586 # flag to pass the commands to the underlying system
10587 # linker.
10588 # Supported since Solaris 2.6 (maybe 2.5.1?)
10589 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10590 ;;
10591 esac
10592 link_all_deplibs_CXX=yes
10593
10594 # Commands to make compiler produce verbose output that lists
10595 # what "hidden" libraries, object files and flags are used when
10596 # linking a shared library.
10597 #
10598 # There doesn't appear to be a way to prevent this compiler from
10599 # explicitly linking system object files so we need to strip them
10600 # from the output so that they don't get included in the library
10601 # dependencies.
10602 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'
10603
10604 # Archives containing C++ object files must be created using
10605 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10606 # necessary to make sure instantiated templates are included
10607 # in the archive.
10608 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10609 ;;
10610 gcx)
10611 # Green Hills C++ Compiler
10612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10613
10614 # The C++ compiler must be used to create the archive.
10615 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10616 ;;
10617 *)
10618 # GNU C++ compiler with Solaris linker
10619 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10620 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10621 if $CC --version | grep -v '^2\.7' > /dev/null; then
10622 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10623 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10624 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10625
10626 # Commands to make compiler produce verbose output that lists
10627 # what "hidden" libraries, object files and flags are used when
10628 # linking a shared library.
10629 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10630 else
10631 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10632 # platform.
10633 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10634 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10635 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10636
10637 # Commands to make compiler produce verbose output that lists
10638 # what "hidden" libraries, object files and flags are used when
10639 # linking a shared library.
10640 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10641 fi
10642
10643 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10644 fi
10645 ;;
10646 esac
10647 ;;
10648 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10649 archive_cmds_need_lc_CXX=no
10650 ;;
10651 tandem*)
10652 case $cc_basename in
10653 NCC)
10654 # NonStop-UX NCC 3.20
10655 # FIXME: insert proper C++ library support
10656 ld_shlibs_CXX=no
10657 ;;
10658 *)
10659 # FIXME: insert proper C++ library support
10660 ld_shlibs_CXX=no
10661 ;;
10662 esac
10663 ;;
10664 vxworks*)
10665 # FIXME: insert proper C++ library support
10666 ld_shlibs_CXX=no
10667 ;;
10668 *)
10669 # FIXME: insert proper C++ library support
10670 ld_shlibs_CXX=no
10671 ;;
10672esac
10673echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10674echo "${ECHO_T}$ld_shlibs_CXX" >&6
10675test "$ld_shlibs_CXX" = no && can_build_shared=no
10676
10677GCC_CXX="$GXX"
10678LD_CXX="$LD"
10679
10680
10681cat > conftest.$ac_ext <<EOF
10682class Foo
10683{
10684public:
10685 Foo (void) { a = 0; }
10686private:
10687 int a;
10688};
10689EOF
10690
10691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10692 (eval $ac_compile) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; then
10696 # Parse the compiler output and extract the necessary
10697 # objects, libraries and library flags.
10698
10699 # Sentinel used to keep track of whether or not we are before
10700 # the conftest object file.
10701 pre_test_object_deps_done=no
10702
10703 # The `*' in the case matches for architectures that use `case' in
10704 # $output_verbose_cmd can trigger glob expansion during the loop
10705 # eval without this substitution.
10706 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10707
10708 for p in `eval $output_verbose_link_cmd`; do
10709 case $p in
10710
10711 -L* | -R* | -l*)
10712 # Some compilers place space between "-{L,R}" and the path.
10713 # Remove the space.
10714 if test $p = "-L" \
10715 || test $p = "-R"; then
10716 prev=$p
10717 continue
10718 else
10719 prev=
10720 fi
10721
10722 if test "$pre_test_object_deps_done" = no; then
10723 case $p in
10724 -L* | -R*)
10725 # Internal compiler library paths should come after those
10726 # provided the user. The postdeps already come after the
10727 # user supplied libs so there is no need to process them.
10728 if test -z "$compiler_lib_search_path_CXX"; then
10729 compiler_lib_search_path_CXX="${prev}${p}"
10730 else
10731 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10732 fi
10733 ;;
10734 # The "-l" case would never come before the object being
10735 # linked, so don't bother handling this case.
10736 esac
10737 else
10738 if test -z "$postdeps_CXX"; then
10739 postdeps_CXX="${prev}${p}"
10740 else
10741 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10742 fi
10743 fi
10744 ;;
10745
10746 *.$objext)
10747 # This assumes that the test object file only shows up
10748 # once in the compiler output.
10749 if test "$p" = "conftest.$objext"; then
10750 pre_test_object_deps_done=yes
10751 continue
10752 fi
10753
10754 if test "$pre_test_object_deps_done" = no; then
10755 if test -z "$predep_objects_CXX"; then
10756 predep_objects_CXX="$p"
10757 else
10758 predep_objects_CXX="$predep_objects_CXX $p"
10759 fi
10760 else
10761 if test -z "$postdep_objects_CXX"; then
10762 postdep_objects_CXX="$p"
10763 else
10764 postdep_objects_CXX="$postdep_objects_CXX $p"
10765 fi
10766 fi
10767 ;;
10768
10769 *) ;; # Ignore the rest.
10770
10771 esac
10772 done
10773
10774 # Clean up.
10775 rm -f a.out a.exe
10776else
10777 echo "libtool.m4: error: problem compiling CXX test program"
10778fi
10779
10780$rm -f confest.$objext
10781
10782case " $postdeps_CXX " in
10783*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10784esac
10785
10786lt_prog_compiler_wl_CXX=
10787lt_prog_compiler_pic_CXX=
10788lt_prog_compiler_static_CXX=
10789
10790echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10791echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10792
10793 # C++ specific cases for pic, static, wl, etc.
10794 if test "$GXX" = yes; then
10795 lt_prog_compiler_wl_CXX='-Wl,'
10796 lt_prog_compiler_static_CXX='-static'
10797
10798 case $host_os in
10799 aix*)
10800 # All AIX code is PIC.
10801 if test "$host_cpu" = ia64; then
10802 # AIX 5 now supports IA64 processor
10803 lt_prog_compiler_static_CXX='-Bstatic'
10804 fi
10805 ;;
10806 amigaos*)
10807 # FIXME: we need at least 68020 code to build shared libraries, but
10808 # adding the `-m68020' flag to GCC prevents building anything better,
10809 # like `-m68040'.
10810 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10811 ;;
10812 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10813 # PIC is the default for these OSes.
10814 ;;
10815 mingw* | os2* | pw32*)
10816 # This hack is so that the source file can tell whether it is being
10817 # built for inclusion in a dll (and should export symbols for example).
10818 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10819 ;;
10820 darwin* | rhapsody*)
10821 # PIC is the default on this platform
10822 # Common symbols not allowed in MH_DYLIB files
10823 lt_prog_compiler_pic_CXX='-fno-common'
10824 ;;
10825 *djgpp*)
10826 # DJGPP does not support shared libraries at all
10827 lt_prog_compiler_pic_CXX=
10828 ;;
10829 sysv4*MP*)
10830 if test -d /usr/nec; then
10831 lt_prog_compiler_pic_CXX=-Kconform_pic
10832 fi
10833 ;;
10834 hpux*)
10835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10836 # not for PA HP-UX.
10837 case "$host_cpu" in
10838 hppa*64*|ia64*)
10839 ;;
10840 *)
10841 lt_prog_compiler_pic_CXX='-fPIC'
10842 ;;
10843 esac
10844 ;;
10845 *)
10846 lt_prog_compiler_pic_CXX='-fPIC'
10847 ;;
10848 esac
10849 else
10850 case $host_os in
10851 aix4* | aix5*)
10852 # All AIX code is PIC.
10853 if test "$host_cpu" = ia64; then
10854 # AIX 5 now supports IA64 processor
10855 lt_prog_compiler_static_CXX='-Bstatic'
10856 else
10857 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10858 fi
10859 ;;
10860 chorus*)
10861 case $cc_basename in
10862 cxch68)
10863 # Green Hills C++ Compiler
10864 # _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"
10865 ;;
10866 esac
10867 ;;
10868 dgux*)
10869 case $cc_basename in
10870 ec++)
10871 lt_prog_compiler_pic_CXX='-KPIC'
10872 ;;
10873 ghcx)
10874 # Green Hills C++ Compiler
10875 lt_prog_compiler_pic_CXX='-pic'
10876 ;;
10877 *)
10878 ;;
10879 esac
10880 ;;
10881 freebsd* | kfreebsd*-gnu)
10882 # FreeBSD uses GNU C++
10883 ;;
10884 hpux9* | hpux10* | hpux11*)
10885 case $cc_basename in
10886 CC)
10887 lt_prog_compiler_wl_CXX='-Wl,'
10888 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10889 if test "$host_cpu" != ia64; then
10890 lt_prog_compiler_pic_CXX='+Z'
10891 fi
10892 ;;
10893 aCC)
10894 lt_prog_compiler_wl_CXX='-Wl,'
10895 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10896 case "$host_cpu" in
10897 hppa*64*|ia64*)
10898 # +Z the default
10899 ;;
10900 *)
10901 lt_prog_compiler_pic_CXX='+Z'
10902 ;;
10903 esac
10904 ;;
10905 *)
10906 ;;
10907 esac
10908 ;;
10909 irix5* | irix6* | nonstopux*)
10910 case $cc_basename in
10911 CC)
10912 lt_prog_compiler_wl_CXX='-Wl,'
10913 lt_prog_compiler_static_CXX='-non_shared'
10914 # CC pic flag -KPIC is the default.
10915 ;;
10916 *)
10917 ;;
10918 esac
10919 ;;
10920 linux*)
10921 case $cc_basename in
10922 KCC)
10923 # KAI C++ Compiler
10924 lt_prog_compiler_wl_CXX='--backend -Wl,'
10925 lt_prog_compiler_pic_CXX='-fPIC'
10926 ;;
10927 icpc)
10928 # Intel C++
10929 lt_prog_compiler_wl_CXX='-Wl,'
10930 lt_prog_compiler_pic_CXX='-KPIC'
10931 lt_prog_compiler_static_CXX='-static'
10932 ;;
10933 cxx)
10934 # Compaq C++
10935 # Make sure the PIC flag is empty. It appears that all Alpha
10936 # Linux and Compaq Tru64 Unix objects are PIC.
10937 lt_prog_compiler_pic_CXX=
10938 lt_prog_compiler_static_CXX='-non_shared'
10939 ;;
10940 *)
10941 ;;
10942 esac
10943 ;;
10944 lynxos*)
10945 ;;
10946 m88k*)
10947 ;;
10948 mvs*)
10949 case $cc_basename in
10950 cxx)
10951 lt_prog_compiler_pic_CXX='-W c,exportall'
10952 ;;
10953 *)
10954 ;;
10955 esac
10956 ;;
10957 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10958 ;;
10959 osf3* | osf4* | osf5*)
10960 case $cc_basename in
10961 KCC)
10962 lt_prog_compiler_wl_CXX='--backend -Wl,'
10963 ;;
10964 RCC)
10965 # Rational C++ 2.4.1
10966 lt_prog_compiler_pic_CXX='-pic'
10967 ;;
10968 cxx)
10969 # Digital/Compaq C++
10970 lt_prog_compiler_wl_CXX='-Wl,'
10971 # Make sure the PIC flag is empty. It appears that all Alpha
10972 # Linux and Compaq Tru64 Unix objects are PIC.
10973 lt_prog_compiler_pic_CXX=
10974 lt_prog_compiler_static_CXX='-non_shared'
10975 ;;
10976 *)
10977 ;;
10978 esac
10979 ;;
10980 psos*)
10981 ;;
10982 sco*)
10983 case $cc_basename in
10984 CC)
10985 lt_prog_compiler_pic_CXX='-fPIC'
10986 ;;
10987 *)
10988 ;;
10989 esac
10990 ;;
10991 solaris*)
10992 case $cc_basename in
10993 CC)
10994 # Sun C++ 4.2, 5.x and Centerline C++
10995 lt_prog_compiler_pic_CXX='-KPIC'
10996 lt_prog_compiler_static_CXX='-Bstatic'
10997 lt_prog_compiler_wl_CXX='-Qoption ld '
10998 ;;
10999 gcx)
11000 # Green Hills C++ Compiler
11001 lt_prog_compiler_pic_CXX='-PIC'
11002 ;;
11003 *)
11004 ;;
11005 esac
11006 ;;
11007 sunos4*)
11008 case $cc_basename in
11009 CC)
11010 # Sun C++ 4.x
11011 lt_prog_compiler_pic_CXX='-pic'
11012 lt_prog_compiler_static_CXX='-Bstatic'
11013 ;;
11014 lcc)
11015 # Lucid
11016 lt_prog_compiler_pic_CXX='-pic'
11017 ;;
11018 *)
11019 ;;
11020 esac
11021 ;;
11022 tandem*)
11023 case $cc_basename in
11024 NCC)
11025 # NonStop-UX NCC 3.20
11026 lt_prog_compiler_pic_CXX='-KPIC'
11027 ;;
11028 *)
11029 ;;
11030 esac
11031 ;;
11032 unixware*)
11033 ;;
11034 vxworks*)
11035 ;;
11036 *)
11037 lt_prog_compiler_can_build_shared_CXX=no
11038 ;;
11039 esac
11040 fi
11041
11042echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11043echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11044
11045#
11046# Check to make sure the PIC flag actually works.
11047#
11048if test -n "$lt_prog_compiler_pic_CXX"; then
11049
11050echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11051echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11052if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054else
11055 lt_prog_compiler_pic_works_CXX=no
11056 ac_outfile=conftest.$ac_objext
11057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11058 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11059 # Insert the option either (1) after the last *FLAGS variable, or
11060 # (2) before a word containing "conftest.", or (3) at the end.
11061 # Note that $ac_compile itself does not contain backslashes and begins
11062 # with a dollar sign (not a hyphen), so the echo should work correctly.
11063 # The option is referenced via a variable to avoid confusing sed.
11064 lt_compile=`echo "$ac_compile" | $SED \
11065 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11067 -e 's:$: $lt_compiler_flag:'`
11068 (eval echo "\"\$as_me:11068: $lt_compile\"" >&5)
11069 (eval "$lt_compile" 2>conftest.err)
11070 ac_status=$?
11071 cat conftest.err >&5
11072 echo "$as_me:11072: \$? = $ac_status" >&5
11073 if (exit $ac_status) && test -s "$ac_outfile"; then
11074 # The compiler can only warn and ignore the option if not recognized
11075 # So say no if there are warnings
11076 if test ! -s conftest.err; then
11077 lt_prog_compiler_pic_works_CXX=yes
11078 fi
11079 fi
11080 $rm conftest*
11081
11082fi
11083echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11084echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11085
11086if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11087 case $lt_prog_compiler_pic_CXX in
11088 "" | " "*) ;;
11089 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11090 esac
11091else
11092 lt_prog_compiler_pic_CXX=
11093 lt_prog_compiler_can_build_shared_CXX=no
11094fi
11095
11096fi
11097case "$host_os" in
11098 # For platforms which do not support PIC, -DPIC is meaningless:
11099 *djgpp*)
11100 lt_prog_compiler_pic_CXX=
11101 ;;
11102 *)
11103 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11104 ;;
11105esac
11106
11107echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11108echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11109if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111else
11112 lt_cv_prog_compiler_c_o_CXX=no
11113 $rm -r conftest 2>/dev/null
11114 mkdir conftest
11115 cd conftest
11116 mkdir out
11117 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11118
11119 lt_compiler_flag="-o out/conftest2.$ac_objext"
11120 # Insert the option either (1) after the last *FLAGS variable, or
11121 # (2) before a word containing "conftest.", or (3) at the end.
11122 # Note that $ac_compile itself does not contain backslashes and begins
11123 # with a dollar sign (not a hyphen), so the echo should work correctly.
11124 lt_compile=`echo "$ac_compile" | $SED \
11125 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11127 -e 's:$: $lt_compiler_flag:'`
11128 (eval echo "\"\$as_me:11128: $lt_compile\"" >&5)
11129 (eval "$lt_compile" 2>out/conftest.err)
11130 ac_status=$?
11131 cat out/conftest.err >&5
11132 echo "$as_me:11132: \$? = $ac_status" >&5
11133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11134 then
11135 # The compiler can only warn and ignore the option if not recognized
11136 # So say no if there are warnings
11137 if test ! -s out/conftest.err; then
11138 lt_cv_prog_compiler_c_o_CXX=yes
11139 fi
11140 fi
11141 chmod u+w .
11142 $rm conftest*
11143 # SGI C++ compiler will create directory out/ii_files/ for
11144 # template instantiation
11145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11146 $rm out/* && rmdir out
11147 cd ..
11148 rmdir conftest
11149 $rm conftest*
11150
11151fi
11152echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11153echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11154
11155
11156hard_links="nottested"
11157if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11158 # do not overwrite the value of need_locks provided by the user
11159 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11160echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11161 hard_links=yes
11162 $rm conftest*
11163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11164 touch conftest.a
11165 ln conftest.a conftest.b 2>&5 || hard_links=no
11166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11167 echo "$as_me:$LINENO: result: $hard_links" >&5
11168echo "${ECHO_T}$hard_links" >&6
11169 if test "$hard_links" = no; then
11170 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11171echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11172 need_locks=warn
11173 fi
11174else
11175 need_locks=no
11176fi
11177
11178echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11179echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11180
11181 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11182 case $host_os in
11183 aix4* | aix5*)
11184 # If we're using GNU nm, then we don't want the "-C" option.
11185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11186 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11187 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'
11188 else
11189 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'
11190 fi
11191 ;;
11192 pw32*)
11193 export_symbols_cmds_CXX="$ltdll_cmds"
11194 ;;
11195 cygwin* | mingw*)
11196 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11197 ;;
11198 linux*)
11199 link_all_deplibs_CXX=no
11200 ;;
11201 *)
11202 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11203 ;;
11204 esac
11205
11206echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11207echo "${ECHO_T}$ld_shlibs_CXX" >&6
11208test "$ld_shlibs_CXX" = no && can_build_shared=no
11209
11210variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11211if test "$GCC" = yes; then
11212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11213fi
11214
11215#
11216# Do we need to explicitly link libc?
11217#
11218case "x$archive_cmds_need_lc_CXX" in
11219x|xyes)
11220 # Assume -lc should be added
11221 archive_cmds_need_lc_CXX=yes
11222
11223 if test "$enable_shared" = yes && test "$GCC" = yes; then
11224 case $archive_cmds_CXX in
11225 *'~'*)
11226 # FIXME: we may have to deal with multi-command sequences.
11227 ;;
11228 '$CC '*)
11229 # Test whether the compiler implicitly links with -lc since on some
11230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11231 # to ld, don't add -lc before -lgcc.
11232 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11233echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11234 $rm conftest*
11235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11236
11237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11238 (eval $ac_compile) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } 2>conftest.err; then
11242 soname=conftest
11243 lib=conftest
11244 libobjs=conftest.$ac_objext
11245 deplibs=
11246 wl=$lt_prog_compiler_wl_CXX
11247 compiler_flags=-v
11248 linker_flags=-v
11249 verstring=
11250 output_objdir=.
11251 libname=conftest
11252 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11253 allow_undefined_flag_CXX=
11254 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11255 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }
11259 then
11260 archive_cmds_need_lc_CXX=no
11261 else
11262 archive_cmds_need_lc_CXX=yes
11263 fi
11264 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11265 else
11266 cat conftest.err 1>&5
11267 fi
11268 $rm conftest*
11269 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11270echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11271 ;;
11272 esac
11273 fi
11274 ;;
11275esac
11276
11277echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11278echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11279library_names_spec=
11280libname_spec='lib$name'
11281soname_spec=
11282shrext_cmds=".so"
11283postinstall_cmds=
11284postuninstall_cmds=
11285finish_cmds=
11286finish_eval=
11287shlibpath_var=
11288shlibpath_overrides_runpath=unknown
11289version_type=none
11290dynamic_linker="$host_os ld.so"
11291sys_lib_dlsearch_path_spec="/lib /usr/lib"
11292if test "$GCC" = yes; then
11293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11295 # if the path contains ";" then we assume it to be the separator
11296 # otherwise default to the standard path separator (i.e. ":") - it is
11297 # assumed that no part of a normal pathname contains ";" but that should
11298 # okay in the real world where ";" in dirpaths is itself problematic.
11299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11300 else
11301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11302 fi
11303else
11304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11305fi
11306need_lib_prefix=unknown
11307hardcode_into_libs=no
11308
11309# when you set need_version to no, make sure it does not cause -set_version
11310# flags to be left without arguments
11311need_version=unknown
11312
11313case $host_os in
11314aix3*)
11315 version_type=linux
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11317 shlibpath_var=LIBPATH
11318
11319 # AIX 3 has no versioning support, so we append a major version to the name.
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 ;;
11322
11323aix4* | aix5*)
11324 version_type=linux
11325 need_lib_prefix=no
11326 need_version=no
11327 hardcode_into_libs=yes
11328 if test "$host_cpu" = ia64; then
11329 # AIX 5 supports IA64
11330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 else
11333 # With GCC up to 2.95.x, collect2 would create an import file
11334 # for dependence libraries. The import file would start with
11335 # the line `#! .'. This would cause the generated library to
11336 # depend on `.', always an invalid library. This was fixed in
11337 # development snapshots of GCC prior to 3.0.
11338 case $host_os in
11339 aix4 | aix4.[01] | aix4.[01].*)
11340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11341 echo ' yes '
11342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11343 :
11344 else
11345 can_build_shared=no
11346 fi
11347 ;;
11348 esac
11349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11350 # soname into executable. Probably we can add versioning support to
11351 # collect2, so additional links can be useful in future.
11352 if test "$aix_use_runtimelinking" = yes; then
11353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11354 # instead of lib<name>.a to let people know that these are not
11355 # typical AIX shared libraries.
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 else
11358 # We preserve .a as extension for shared libraries through AIX4.2
11359 # and later when we are not doing run time linking.
11360 library_names_spec='${libname}${release}.a $libname.a'
11361 soname_spec='${libname}${release}${shared_ext}$major'
11362 fi
11363 shlibpath_var=LIBPATH
11364 fi
11365 ;;
11366
11367amigaos*)
11368 library_names_spec='$libname.ixlibrary $libname.a'
11369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11370 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'
11371 ;;
11372
11373beos*)
11374 library_names_spec='${libname}${shared_ext}'
11375 dynamic_linker="$host_os ld.so"
11376 shlibpath_var=LIBRARY_PATH
11377 ;;
11378
11379bsdi4*)
11380 version_type=linux
11381 need_version=no
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11388 # the default ld.so.conf also contains /usr/contrib/lib and
11389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11390 # libtool to hard-code these into programs
11391 ;;
11392
11393cygwin* | mingw* | pw32*)
11394 version_type=windows
11395 shrext_cmds=".dll"
11396 need_version=no
11397 need_lib_prefix=no
11398
11399 case $GCC,$host_os in
11400 yes,cygwin* | yes,mingw* | yes,pw32*)
11401 library_names_spec='$libname.dll.a'
11402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11403 postinstall_cmds='base_file=`basename \${file}`~
11404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11405 dldir=$destdir/`dirname \$dlpath`~
11406 test -d \$dldir || mkdir -p \$dldir~
11407 $install_prog $dir/$dlname \$dldir/$dlname'
11408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409 dlpath=$dir/\$dldll~
11410 $rm \$dlpath'
11411 shlibpath_overrides_runpath=yes
11412
11413 case $host_os in
11414 cygwin*)
11415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11418 ;;
11419 mingw*)
11420 # MinGW DLLs use traditional 'lib' prefix
11421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11423 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11424 # It is most probably a Windows format PATH printed by
11425 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11426 # path with ; separators, and with drive letters. We can handle the
11427 # drive letters (cygwin fileutils understands them), so leave them,
11428 # especially as we might pass files found there to a mingw objdump,
11429 # which wouldn't understand a cygwinified path. Ahh.
11430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11431 else
11432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11433 fi
11434 ;;
11435 pw32*)
11436 # pw32 DLLs use 'pw' prefix rather than 'lib'
11437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11438 ;;
11439 esac
11440 ;;
11441
11442 *)
11443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11444 ;;
11445 esac
11446 dynamic_linker='Win32 ld.exe'
11447 # FIXME: first we should search . and the directory the executable is in
11448 shlibpath_var=PATH
11449 ;;
11450
11451darwin* | rhapsody*)
11452 dynamic_linker="$host_os dyld"
11453 version_type=darwin
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11457 soname_spec='${libname}${release}${major}$shared_ext'
11458 shlibpath_overrides_runpath=yes
11459 shlibpath_var=DYLD_LIBRARY_PATH
11460 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11461 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11462 if test "$GCC" = yes; then
11463 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"`
11464 else
11465 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11466 fi
11467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11468 ;;
11469
11470dgux*)
11471 version_type=linux
11472 need_lib_prefix=no
11473 need_version=no
11474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11475 soname_spec='${libname}${release}${shared_ext}$major'
11476 shlibpath_var=LD_LIBRARY_PATH
11477 ;;
11478
11479freebsd1*)
11480 dynamic_linker=no
11481 ;;
11482
11483kfreebsd*-gnu)
11484 version_type=linux
11485 need_lib_prefix=no
11486 need_version=no
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 shlibpath_overrides_runpath=no
11491 hardcode_into_libs=yes
11492 dynamic_linker='GNU ld.so'
11493 ;;
11494
11495freebsd*)
11496 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11497 version_type=freebsd-$objformat
11498 case $version_type in
11499 freebsd-elf*)
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11501 need_version=no
11502 need_lib_prefix=no
11503 ;;
11504 freebsd-*)
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11506 need_version=yes
11507 ;;
11508 esac
11509 shlibpath_var=LD_LIBRARY_PATH
11510 case $host_os in
11511 freebsd2*)
11512 shlibpath_overrides_runpath=yes
11513 ;;
11514 freebsd3.01* | freebsdelf3.01*)
11515 shlibpath_overrides_runpath=yes
11516 hardcode_into_libs=yes
11517 ;;
11518 *) # from 3.2 on
11519 shlibpath_overrides_runpath=no
11520 hardcode_into_libs=yes
11521 ;;
11522 esac
11523 ;;
11524
11525gnu*)
11526 version_type=linux
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 hardcode_into_libs=yes
11533 ;;
11534
11535hpux9* | hpux10* | hpux11*)
11536 # Give a soname corresponding to the major version so that dld.sl refuses to
11537 # link against other versions.
11538 version_type=sunos
11539 need_lib_prefix=no
11540 need_version=no
11541 case "$host_cpu" in
11542 ia64*)
11543 shrext_cmds='.so'
11544 hardcode_into_libs=yes
11545 dynamic_linker="$host_os dld.so"
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 if test "X$HPUX_IA64_MODE" = X32; then
11551 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11552 else
11553 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11554 fi
11555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11556 ;;
11557 hppa*64*)
11558 shrext_cmds='.sl'
11559 hardcode_into_libs=yes
11560 dynamic_linker="$host_os dld.sl"
11561 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11564 soname_spec='${libname}${release}${shared_ext}$major'
11565 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11567 ;;
11568 *)
11569 shrext_cmds='.sl'
11570 dynamic_linker="$host_os dld.sl"
11571 shlibpath_var=SHLIB_PATH
11572 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 ;;
11576 esac
11577 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11578 postinstall_cmds='chmod 555 $lib'
11579 ;;
11580
11581irix5* | irix6* | nonstopux*)
11582 case $host_os in
11583 nonstopux*) version_type=nonstopux ;;
11584 *)
11585 if test "$lt_cv_prog_gnu_ld" = yes; then
11586 version_type=linux
11587 else
11588 version_type=irix
11589 fi ;;
11590 esac
11591 need_lib_prefix=no
11592 need_version=no
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11595 case $host_os in
11596 irix5* | nonstopux*)
11597 libsuff= shlibsuff=
11598 ;;
11599 *)
11600 case $LD in # libtool.m4 will add one of these switches to LD
11601 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11602 libsuff= shlibsuff= libmagic=32-bit;;
11603 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11604 libsuff=32 shlibsuff=N32 libmagic=N32;;
11605 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11606 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11607 *) libsuff= shlibsuff= libmagic=never-match;;
11608 esac
11609 ;;
11610 esac
11611 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11612 shlibpath_overrides_runpath=no
11613 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11614 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11615 hardcode_into_libs=yes
11616 ;;
11617
11618# No shared lib support for Linux oldld, aout, or coff.
11619linux*oldld* | linux*aout* | linux*coff*)
11620 dynamic_linker=no
11621 ;;
11622
11623# This must be Linux ELF.
11624linux*)
11625 version_type=linux
11626 need_lib_prefix=no
11627 need_version=no
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=no
11633 # This implies no fast_install, which is unacceptable.
11634 # Some rework will be needed to allow for fast_install
11635 # before this can be enabled.
11636 hardcode_into_libs=yes
11637
11638 # Append ld.so.conf contents to the search path
11639 if test -f /etc/ld.so.conf; then
11640 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11641 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11642 fi
11643
11644 # We used to test for /lib/ld.so.1 and disable shared libraries on
11645 # powerpc, because MkLinux only supported shared libraries with the
11646 # GNU dynamic linker. Since this was broken with cross compilers,
11647 # most powerpc-linux boxes support dynamic linking these days and
11648 # people can always --disable-shared, the test was removed, and we
11649 # assume the GNU/Linux dynamic linker is in use.
11650 dynamic_linker='GNU/Linux ld.so'
11651 ;;
11652
11653netbsdelf*-gnu)
11654 version_type=linux
11655 need_lib_prefix=no
11656 need_version=no
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=no
11661 hardcode_into_libs=yes
11662 dynamic_linker='NetBSD ld.elf_so'
11663 ;;
11664
11665knetbsd*-gnu)
11666 version_type=linux
11667 need_lib_prefix=no
11668 need_version=no
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=no
11673 hardcode_into_libs=yes
11674 dynamic_linker='GNU ld.so'
11675 ;;
11676
11677netbsd*)
11678 version_type=sunos
11679 need_lib_prefix=no
11680 need_version=no
11681 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11684 dynamic_linker='NetBSD (a.out) ld.so'
11685 else
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11687 soname_spec='${libname}${release}${shared_ext}$major'
11688 dynamic_linker='NetBSD ld.elf_so'
11689 fi
11690 shlibpath_var=LD_LIBRARY_PATH
11691 shlibpath_overrides_runpath=yes
11692 hardcode_into_libs=yes
11693 ;;
11694
11695newsos6)
11696 version_type=linux
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 shlibpath_var=LD_LIBRARY_PATH
11699 shlibpath_overrides_runpath=yes
11700 ;;
11701
11702nto-qnx*)
11703 version_type=linux
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 ;;
11711
11712openbsd*)
11713 version_type=sunos
11714 need_lib_prefix=no
11715 need_version=yes
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11718 shlibpath_var=LD_LIBRARY_PATH
11719 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11720 case $host_os in
11721 openbsd2.[89] | openbsd2.[89].*)
11722 shlibpath_overrides_runpath=no
11723 ;;
11724 *)
11725 shlibpath_overrides_runpath=yes
11726 ;;
11727 esac
11728 else
11729 shlibpath_overrides_runpath=yes
11730 fi
11731 ;;
11732
11733os2*)
11734 libname_spec='$name'
11735 shrext_cmds=".dll"
11736 need_lib_prefix=no
11737 library_names_spec='$libname${shared_ext} $libname.a'
11738 dynamic_linker='OS/2 ld.exe'
11739 shlibpath_var=LIBPATH
11740 ;;
11741
11742osf3* | osf4* | osf5*)
11743 version_type=osf
11744 need_lib_prefix=no
11745 need_version=no
11746 soname_spec='${libname}${release}${shared_ext}$major'
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11750 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11751 ;;
11752
11753sco3.2v5*)
11754 version_type=osf
11755 soname_spec='${libname}${release}${shared_ext}$major'
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757 shlibpath_var=LD_LIBRARY_PATH
11758 ;;
11759
11760solaris*)
11761 version_type=linux
11762 need_lib_prefix=no
11763 need_version=no
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11766 shlibpath_var=LD_LIBRARY_PATH
11767 shlibpath_overrides_runpath=yes
11768 hardcode_into_libs=yes
11769 # ldd complains unless libraries are executable
11770 postinstall_cmds='chmod +x $lib'
11771 ;;
11772
11773sunos4*)
11774 version_type=sunos
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=yes
11779 if test "$with_gnu_ld" = yes; then
11780 need_lib_prefix=no
11781 fi
11782 need_version=yes
11783 ;;
11784
11785sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11786 version_type=linux
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 case $host_vendor in
11791 sni)
11792 shlibpath_overrides_runpath=no
11793 need_lib_prefix=no
11794 export_dynamic_flag_spec='${wl}-Blargedynsym'
11795 runpath_var=LD_RUN_PATH
11796 ;;
11797 siemens)
11798 need_lib_prefix=no
11799 ;;
11800 motorola)
11801 need_lib_prefix=no
11802 need_version=no
11803 shlibpath_overrides_runpath=no
11804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11805 ;;
11806 esac
11807 ;;
11808
11809sysv4*MP*)
11810 if test -d /usr/nec ;then
11811 version_type=linux
11812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11813 soname_spec='$libname${shared_ext}.$major'
11814 shlibpath_var=LD_LIBRARY_PATH
11815 fi
11816 ;;
11817
11818uts4*)
11819 version_type=linux
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821 soname_spec='${libname}${release}${shared_ext}$major'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 ;;
11824
11825*)
11826 dynamic_linker=no
11827 ;;
11828esac
11829echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11830echo "${ECHO_T}$dynamic_linker" >&6
11831test "$dynamic_linker" = no && can_build_shared=no
11832
11833echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11834echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11835hardcode_action_CXX=
11836if test -n "$hardcode_libdir_flag_spec_CXX" || \
11837 test -n "$runpath_var CXX" || \
11838 test "X$hardcode_automatic_CXX"="Xyes" ; then
11839
11840 # We can hardcode non-existant directories.
11841 if test "$hardcode_direct_CXX" != no &&
11842 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11843 # have to relink, otherwise we might link with an installed library
11844 # when we should be linking with a yet-to-be-installed one
11845 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11846 test "$hardcode_minus_L_CXX" != no; then
11847 # Linking always hardcodes the temporary library directory.
11848 hardcode_action_CXX=relink
11849 else
11850 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11851 hardcode_action_CXX=immediate
11852 fi
11853else
11854 # We cannot hardcode anything, or else we can only hardcode existing
11855 # directories.
11856 hardcode_action_CXX=unsupported
11857fi
11858echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11859echo "${ECHO_T}$hardcode_action_CXX" >&6
11860
11861if test "$hardcode_action_CXX" = relink; then
11862 # Fast installation is not supported
11863 enable_fast_install=no
11864elif test "$shlibpath_overrides_runpath" = yes ||
11865 test "$enable_shared" = no; then
11866 # Fast installation is not necessary
11867 enable_fast_install=needless
11868fi
11869
11870striplib=
11871old_striplib=
11872echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11873echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11874if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11877 echo "$as_me:$LINENO: result: yes" >&5
11878echo "${ECHO_T}yes" >&6
11879else
11880# FIXME - insert some real tests, host_os isn't really good enough
11881 case $host_os in
11882 darwin*)
11883 if test -n "$STRIP" ; then
11884 striplib="$STRIP -x"
11885 echo "$as_me:$LINENO: result: yes" >&5
11886echo "${ECHO_T}yes" >&6
11887 else
11888 echo "$as_me:$LINENO: result: no" >&5
11889echo "${ECHO_T}no" >&6
11890fi
11891 ;;
11892 *)
11893 echo "$as_me:$LINENO: result: no" >&5
11894echo "${ECHO_T}no" >&6
11895 ;;
11896 esac
11897fi
11898
11899if test "x$enable_dlopen" != xyes; then
11900 enable_dlopen=unknown
11901 enable_dlopen_self=unknown
11902 enable_dlopen_self_static=unknown
11903else
11904 lt_cv_dlopen=no
11905 lt_cv_dlopen_libs=
11906
11907 case $host_os in
11908 beos*)
11909 lt_cv_dlopen="load_add_on"
11910 lt_cv_dlopen_libs=
11911 lt_cv_dlopen_self=yes
11912 ;;
11913
11914 mingw* | pw32*)
11915 lt_cv_dlopen="LoadLibrary"
11916 lt_cv_dlopen_libs=
11917 ;;
11918
11919 cygwin*)
11920 lt_cv_dlopen="dlopen"
11921 lt_cv_dlopen_libs=
11922 ;;
11923
11924 darwin*)
11925 # if libdl is installed we need to link against it
11926 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11927echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11928if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11930else
11931 ac_check_lib_save_LIBS=$LIBS
11932LIBS="-ldl $LIBS"
11933cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
11939
11940/* Override any gcc2 internal prototype to avoid an error. */
11941#ifdef __cplusplus
11942extern "C"
11943#endif
11944/* We use char because int might match the return type of a gcc2
11945 builtin and then its argument prototype would still apply. */
11946char dlopen ();
11947int
11948main ()
11949{
11950dlopen ();
11951 ;
11952 return 0;
11953}
11954_ACEOF
11955rm -f conftest.$ac_objext conftest$ac_exeext
11956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11957 (eval $ac_link) 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } &&
11964 { ac_try='test -z "$ac_cxx_werror_flag"
11965 || test ! -s conftest.err'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; } &&
11971 { ac_try='test -s conftest$ac_exeext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_dl_dlopen=yes
11978else
11979 echo "$as_me: failed program was:" >&5
11980sed 's/^/| /' conftest.$ac_ext >&5
11981
11982ac_cv_lib_dl_dlopen=no
11983fi
11984rm -f conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986LIBS=$ac_check_lib_save_LIBS
11987fi
11988echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11989echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11990if test $ac_cv_lib_dl_dlopen = yes; then
11991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11992else
11993
11994 lt_cv_dlopen="dyld"
11995 lt_cv_dlopen_libs=
11996 lt_cv_dlopen_self=yes
11997
11998fi
11999
12000 ;;
12001
12002 *)
12003 echo "$as_me:$LINENO: checking for shl_load" >&5
12004echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12005if test "${ac_cv_func_shl_load+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 cat >conftest.$ac_ext <<_ACEOF
12009/* confdefs.h. */
12010_ACEOF
12011cat confdefs.h >>conftest.$ac_ext
12012cat >>conftest.$ac_ext <<_ACEOF
12013/* end confdefs.h. */
12014/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12016#define shl_load innocuous_shl_load
12017
12018/* System header to define __stub macros and hopefully few prototypes,
12019 which can conflict with char shl_load (); below.
12020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021 <limits.h> exists even on freestanding compilers. */
12022
12023#ifdef __STDC__
12024# include <limits.h>
12025#else
12026# include <assert.h>
12027#endif
12028
12029#undef shl_load
12030
12031/* Override any gcc2 internal prototype to avoid an error. */
12032#ifdef __cplusplus
12033extern "C"
12034{
12035#endif
12036/* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12038char shl_load ();
12039/* The GNU C library defines this for functions which it implements
12040 to always fail with ENOSYS. Some functions are actually named
12041 something starting with __ and the normal name is an alias. */
12042#if defined (__stub_shl_load) || defined (__stub___shl_load)
12043choke me
12044#else
12045char (*f) () = shl_load;
12046#endif
12047#ifdef __cplusplus
12048}
12049#endif
12050
12051int
12052main ()
12053{
12054return f != shl_load;
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
12060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_cxx_werror_flag"
12069 || test ! -s conftest.err'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_func_shl_load=yes
12082else
12083 echo "$as_me: failed program was:" >&5
12084sed 's/^/| /' conftest.$ac_ext >&5
12085
12086ac_cv_func_shl_load=no
12087fi
12088rm -f conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090fi
12091echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12092echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12093if test $ac_cv_func_shl_load = yes; then
12094 lt_cv_dlopen="shl_load"
12095else
12096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12097echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12098if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100else
12101 ac_check_lib_save_LIBS=$LIBS
12102LIBS="-ldld $LIBS"
12103cat >conftest.$ac_ext <<_ACEOF
12104/* confdefs.h. */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h. */
12109
12110/* Override any gcc2 internal prototype to avoid an error. */
12111#ifdef __cplusplus
12112extern "C"
12113#endif
12114/* We use char because int might match the return type of a gcc2
12115 builtin and then its argument prototype would still apply. */
12116char shl_load ();
12117int
12118main ()
12119{
12120shl_load ();
12121 ;
12122 return 0;
12123}
12124_ACEOF
12125rm -f conftest.$ac_objext conftest$ac_exeext
12126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127 (eval $ac_link) 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_cxx_werror_flag"
12135 || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest$ac_exeext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_lib_dld_shl_load=yes
12148else
12149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152ac_cv_lib_dld_shl_load=no
12153fi
12154rm -f conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156LIBS=$ac_check_lib_save_LIBS
12157fi
12158echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12159echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12160if test $ac_cv_lib_dld_shl_load = yes; then
12161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12162else
12163 echo "$as_me:$LINENO: checking for dlopen" >&5
12164echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12165if test "${ac_cv_func_dlopen+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167else
12168 cat >conftest.$ac_ext <<_ACEOF
12169/* confdefs.h. */
12170_ACEOF
12171cat confdefs.h >>conftest.$ac_ext
12172cat >>conftest.$ac_ext <<_ACEOF
12173/* end confdefs.h. */
12174/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12176#define dlopen innocuous_dlopen
12177
12178/* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char dlopen (); below.
12180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181 <limits.h> exists even on freestanding compilers. */
12182
12183#ifdef __STDC__
12184# include <limits.h>
12185#else
12186# include <assert.h>
12187#endif
12188
12189#undef dlopen
12190
12191/* Override any gcc2 internal prototype to avoid an error. */
12192#ifdef __cplusplus
12193extern "C"
12194{
12195#endif
12196/* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12198char dlopen ();
12199/* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202#if defined (__stub_dlopen) || defined (__stub___dlopen)
12203choke me
12204#else
12205char (*f) () = dlopen;
12206#endif
12207#ifdef __cplusplus
12208}
12209#endif
12210
12211int
12212main ()
12213{
12214return f != dlopen;
12215 ;
12216 return 0;
12217}
12218_ACEOF
12219rm -f conftest.$ac_objext conftest$ac_exeext
12220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_cxx_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_func_dlopen=yes
12242else
12243 echo "$as_me: failed program was:" >&5
12244sed 's/^/| /' conftest.$ac_ext >&5
12245
12246ac_cv_func_dlopen=no
12247fi
12248rm -f conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250fi
12251echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12252echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12253if test $ac_cv_func_dlopen = yes; then
12254 lt_cv_dlopen="dlopen"
12255else
12256 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12257echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12258if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12260else
12261 ac_check_lib_save_LIBS=$LIBS
12262LIBS="-ldl $LIBS"
12263cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h. */
12269
12270/* Override any gcc2 internal prototype to avoid an error. */
12271#ifdef __cplusplus
12272extern "C"
12273#endif
12274/* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12276char dlopen ();
12277int
12278main ()
12279{
12280dlopen ();
12281 ;
12282 return 0;
12283}
12284_ACEOF
12285rm -f conftest.$ac_objext conftest$ac_exeext
12286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_cxx_werror_flag"
12295 || test ! -s conftest.err'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; } &&
12301 { ac_try='test -s conftest$ac_exeext'
12302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_lib_dl_dlopen=yes
12308else
12309 echo "$as_me: failed program was:" >&5
12310sed 's/^/| /' conftest.$ac_ext >&5
12311
12312ac_cv_lib_dl_dlopen=no
12313fi
12314rm -f conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
12316LIBS=$ac_check_lib_save_LIBS
12317fi
12318echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12319echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12320if test $ac_cv_lib_dl_dlopen = yes; then
12321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12322else
12323 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12324echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12325if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12327else
12328 ac_check_lib_save_LIBS=$LIBS
12329LIBS="-lsvld $LIBS"
12330cat >conftest.$ac_ext <<_ACEOF
12331/* confdefs.h. */
12332_ACEOF
12333cat confdefs.h >>conftest.$ac_ext
12334cat >>conftest.$ac_ext <<_ACEOF
12335/* end confdefs.h. */
12336
12337/* Override any gcc2 internal prototype to avoid an error. */
12338#ifdef __cplusplus
12339extern "C"
12340#endif
12341/* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12343char dlopen ();
12344int
12345main ()
12346{
12347dlopen ();
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352rm -f conftest.$ac_objext conftest$ac_exeext
12353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_cxx_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_lib_svld_dlopen=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379ac_cv_lib_svld_dlopen=no
12380fi
12381rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383LIBS=$ac_check_lib_save_LIBS
12384fi
12385echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12386echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12387if test $ac_cv_lib_svld_dlopen = yes; then
12388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12389else
12390 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12391echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12392if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394else
12395 ac_check_lib_save_LIBS=$LIBS
12396LIBS="-ldld $LIBS"
12397cat >conftest.$ac_ext <<_ACEOF
12398/* confdefs.h. */
12399_ACEOF
12400cat confdefs.h >>conftest.$ac_ext
12401cat >>conftest.$ac_ext <<_ACEOF
12402/* end confdefs.h. */
12403
12404/* Override any gcc2 internal prototype to avoid an error. */
12405#ifdef __cplusplus
12406extern "C"
12407#endif
12408/* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12410char dld_link ();
12411int
12412main ()
12413{
12414dld_link ();
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext conftest$ac_exeext
12420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12421 (eval $ac_link) 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_cxx_werror_flag"
12429 || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12432 ac_status=$?
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest$ac_exeext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_cv_lib_dld_dld_link=yes
12442else
12443 echo "$as_me: failed program was:" >&5
12444sed 's/^/| /' conftest.$ac_ext >&5
12445
12446ac_cv_lib_dld_dld_link=no
12447fi
12448rm -f conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450LIBS=$ac_check_lib_save_LIBS
12451fi
12452echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12453echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12454if test $ac_cv_lib_dld_dld_link = yes; then
12455 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12456fi
12457
12458
12459fi
12460
12461
12462fi
12463
12464
12465fi
12466
12467
12468fi
12469
12470
12471fi
12472
12473 ;;
12474 esac
12475
12476 if test "x$lt_cv_dlopen" != xno; then
12477 enable_dlopen=yes
12478 else
12479 enable_dlopen=no
12480 fi
12481
12482 case $lt_cv_dlopen in
12483 dlopen)
12484 save_CPPFLAGS="$CPPFLAGS"
12485 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12486
12487 save_LDFLAGS="$LDFLAGS"
12488 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12489
12490 save_LIBS="$LIBS"
12491 LIBS="$lt_cv_dlopen_libs $LIBS"
12492
12493 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12494echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12495if test "${lt_cv_dlopen_self+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497else
12498 if test "$cross_compiling" = yes; then :
12499 lt_cv_dlopen_self=cross
12500else
12501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12502 lt_status=$lt_dlunknown
12503 cat > conftest.$ac_ext <<EOF
12504#line 12504 "configure"
12505#include "confdefs.h"
12506
12507#if HAVE_DLFCN_H
12508#include <dlfcn.h>
12509#endif
12510
12511#include <stdio.h>
12512
12513#ifdef RTLD_GLOBAL
12514# define LT_DLGLOBAL RTLD_GLOBAL
12515#else
12516# ifdef DL_GLOBAL
12517# define LT_DLGLOBAL DL_GLOBAL
12518# else
12519# define LT_DLGLOBAL 0
12520# endif
12521#endif
12522
12523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12524 find out it does not work in some platform. */
12525#ifndef LT_DLLAZY_OR_NOW
12526# ifdef RTLD_LAZY
12527# define LT_DLLAZY_OR_NOW RTLD_LAZY
12528# else
12529# ifdef DL_LAZY
12530# define LT_DLLAZY_OR_NOW DL_LAZY
12531# else
12532# ifdef RTLD_NOW
12533# define LT_DLLAZY_OR_NOW RTLD_NOW
12534# else
12535# ifdef DL_NOW
12536# define LT_DLLAZY_OR_NOW DL_NOW
12537# else
12538# define LT_DLLAZY_OR_NOW 0
12539# endif
12540# endif
12541# endif
12542# endif
12543#endif
12544
12545#ifdef __cplusplus
12546extern "C" void exit (int);
12547#endif
12548
12549void fnord() { int i=42;}
12550int main ()
12551{
12552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553 int status = $lt_dlunknown;
12554
12555 if (self)
12556 {
12557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559 /* dlclose (self); */
12560 }
12561
12562 exit (status);
12563}
12564EOF
12565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12570 (./conftest; exit; ) 2>/dev/null
12571 lt_status=$?
12572 case x$lt_status in
12573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12575 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12576 esac
12577 else :
12578 # compilation failed
12579 lt_cv_dlopen_self=no
12580 fi
12581fi
12582rm -fr conftest*
12583
12584
12585fi
12586echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12587echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12588
12589 if test "x$lt_cv_dlopen_self" = xyes; then
12590 LDFLAGS="$LDFLAGS $link_static_flag"
12591 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12592echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12593if test "${lt_cv_dlopen_self_static+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595else
12596 if test "$cross_compiling" = yes; then :
12597 lt_cv_dlopen_self_static=cross
12598else
12599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12600 lt_status=$lt_dlunknown
12601 cat > conftest.$ac_ext <<EOF
12602#line 12602 "configure"
12603#include "confdefs.h"
12604
12605#if HAVE_DLFCN_H
12606#include <dlfcn.h>
12607#endif
12608
12609#include <stdio.h>
12610
12611#ifdef RTLD_GLOBAL
12612# define LT_DLGLOBAL RTLD_GLOBAL
12613#else
12614# ifdef DL_GLOBAL
12615# define LT_DLGLOBAL DL_GLOBAL
12616# else
12617# define LT_DLGLOBAL 0
12618# endif
12619#endif
12620
12621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12622 find out it does not work in some platform. */
12623#ifndef LT_DLLAZY_OR_NOW
12624# ifdef RTLD_LAZY
12625# define LT_DLLAZY_OR_NOW RTLD_LAZY
12626# else
12627# ifdef DL_LAZY
12628# define LT_DLLAZY_OR_NOW DL_LAZY
12629# else
12630# ifdef RTLD_NOW
12631# define LT_DLLAZY_OR_NOW RTLD_NOW
12632# else
12633# ifdef DL_NOW
12634# define LT_DLLAZY_OR_NOW DL_NOW
12635# else
12636# define LT_DLLAZY_OR_NOW 0
12637# endif
12638# endif
12639# endif
12640# endif
12641#endif
12642
12643#ifdef __cplusplus
12644extern "C" void exit (int);
12645#endif
12646
12647void fnord() { int i=42;}
12648int main ()
12649{
12650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12651 int status = $lt_dlunknown;
12652
12653 if (self)
12654 {
12655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12657 /* dlclose (self); */
12658 }
12659
12660 exit (status);
12661}
12662EOF
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12668 (./conftest; exit; ) 2>/dev/null
12669 lt_status=$?
12670 case x$lt_status in
12671 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12672 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12673 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12674 esac
12675 else :
12676 # compilation failed
12677 lt_cv_dlopen_self_static=no
12678 fi
12679fi
12680rm -fr conftest*
12681
12682
12683fi
12684echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12685echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12686 fi
12687
12688 CPPFLAGS="$save_CPPFLAGS"
12689 LDFLAGS="$save_LDFLAGS"
12690 LIBS="$save_LIBS"
12691 ;;
12692 esac
12693
12694 case $lt_cv_dlopen_self in
12695 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12696 *) enable_dlopen_self=unknown ;;
12697 esac
12698
12699 case $lt_cv_dlopen_self_static in
12700 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12701 *) enable_dlopen_self_static=unknown ;;
12702 esac
12703fi
12704
12705
12706# The else clause should only fire when bootstrapping the
12707# libtool distribution, otherwise you forgot to ship ltmain.sh
12708# with your package, and you will get complaints that there are
12709# no rules to generate ltmain.sh.
12710if test -f "$ltmain"; then
12711 # See if we are running on zsh, and set the options which allow our commands through
12712 # without removal of \ escapes.
12713 if test -n "${ZSH_VERSION+set}" ; then
12714 setopt NO_GLOB_SUBST
12715 fi
12716 # Now quote all the things that may contain metacharacters while being
12717 # careful not to overquote the AC_SUBSTed values. We take copies of the
12718 # variables and quote the copies for generation of the libtool script.
12719 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12720 SED SHELL STRIP \
12721 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12722 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12723 deplibs_check_method reload_flag reload_cmds need_locks \
12724 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12725 lt_cv_sys_global_symbol_to_c_name_address \
12726 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12727 old_postinstall_cmds old_postuninstall_cmds \
12728 compiler_CXX \
12729 CC_CXX \
12730 LD_CXX \
12731 lt_prog_compiler_wl_CXX \
12732 lt_prog_compiler_pic_CXX \
12733 lt_prog_compiler_static_CXX \
12734 lt_prog_compiler_no_builtin_flag_CXX \
12735 export_dynamic_flag_spec_CXX \
12736 thread_safe_flag_spec_CXX \
12737 whole_archive_flag_spec_CXX \
12738 enable_shared_with_static_runtimes_CXX \
12739 old_archive_cmds_CXX \
12740 old_archive_from_new_cmds_CXX \
12741 predep_objects_CXX \
12742 postdep_objects_CXX \
12743 predeps_CXX \
12744 postdeps_CXX \
12745 compiler_lib_search_path_CXX \
12746 archive_cmds_CXX \
12747 archive_expsym_cmds_CXX \
12748 postinstall_cmds_CXX \
12749 postuninstall_cmds_CXX \
12750 old_archive_from_expsyms_cmds_CXX \
12751 allow_undefined_flag_CXX \
12752 no_undefined_flag_CXX \
12753 export_symbols_cmds_CXX \
12754 hardcode_libdir_flag_spec_CXX \
12755 hardcode_libdir_flag_spec_ld_CXX \
12756 hardcode_libdir_separator_CXX \
12757 hardcode_automatic_CXX \
12758 module_cmds_CXX \
12759 module_expsym_cmds_CXX \
12760 lt_cv_prog_compiler_c_o_CXX \
12761 exclude_expsyms_CXX \
12762 include_expsyms_CXX; do
12763
12764 case $var in
12765 old_archive_cmds_CXX | \
12766 old_archive_from_new_cmds_CXX | \
12767 archive_cmds_CXX | \
12768 archive_expsym_cmds_CXX | \
12769 module_cmds_CXX | \
12770 module_expsym_cmds_CXX | \
12771 old_archive_from_expsyms_cmds_CXX | \
12772 export_symbols_cmds_CXX | \
12773 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12774 postinstall_cmds | postuninstall_cmds | \
12775 old_postinstall_cmds | old_postuninstall_cmds | \
12776 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12777 # Double-quote double-evaled strings.
12778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12779 ;;
12780 *)
12781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12782 ;;
12783 esac
12784 done
12785
12786 case $lt_echo in
12787 *'\$0 --fallback-echo"')
12788 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12789 ;;
12790 esac
12791
12792cfgfile="$ofile"
12793
12794 cat <<__EOF__ >> "$cfgfile"
12795# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12796
12797# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12798
12799# Shell to use when invoking shell scripts.
12800SHELL=$lt_SHELL
12801
12802# Whether or not to build shared libraries.
12803build_libtool_libs=$enable_shared
12804
12805# Whether or not to build static libraries.
12806build_old_libs=$enable_static
12807
12808# Whether or not to add -lc for building shared libraries.
12809build_libtool_need_lc=$archive_cmds_need_lc_CXX
12810
12811# Whether or not to disallow shared libs when runtime libs are static
12812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12813
12814# Whether or not to optimize for fast installation.
12815fast_install=$enable_fast_install
12816
12817# The host system.
12818host_alias=$host_alias
12819host=$host
12820
12821# An echo program that does not interpret backslashes.
12822echo=$lt_echo
12823
12824# The archiver.
12825AR=$lt_AR
12826AR_FLAGS=$lt_AR_FLAGS
12827
12828# A C compiler.
12829LTCC=$lt_LTCC
12830
12831# A language-specific compiler.
12832CC=$lt_compiler_CXX
12833
12834# Is the compiler the GNU C compiler?
12835with_gcc=$GCC_CXX
12836
12837# An ERE matcher.
12838EGREP=$lt_EGREP
12839
12840# The linker used to build libraries.
12841LD=$lt_LD_CXX
12842
12843# Whether we need hard or soft links.
12844LN_S=$lt_LN_S
12845
12846# A BSD-compatible nm program.
12847NM=$lt_NM
12848
12849# A symbol stripping program
12850STRIP=$lt_STRIP
12851
12852# Used to examine libraries when file_magic_cmd begins "file"
12853MAGIC_CMD=$MAGIC_CMD
12854
12855# Used on cygwin: DLL creation program.
12856DLLTOOL="$DLLTOOL"
12857
12858# Used on cygwin: object dumper.
12859OBJDUMP="$OBJDUMP"
12860
12861# Used on cygwin: assembler.
12862AS="$AS"
12863
12864# The name of the directory that contains temporary libtool files.
12865objdir=$objdir
12866
12867# How to create reloadable object files.
12868reload_flag=$lt_reload_flag
12869reload_cmds=$lt_reload_cmds
12870
12871# How to pass a linker flag through the compiler.
12872wl=$lt_lt_prog_compiler_wl_CXX
12873
12874# Object file suffix (normally "o").
12875objext="$ac_objext"
12876
12877# Old archive suffix (normally "a").
12878libext="$libext"
12879
12880# Shared library suffix (normally ".so").
12881shrext_cmds='$shrext_cmds'
12882
12883# Executable file suffix (normally "").
12884exeext="$exeext"
12885
12886# Additional compiler flags for building library objects.
12887pic_flag=$lt_lt_prog_compiler_pic_CXX
12888pic_mode=$pic_mode
12889
12890# What is the maximum length of a command?
12891max_cmd_len=$lt_cv_sys_max_cmd_len
12892
12893# Does compiler simultaneously support -c and -o options?
12894compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12895
12896# Must we lock files when doing compilation ?
12897need_locks=$lt_need_locks
12898
12899# Do we need the lib prefix for modules?
12900need_lib_prefix=$need_lib_prefix
12901
12902# Do we need a version for libraries?
12903need_version=$need_version
12904
12905# Whether dlopen is supported.
12906dlopen_support=$enable_dlopen
12907
12908# Whether dlopen of programs is supported.
12909dlopen_self=$enable_dlopen_self
12910
12911# Whether dlopen of statically linked programs is supported.
12912dlopen_self_static=$enable_dlopen_self_static
12913
12914# Compiler flag to prevent dynamic linking.
12915link_static_flag=$lt_lt_prog_compiler_static_CXX
12916
12917# Compiler flag to turn off builtin functions.
12918no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12919
12920# Compiler flag to allow reflexive dlopens.
12921export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12922
12923# Compiler flag to generate shared objects directly from archives.
12924whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12925
12926# Compiler flag to generate thread-safe objects.
12927thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12928
12929# Library versioning type.
12930version_type=$version_type
12931
12932# Format of library name prefix.
12933libname_spec=$lt_libname_spec
12934
12935# List of archive names. First name is the real one, the rest are links.
12936# The last name is the one that the linker finds with -lNAME.
12937library_names_spec=$lt_library_names_spec
12938
12939# The coded name of the library, if different from the real name.
12940soname_spec=$lt_soname_spec
12941
12942# Commands used to build and install an old-style archive.
12943RANLIB=$lt_RANLIB
12944old_archive_cmds=$lt_old_archive_cmds_CXX
12945old_postinstall_cmds=$lt_old_postinstall_cmds
12946old_postuninstall_cmds=$lt_old_postuninstall_cmds
12947
12948# Create an old-style archive from a shared archive.
12949old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12950
12951# Create a temporary old-style archive to link instead of a shared archive.
12952old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12953
12954# Commands used to build and install a shared archive.
12955archive_cmds=$lt_archive_cmds_CXX
12956archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12957postinstall_cmds=$lt_postinstall_cmds
12958postuninstall_cmds=$lt_postuninstall_cmds
12959
12960# Commands used to build a loadable module (assumed same as above if empty)
12961module_cmds=$lt_module_cmds_CXX
12962module_expsym_cmds=$lt_module_expsym_cmds_CXX
12963
12964# Commands to strip libraries.
12965old_striplib=$lt_old_striplib
12966striplib=$lt_striplib
12967
12968# Dependencies to place before the objects being linked to create a
12969# shared library.
12970predep_objects=$lt_predep_objects_CXX
12971
12972# Dependencies to place after the objects being linked to create a
12973# shared library.
12974postdep_objects=$lt_postdep_objects_CXX
12975
12976# Dependencies to place before the objects being linked to create a
12977# shared library.
12978predeps=$lt_predeps_CXX
12979
12980# Dependencies to place after the objects being linked to create a
12981# shared library.
12982postdeps=$lt_postdeps_CXX
12983
12984# The library search path used internally by the compiler when linking
12985# a shared library.
12986compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12987
12988# Method to check whether dependent libraries are shared objects.
12989deplibs_check_method=$lt_deplibs_check_method
12990
12991# Command to use when deplibs_check_method == file_magic.
12992file_magic_cmd=$lt_file_magic_cmd
12993
12994# Flag that allows shared libraries with undefined symbols to be built.
12995allow_undefined_flag=$lt_allow_undefined_flag_CXX
12996
12997# Flag that forces no undefined symbols.
12998no_undefined_flag=$lt_no_undefined_flag_CXX
12999
13000# Commands used to finish a libtool library installation in a directory.
13001finish_cmds=$lt_finish_cmds
13002
13003# Same as above, but a single script fragment to be evaled but not shown.
13004finish_eval=$lt_finish_eval
13005
13006# Take the output of nm and produce a listing of raw symbols and C names.
13007global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13008
13009# Transform the output of nm in a proper C declaration
13010global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13011
13012# Transform the output of nm in a C name address pair
13013global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13014
13015# This is the shared library runtime path variable.
13016runpath_var=$runpath_var
13017
13018# This is the shared library path variable.
13019shlibpath_var=$shlibpath_var
13020
13021# Is shlibpath searched before the hard-coded library search path?
13022shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13023
13024# How to hardcode a shared library path into an executable.
13025hardcode_action=$hardcode_action_CXX
13026
13027# Whether we should hardcode library paths into libraries.
13028hardcode_into_libs=$hardcode_into_libs
13029
13030# Flag to hardcode \$libdir into a binary during linking.
13031# This must work even if \$libdir does not exist.
13032hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13033
13034# If ld is used when linking, flag to hardcode \$libdir into
13035# a binary during linking. This must work even if \$libdir does
13036# not exist.
13037hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13038
13039# Whether we need a single -rpath flag with a separated argument.
13040hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13041
13042# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13043# resulting binary.
13044hardcode_direct=$hardcode_direct_CXX
13045
13046# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13047# resulting binary.
13048hardcode_minus_L=$hardcode_minus_L_CXX
13049
13050# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13051# the resulting binary.
13052hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13053
13054# Set to yes if building a shared library automatically hardcodes DIR into the library
13055# and all subsequent libraries and executables linked against it.
13056hardcode_automatic=$hardcode_automatic_CXX
13057
13058# Variables whose values should be saved in libtool wrapper scripts and
13059# restored at relink time.
13060variables_saved_for_relink="$variables_saved_for_relink"
13061
13062# Whether libtool must link a program against all its dependency libraries.
13063link_all_deplibs=$link_all_deplibs_CXX
13064
13065# Compile-time system search path for libraries
13066sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13067
13068# Run-time system search path for libraries
13069sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13070
13071# Fix the shell variable \$srcfile for the compiler.
13072fix_srcfile_path="$fix_srcfile_path_CXX"
13073
13074# Set to yes if exported symbols are required.
13075always_export_symbols=$always_export_symbols_CXX
13076
13077# The commands to list exported symbols.
13078export_symbols_cmds=$lt_export_symbols_cmds_CXX
13079
13080# The commands to extract the exported symbol list from a shared archive.
13081extract_expsyms_cmds=$lt_extract_expsyms_cmds
13082
13083# Symbols that should not be listed in the preloaded symbols.
13084exclude_expsyms=$lt_exclude_expsyms_CXX
13085
13086# Symbols that must always be exported.
13087include_expsyms=$lt_include_expsyms_CXX
13088
13089# ### END LIBTOOL TAG CONFIG: $tagname
13090
13091__EOF__
13092
13093
13094else
13095 # If there is no Makefile yet, we rely on a make rule to execute
13096 # `config.status --recheck' to rerun these tests and create the
13097 # libtool script then.
13098 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13099 if test -f "$ltmain_in"; then
13100 test -f Makefile && make "$ltmain"
13101 fi
13102fi
13103
13104
13105ac_ext=c
13106ac_cpp='$CPP $CPPFLAGS'
13107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110
13111CC=$lt_save_CC
13112LDCXX=$LD
13113LD=$lt_save_LD
13114GCC=$lt_save_GCC
13115with_gnu_ldcxx=$with_gnu_ld
13116with_gnu_ld=$lt_save_with_gnu_ld
13117lt_cv_path_LDCXX=$lt_cv_path_LD
13118lt_cv_path_LD=$lt_save_path_LD
13119lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13120lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13121
13122 else
13123 tagname=""
13124 fi
13125 ;;
13126
13127 F77)
13128 if test -n "$F77" && test "X$F77" != "Xno"; then
13129
13130ac_ext=f
13131ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13134
13135
13136archive_cmds_need_lc_F77=no
13137allow_undefined_flag_F77=
13138always_export_symbols_F77=no
13139archive_expsym_cmds_F77=
13140export_dynamic_flag_spec_F77=
13141hardcode_direct_F77=no
13142hardcode_libdir_flag_spec_F77=
13143hardcode_libdir_flag_spec_ld_F77=
13144hardcode_libdir_separator_F77=
13145hardcode_minus_L_F77=no
13146hardcode_automatic_F77=no
13147module_cmds_F77=
13148module_expsym_cmds_F77=
13149link_all_deplibs_F77=unknown
13150old_archive_cmds_F77=$old_archive_cmds
13151no_undefined_flag_F77=
13152whole_archive_flag_spec_F77=
13153enable_shared_with_static_runtimes_F77=no
13154
13155# Source file extension for f77 test sources.
13156ac_ext=f
13157
13158# Object file extension for compiled f77 test sources.
13159objext=o
13160objext_F77=$objext
13161
13162# Code to be used in simple compile tests
13163lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13164
13165# Code to be used in simple link tests
13166lt_simple_link_test_code=" program t\n end\n"
13167
13168# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13169
13170# If no C compiler was specified, use CC.
13171LTCC=${LTCC-"$CC"}
13172
13173# Allow CC to be a program name with arguments.
13174compiler=$CC
13175
13176
13177# Allow CC to be a program name with arguments.
13178lt_save_CC="$CC"
13179CC=${F77-"f77"}
13180compiler=$CC
13181compiler_F77=$CC
13182cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13183
13184echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13185echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13186echo "$as_me:$LINENO: result: $can_build_shared" >&5
13187echo "${ECHO_T}$can_build_shared" >&6
13188
13189echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13190echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13191test "$can_build_shared" = "no" && enable_shared=no
13192
13193# On AIX, shared libraries and static libraries use the same namespace, and
13194# are all built from PIC.
13195case "$host_os" in
13196aix3*)
13197 test "$enable_shared" = yes && enable_static=no
13198 if test -n "$RANLIB"; then
13199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13200 postinstall_cmds='$RANLIB $lib'
13201 fi
13202 ;;
13203aix4* | aix5*)
13204 test "$enable_shared" = yes && enable_static=no
13205 ;;
13206esac
13207echo "$as_me:$LINENO: result: $enable_shared" >&5
13208echo "${ECHO_T}$enable_shared" >&6
13209
13210echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13211echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13212# Make sure either enable_shared or enable_static is yes.
13213test "$enable_shared" = yes || enable_static=yes
13214echo "$as_me:$LINENO: result: $enable_static" >&5
13215echo "${ECHO_T}$enable_static" >&6
13216
13217test "$ld_shlibs_F77" = no && can_build_shared=no
13218
13219GCC_F77="$G77"
13220LD_F77="$LD"
13221
13222lt_prog_compiler_wl_F77=
13223lt_prog_compiler_pic_F77=
13224lt_prog_compiler_static_F77=
13225
13226echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13227echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13228
13229 if test "$GCC" = yes; then
13230 lt_prog_compiler_wl_F77='-Wl,'
13231 lt_prog_compiler_static_F77='-static'
13232
13233 case $host_os in
13234 aix*)
13235 # All AIX code is PIC.
13236 if test "$host_cpu" = ia64; then
13237 # AIX 5 now supports IA64 processor
13238 lt_prog_compiler_static_F77='-Bstatic'
13239 fi
13240 ;;
13241
13242 amigaos*)
13243 # FIXME: we need at least 68020 code to build shared libraries, but
13244 # adding the `-m68020' flag to GCC prevents building anything better,
13245 # like `-m68040'.
13246 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13247 ;;
13248
13249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13250 # PIC is the default for these OSes.
13251 ;;
13252
13253 mingw* | pw32* | os2*)
13254 # This hack is so that the source file can tell whether it is being
13255 # built for inclusion in a dll (and should export symbols for example).
13256 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13257 ;;
13258
13259 darwin* | rhapsody*)
13260 # PIC is the default on this platform
13261 # Common symbols not allowed in MH_DYLIB files
13262 lt_prog_compiler_pic_F77='-fno-common'
13263 ;;
13264
13265 msdosdjgpp*)
13266 # Just because we use GCC doesn't mean we suddenly get shared libraries
13267 # on systems that don't support them.
13268 lt_prog_compiler_can_build_shared_F77=no
13269 enable_shared=no
13270 ;;
13271
13272 sysv4*MP*)
13273 if test -d /usr/nec; then
13274 lt_prog_compiler_pic_F77=-Kconform_pic
13275 fi
13276 ;;
13277
13278 hpux*)
13279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13280 # not for PA HP-UX.
13281 case "$host_cpu" in
13282 hppa*64*|ia64*)
13283 # +Z the default
13284 ;;
13285 *)
13286 lt_prog_compiler_pic_F77='-fPIC'
13287 ;;
13288 esac
13289 ;;
13290
13291 *)
13292 lt_prog_compiler_pic_F77='-fPIC'
13293 ;;
13294 esac
13295 else
13296 # PORTME Check for flag to pass linker flags through the system compiler.
13297 case $host_os in
13298 aix*)
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 if test "$host_cpu" = ia64; then
13301 # AIX 5 now supports IA64 processor
13302 lt_prog_compiler_static_F77='-Bstatic'
13303 else
13304 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13305 fi
13306 ;;
13307
13308 mingw* | pw32* | os2*)
13309 # This hack is so that the source file can tell whether it is being
13310 # built for inclusion in a dll (and should export symbols for example).
13311 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13312 ;;
13313
13314 hpux9* | hpux10* | hpux11*)
13315 lt_prog_compiler_wl_F77='-Wl,'
13316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13317 # not for PA HP-UX.
13318 case "$host_cpu" in
13319 hppa*64*|ia64*)
13320 # +Z the default
13321 ;;
13322 *)
13323 lt_prog_compiler_pic_F77='+Z'
13324 ;;
13325 esac
13326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13327 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13328 ;;
13329
13330 irix5* | irix6* | nonstopux*)
13331 lt_prog_compiler_wl_F77='-Wl,'
13332 # PIC (with -KPIC) is the default.
13333 lt_prog_compiler_static_F77='-non_shared'
13334 ;;
13335
13336 newsos6)
13337 lt_prog_compiler_pic_F77='-KPIC'
13338 lt_prog_compiler_static_F77='-Bstatic'
13339 ;;
13340
13341 linux*)
13342 case $CC in
13343 icc* | ecc*)
13344 lt_prog_compiler_wl_F77='-Wl,'
13345 lt_prog_compiler_pic_F77='-KPIC'
13346 lt_prog_compiler_static_F77='-static'
13347 ;;
13348 ccc*)
13349 lt_prog_compiler_wl_F77='-Wl,'
13350 # All Alpha code is PIC.
13351 lt_prog_compiler_static_F77='-non_shared'
13352 ;;
13353 esac
13354 ;;
13355
13356 osf3* | osf4* | osf5*)
13357 lt_prog_compiler_wl_F77='-Wl,'
13358 # All OSF/1 code is PIC.
13359 lt_prog_compiler_static_F77='-non_shared'
13360 ;;
13361
13362 sco3.2v5*)
13363 lt_prog_compiler_pic_F77='-Kpic'
13364 lt_prog_compiler_static_F77='-dn'
13365 ;;
13366
13367 solaris*)
13368 lt_prog_compiler_wl_F77='-Wl,'
13369 lt_prog_compiler_pic_F77='-KPIC'
13370 lt_prog_compiler_static_F77='-Bstatic'
13371 ;;
13372
13373 sunos4*)
13374 lt_prog_compiler_wl_F77='-Qoption ld '
13375 lt_prog_compiler_pic_F77='-PIC'
13376 lt_prog_compiler_static_F77='-Bstatic'
13377 ;;
13378
13379 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13380 lt_prog_compiler_wl_F77='-Wl,'
13381 lt_prog_compiler_pic_F77='-KPIC'
13382 lt_prog_compiler_static_F77='-Bstatic'
13383 ;;
13384
13385 sysv4*MP*)
13386 if test -d /usr/nec ;then
13387 lt_prog_compiler_pic_F77='-Kconform_pic'
13388 lt_prog_compiler_static_F77='-Bstatic'
13389 fi
13390 ;;
13391
13392 uts4*)
13393 lt_prog_compiler_pic_F77='-pic'
13394 lt_prog_compiler_static_F77='-Bstatic'
13395 ;;
13396
13397 *)
13398 lt_prog_compiler_can_build_shared_F77=no
13399 ;;
13400 esac
13401 fi
13402
13403echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13404echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13405
13406#
13407# Check to make sure the PIC flag actually works.
13408#
13409if test -n "$lt_prog_compiler_pic_F77"; then
13410
13411echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13412echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13413if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415else
13416 lt_prog_compiler_pic_works_F77=no
13417 ac_outfile=conftest.$ac_objext
13418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13419 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13420 # Insert the option either (1) after the last *FLAGS variable, or
13421 # (2) before a word containing "conftest.", or (3) at the end.
13422 # Note that $ac_compile itself does not contain backslashes and begins
13423 # with a dollar sign (not a hyphen), so the echo should work correctly.
13424 # The option is referenced via a variable to avoid confusing sed.
13425 lt_compile=`echo "$ac_compile" | $SED \
13426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13428 -e 's:$: $lt_compiler_flag:'`
13429 (eval echo "\"\$as_me:13429: $lt_compile\"" >&5)
13430 (eval "$lt_compile" 2>conftest.err)
13431 ac_status=$?
13432 cat conftest.err >&5
13433 echo "$as_me:13433: \$? = $ac_status" >&5
13434 if (exit $ac_status) && test -s "$ac_outfile"; then
13435 # The compiler can only warn and ignore the option if not recognized
13436 # So say no if there are warnings
13437 if test ! -s conftest.err; then
13438 lt_prog_compiler_pic_works_F77=yes
13439 fi
13440 fi
13441 $rm conftest*
13442
13443fi
13444echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13445echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13446
13447if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13448 case $lt_prog_compiler_pic_F77 in
13449 "" | " "*) ;;
13450 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13451 esac
13452else
13453 lt_prog_compiler_pic_F77=
13454 lt_prog_compiler_can_build_shared_F77=no
13455fi
13456
13457fi
13458case "$host_os" in
13459 # For platforms which do not support PIC, -DPIC is meaningless:
13460 *djgpp*)
13461 lt_prog_compiler_pic_F77=
13462 ;;
13463 *)
13464 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13465 ;;
13466esac
13467
13468echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13469echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13470if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13472else
13473 lt_cv_prog_compiler_c_o_F77=no
13474 $rm -r conftest 2>/dev/null
13475 mkdir conftest
13476 cd conftest
13477 mkdir out
13478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13479
13480 lt_compiler_flag="-o out/conftest2.$ac_objext"
13481 # Insert the option either (1) after the last *FLAGS variable, or
13482 # (2) before a word containing "conftest.", or (3) at the end.
13483 # Note that $ac_compile itself does not contain backslashes and begins
13484 # with a dollar sign (not a hyphen), so the echo should work correctly.
13485 lt_compile=`echo "$ac_compile" | $SED \
13486 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488 -e 's:$: $lt_compiler_flag:'`
13489 (eval echo "\"\$as_me:13489: $lt_compile\"" >&5)
13490 (eval "$lt_compile" 2>out/conftest.err)
13491 ac_status=$?
13492 cat out/conftest.err >&5
13493 echo "$as_me:13493: \$? = $ac_status" >&5
13494 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13495 then
13496 # The compiler can only warn and ignore the option if not recognized
13497 # So say no if there are warnings
13498 if test ! -s out/conftest.err; then
13499 lt_cv_prog_compiler_c_o_F77=yes
13500 fi
13501 fi
13502 chmod u+w .
13503 $rm conftest*
13504 # SGI C++ compiler will create directory out/ii_files/ for
13505 # template instantiation
13506 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13507 $rm out/* && rmdir out
13508 cd ..
13509 rmdir conftest
13510 $rm conftest*
13511
13512fi
13513echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13514echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13515
13516
13517hard_links="nottested"
13518if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13519 # do not overwrite the value of need_locks provided by the user
13520 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13521echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13522 hard_links=yes
13523 $rm conftest*
13524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13525 touch conftest.a
13526 ln conftest.a conftest.b 2>&5 || hard_links=no
13527 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13528 echo "$as_me:$LINENO: result: $hard_links" >&5
13529echo "${ECHO_T}$hard_links" >&6
13530 if test "$hard_links" = no; then
13531 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13532echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13533 need_locks=warn
13534 fi
13535else
13536 need_locks=no
13537fi
13538
13539echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13540echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13541
13542 runpath_var=
13543 allow_undefined_flag_F77=
13544 enable_shared_with_static_runtimes_F77=no
13545 archive_cmds_F77=
13546 archive_expsym_cmds_F77=
13547 old_archive_From_new_cmds_F77=
13548 old_archive_from_expsyms_cmds_F77=
13549 export_dynamic_flag_spec_F77=
13550 whole_archive_flag_spec_F77=
13551 thread_safe_flag_spec_F77=
13552 hardcode_libdir_flag_spec_F77=
13553 hardcode_libdir_flag_spec_ld_F77=
13554 hardcode_libdir_separator_F77=
13555 hardcode_direct_F77=no
13556 hardcode_minus_L_F77=no
13557 hardcode_shlibpath_var_F77=unsupported
13558 link_all_deplibs_F77=unknown
13559 hardcode_automatic_F77=no
13560 module_cmds_F77=
13561 module_expsym_cmds_F77=
13562 always_export_symbols_F77=no
13563 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13564 # include_expsyms should be a list of space-separated symbols to be *always*
13565 # included in the symbol list
13566 include_expsyms_F77=
13567 # exclude_expsyms can be an extended regexp of symbols to exclude
13568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13570 # as well as any symbol that contains `d'.
13571 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13573 # platforms (ab)use it in PIC code, but their linkers get confused if
13574 # the symbol is explicitly referenced. Since portable code cannot
13575 # rely on this symbol name, it's probably fine to never include it in
13576 # preloaded symbol tables.
13577 extract_expsyms_cmds=
13578
13579 case $host_os in
13580 cygwin* | mingw* | pw32*)
13581 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13582 # When not using gcc, we currently assume that we are using
13583 # Microsoft Visual C++.
13584 if test "$GCC" != yes; then
13585 with_gnu_ld=no
13586 fi
13587 ;;
13588 openbsd*)
13589 with_gnu_ld=no
13590 ;;
13591 esac
13592
13593 ld_shlibs_F77=yes
13594 if test "$with_gnu_ld" = yes; then
13595 # If archive_cmds runs LD, not CC, wlarc should be empty
13596 wlarc='${wl}'
13597
13598 # See if GNU ld supports shared libraries.
13599 case $host_os in
13600 aix3* | aix4* | aix5*)
13601 # On AIX/PPC, the GNU linker is very broken
13602 if test "$host_cpu" != ia64; then
13603 ld_shlibs_F77=no
13604 cat <<EOF 1>&2
13605
13606*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13607*** to be unable to reliably create shared libraries on AIX.
13608*** Therefore, libtool is disabling shared libraries support. If you
13609*** really care for shared libraries, you may want to modify your PATH
13610*** so that a non-GNU linker is found, and then restart.
13611
13612EOF
13613 fi
13614 ;;
13615
13616 amigaos*)
13617 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)'
13618 hardcode_libdir_flag_spec_F77='-L$libdir'
13619 hardcode_minus_L_F77=yes
13620
13621 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13622 # that the semantics of dynamic libraries on AmigaOS, at least up
13623 # to version 4, is to share data among multiple programs linked
13624 # with the same dynamic library. Since this doesn't match the
13625 # behavior of shared libraries on other platforms, we can't use
13626 # them.
13627 ld_shlibs_F77=no
13628 ;;
13629
13630 beos*)
13631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13632 allow_undefined_flag_F77=unsupported
13633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13634 # support --undefined. This deserves some investigation. FIXME
13635 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636 else
13637 ld_shlibs_F77=no
13638 fi
13639 ;;
13640
13641 cygwin* | mingw* | pw32*)
13642 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13643 # as there is no search path for DLLs.
13644 hardcode_libdir_flag_spec_F77='-L$libdir'
13645 allow_undefined_flag_F77=unsupported
13646 always_export_symbols_F77=no
13647 enable_shared_with_static_runtimes_F77=yes
13648 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13649
13650 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13652 # If the export-symbols file already is a .def file (1st line
13653 # is EXPORTS), use it as is; otherwise, prepend...
13654 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13655 cp $export_symbols $output_objdir/$soname.def;
13656 else
13657 echo EXPORTS > $output_objdir/$soname.def;
13658 cat $export_symbols >> $output_objdir/$soname.def;
13659 fi~
13660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13661 else
13662 ld_shlibs=no
13663 fi
13664 ;;
13665
13666 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13668 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13669 wlarc=
13670 else
13671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13673 fi
13674 ;;
13675
13676 solaris* | sysv5*)
13677 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13678 ld_shlibs_F77=no
13679 cat <<EOF 1>&2
13680
13681*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13682*** create shared libraries on Solaris systems. Therefore, libtool
13683*** is disabling shared libraries support. We urge you to upgrade GNU
13684*** binutils to release 2.9.1 or newer. Another option is to modify
13685*** your PATH or compiler configuration so that the native linker is
13686*** used, and then restart.
13687
13688EOF
13689 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13690 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13691 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13692 else
13693 ld_shlibs_F77=no
13694 fi
13695 ;;
13696
13697 sunos4*)
13698 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13699 wlarc=
13700 hardcode_direct_F77=yes
13701 hardcode_shlibpath_var_F77=no
13702 ;;
13703
13704 linux*)
13705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13706 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13707 archive_cmds_F77="$tmp_archive_cmds"
13708 supports_anon_versioning=no
13709 case `$LD -v 2>/dev/null` in
13710 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13713 *\ 2.11.*) ;; # other 2.11 versions
13714 *) supports_anon_versioning=yes ;;
13715 esac
13716 if test $supports_anon_versioning = yes; then
13717 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13718cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13719$echo "local: *; };" >> $output_objdir/$libname.ver~
13720 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13721 else
13722 archive_expsym_cmds_F77="$tmp_archive_cmds"
13723 fi
13724 link_all_deplibs_F77=no
13725 else
13726 ld_shlibs_F77=no
13727 fi
13728 ;;
13729
13730 *)
13731 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13732 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13733 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13734 else
13735 ld_shlibs_F77=no
13736 fi
13737 ;;
13738 esac
13739
13740 if test "$ld_shlibs_F77" = yes; then
13741 runpath_var=LD_RUN_PATH
13742 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13743 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13744 # ancient GNU ld didn't support --whole-archive et. al.
13745 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13746 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13747 else
13748 whole_archive_flag_spec_F77=
13749 fi
13750 fi
13751 else
13752 # PORTME fill in a description of your system's linker (not GNU ld)
13753 case $host_os in
13754 aix3*)
13755 allow_undefined_flag_F77=unsupported
13756 always_export_symbols_F77=yes
13757 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'
13758 # Note: this linker hardcodes the directories in LIBPATH if there
13759 # are no directories specified by -L.
13760 hardcode_minus_L_F77=yes
13761 if test "$GCC" = yes && test -z "$link_static_flag"; then
13762 # Neither direct hardcoding nor static linking is supported with a
13763 # broken collect2.
13764 hardcode_direct_F77=unsupported
13765 fi
13766 ;;
13767
13768 aix4* | aix5*)
13769 if test "$host_cpu" = ia64; then
13770 # On IA64, the linker does run time linking by default, so we don't
13771 # have to do anything special.
13772 aix_use_runtimelinking=no
13773 exp_sym_flag='-Bexport'
13774 no_entry_flag=""
13775 else
13776 # If we're using GNU nm, then we don't want the "-C" option.
13777 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13778 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13779 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'
13780 else
13781 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'
13782 fi
13783 aix_use_runtimelinking=no
13784
13785 # Test if we are trying to use run time linking or normal
13786 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13787 # need to do runtime linking.
13788 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13789 for ld_flag in $LDFLAGS; do
13790 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13791 aix_use_runtimelinking=yes
13792 break
13793 fi
13794 done
13795 esac
13796
13797 exp_sym_flag='-bexport'
13798 no_entry_flag='-bnoentry'
13799 fi
13800
13801 # When large executables or shared objects are built, AIX ld can
13802 # have problems creating the table of contents. If linking a library
13803 # or program results in "error TOC overflow" add -mminimal-toc to
13804 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13805 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13806
13807 archive_cmds_F77=''
13808 hardcode_direct_F77=yes
13809 hardcode_libdir_separator_F77=':'
13810 link_all_deplibs_F77=yes
13811
13812 if test "$GCC" = yes; then
13813 case $host_os in aix4.012|aix4.012.*)
13814 # We only want to do this on AIX 4.2 and lower, the check
13815 # below for broken collect2 doesn't work under 4.3+
13816 collect2name=`${CC} -print-prog-name=collect2`
13817 if test -f "$collect2name" && \
13818 strings "$collect2name" | grep resolve_lib_name >/dev/null
13819 then
13820 # We have reworked collect2
13821 hardcode_direct_F77=yes
13822 else
13823 # We have old collect2
13824 hardcode_direct_F77=unsupported
13825 # It fails to find uninstalled libraries when the uninstalled
13826 # path is not listed in the libpath. Setting hardcode_minus_L
13827 # to unsupported forces relinking
13828 hardcode_minus_L_F77=yes
13829 hardcode_libdir_flag_spec_F77='-L$libdir'
13830 hardcode_libdir_separator_F77=
13831 fi
13832 esac
13833 shared_flag='-shared'
13834 else
13835 # not using gcc
13836 if test "$host_cpu" = ia64; then
13837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13838 # chokes on -Wl,-G. The following line is correct:
13839 shared_flag='-G'
13840 else
13841 if test "$aix_use_runtimelinking" = yes; then
13842 shared_flag='${wl}-G'
13843 else
13844 shared_flag='${wl}-bM:SRE'
13845 fi
13846 fi
13847 fi
13848
13849 # It seems that -bexpall does not export symbols beginning with
13850 # underscore (_), so it is better to generate a list of symbols to export.
13851 always_export_symbols_F77=yes
13852 if test "$aix_use_runtimelinking" = yes; then
13853 # Warning - without using the other runtime loading flags (-brtl),
13854 # -berok will link without error, but may produce a broken library.
13855 allow_undefined_flag_F77='-berok'
13856 # Determine the default libpath from the value encoded in an empty executable.
13857 cat >conftest.$ac_ext <<_ACEOF
13858 program main
13859
13860 end
13861_ACEOF
13862rm -f conftest.$ac_objext conftest$ac_exeext
13863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13864 (eval $ac_link) 2>conftest.er1
13865 ac_status=$?
13866 grep -v '^ *+' conftest.er1 >conftest.err
13867 rm -f conftest.er1
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } &&
13871 { ac_try='test -z "$ac_f77_werror_flag"
13872 || test ! -s conftest.err'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; } &&
13878 { ac_try='test -s conftest$ac_exeext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884
13885aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13886}'`
13887# Check for a 64-bit object if we didn't find anything.
13888if 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; }
13889}'`; fi
13890else
13891 echo "$as_me: failed program was:" >&5
13892sed 's/^/| /' conftest.$ac_ext >&5
13893
13894fi
13895rm -f conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13898
13899 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13900 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"
13901 else
13902 if test "$host_cpu" = ia64; then
13903 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13904 allow_undefined_flag_F77="-z nodefs"
13905 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"
13906 else
13907 # Determine the default libpath from the value encoded in an empty executable.
13908 cat >conftest.$ac_ext <<_ACEOF
13909 program main
13910
13911 end
13912_ACEOF
13913rm -f conftest.$ac_objext conftest$ac_exeext
13914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>conftest.er1
13916 ac_status=$?
13917 grep -v '^ *+' conftest.er1 >conftest.err
13918 rm -f conftest.er1
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -z "$ac_f77_werror_flag"
13923 || test ! -s conftest.err'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest$ac_exeext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935
13936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13937}'`
13938# Check for a 64-bit object if we didn't find anything.
13939if 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; }
13940}'`; fi
13941else
13942 echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945fi
13946rm -f conftest.err conftest.$ac_objext \
13947 conftest$ac_exeext conftest.$ac_ext
13948if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13949
13950 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13951 # Warning - without using the other run time loading flags,
13952 # -berok will link without error, but may produce a broken library.
13953 no_undefined_flag_F77=' ${wl}-bernotok'
13954 allow_undefined_flag_F77=' ${wl}-berok'
13955 # -bexpall does not export symbols beginning with underscore (_)
13956 always_export_symbols_F77=yes
13957 # Exported symbols can be pulled into shared objects from archives
13958 whole_archive_flag_spec_F77=' '
13959 archive_cmds_need_lc_F77=yes
13960 # This is similar to how AIX traditionally builds it's shared libraries.
13961 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'
13962 fi
13963 fi
13964 ;;
13965
13966 amigaos*)
13967 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)'
13968 hardcode_libdir_flag_spec_F77='-L$libdir'
13969 hardcode_minus_L_F77=yes
13970 # see comment about different semantics on the GNU ld section
13971 ld_shlibs_F77=no
13972 ;;
13973
13974 bsdi4*)
13975 export_dynamic_flag_spec_F77=-rdynamic
13976 ;;
13977
13978 cygwin* | mingw* | pw32*)
13979 # When not using gcc, we currently assume that we are using
13980 # Microsoft Visual C++.
13981 # hardcode_libdir_flag_spec is actually meaningless, as there is
13982 # no search path for DLLs.
13983 hardcode_libdir_flag_spec_F77=' '
13984 allow_undefined_flag_F77=unsupported
13985 # Tell ltmain to make .lib files, not .a files.
13986 libext=lib
13987 # Tell ltmain to make .dll files, not .so files.
13988 shrext_cmds=".dll"
13989 # FIXME: Setting linknames here is a bad hack.
13990 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13991 # The linker will automatically build a .lib file if we build a DLL.
13992 old_archive_From_new_cmds_F77='true'
13993 # FIXME: Should let the user specify the lib program.
13994 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13995 fix_srcfile_path='`cygpath -w "$srcfile"`'
13996 enable_shared_with_static_runtimes_F77=yes
13997 ;;
13998
13999 darwin* | rhapsody*)
14000 if test "$GXX" = yes ; then
14001 archive_cmds_need_lc_F77=no
14002 case "$host_os" in
14003 rhapsody* | darwin1.[012])
14004 allow_undefined_flag_F77='-undefined suppress'
14005 ;;
14006 *) # Darwin 1.3 on
14007 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14008 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14009 else
14010 case ${MACOSX_DEPLOYMENT_TARGET} in
14011 10.[012])
14012 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14013 ;;
14014 10.*)
14015 allow_undefined_flag_F77='-undefined dynamic_lookup'
14016 ;;
14017 esac
14018 fi
14019 ;;
14020 esac
14021 lt_int_apple_cc_single_mod=no
14022 output_verbose_link_cmd='echo'
14023 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14024 lt_int_apple_cc_single_mod=yes
14025 fi
14026 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14027 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14028 else
14029 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'
14030 fi
14031 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14032 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14033 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14034 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}'
14035 else
14036 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}'
14037 fi
14038 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}'
14039 hardcode_direct_F77=no
14040 hardcode_automatic_F77=yes
14041 hardcode_shlibpath_var_F77=unsupported
14042 whole_archive_flag_spec_F77='-all_load $convenience'
14043 link_all_deplibs_F77=yes
14044 else
14045 ld_shlibs_F77=no
14046 fi
14047 ;;
14048
14049 dgux*)
14050 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14051 hardcode_libdir_flag_spec_F77='-L$libdir'
14052 hardcode_shlibpath_var_F77=no
14053 ;;
14054
14055 freebsd1*)
14056 ld_shlibs_F77=no
14057 ;;
14058
14059 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14060 # support. Future versions do this automatically, but an explicit c++rt0.o
14061 # does not break anything, and helps significantly (at the cost of a little
14062 # extra space).
14063 freebsd2.2*)
14064 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14065 hardcode_libdir_flag_spec_F77='-R$libdir'
14066 hardcode_direct_F77=yes
14067 hardcode_shlibpath_var_F77=no
14068 ;;
14069
14070 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14071 freebsd2*)
14072 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14073 hardcode_direct_F77=yes
14074 hardcode_minus_L_F77=yes
14075 hardcode_shlibpath_var_F77=no
14076 ;;
14077
14078 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14079 freebsd* | kfreebsd*-gnu)
14080 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14081 hardcode_libdir_flag_spec_F77='-R$libdir'
14082 hardcode_direct_F77=yes
14083 hardcode_shlibpath_var_F77=no
14084 ;;
14085
14086 hpux9*)
14087 if test "$GCC" = yes; then
14088 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'
14089 else
14090 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'
14091 fi
14092 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14093 hardcode_libdir_separator_F77=:
14094 hardcode_direct_F77=yes
14095
14096 # hardcode_minus_L: Not really in the search PATH,
14097 # but as the default location of the library.
14098 hardcode_minus_L_F77=yes
14099 export_dynamic_flag_spec_F77='${wl}-E'
14100 ;;
14101
14102 hpux10* | hpux11*)
14103 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14104 case "$host_cpu" in
14105 hppa*64*|ia64*)
14106 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14107 ;;
14108 *)
14109 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14110 ;;
14111 esac
14112 else
14113 case "$host_cpu" in
14114 hppa*64*|ia64*)
14115 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14116 ;;
14117 *)
14118 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14119 ;;
14120 esac
14121 fi
14122 if test "$with_gnu_ld" = no; then
14123 case "$host_cpu" in
14124 hppa*64*)
14125 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14126 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14127 hardcode_libdir_separator_F77=:
14128 hardcode_direct_F77=no
14129 hardcode_shlibpath_var_F77=no
14130 ;;
14131 ia64*)
14132 hardcode_libdir_flag_spec_F77='-L$libdir'
14133 hardcode_direct_F77=no
14134 hardcode_shlibpath_var_F77=no
14135
14136 # hardcode_minus_L: Not really in the search PATH,
14137 # but as the default location of the library.
14138 hardcode_minus_L_F77=yes
14139 ;;
14140 *)
14141 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14142 hardcode_libdir_separator_F77=:
14143 hardcode_direct_F77=yes
14144 export_dynamic_flag_spec_F77='${wl}-E'
14145
14146 # hardcode_minus_L: Not really in the search PATH,
14147 # but as the default location of the library.
14148 hardcode_minus_L_F77=yes
14149 ;;
14150 esac
14151 fi
14152 ;;
14153
14154 irix5* | irix6* | nonstopux*)
14155 if test "$GCC" = yes; then
14156 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'
14157 else
14158 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'
14159 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14160 fi
14161 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14162 hardcode_libdir_separator_F77=:
14163 link_all_deplibs_F77=yes
14164 ;;
14165
14166 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14168 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14169 else
14170 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14171 fi
14172 hardcode_libdir_flag_spec_F77='-R$libdir'
14173 hardcode_direct_F77=yes
14174 hardcode_shlibpath_var_F77=no
14175 ;;
14176
14177 newsos6)
14178 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14179 hardcode_direct_F77=yes
14180 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14181 hardcode_libdir_separator_F77=:
14182 hardcode_shlibpath_var_F77=no
14183 ;;
14184
14185 openbsd*)
14186 hardcode_direct_F77=yes
14187 hardcode_shlibpath_var_F77=no
14188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14189 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14190 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14191 export_dynamic_flag_spec_F77='${wl}-E'
14192 else
14193 case $host_os in
14194 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14195 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14196 hardcode_libdir_flag_spec_F77='-R$libdir'
14197 ;;
14198 *)
14199 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14200 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14201 ;;
14202 esac
14203 fi
14204 ;;
14205
14206 os2*)
14207 hardcode_libdir_flag_spec_F77='-L$libdir'
14208 hardcode_minus_L_F77=yes
14209 allow_undefined_flag_F77=unsupported
14210 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'
14211 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14212 ;;
14213
14214 osf3*)
14215 if test "$GCC" = yes; then
14216 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14217 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'
14218 else
14219 allow_undefined_flag_F77=' -expect_unresolved \*'
14220 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'
14221 fi
14222 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14223 hardcode_libdir_separator_F77=:
14224 ;;
14225
14226 osf4* | osf5*) # as osf3* with the addition of -msym flag
14227 if test "$GCC" = yes; then
14228 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14229 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'
14230 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14231 else
14232 allow_undefined_flag_F77=' -expect_unresolved \*'
14233 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'
14234 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~
14235 $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'
14236
14237 # Both c and cxx compiler support -rpath directly
14238 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14239 fi
14240 hardcode_libdir_separator_F77=:
14241 ;;
14242
14243 sco3.2v5*)
14244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245 hardcode_shlibpath_var_F77=no
14246 export_dynamic_flag_spec_F77='${wl}-Bexport'
14247 runpath_var=LD_RUN_PATH
14248 hardcode_runpath_var=yes
14249 ;;
14250
14251 solaris*)
14252 no_undefined_flag_F77=' -z text'
14253 if test "$GCC" = yes; then
14254 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14255 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14256 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14257 else
14258 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14260 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14261 fi
14262 hardcode_libdir_flag_spec_F77='-R$libdir'
14263 hardcode_shlibpath_var_F77=no
14264 case $host_os in
14265 solaris2.[0-5] | solaris2.[0-5].*) ;;
14266 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14267 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14268 esac
14269 link_all_deplibs_F77=yes
14270 ;;
14271
14272 sunos4*)
14273 if test "x$host_vendor" = xsequent; then
14274 # Use $CC to link under sequent, because it throws in some extra .o
14275 # files that make .init and .fini sections work.
14276 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14277 else
14278 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14279 fi
14280 hardcode_libdir_flag_spec_F77='-L$libdir'
14281 hardcode_direct_F77=yes
14282 hardcode_minus_L_F77=yes
14283 hardcode_shlibpath_var_F77=no
14284 ;;
14285
14286 sysv4)
14287 case $host_vendor in
14288 sni)
14289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290 hardcode_direct_F77=yes # is this really true???
14291 ;;
14292 siemens)
14293 ## LD is ld it makes a PLAMLIB
14294 ## CC just makes a GrossModule.
14295 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14296 reload_cmds_F77='$CC -r -o $output$reload_objs'
14297 hardcode_direct_F77=no
14298 ;;
14299 motorola)
14300 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14301 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14302 ;;
14303 esac
14304 runpath_var='LD_RUN_PATH'
14305 hardcode_shlibpath_var_F77=no
14306 ;;
14307
14308 sysv4.3*)
14309 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14310 hardcode_shlibpath_var_F77=no
14311 export_dynamic_flag_spec_F77='-Bexport'
14312 ;;
14313
14314 sysv4*MP*)
14315 if test -d /usr/nec; then
14316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14317 hardcode_shlibpath_var_F77=no
14318 runpath_var=LD_RUN_PATH
14319 hardcode_runpath_var=yes
14320 ld_shlibs_F77=yes
14321 fi
14322 ;;
14323
14324 sysv4.2uw2*)
14325 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14326 hardcode_direct_F77=yes
14327 hardcode_minus_L_F77=no
14328 hardcode_shlibpath_var_F77=no
14329 hardcode_runpath_var=yes
14330 runpath_var=LD_RUN_PATH
14331 ;;
14332
14333 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14334 no_undefined_flag_F77='${wl}-z ${wl}text'
14335 if test "$GCC" = yes; then
14336 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14337 else
14338 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 fi
14340 runpath_var='LD_RUN_PATH'
14341 hardcode_shlibpath_var_F77=no
14342 ;;
14343
14344 sysv5*)
14345 no_undefined_flag_F77=' -z text'
14346 # $CC -shared without GNU ld will not create a library from C++
14347 # object files and a static libstdc++, better avoid it by now
14348 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14349 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14351 hardcode_libdir_flag_spec_F77=
14352 hardcode_shlibpath_var_F77=no
14353 runpath_var='LD_RUN_PATH'
14354 ;;
14355
14356 uts4*)
14357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_libdir_flag_spec_F77='-L$libdir'
14359 hardcode_shlibpath_var_F77=no
14360 ;;
14361
14362 *)
14363 ld_shlibs_F77=no
14364 ;;
14365 esac
14366 fi
14367
14368echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14369echo "${ECHO_T}$ld_shlibs_F77" >&6
14370test "$ld_shlibs_F77" = no && can_build_shared=no
14371
14372variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14373if test "$GCC" = yes; then
14374 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14375fi
14376
14377#
14378# Do we need to explicitly link libc?
14379#
14380case "x$archive_cmds_need_lc_F77" in
14381x|xyes)
14382 # Assume -lc should be added
14383 archive_cmds_need_lc_F77=yes
14384
14385 if test "$enable_shared" = yes && test "$GCC" = yes; then
14386 case $archive_cmds_F77 in
14387 *'~'*)
14388 # FIXME: we may have to deal with multi-command sequences.
14389 ;;
14390 '$CC '*)
14391 # Test whether the compiler implicitly links with -lc since on some
14392 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14393 # to ld, don't add -lc before -lgcc.
14394 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14395echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14396 $rm conftest*
14397 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14398
14399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400 (eval $ac_compile) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } 2>conftest.err; then
14404 soname=conftest
14405 lib=conftest
14406 libobjs=conftest.$ac_objext
14407 deplibs=
14408 wl=$lt_prog_compiler_wl_F77
14409 compiler_flags=-v
14410 linker_flags=-v
14411 verstring=
14412 output_objdir=.
14413 libname=conftest
14414 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14415 allow_undefined_flag_F77=
14416 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14417 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14418 ac_status=$?
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }
14421 then
14422 archive_cmds_need_lc_F77=no
14423 else
14424 archive_cmds_need_lc_F77=yes
14425 fi
14426 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14427 else
14428 cat conftest.err 1>&5
14429 fi
14430 $rm conftest*
14431 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14432echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14433 ;;
14434 esac
14435 fi
14436 ;;
14437esac
14438
14439echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14440echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14441library_names_spec=
14442libname_spec='lib$name'
14443soname_spec=
14444shrext_cmds=".so"
14445postinstall_cmds=
14446postuninstall_cmds=
14447finish_cmds=
14448finish_eval=
14449shlibpath_var=
14450shlibpath_overrides_runpath=unknown
14451version_type=none
14452dynamic_linker="$host_os ld.so"
14453sys_lib_dlsearch_path_spec="/lib /usr/lib"
14454if test "$GCC" = yes; then
14455 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14456 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14457 # if the path contains ";" then we assume it to be the separator
14458 # otherwise default to the standard path separator (i.e. ":") - it is
14459 # assumed that no part of a normal pathname contains ";" but that should
14460 # okay in the real world where ";" in dirpaths is itself problematic.
14461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14462 else
14463 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14464 fi
14465else
14466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14467fi
14468need_lib_prefix=unknown
14469hardcode_into_libs=no
14470
14471# when you set need_version to no, make sure it does not cause -set_version
14472# flags to be left without arguments
14473need_version=unknown
14474
14475case $host_os in
14476aix3*)
14477 version_type=linux
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14479 shlibpath_var=LIBPATH
14480
14481 # AIX 3 has no versioning support, so we append a major version to the name.
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 ;;
14484
14485aix4* | aix5*)
14486 version_type=linux
14487 need_lib_prefix=no
14488 need_version=no
14489 hardcode_into_libs=yes
14490 if test "$host_cpu" = ia64; then
14491 # AIX 5 supports IA64
14492 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 else
14495 # With GCC up to 2.95.x, collect2 would create an import file
14496 # for dependence libraries. The import file would start with
14497 # the line `#! .'. This would cause the generated library to
14498 # depend on `.', always an invalid library. This was fixed in
14499 # development snapshots of GCC prior to 3.0.
14500 case $host_os in
14501 aix4 | aix4.[01] | aix4.[01].*)
14502 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14503 echo ' yes '
14504 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14505 :
14506 else
14507 can_build_shared=no
14508 fi
14509 ;;
14510 esac
14511 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14512 # soname into executable. Probably we can add versioning support to
14513 # collect2, so additional links can be useful in future.
14514 if test "$aix_use_runtimelinking" = yes; then
14515 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14516 # instead of lib<name>.a to let people know that these are not
14517 # typical AIX shared libraries.
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14519 else
14520 # We preserve .a as extension for shared libraries through AIX4.2
14521 # and later when we are not doing run time linking.
14522 library_names_spec='${libname}${release}.a $libname.a'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 fi
14525 shlibpath_var=LIBPATH
14526 fi
14527 ;;
14528
14529amigaos*)
14530 library_names_spec='$libname.ixlibrary $libname.a'
14531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14532 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'
14533 ;;
14534
14535beos*)
14536 library_names_spec='${libname}${shared_ext}'
14537 dynamic_linker="$host_os ld.so"
14538 shlibpath_var=LIBRARY_PATH
14539 ;;
14540
14541bsdi4*)
14542 version_type=linux
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14550 # the default ld.so.conf also contains /usr/contrib/lib and
14551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14552 # libtool to hard-code these into programs
14553 ;;
14554
14555cygwin* | mingw* | pw32*)
14556 version_type=windows
14557 shrext_cmds=".dll"
14558 need_version=no
14559 need_lib_prefix=no
14560
14561 case $GCC,$host_os in
14562 yes,cygwin* | yes,mingw* | yes,pw32*)
14563 library_names_spec='$libname.dll.a'
14564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14565 postinstall_cmds='base_file=`basename \${file}`~
14566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14567 dldir=$destdir/`dirname \$dlpath`~
14568 test -d \$dldir || mkdir -p \$dldir~
14569 $install_prog $dir/$dlname \$dldir/$dlname'
14570 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14571 dlpath=$dir/\$dldll~
14572 $rm \$dlpath'
14573 shlibpath_overrides_runpath=yes
14574
14575 case $host_os in
14576 cygwin*)
14577 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14578 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14579 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14580 ;;
14581 mingw*)
14582 # MinGW DLLs use traditional 'lib' prefix
14583 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14584 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14585 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14586 # It is most probably a Windows format PATH printed by
14587 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14588 # path with ; separators, and with drive letters. We can handle the
14589 # drive letters (cygwin fileutils understands them), so leave them,
14590 # especially as we might pass files found there to a mingw objdump,
14591 # which wouldn't understand a cygwinified path. Ahh.
14592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14593 else
14594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14595 fi
14596 ;;
14597 pw32*)
14598 # pw32 DLLs use 'pw' prefix rather than 'lib'
14599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14600 ;;
14601 esac
14602 ;;
14603
14604 *)
14605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14606 ;;
14607 esac
14608 dynamic_linker='Win32 ld.exe'
14609 # FIXME: first we should search . and the directory the executable is in
14610 shlibpath_var=PATH
14611 ;;
14612
14613darwin* | rhapsody*)
14614 dynamic_linker="$host_os dyld"
14615 version_type=darwin
14616 need_lib_prefix=no
14617 need_version=no
14618 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14619 soname_spec='${libname}${release}${major}$shared_ext'
14620 shlibpath_overrides_runpath=yes
14621 shlibpath_var=DYLD_LIBRARY_PATH
14622 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14623 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14624 if test "$GCC" = yes; then
14625 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"`
14626 else
14627 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14628 fi
14629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14630 ;;
14631
14632dgux*)
14633 version_type=linux
14634 need_lib_prefix=no
14635 need_version=no
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 ;;
14640
14641freebsd1*)
14642 dynamic_linker=no
14643 ;;
14644
14645kfreebsd*-gnu)
14646 version_type=linux
14647 need_lib_prefix=no
14648 need_version=no
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 shlibpath_overrides_runpath=no
14653 hardcode_into_libs=yes
14654 dynamic_linker='GNU ld.so'
14655 ;;
14656
14657freebsd*)
14658 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14659 version_type=freebsd-$objformat
14660 case $version_type in
14661 freebsd-elf*)
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14663 need_version=no
14664 need_lib_prefix=no
14665 ;;
14666 freebsd-*)
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14668 need_version=yes
14669 ;;
14670 esac
14671 shlibpath_var=LD_LIBRARY_PATH
14672 case $host_os in
14673 freebsd2*)
14674 shlibpath_overrides_runpath=yes
14675 ;;
14676 freebsd3.01* | freebsdelf3.01*)
14677 shlibpath_overrides_runpath=yes
14678 hardcode_into_libs=yes
14679 ;;
14680 *) # from 3.2 on
14681 shlibpath_overrides_runpath=no
14682 hardcode_into_libs=yes
14683 ;;
14684 esac
14685 ;;
14686
14687gnu*)
14688 version_type=linux
14689 need_lib_prefix=no
14690 need_version=no
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 hardcode_into_libs=yes
14695 ;;
14696
14697hpux9* | hpux10* | hpux11*)
14698 # Give a soname corresponding to the major version so that dld.sl refuses to
14699 # link against other versions.
14700 version_type=sunos
14701 need_lib_prefix=no
14702 need_version=no
14703 case "$host_cpu" in
14704 ia64*)
14705 shrext_cmds='.so'
14706 hardcode_into_libs=yes
14707 dynamic_linker="$host_os dld.so"
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 if test "X$HPUX_IA64_MODE" = X32; then
14713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14714 else
14715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14716 fi
14717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14718 ;;
14719 hppa*64*)
14720 shrext_cmds='.sl'
14721 hardcode_into_libs=yes
14722 dynamic_linker="$host_os dld.sl"
14723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 soname_spec='${libname}${release}${shared_ext}$major'
14727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14729 ;;
14730 *)
14731 shrext_cmds='.sl'
14732 dynamic_linker="$host_os dld.sl"
14733 shlibpath_var=SHLIB_PATH
14734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 ;;
14738 esac
14739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14740 postinstall_cmds='chmod 555 $lib'
14741 ;;
14742
14743irix5* | irix6* | nonstopux*)
14744 case $host_os in
14745 nonstopux*) version_type=nonstopux ;;
14746 *)
14747 if test "$lt_cv_prog_gnu_ld" = yes; then
14748 version_type=linux
14749 else
14750 version_type=irix
14751 fi ;;
14752 esac
14753 need_lib_prefix=no
14754 need_version=no
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14757 case $host_os in
14758 irix5* | nonstopux*)
14759 libsuff= shlibsuff=
14760 ;;
14761 *)
14762 case $LD in # libtool.m4 will add one of these switches to LD
14763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14764 libsuff= shlibsuff= libmagic=32-bit;;
14765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14766 libsuff=32 shlibsuff=N32 libmagic=N32;;
14767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14768 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14769 *) libsuff= shlibsuff= libmagic=never-match;;
14770 esac
14771 ;;
14772 esac
14773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14774 shlibpath_overrides_runpath=no
14775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14777 hardcode_into_libs=yes
14778 ;;
14779
14780# No shared lib support for Linux oldld, aout, or coff.
14781linux*oldld* | linux*aout* | linux*coff*)
14782 dynamic_linker=no
14783 ;;
14784
14785# This must be Linux ELF.
14786linux*)
14787 version_type=linux
14788 need_lib_prefix=no
14789 need_version=no
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=no
14795 # This implies no fast_install, which is unacceptable.
14796 # Some rework will be needed to allow for fast_install
14797 # before this can be enabled.
14798 hardcode_into_libs=yes
14799
14800 # Append ld.so.conf contents to the search path
14801 if test -f /etc/ld.so.conf; then
14802 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14803 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14804 fi
14805
14806 # We used to test for /lib/ld.so.1 and disable shared libraries on
14807 # powerpc, because MkLinux only supported shared libraries with the
14808 # GNU dynamic linker. Since this was broken with cross compilers,
14809 # most powerpc-linux boxes support dynamic linking these days and
14810 # people can always --disable-shared, the test was removed, and we
14811 # assume the GNU/Linux dynamic linker is in use.
14812 dynamic_linker='GNU/Linux ld.so'
14813 ;;
14814
14815netbsdelf*-gnu)
14816 version_type=linux
14817 need_lib_prefix=no
14818 need_version=no
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14820 soname_spec='${libname}${release}${shared_ext}$major'
14821 shlibpath_var=LD_LIBRARY_PATH
14822 shlibpath_overrides_runpath=no
14823 hardcode_into_libs=yes
14824 dynamic_linker='NetBSD ld.elf_so'
14825 ;;
14826
14827knetbsd*-gnu)
14828 version_type=linux
14829 need_lib_prefix=no
14830 need_version=no
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 shlibpath_overrides_runpath=no
14835 hardcode_into_libs=yes
14836 dynamic_linker='GNU ld.so'
14837 ;;
14838
14839netbsd*)
14840 version_type=sunos
14841 need_lib_prefix=no
14842 need_version=no
14843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14846 dynamic_linker='NetBSD (a.out) ld.so'
14847 else
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 dynamic_linker='NetBSD ld.elf_so'
14851 fi
14852 shlibpath_var=LD_LIBRARY_PATH
14853 shlibpath_overrides_runpath=yes
14854 hardcode_into_libs=yes
14855 ;;
14856
14857newsos6)
14858 version_type=linux
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes
14862 ;;
14863
14864nto-qnx*)
14865 version_type=linux
14866 need_lib_prefix=no
14867 need_version=no
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 soname_spec='${libname}${release}${shared_ext}$major'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=yes
14872 ;;
14873
14874openbsd*)
14875 version_type=sunos
14876 need_lib_prefix=no
14877 need_version=yes
14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14880 shlibpath_var=LD_LIBRARY_PATH
14881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14882 case $host_os in
14883 openbsd2.[89] | openbsd2.[89].*)
14884 shlibpath_overrides_runpath=no
14885 ;;
14886 *)
14887 shlibpath_overrides_runpath=yes
14888 ;;
14889 esac
14890 else
14891 shlibpath_overrides_runpath=yes
14892 fi
14893 ;;
14894
14895os2*)
14896 libname_spec='$name'
14897 shrext_cmds=".dll"
14898 need_lib_prefix=no
14899 library_names_spec='$libname${shared_ext} $libname.a'
14900 dynamic_linker='OS/2 ld.exe'
14901 shlibpath_var=LIBPATH
14902 ;;
14903
14904osf3* | osf4* | osf5*)
14905 version_type=osf
14906 need_lib_prefix=no
14907 need_version=no
14908 soname_spec='${libname}${release}${shared_ext}$major'
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14912 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14913 ;;
14914
14915sco3.2v5*)
14916 version_type=osf
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14919 shlibpath_var=LD_LIBRARY_PATH
14920 ;;
14921
14922solaris*)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 shlibpath_overrides_runpath=yes
14930 hardcode_into_libs=yes
14931 # ldd complains unless libraries are executable
14932 postinstall_cmds='chmod +x $lib'
14933 ;;
14934
14935sunos4*)
14936 version_type=sunos
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14941 if test "$with_gnu_ld" = yes; then
14942 need_lib_prefix=no
14943 fi
14944 need_version=yes
14945 ;;
14946
14947sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14948 version_type=linux
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 case $host_vendor in
14953 sni)
14954 shlibpath_overrides_runpath=no
14955 need_lib_prefix=no
14956 export_dynamic_flag_spec='${wl}-Blargedynsym'
14957 runpath_var=LD_RUN_PATH
14958 ;;
14959 siemens)
14960 need_lib_prefix=no
14961 ;;
14962 motorola)
14963 need_lib_prefix=no
14964 need_version=no
14965 shlibpath_overrides_runpath=no
14966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14967 ;;
14968 esac
14969 ;;
14970
14971sysv4*MP*)
14972 if test -d /usr/nec ;then
14973 version_type=linux
14974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14975 soname_spec='$libname${shared_ext}.$major'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 fi
14978 ;;
14979
14980uts4*)
14981 version_type=linux
14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983 soname_spec='${libname}${release}${shared_ext}$major'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 ;;
14986
14987*)
14988 dynamic_linker=no
14989 ;;
14990esac
14991echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14992echo "${ECHO_T}$dynamic_linker" >&6
14993test "$dynamic_linker" = no && can_build_shared=no
14994
14995echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14996echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14997hardcode_action_F77=
14998if test -n "$hardcode_libdir_flag_spec_F77" || \
14999 test -n "$runpath_var F77" || \
15000 test "X$hardcode_automatic_F77"="Xyes" ; then
15001
15002 # We can hardcode non-existant directories.
15003 if test "$hardcode_direct_F77" != no &&
15004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15005 # have to relink, otherwise we might link with an installed library
15006 # when we should be linking with a yet-to-be-installed one
15007 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15008 test "$hardcode_minus_L_F77" != no; then
15009 # Linking always hardcodes the temporary library directory.
15010 hardcode_action_F77=relink
15011 else
15012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15013 hardcode_action_F77=immediate
15014 fi
15015else
15016 # We cannot hardcode anything, or else we can only hardcode existing
15017 # directories.
15018 hardcode_action_F77=unsupported
15019fi
15020echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15021echo "${ECHO_T}$hardcode_action_F77" >&6
15022
15023if test "$hardcode_action_F77" = relink; then
15024 # Fast installation is not supported
15025 enable_fast_install=no
15026elif test "$shlibpath_overrides_runpath" = yes ||
15027 test "$enable_shared" = no; then
15028 # Fast installation is not necessary
15029 enable_fast_install=needless
15030fi
15031
15032striplib=
15033old_striplib=
15034echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15035echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15036if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15037 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15038 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15039 echo "$as_me:$LINENO: result: yes" >&5
15040echo "${ECHO_T}yes" >&6
15041else
15042# FIXME - insert some real tests, host_os isn't really good enough
15043 case $host_os in
15044 darwin*)
15045 if test -n "$STRIP" ; then
15046 striplib="$STRIP -x"
15047 echo "$as_me:$LINENO: result: yes" >&5
15048echo "${ECHO_T}yes" >&6
15049 else
15050 echo "$as_me:$LINENO: result: no" >&5
15051echo "${ECHO_T}no" >&6
15052fi
15053 ;;
15054 *)
15055 echo "$as_me:$LINENO: result: no" >&5
15056echo "${ECHO_T}no" >&6
15057 ;;
15058 esac
15059fi
15060
15061
15062
15063# The else clause should only fire when bootstrapping the
15064# libtool distribution, otherwise you forgot to ship ltmain.sh
15065# with your package, and you will get complaints that there are
15066# no rules to generate ltmain.sh.
15067if test -f "$ltmain"; then
15068 # See if we are running on zsh, and set the options which allow our commands through
15069 # without removal of \ escapes.
15070 if test -n "${ZSH_VERSION+set}" ; then
15071 setopt NO_GLOB_SUBST
15072 fi
15073 # Now quote all the things that may contain metacharacters while being
15074 # careful not to overquote the AC_SUBSTed values. We take copies of the
15075 # variables and quote the copies for generation of the libtool script.
15076 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15077 SED SHELL STRIP \
15078 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15079 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15080 deplibs_check_method reload_flag reload_cmds need_locks \
15081 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15082 lt_cv_sys_global_symbol_to_c_name_address \
15083 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15084 old_postinstall_cmds old_postuninstall_cmds \
15085 compiler_F77 \
15086 CC_F77 \
15087 LD_F77 \
15088 lt_prog_compiler_wl_F77 \
15089 lt_prog_compiler_pic_F77 \
15090 lt_prog_compiler_static_F77 \
15091 lt_prog_compiler_no_builtin_flag_F77 \
15092 export_dynamic_flag_spec_F77 \
15093 thread_safe_flag_spec_F77 \
15094 whole_archive_flag_spec_F77 \
15095 enable_shared_with_static_runtimes_F77 \
15096 old_archive_cmds_F77 \
15097 old_archive_from_new_cmds_F77 \
15098 predep_objects_F77 \
15099 postdep_objects_F77 \
15100 predeps_F77 \
15101 postdeps_F77 \
15102 compiler_lib_search_path_F77 \
15103 archive_cmds_F77 \
15104 archive_expsym_cmds_F77 \
15105 postinstall_cmds_F77 \
15106 postuninstall_cmds_F77 \
15107 old_archive_from_expsyms_cmds_F77 \
15108 allow_undefined_flag_F77 \
15109 no_undefined_flag_F77 \
15110 export_symbols_cmds_F77 \
15111 hardcode_libdir_flag_spec_F77 \
15112 hardcode_libdir_flag_spec_ld_F77 \
15113 hardcode_libdir_separator_F77 \
15114 hardcode_automatic_F77 \
15115 module_cmds_F77 \
15116 module_expsym_cmds_F77 \
15117 lt_cv_prog_compiler_c_o_F77 \
15118 exclude_expsyms_F77 \
15119 include_expsyms_F77; do
15120
15121 case $var in
15122 old_archive_cmds_F77 | \
15123 old_archive_from_new_cmds_F77 | \
15124 archive_cmds_F77 | \
15125 archive_expsym_cmds_F77 | \
15126 module_cmds_F77 | \
15127 module_expsym_cmds_F77 | \
15128 old_archive_from_expsyms_cmds_F77 | \
15129 export_symbols_cmds_F77 | \
15130 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15131 postinstall_cmds | postuninstall_cmds | \
15132 old_postinstall_cmds | old_postuninstall_cmds | \
15133 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15134 # Double-quote double-evaled strings.
15135 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15136 ;;
15137 *)
15138 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15139 ;;
15140 esac
15141 done
15142
15143 case $lt_echo in
15144 *'\$0 --fallback-echo"')
15145 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15146 ;;
15147 esac
15148
15149cfgfile="$ofile"
15150
15151 cat <<__EOF__ >> "$cfgfile"
15152# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15153
15154# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15155
15156# Shell to use when invoking shell scripts.
15157SHELL=$lt_SHELL
15158
15159# Whether or not to build shared libraries.
15160build_libtool_libs=$enable_shared
15161
15162# Whether or not to build static libraries.
15163build_old_libs=$enable_static
15164
15165# Whether or not to add -lc for building shared libraries.
15166build_libtool_need_lc=$archive_cmds_need_lc_F77
15167
15168# Whether or not to disallow shared libs when runtime libs are static
15169allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15170
15171# Whether or not to optimize for fast installation.
15172fast_install=$enable_fast_install
15173
15174# The host system.
15175host_alias=$host_alias
15176host=$host
15177
15178# An echo program that does not interpret backslashes.
15179echo=$lt_echo
15180
15181# The archiver.
15182AR=$lt_AR
15183AR_FLAGS=$lt_AR_FLAGS
15184
15185# A C compiler.
15186LTCC=$lt_LTCC
15187
15188# A language-specific compiler.
15189CC=$lt_compiler_F77
15190
15191# Is the compiler the GNU C compiler?
15192with_gcc=$GCC_F77
15193
15194# An ERE matcher.
15195EGREP=$lt_EGREP
15196
15197# The linker used to build libraries.
15198LD=$lt_LD_F77
15199
15200# Whether we need hard or soft links.
15201LN_S=$lt_LN_S
15202
15203# A BSD-compatible nm program.
15204NM=$lt_NM
15205
15206# A symbol stripping program
15207STRIP=$lt_STRIP
15208
15209# Used to examine libraries when file_magic_cmd begins "file"
15210MAGIC_CMD=$MAGIC_CMD
15211
15212# Used on cygwin: DLL creation program.
15213DLLTOOL="$DLLTOOL"
15214
15215# Used on cygwin: object dumper.
15216OBJDUMP="$OBJDUMP"
15217
15218# Used on cygwin: assembler.
15219AS="$AS"
15220
15221# The name of the directory that contains temporary libtool files.
15222objdir=$objdir
15223
15224# How to create reloadable object files.
15225reload_flag=$lt_reload_flag
15226reload_cmds=$lt_reload_cmds
15227
15228# How to pass a linker flag through the compiler.
15229wl=$lt_lt_prog_compiler_wl_F77
15230
15231# Object file suffix (normally "o").
15232objext="$ac_objext"
15233
15234# Old archive suffix (normally "a").
15235libext="$libext"
15236
15237# Shared library suffix (normally ".so").
15238shrext_cmds='$shrext_cmds'
15239
15240# Executable file suffix (normally "").
15241exeext="$exeext"
15242
15243# Additional compiler flags for building library objects.
15244pic_flag=$lt_lt_prog_compiler_pic_F77
15245pic_mode=$pic_mode
15246
15247# What is the maximum length of a command?
15248max_cmd_len=$lt_cv_sys_max_cmd_len
15249
15250# Does compiler simultaneously support -c and -o options?
15251compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15252
15253# Must we lock files when doing compilation ?
15254need_locks=$lt_need_locks
15255
15256# Do we need the lib prefix for modules?
15257need_lib_prefix=$need_lib_prefix
15258
15259# Do we need a version for libraries?
15260need_version=$need_version
15261
15262# Whether dlopen is supported.
15263dlopen_support=$enable_dlopen
15264
15265# Whether dlopen of programs is supported.
15266dlopen_self=$enable_dlopen_self
15267
15268# Whether dlopen of statically linked programs is supported.
15269dlopen_self_static=$enable_dlopen_self_static
15270
15271# Compiler flag to prevent dynamic linking.
15272link_static_flag=$lt_lt_prog_compiler_static_F77
15273
15274# Compiler flag to turn off builtin functions.
15275no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15276
15277# Compiler flag to allow reflexive dlopens.
15278export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15279
15280# Compiler flag to generate shared objects directly from archives.
15281whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15282
15283# Compiler flag to generate thread-safe objects.
15284thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15285
15286# Library versioning type.
15287version_type=$version_type
15288
15289# Format of library name prefix.
15290libname_spec=$lt_libname_spec
15291
15292# List of archive names. First name is the real one, the rest are links.
15293# The last name is the one that the linker finds with -lNAME.
15294library_names_spec=$lt_library_names_spec
15295
15296# The coded name of the library, if different from the real name.
15297soname_spec=$lt_soname_spec
15298
15299# Commands used to build and install an old-style archive.
15300RANLIB=$lt_RANLIB
15301old_archive_cmds=$lt_old_archive_cmds_F77
15302old_postinstall_cmds=$lt_old_postinstall_cmds
15303old_postuninstall_cmds=$lt_old_postuninstall_cmds
15304
15305# Create an old-style archive from a shared archive.
15306old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15307
15308# Create a temporary old-style archive to link instead of a shared archive.
15309old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15310
15311# Commands used to build and install a shared archive.
15312archive_cmds=$lt_archive_cmds_F77
15313archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15314postinstall_cmds=$lt_postinstall_cmds
15315postuninstall_cmds=$lt_postuninstall_cmds
15316
15317# Commands used to build a loadable module (assumed same as above if empty)
15318module_cmds=$lt_module_cmds_F77
15319module_expsym_cmds=$lt_module_expsym_cmds_F77
15320
15321# Commands to strip libraries.
15322old_striplib=$lt_old_striplib
15323striplib=$lt_striplib
15324
15325# Dependencies to place before the objects being linked to create a
15326# shared library.
15327predep_objects=$lt_predep_objects_F77
15328
15329# Dependencies to place after the objects being linked to create a
15330# shared library.
15331postdep_objects=$lt_postdep_objects_F77
15332
15333# Dependencies to place before the objects being linked to create a
15334# shared library.
15335predeps=$lt_predeps_F77
15336
15337# Dependencies to place after the objects being linked to create a
15338# shared library.
15339postdeps=$lt_postdeps_F77
15340
15341# The library search path used internally by the compiler when linking
15342# a shared library.
15343compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15344
15345# Method to check whether dependent libraries are shared objects.
15346deplibs_check_method=$lt_deplibs_check_method
15347
15348# Command to use when deplibs_check_method == file_magic.
15349file_magic_cmd=$lt_file_magic_cmd
15350
15351# Flag that allows shared libraries with undefined symbols to be built.
15352allow_undefined_flag=$lt_allow_undefined_flag_F77
15353
15354# Flag that forces no undefined symbols.
15355no_undefined_flag=$lt_no_undefined_flag_F77
15356
15357# Commands used to finish a libtool library installation in a directory.
15358finish_cmds=$lt_finish_cmds
15359
15360# Same as above, but a single script fragment to be evaled but not shown.
15361finish_eval=$lt_finish_eval
15362
15363# Take the output of nm and produce a listing of raw symbols and C names.
15364global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15365
15366# Transform the output of nm in a proper C declaration
15367global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15368
15369# Transform the output of nm in a C name address pair
15370global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15371
15372# This is the shared library runtime path variable.
15373runpath_var=$runpath_var
15374
15375# This is the shared library path variable.
15376shlibpath_var=$shlibpath_var
15377
15378# Is shlibpath searched before the hard-coded library search path?
15379shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15380
15381# How to hardcode a shared library path into an executable.
15382hardcode_action=$hardcode_action_F77
15383
15384# Whether we should hardcode library paths into libraries.
15385hardcode_into_libs=$hardcode_into_libs
15386
15387# Flag to hardcode \$libdir into a binary during linking.
15388# This must work even if \$libdir does not exist.
15389hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15390
15391# If ld is used when linking, flag to hardcode \$libdir into
15392# a binary during linking. This must work even if \$libdir does
15393# not exist.
15394hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15395
15396# Whether we need a single -rpath flag with a separated argument.
15397hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15398
15399# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15400# resulting binary.
15401hardcode_direct=$hardcode_direct_F77
15402
15403# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15404# resulting binary.
15405hardcode_minus_L=$hardcode_minus_L_F77
15406
15407# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15408# the resulting binary.
15409hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15410
15411# Set to yes if building a shared library automatically hardcodes DIR into the library
15412# and all subsequent libraries and executables linked against it.
15413hardcode_automatic=$hardcode_automatic_F77
15414
15415# Variables whose values should be saved in libtool wrapper scripts and
15416# restored at relink time.
15417variables_saved_for_relink="$variables_saved_for_relink"
15418
15419# Whether libtool must link a program against all its dependency libraries.
15420link_all_deplibs=$link_all_deplibs_F77
15421
15422# Compile-time system search path for libraries
15423sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15424
15425# Run-time system search path for libraries
15426sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15427
15428# Fix the shell variable \$srcfile for the compiler.
15429fix_srcfile_path="$fix_srcfile_path_F77"
15430
15431# Set to yes if exported symbols are required.
15432always_export_symbols=$always_export_symbols_F77
15433
15434# The commands to list exported symbols.
15435export_symbols_cmds=$lt_export_symbols_cmds_F77
15436
15437# The commands to extract the exported symbol list from a shared archive.
15438extract_expsyms_cmds=$lt_extract_expsyms_cmds
15439
15440# Symbols that should not be listed in the preloaded symbols.
15441exclude_expsyms=$lt_exclude_expsyms_F77
15442
15443# Symbols that must always be exported.
15444include_expsyms=$lt_include_expsyms_F77
15445
15446# ### END LIBTOOL TAG CONFIG: $tagname
15447
15448__EOF__
15449
15450
15451else
15452 # If there is no Makefile yet, we rely on a make rule to execute
15453 # `config.status --recheck' to rerun these tests and create the
15454 # libtool script then.
15455 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15456 if test -f "$ltmain_in"; then
15457 test -f Makefile && make "$ltmain"
15458 fi
15459fi
15460
15461
15462ac_ext=c
15463ac_cpp='$CPP $CPPFLAGS'
15464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15466ac_compiler_gnu=$ac_cv_c_compiler_gnu
15467
15468CC="$lt_save_CC"
15469
15470 else
15471 tagname=""
15472 fi
15473 ;;
15474
15475 GCJ)
15476 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15477
15478
15479
15480# Source file extension for Java test sources.
15481ac_ext=java
15482
15483# Object file extension for compiled Java test sources.
15484objext=o
15485objext_GCJ=$objext
15486
15487# Code to be used in simple compile tests
15488lt_simple_compile_test_code="class foo {}\n"
15489
15490# Code to be used in simple link tests
15491lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15492
15493# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15494
15495# If no C compiler was specified, use CC.
15496LTCC=${LTCC-"$CC"}
15497
15498# Allow CC to be a program name with arguments.
15499compiler=$CC
15500
15501
15502# Allow CC to be a program name with arguments.
15503lt_save_CC="$CC"
15504CC=${GCJ-"gcj"}
15505compiler=$CC
15506compiler_GCJ=$CC
15507
15508# GCJ did not exist at the time GCC didn't implicitly link libc in.
15509archive_cmds_need_lc_GCJ=no
15510
15511
15512lt_prog_compiler_no_builtin_flag_GCJ=
15513
15514if test "$GCC" = yes; then
15515 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15516
15517
15518echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15519echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15520if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15522else
15523 lt_cv_prog_compiler_rtti_exceptions=no
15524 ac_outfile=conftest.$ac_objext
15525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15526 lt_compiler_flag="-fno-rtti -fno-exceptions"
15527 # Insert the option either (1) after the last *FLAGS variable, or
15528 # (2) before a word containing "conftest.", or (3) at the end.
15529 # Note that $ac_compile itself does not contain backslashes and begins
15530 # with a dollar sign (not a hyphen), so the echo should work correctly.
15531 # The option is referenced via a variable to avoid confusing sed.
15532 lt_compile=`echo "$ac_compile" | $SED \
15533 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15535 -e 's:$: $lt_compiler_flag:'`
15536 (eval echo "\"\$as_me:15536: $lt_compile\"" >&5)
15537 (eval "$lt_compile" 2>conftest.err)
15538 ac_status=$?
15539 cat conftest.err >&5
15540 echo "$as_me:15540: \$? = $ac_status" >&5
15541 if (exit $ac_status) && test -s "$ac_outfile"; then
15542 # The compiler can only warn and ignore the option if not recognized
15543 # So say no if there are warnings
15544 if test ! -s conftest.err; then
15545 lt_cv_prog_compiler_rtti_exceptions=yes
15546 fi
15547 fi
15548 $rm conftest*
15549
15550fi
15551echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15552echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15553
15554if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15555 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15556else
15557 :
15558fi
15559
15560fi
15561
15562lt_prog_compiler_wl_GCJ=
15563lt_prog_compiler_pic_GCJ=
15564lt_prog_compiler_static_GCJ=
15565
15566echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15567echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15568
15569 if test "$GCC" = yes; then
15570 lt_prog_compiler_wl_GCJ='-Wl,'
15571 lt_prog_compiler_static_GCJ='-static'
15572
15573 case $host_os in
15574 aix*)
15575 # All AIX code is PIC.
15576 if test "$host_cpu" = ia64; then
15577 # AIX 5 now supports IA64 processor
15578 lt_prog_compiler_static_GCJ='-Bstatic'
15579 fi
15580 ;;
15581
15582 amigaos*)
15583 # FIXME: we need at least 68020 code to build shared libraries, but
15584 # adding the `-m68020' flag to GCC prevents building anything better,
15585 # like `-m68040'.
15586 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15587 ;;
15588
15589 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15590 # PIC is the default for these OSes.
15591 ;;
15592
15593 mingw* | pw32* | os2*)
15594 # This hack is so that the source file can tell whether it is being
15595 # built for inclusion in a dll (and should export symbols for example).
15596 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15597 ;;
15598
15599 darwin* | rhapsody*)
15600 # PIC is the default on this platform
15601 # Common symbols not allowed in MH_DYLIB files
15602 lt_prog_compiler_pic_GCJ='-fno-common'
15603 ;;
15604
15605 msdosdjgpp*)
15606 # Just because we use GCC doesn't mean we suddenly get shared libraries
15607 # on systems that don't support them.
15608 lt_prog_compiler_can_build_shared_GCJ=no
15609 enable_shared=no
15610 ;;
15611
15612 sysv4*MP*)
15613 if test -d /usr/nec; then
15614 lt_prog_compiler_pic_GCJ=-Kconform_pic
15615 fi
15616 ;;
15617
15618 hpux*)
15619 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15620 # not for PA HP-UX.
15621 case "$host_cpu" in
15622 hppa*64*|ia64*)
15623 # +Z the default
15624 ;;
15625 *)
15626 lt_prog_compiler_pic_GCJ='-fPIC'
15627 ;;
15628 esac
15629 ;;
15630
15631 *)
15632 lt_prog_compiler_pic_GCJ='-fPIC'
15633 ;;
15634 esac
15635 else
15636 # PORTME Check for flag to pass linker flags through the system compiler.
15637 case $host_os in
15638 aix*)
15639 lt_prog_compiler_wl_GCJ='-Wl,'
15640 if test "$host_cpu" = ia64; then
15641 # AIX 5 now supports IA64 processor
15642 lt_prog_compiler_static_GCJ='-Bstatic'
15643 else
15644 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15645 fi
15646 ;;
15647
15648 mingw* | pw32* | os2*)
15649 # This hack is so that the source file can tell whether it is being
15650 # built for inclusion in a dll (and should export symbols for example).
15651 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15652 ;;
15653
15654 hpux9* | hpux10* | hpux11*)
15655 lt_prog_compiler_wl_GCJ='-Wl,'
15656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15657 # not for PA HP-UX.
15658 case "$host_cpu" in
15659 hppa*64*|ia64*)
15660 # +Z the default
15661 ;;
15662 *)
15663 lt_prog_compiler_pic_GCJ='+Z'
15664 ;;
15665 esac
15666 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15667 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15668 ;;
15669
15670 irix5* | irix6* | nonstopux*)
15671 lt_prog_compiler_wl_GCJ='-Wl,'
15672 # PIC (with -KPIC) is the default.
15673 lt_prog_compiler_static_GCJ='-non_shared'
15674 ;;
15675
15676 newsos6)
15677 lt_prog_compiler_pic_GCJ='-KPIC'
15678 lt_prog_compiler_static_GCJ='-Bstatic'
15679 ;;
15680
15681 linux*)
15682 case $CC in
15683 icc* | ecc*)
15684 lt_prog_compiler_wl_GCJ='-Wl,'
15685 lt_prog_compiler_pic_GCJ='-KPIC'
15686 lt_prog_compiler_static_GCJ='-static'
15687 ;;
15688 ccc*)
15689 lt_prog_compiler_wl_GCJ='-Wl,'
15690 # All Alpha code is PIC.
15691 lt_prog_compiler_static_GCJ='-non_shared'
15692 ;;
15693 esac
15694 ;;
15695
15696 osf3* | osf4* | osf5*)
15697 lt_prog_compiler_wl_GCJ='-Wl,'
15698 # All OSF/1 code is PIC.
15699 lt_prog_compiler_static_GCJ='-non_shared'
15700 ;;
15701
15702 sco3.2v5*)
15703 lt_prog_compiler_pic_GCJ='-Kpic'
15704 lt_prog_compiler_static_GCJ='-dn'
15705 ;;
15706
15707 solaris*)
15708 lt_prog_compiler_wl_GCJ='-Wl,'
15709 lt_prog_compiler_pic_GCJ='-KPIC'
15710 lt_prog_compiler_static_GCJ='-Bstatic'
15711 ;;
15712
15713 sunos4*)
15714 lt_prog_compiler_wl_GCJ='-Qoption ld '
15715 lt_prog_compiler_pic_GCJ='-PIC'
15716 lt_prog_compiler_static_GCJ='-Bstatic'
15717 ;;
15718
15719 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15720 lt_prog_compiler_wl_GCJ='-Wl,'
15721 lt_prog_compiler_pic_GCJ='-KPIC'
15722 lt_prog_compiler_static_GCJ='-Bstatic'
15723 ;;
15724
15725 sysv4*MP*)
15726 if test -d /usr/nec ;then
15727 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15728 lt_prog_compiler_static_GCJ='-Bstatic'
15729 fi
15730 ;;
15731
15732 uts4*)
15733 lt_prog_compiler_pic_GCJ='-pic'
15734 lt_prog_compiler_static_GCJ='-Bstatic'
15735 ;;
15736
15737 *)
15738 lt_prog_compiler_can_build_shared_GCJ=no
15739 ;;
15740 esac
15741 fi
15742
15743echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15744echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15745
15746#
15747# Check to make sure the PIC flag actually works.
15748#
15749if test -n "$lt_prog_compiler_pic_GCJ"; then
15750
15751echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15752echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15753if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15754 echo $ECHO_N "(cached) $ECHO_C" >&6
15755else
15756 lt_prog_compiler_pic_works_GCJ=no
15757 ac_outfile=conftest.$ac_objext
15758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15759 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15760 # Insert the option either (1) after the last *FLAGS variable, or
15761 # (2) before a word containing "conftest.", or (3) at the end.
15762 # Note that $ac_compile itself does not contain backslashes and begins
15763 # with a dollar sign (not a hyphen), so the echo should work correctly.
15764 # The option is referenced via a variable to avoid confusing sed.
15765 lt_compile=`echo "$ac_compile" | $SED \
15766 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15768 -e 's:$: $lt_compiler_flag:'`
15769 (eval echo "\"\$as_me:15769: $lt_compile\"" >&5)
15770 (eval "$lt_compile" 2>conftest.err)
15771 ac_status=$?
15772 cat conftest.err >&5
15773 echo "$as_me:15773: \$? = $ac_status" >&5
15774 if (exit $ac_status) && test -s "$ac_outfile"; then
15775 # The compiler can only warn and ignore the option if not recognized
15776 # So say no if there are warnings
15777 if test ! -s conftest.err; then
15778 lt_prog_compiler_pic_works_GCJ=yes
15779 fi
15780 fi
15781 $rm conftest*
15782
15783fi
15784echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15785echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15786
15787if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15788 case $lt_prog_compiler_pic_GCJ in
15789 "" | " "*) ;;
15790 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15791 esac
15792else
15793 lt_prog_compiler_pic_GCJ=
15794 lt_prog_compiler_can_build_shared_GCJ=no
15795fi
15796
15797fi
15798case "$host_os" in
15799 # For platforms which do not support PIC, -DPIC is meaningless:
15800 *djgpp*)
15801 lt_prog_compiler_pic_GCJ=
15802 ;;
15803 *)
15804 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15805 ;;
15806esac
15807
15808echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15809echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15810if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812else
15813 lt_cv_prog_compiler_c_o_GCJ=no
15814 $rm -r conftest 2>/dev/null
15815 mkdir conftest
15816 cd conftest
15817 mkdir out
15818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15819
15820 lt_compiler_flag="-o out/conftest2.$ac_objext"
15821 # Insert the option either (1) after the last *FLAGS variable, or
15822 # (2) before a word containing "conftest.", or (3) at the end.
15823 # Note that $ac_compile itself does not contain backslashes and begins
15824 # with a dollar sign (not a hyphen), so the echo should work correctly.
15825 lt_compile=`echo "$ac_compile" | $SED \
15826 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15828 -e 's:$: $lt_compiler_flag:'`
15829 (eval echo "\"\$as_me:15829: $lt_compile\"" >&5)
15830 (eval "$lt_compile" 2>out/conftest.err)
15831 ac_status=$?
15832 cat out/conftest.err >&5
15833 echo "$as_me:15833: \$? = $ac_status" >&5
15834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15835 then
15836 # The compiler can only warn and ignore the option if not recognized
15837 # So say no if there are warnings
15838 if test ! -s out/conftest.err; then
15839 lt_cv_prog_compiler_c_o_GCJ=yes
15840 fi
15841 fi
15842 chmod u+w .
15843 $rm conftest*
15844 # SGI C++ compiler will create directory out/ii_files/ for
15845 # template instantiation
15846 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15847 $rm out/* && rmdir out
15848 cd ..
15849 rmdir conftest
15850 $rm conftest*
15851
15852fi
15853echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15854echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15855
15856
15857hard_links="nottested"
15858if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15859 # do not overwrite the value of need_locks provided by the user
15860 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15861echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15862 hard_links=yes
15863 $rm conftest*
15864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15865 touch conftest.a
15866 ln conftest.a conftest.b 2>&5 || hard_links=no
15867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15868 echo "$as_me:$LINENO: result: $hard_links" >&5
15869echo "${ECHO_T}$hard_links" >&6
15870 if test "$hard_links" = no; then
15871 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15872echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15873 need_locks=warn
15874 fi
15875else
15876 need_locks=no
15877fi
15878
15879echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15880echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15881
15882 runpath_var=
15883 allow_undefined_flag_GCJ=
15884 enable_shared_with_static_runtimes_GCJ=no
15885 archive_cmds_GCJ=
15886 archive_expsym_cmds_GCJ=
15887 old_archive_From_new_cmds_GCJ=
15888 old_archive_from_expsyms_cmds_GCJ=
15889 export_dynamic_flag_spec_GCJ=
15890 whole_archive_flag_spec_GCJ=
15891 thread_safe_flag_spec_GCJ=
15892 hardcode_libdir_flag_spec_GCJ=
15893 hardcode_libdir_flag_spec_ld_GCJ=
15894 hardcode_libdir_separator_GCJ=
15895 hardcode_direct_GCJ=no
15896 hardcode_minus_L_GCJ=no
15897 hardcode_shlibpath_var_GCJ=unsupported
15898 link_all_deplibs_GCJ=unknown
15899 hardcode_automatic_GCJ=no
15900 module_cmds_GCJ=
15901 module_expsym_cmds_GCJ=
15902 always_export_symbols_GCJ=no
15903 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15904 # include_expsyms should be a list of space-separated symbols to be *always*
15905 # included in the symbol list
15906 include_expsyms_GCJ=
15907 # exclude_expsyms can be an extended regexp of symbols to exclude
15908 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15909 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15910 # as well as any symbol that contains `d'.
15911 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15913 # platforms (ab)use it in PIC code, but their linkers get confused if
15914 # the symbol is explicitly referenced. Since portable code cannot
15915 # rely on this symbol name, it's probably fine to never include it in
15916 # preloaded symbol tables.
15917 extract_expsyms_cmds=
15918
15919 case $host_os in
15920 cygwin* | mingw* | pw32*)
15921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15922 # When not using gcc, we currently assume that we are using
15923 # Microsoft Visual C++.
15924 if test "$GCC" != yes; then
15925 with_gnu_ld=no
15926 fi
15927 ;;
15928 openbsd*)
15929 with_gnu_ld=no
15930 ;;
15931 esac
15932
15933 ld_shlibs_GCJ=yes
15934 if test "$with_gnu_ld" = yes; then
15935 # If archive_cmds runs LD, not CC, wlarc should be empty
15936 wlarc='${wl}'
15937
15938 # See if GNU ld supports shared libraries.
15939 case $host_os in
15940 aix3* | aix4* | aix5*)
15941 # On AIX/PPC, the GNU linker is very broken
15942 if test "$host_cpu" != ia64; then
15943 ld_shlibs_GCJ=no
15944 cat <<EOF 1>&2
15945
15946*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15947*** to be unable to reliably create shared libraries on AIX.
15948*** Therefore, libtool is disabling shared libraries support. If you
15949*** really care for shared libraries, you may want to modify your PATH
15950*** so that a non-GNU linker is found, and then restart.
15951
15952EOF
15953 fi
15954 ;;
15955
15956 amigaos*)
15957 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)'
15958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15959 hardcode_minus_L_GCJ=yes
15960
15961 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15962 # that the semantics of dynamic libraries on AmigaOS, at least up
15963 # to version 4, is to share data among multiple programs linked
15964 # with the same dynamic library. Since this doesn't match the
15965 # behavior of shared libraries on other platforms, we can't use
15966 # them.
15967 ld_shlibs_GCJ=no
15968 ;;
15969
15970 beos*)
15971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15972 allow_undefined_flag_GCJ=unsupported
15973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15974 # support --undefined. This deserves some investigation. FIXME
15975 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 else
15977 ld_shlibs_GCJ=no
15978 fi
15979 ;;
15980
15981 cygwin* | mingw* | pw32*)
15982 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15983 # as there is no search path for DLLs.
15984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15985 allow_undefined_flag_GCJ=unsupported
15986 always_export_symbols_GCJ=no
15987 enable_shared_with_static_runtimes_GCJ=yes
15988 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15989
15990 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15992 # If the export-symbols file already is a .def file (1st line
15993 # is EXPORTS), use it as is; otherwise, prepend...
15994 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15995 cp $export_symbols $output_objdir/$soname.def;
15996 else
15997 echo EXPORTS > $output_objdir/$soname.def;
15998 cat $export_symbols >> $output_objdir/$soname.def;
15999 fi~
16000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16001 else
16002 ld_shlibs=no
16003 fi
16004 ;;
16005
16006 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16008 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16009 wlarc=
16010 else
16011 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16012 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16013 fi
16014 ;;
16015
16016 solaris* | sysv5*)
16017 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16018 ld_shlibs_GCJ=no
16019 cat <<EOF 1>&2
16020
16021*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16022*** create shared libraries on Solaris systems. Therefore, libtool
16023*** is disabling shared libraries support. We urge you to upgrade GNU
16024*** binutils to release 2.9.1 or newer. Another option is to modify
16025*** your PATH or compiler configuration so that the native linker is
16026*** used, and then restart.
16027
16028EOF
16029 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16032 else
16033 ld_shlibs_GCJ=no
16034 fi
16035 ;;
16036
16037 sunos4*)
16038 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16039 wlarc=
16040 hardcode_direct_GCJ=yes
16041 hardcode_shlibpath_var_GCJ=no
16042 ;;
16043
16044 linux*)
16045 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16046 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16047 archive_cmds_GCJ="$tmp_archive_cmds"
16048 supports_anon_versioning=no
16049 case `$LD -v 2>/dev/null` in
16050 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16051 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16052 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16053 *\ 2.11.*) ;; # other 2.11 versions
16054 *) supports_anon_versioning=yes ;;
16055 esac
16056 if test $supports_anon_versioning = yes; then
16057 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16058cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16059$echo "local: *; };" >> $output_objdir/$libname.ver~
16060 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16061 else
16062 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16063 fi
16064 link_all_deplibs_GCJ=no
16065 else
16066 ld_shlibs_GCJ=no
16067 fi
16068 ;;
16069
16070 *)
16071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16072 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16074 else
16075 ld_shlibs_GCJ=no
16076 fi
16077 ;;
16078 esac
16079
16080 if test "$ld_shlibs_GCJ" = yes; then
16081 runpath_var=LD_RUN_PATH
16082 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16083 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16084 # ancient GNU ld didn't support --whole-archive et. al.
16085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16086 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16087 else
16088 whole_archive_flag_spec_GCJ=
16089 fi
16090 fi
16091 else
16092 # PORTME fill in a description of your system's linker (not GNU ld)
16093 case $host_os in
16094 aix3*)
16095 allow_undefined_flag_GCJ=unsupported
16096 always_export_symbols_GCJ=yes
16097 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'
16098 # Note: this linker hardcodes the directories in LIBPATH if there
16099 # are no directories specified by -L.
16100 hardcode_minus_L_GCJ=yes
16101 if test "$GCC" = yes && test -z "$link_static_flag"; then
16102 # Neither direct hardcoding nor static linking is supported with a
16103 # broken collect2.
16104 hardcode_direct_GCJ=unsupported
16105 fi
16106 ;;
16107
16108 aix4* | aix5*)
16109 if test "$host_cpu" = ia64; then
16110 # On IA64, the linker does run time linking by default, so we don't
16111 # have to do anything special.
16112 aix_use_runtimelinking=no
16113 exp_sym_flag='-Bexport'
16114 no_entry_flag=""
16115 else
16116 # If we're using GNU nm, then we don't want the "-C" option.
16117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16118 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16119 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'
16120 else
16121 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'
16122 fi
16123 aix_use_runtimelinking=no
16124
16125 # Test if we are trying to use run time linking or normal
16126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16127 # need to do runtime linking.
16128 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16129 for ld_flag in $LDFLAGS; do
16130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16131 aix_use_runtimelinking=yes
16132 break
16133 fi
16134 done
16135 esac
16136
16137 exp_sym_flag='-bexport'
16138 no_entry_flag='-bnoentry'
16139 fi
16140
16141 # When large executables or shared objects are built, AIX ld can
16142 # have problems creating the table of contents. If linking a library
16143 # or program results in "error TOC overflow" add -mminimal-toc to
16144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16146
16147 archive_cmds_GCJ=''
16148 hardcode_direct_GCJ=yes
16149 hardcode_libdir_separator_GCJ=':'
16150 link_all_deplibs_GCJ=yes
16151
16152 if test "$GCC" = yes; then
16153 case $host_os in aix4.012|aix4.012.*)
16154 # We only want to do this on AIX 4.2 and lower, the check
16155 # below for broken collect2 doesn't work under 4.3+
16156 collect2name=`${CC} -print-prog-name=collect2`
16157 if test -f "$collect2name" && \
16158 strings "$collect2name" | grep resolve_lib_name >/dev/null
16159 then
16160 # We have reworked collect2
16161 hardcode_direct_GCJ=yes
16162 else
16163 # We have old collect2
16164 hardcode_direct_GCJ=unsupported
16165 # It fails to find uninstalled libraries when the uninstalled
16166 # path is not listed in the libpath. Setting hardcode_minus_L
16167 # to unsupported forces relinking
16168 hardcode_minus_L_GCJ=yes
16169 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16170 hardcode_libdir_separator_GCJ=
16171 fi
16172 esac
16173 shared_flag='-shared'
16174 else
16175 # not using gcc
16176 if test "$host_cpu" = ia64; then
16177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16178 # chokes on -Wl,-G. The following line is correct:
16179 shared_flag='-G'
16180 else
16181 if test "$aix_use_runtimelinking" = yes; then
16182 shared_flag='${wl}-G'
16183 else
16184 shared_flag='${wl}-bM:SRE'
16185 fi
16186 fi
16187 fi
16188
16189 # It seems that -bexpall does not export symbols beginning with
16190 # underscore (_), so it is better to generate a list of symbols to export.
16191 always_export_symbols_GCJ=yes
16192 if test "$aix_use_runtimelinking" = yes; then
16193 # Warning - without using the other runtime loading flags (-brtl),
16194 # -berok will link without error, but may produce a broken library.
16195 allow_undefined_flag_GCJ='-berok'
16196 # Determine the default libpath from the value encoded in an empty executable.
16197 cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203
16204int
16205main ()
16206{
16207
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212rm -f conftest.$ac_objext conftest$ac_exeext
16213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16214 (eval $ac_link) 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag"
16222 || test ! -s conftest.err'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest$ac_exeext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234
16235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16236}'`
16237# Check for a 64-bit object if we didn't find anything.
16238if 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; }
16239}'`; fi
16240else
16241 echo "$as_me: failed program was:" >&5
16242sed 's/^/| /' conftest.$ac_ext >&5
16243
16244fi
16245rm -f conftest.err conftest.$ac_objext \
16246 conftest$ac_exeext conftest.$ac_ext
16247if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16248
16249 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16250 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"
16251 else
16252 if test "$host_cpu" = ia64; then
16253 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16254 allow_undefined_flag_GCJ="-z nodefs"
16255 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"
16256 else
16257 # Determine the default libpath from the value encoded in an empty executable.
16258 cat >conftest.$ac_ext <<_ACEOF
16259/* confdefs.h. */
16260_ACEOF
16261cat confdefs.h >>conftest.$ac_ext
16262cat >>conftest.$ac_ext <<_ACEOF
16263/* end confdefs.h. */
16264
16265int
16266main ()
16267{
16268
16269 ;
16270 return 0;
16271}
16272_ACEOF
16273rm -f conftest.$ac_objext conftest$ac_exeext
16274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16275 (eval $ac_link) 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } &&
16282 { ac_try='test -z "$ac_c_werror_flag"
16283 || test ! -s conftest.err'
16284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285 (eval $ac_try) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; } &&
16289 { ac_try='test -s conftest$ac_exeext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295
16296aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16297}'`
16298# Check for a 64-bit object if we didn't find anything.
16299if 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; }
16300}'`; fi
16301else
16302 echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305fi
16306rm -f conftest.err conftest.$ac_objext \
16307 conftest$ac_exeext conftest.$ac_ext
16308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309
16310 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16311 # Warning - without using the other run time loading flags,
16312 # -berok will link without error, but may produce a broken library.
16313 no_undefined_flag_GCJ=' ${wl}-bernotok'
16314 allow_undefined_flag_GCJ=' ${wl}-berok'
16315 # -bexpall does not export symbols beginning with underscore (_)
16316 always_export_symbols_GCJ=yes
16317 # Exported symbols can be pulled into shared objects from archives
16318 whole_archive_flag_spec_GCJ=' '
16319 archive_cmds_need_lc_GCJ=yes
16320 # This is similar to how AIX traditionally builds it's shared libraries.
16321 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'
16322 fi
16323 fi
16324 ;;
16325
16326 amigaos*)
16327 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)'
16328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16329 hardcode_minus_L_GCJ=yes
16330 # see comment about different semantics on the GNU ld section
16331 ld_shlibs_GCJ=no
16332 ;;
16333
16334 bsdi4*)
16335 export_dynamic_flag_spec_GCJ=-rdynamic
16336 ;;
16337
16338 cygwin* | mingw* | pw32*)
16339 # When not using gcc, we currently assume that we are using
16340 # Microsoft Visual C++.
16341 # hardcode_libdir_flag_spec is actually meaningless, as there is
16342 # no search path for DLLs.
16343 hardcode_libdir_flag_spec_GCJ=' '
16344 allow_undefined_flag_GCJ=unsupported
16345 # Tell ltmain to make .lib files, not .a files.
16346 libext=lib
16347 # Tell ltmain to make .dll files, not .so files.
16348 shrext_cmds=".dll"
16349 # FIXME: Setting linknames here is a bad hack.
16350 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16351 # The linker will automatically build a .lib file if we build a DLL.
16352 old_archive_From_new_cmds_GCJ='true'
16353 # FIXME: Should let the user specify the lib program.
16354 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16355 fix_srcfile_path='`cygpath -w "$srcfile"`'
16356 enable_shared_with_static_runtimes_GCJ=yes
16357 ;;
16358
16359 darwin* | rhapsody*)
16360 if test "$GXX" = yes ; then
16361 archive_cmds_need_lc_GCJ=no
16362 case "$host_os" in
16363 rhapsody* | darwin1.[012])
16364 allow_undefined_flag_GCJ='-undefined suppress'
16365 ;;
16366 *) # Darwin 1.3 on
16367 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16368 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16369 else
16370 case ${MACOSX_DEPLOYMENT_TARGET} in
16371 10.[012])
16372 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16373 ;;
16374 10.*)
16375 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16376 ;;
16377 esac
16378 fi
16379 ;;
16380 esac
16381 lt_int_apple_cc_single_mod=no
16382 output_verbose_link_cmd='echo'
16383 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16384 lt_int_apple_cc_single_mod=yes
16385 fi
16386 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16387 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16388 else
16389 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'
16390 fi
16391 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16393 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16394 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}'
16395 else
16396 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}'
16397 fi
16398 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}'
16399 hardcode_direct_GCJ=no
16400 hardcode_automatic_GCJ=yes
16401 hardcode_shlibpath_var_GCJ=unsupported
16402 whole_archive_flag_spec_GCJ='-all_load $convenience'
16403 link_all_deplibs_GCJ=yes
16404 else
16405 ld_shlibs_GCJ=no
16406 fi
16407 ;;
16408
16409 dgux*)
16410 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16411 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16412 hardcode_shlibpath_var_GCJ=no
16413 ;;
16414
16415 freebsd1*)
16416 ld_shlibs_GCJ=no
16417 ;;
16418
16419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16420 # support. Future versions do this automatically, but an explicit c++rt0.o
16421 # does not break anything, and helps significantly (at the cost of a little
16422 # extra space).
16423 freebsd2.2*)
16424 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16425 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16426 hardcode_direct_GCJ=yes
16427 hardcode_shlibpath_var_GCJ=no
16428 ;;
16429
16430 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16431 freebsd2*)
16432 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16433 hardcode_direct_GCJ=yes
16434 hardcode_minus_L_GCJ=yes
16435 hardcode_shlibpath_var_GCJ=no
16436 ;;
16437
16438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16439 freebsd* | kfreebsd*-gnu)
16440 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16441 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16442 hardcode_direct_GCJ=yes
16443 hardcode_shlibpath_var_GCJ=no
16444 ;;
16445
16446 hpux9*)
16447 if test "$GCC" = yes; then
16448 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'
16449 else
16450 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'
16451 fi
16452 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16453 hardcode_libdir_separator_GCJ=:
16454 hardcode_direct_GCJ=yes
16455
16456 # hardcode_minus_L: Not really in the search PATH,
16457 # but as the default location of the library.
16458 hardcode_minus_L_GCJ=yes
16459 export_dynamic_flag_spec_GCJ='${wl}-E'
16460 ;;
16461
16462 hpux10* | hpux11*)
16463 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16464 case "$host_cpu" in
16465 hppa*64*|ia64*)
16466 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16467 ;;
16468 *)
16469 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16470 ;;
16471 esac
16472 else
16473 case "$host_cpu" in
16474 hppa*64*|ia64*)
16475 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 ;;
16477 *)
16478 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16479 ;;
16480 esac
16481 fi
16482 if test "$with_gnu_ld" = no; then
16483 case "$host_cpu" in
16484 hppa*64*)
16485 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16486 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16487 hardcode_libdir_separator_GCJ=:
16488 hardcode_direct_GCJ=no
16489 hardcode_shlibpath_var_GCJ=no
16490 ;;
16491 ia64*)
16492 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16493 hardcode_direct_GCJ=no
16494 hardcode_shlibpath_var_GCJ=no
16495
16496 # hardcode_minus_L: Not really in the search PATH,
16497 # but as the default location of the library.
16498 hardcode_minus_L_GCJ=yes
16499 ;;
16500 *)
16501 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16502 hardcode_libdir_separator_GCJ=:
16503 hardcode_direct_GCJ=yes
16504 export_dynamic_flag_spec_GCJ='${wl}-E'
16505
16506 # hardcode_minus_L: Not really in the search PATH,
16507 # but as the default location of the library.
16508 hardcode_minus_L_GCJ=yes
16509 ;;
16510 esac
16511 fi
16512 ;;
16513
16514 irix5* | irix6* | nonstopux*)
16515 if test "$GCC" = yes; then
16516 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'
16517 else
16518 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'
16519 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16520 fi
16521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16522 hardcode_libdir_separator_GCJ=:
16523 link_all_deplibs_GCJ=yes
16524 ;;
16525
16526 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16527 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16528 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16529 else
16530 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16531 fi
16532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16533 hardcode_direct_GCJ=yes
16534 hardcode_shlibpath_var_GCJ=no
16535 ;;
16536
16537 newsos6)
16538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539 hardcode_direct_GCJ=yes
16540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16541 hardcode_libdir_separator_GCJ=:
16542 hardcode_shlibpath_var_GCJ=no
16543 ;;
16544
16545 openbsd*)
16546 hardcode_direct_GCJ=yes
16547 hardcode_shlibpath_var_GCJ=no
16548 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16549 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16551 export_dynamic_flag_spec_GCJ='${wl}-E'
16552 else
16553 case $host_os in
16554 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16555 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16557 ;;
16558 *)
16559 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16560 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16561 ;;
16562 esac
16563 fi
16564 ;;
16565
16566 os2*)
16567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16568 hardcode_minus_L_GCJ=yes
16569 allow_undefined_flag_GCJ=unsupported
16570 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'
16571 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16572 ;;
16573
16574 osf3*)
16575 if test "$GCC" = yes; then
16576 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16577 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'
16578 else
16579 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16580 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'
16581 fi
16582 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16583 hardcode_libdir_separator_GCJ=:
16584 ;;
16585
16586 osf4* | osf5*) # as osf3* with the addition of -msym flag
16587 if test "$GCC" = yes; then
16588 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16589 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'
16590 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16591 else
16592 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16593 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'
16594 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~
16595 $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'
16596
16597 # Both c and cxx compiler support -rpath directly
16598 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16599 fi
16600 hardcode_libdir_separator_GCJ=:
16601 ;;
16602
16603 sco3.2v5*)
16604 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_shlibpath_var_GCJ=no
16606 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16607 runpath_var=LD_RUN_PATH
16608 hardcode_runpath_var=yes
16609 ;;
16610
16611 solaris*)
16612 no_undefined_flag_GCJ=' -z text'
16613 if test "$GCC" = yes; then
16614 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16615 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16616 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16617 else
16618 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16619 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16620 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16621 fi
16622 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16623 hardcode_shlibpath_var_GCJ=no
16624 case $host_os in
16625 solaris2.[0-5] | solaris2.[0-5].*) ;;
16626 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16627 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16628 esac
16629 link_all_deplibs_GCJ=yes
16630 ;;
16631
16632 sunos4*)
16633 if test "x$host_vendor" = xsequent; then
16634 # Use $CC to link under sequent, because it throws in some extra .o
16635 # files that make .init and .fini sections work.
16636 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16637 else
16638 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16639 fi
16640 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16641 hardcode_direct_GCJ=yes
16642 hardcode_minus_L_GCJ=yes
16643 hardcode_shlibpath_var_GCJ=no
16644 ;;
16645
16646 sysv4)
16647 case $host_vendor in
16648 sni)
16649 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16650 hardcode_direct_GCJ=yes # is this really true???
16651 ;;
16652 siemens)
16653 ## LD is ld it makes a PLAMLIB
16654 ## CC just makes a GrossModule.
16655 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16656 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16657 hardcode_direct_GCJ=no
16658 ;;
16659 motorola)
16660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16661 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16662 ;;
16663 esac
16664 runpath_var='LD_RUN_PATH'
16665 hardcode_shlibpath_var_GCJ=no
16666 ;;
16667
16668 sysv4.3*)
16669 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_shlibpath_var_GCJ=no
16671 export_dynamic_flag_spec_GCJ='-Bexport'
16672 ;;
16673
16674 sysv4*MP*)
16675 if test -d /usr/nec; then
16676 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16677 hardcode_shlibpath_var_GCJ=no
16678 runpath_var=LD_RUN_PATH
16679 hardcode_runpath_var=yes
16680 ld_shlibs_GCJ=yes
16681 fi
16682 ;;
16683
16684 sysv4.2uw2*)
16685 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16686 hardcode_direct_GCJ=yes
16687 hardcode_minus_L_GCJ=no
16688 hardcode_shlibpath_var_GCJ=no
16689 hardcode_runpath_var=yes
16690 runpath_var=LD_RUN_PATH
16691 ;;
16692
16693 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16694 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16695 if test "$GCC" = yes; then
16696 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16697 else
16698 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16699 fi
16700 runpath_var='LD_RUN_PATH'
16701 hardcode_shlibpath_var_GCJ=no
16702 ;;
16703
16704 sysv5*)
16705 no_undefined_flag_GCJ=' -z text'
16706 # $CC -shared without GNU ld will not create a library from C++
16707 # object files and a static libstdc++, better avoid it by now
16708 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16709 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16710 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16711 hardcode_libdir_flag_spec_GCJ=
16712 hardcode_shlibpath_var_GCJ=no
16713 runpath_var='LD_RUN_PATH'
16714 ;;
16715
16716 uts4*)
16717 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16718 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16719 hardcode_shlibpath_var_GCJ=no
16720 ;;
16721
16722 *)
16723 ld_shlibs_GCJ=no
16724 ;;
16725 esac
16726 fi
16727
16728echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16729echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16730test "$ld_shlibs_GCJ" = no && can_build_shared=no
16731
16732variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16733if test "$GCC" = yes; then
16734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16735fi
16736
16737#
16738# Do we need to explicitly link libc?
16739#
16740case "x$archive_cmds_need_lc_GCJ" in
16741x|xyes)
16742 # Assume -lc should be added
16743 archive_cmds_need_lc_GCJ=yes
16744
16745 if test "$enable_shared" = yes && test "$GCC" = yes; then
16746 case $archive_cmds_GCJ in
16747 *'~'*)
16748 # FIXME: we may have to deal with multi-command sequences.
16749 ;;
16750 '$CC '*)
16751 # Test whether the compiler implicitly links with -lc since on some
16752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16753 # to ld, don't add -lc before -lgcc.
16754 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16755echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16756 $rm conftest*
16757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16758
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } 2>conftest.err; then
16764 soname=conftest
16765 lib=conftest
16766 libobjs=conftest.$ac_objext
16767 deplibs=
16768 wl=$lt_prog_compiler_wl_GCJ
16769 compiler_flags=-v
16770 linker_flags=-v
16771 verstring=
16772 output_objdir=.
16773 libname=conftest
16774 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16775 allow_undefined_flag_GCJ=
16776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16777 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }
16781 then
16782 archive_cmds_need_lc_GCJ=no
16783 else
16784 archive_cmds_need_lc_GCJ=yes
16785 fi
16786 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16787 else
16788 cat conftest.err 1>&5
16789 fi
16790 $rm conftest*
16791 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16792echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16793 ;;
16794 esac
16795 fi
16796 ;;
16797esac
16798
16799echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16800echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16801library_names_spec=
16802libname_spec='lib$name'
16803soname_spec=
16804shrext_cmds=".so"
16805postinstall_cmds=
16806postuninstall_cmds=
16807finish_cmds=
16808finish_eval=
16809shlibpath_var=
16810shlibpath_overrides_runpath=unknown
16811version_type=none
16812dynamic_linker="$host_os ld.so"
16813sys_lib_dlsearch_path_spec="/lib /usr/lib"
16814if test "$GCC" = yes; then
16815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16816 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16817 # if the path contains ";" then we assume it to be the separator
16818 # otherwise default to the standard path separator (i.e. ":") - it is
16819 # assumed that no part of a normal pathname contains ";" but that should
16820 # okay in the real world where ";" in dirpaths is itself problematic.
16821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16822 else
16823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16824 fi
16825else
16826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16827fi
16828need_lib_prefix=unknown
16829hardcode_into_libs=no
16830
16831# when you set need_version to no, make sure it does not cause -set_version
16832# flags to be left without arguments
16833need_version=unknown
16834
16835case $host_os in
16836aix3*)
16837 version_type=linux
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16839 shlibpath_var=LIBPATH
16840
16841 # AIX 3 has no versioning support, so we append a major version to the name.
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 ;;
16844
16845aix4* | aix5*)
16846 version_type=linux
16847 need_lib_prefix=no
16848 need_version=no
16849 hardcode_into_libs=yes
16850 if test "$host_cpu" = ia64; then
16851 # AIX 5 supports IA64
16852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16853 shlibpath_var=LD_LIBRARY_PATH
16854 else
16855 # With GCC up to 2.95.x, collect2 would create an import file
16856 # for dependence libraries. The import file would start with
16857 # the line `#! .'. This would cause the generated library to
16858 # depend on `.', always an invalid library. This was fixed in
16859 # development snapshots of GCC prior to 3.0.
16860 case $host_os in
16861 aix4 | aix4.[01] | aix4.[01].*)
16862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16863 echo ' yes '
16864 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16865 :
16866 else
16867 can_build_shared=no
16868 fi
16869 ;;
16870 esac
16871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16872 # soname into executable. Probably we can add versioning support to
16873 # collect2, so additional links can be useful in future.
16874 if test "$aix_use_runtimelinking" = yes; then
16875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16876 # instead of lib<name>.a to let people know that these are not
16877 # typical AIX shared libraries.
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879 else
16880 # We preserve .a as extension for shared libraries through AIX4.2
16881 # and later when we are not doing run time linking.
16882 library_names_spec='${libname}${release}.a $libname.a'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 fi
16885 shlibpath_var=LIBPATH
16886 fi
16887 ;;
16888
16889amigaos*)
16890 library_names_spec='$libname.ixlibrary $libname.a'
16891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16892 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'
16893 ;;
16894
16895beos*)
16896 library_names_spec='${libname}${shared_ext}'
16897 dynamic_linker="$host_os ld.so"
16898 shlibpath_var=LIBRARY_PATH
16899 ;;
16900
16901bsdi4*)
16902 version_type=linux
16903 need_version=no
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16910 # the default ld.so.conf also contains /usr/contrib/lib and
16911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16912 # libtool to hard-code these into programs
16913 ;;
16914
16915cygwin* | mingw* | pw32*)
16916 version_type=windows
16917 shrext_cmds=".dll"
16918 need_version=no
16919 need_lib_prefix=no
16920
16921 case $GCC,$host_os in
16922 yes,cygwin* | yes,mingw* | yes,pw32*)
16923 library_names_spec='$libname.dll.a'
16924 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16925 postinstall_cmds='base_file=`basename \${file}`~
16926 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16927 dldir=$destdir/`dirname \$dlpath`~
16928 test -d \$dldir || mkdir -p \$dldir~
16929 $install_prog $dir/$dlname \$dldir/$dlname'
16930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16931 dlpath=$dir/\$dldll~
16932 $rm \$dlpath'
16933 shlibpath_overrides_runpath=yes
16934
16935 case $host_os in
16936 cygwin*)
16937 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16938 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16939 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16940 ;;
16941 mingw*)
16942 # MinGW DLLs use traditional 'lib' prefix
16943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16945 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16946 # It is most probably a Windows format PATH printed by
16947 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16948 # path with ; separators, and with drive letters. We can handle the
16949 # drive letters (cygwin fileutils understands them), so leave them,
16950 # especially as we might pass files found there to a mingw objdump,
16951 # which wouldn't understand a cygwinified path. Ahh.
16952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16953 else
16954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16955 fi
16956 ;;
16957 pw32*)
16958 # pw32 DLLs use 'pw' prefix rather than 'lib'
16959 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16960 ;;
16961 esac
16962 ;;
16963
16964 *)
16965 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16966 ;;
16967 esac
16968 dynamic_linker='Win32 ld.exe'
16969 # FIXME: first we should search . and the directory the executable is in
16970 shlibpath_var=PATH
16971 ;;
16972
16973darwin* | rhapsody*)
16974 dynamic_linker="$host_os dyld"
16975 version_type=darwin
16976 need_lib_prefix=no
16977 need_version=no
16978 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16979 soname_spec='${libname}${release}${major}$shared_ext'
16980 shlibpath_overrides_runpath=yes
16981 shlibpath_var=DYLD_LIBRARY_PATH
16982 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16983 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16984 if test "$GCC" = yes; then
16985 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"`
16986 else
16987 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16988 fi
16989 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16990 ;;
16991
16992dgux*)
16993 version_type=linux
16994 need_lib_prefix=no
16995 need_version=no
16996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16997 soname_spec='${libname}${release}${shared_ext}$major'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 ;;
17000
17001freebsd1*)
17002 dynamic_linker=no
17003 ;;
17004
17005kfreebsd*-gnu)
17006 version_type=linux
17007 need_lib_prefix=no
17008 need_version=no
17009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17010 soname_spec='${libname}${release}${shared_ext}$major'
17011 shlibpath_var=LD_LIBRARY_PATH
17012 shlibpath_overrides_runpath=no
17013 hardcode_into_libs=yes
17014 dynamic_linker='GNU ld.so'
17015 ;;
17016
17017freebsd*)
17018 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17019 version_type=freebsd-$objformat
17020 case $version_type in
17021 freebsd-elf*)
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17023 need_version=no
17024 need_lib_prefix=no
17025 ;;
17026 freebsd-*)
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17028 need_version=yes
17029 ;;
17030 esac
17031 shlibpath_var=LD_LIBRARY_PATH
17032 case $host_os in
17033 freebsd2*)
17034 shlibpath_overrides_runpath=yes
17035 ;;
17036 freebsd3.01* | freebsdelf3.01*)
17037 shlibpath_overrides_runpath=yes
17038 hardcode_into_libs=yes
17039 ;;
17040 *) # from 3.2 on
17041 shlibpath_overrides_runpath=no
17042 hardcode_into_libs=yes
17043 ;;
17044 esac
17045 ;;
17046
17047gnu*)
17048 version_type=linux
17049 need_lib_prefix=no
17050 need_version=no
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 hardcode_into_libs=yes
17055 ;;
17056
17057hpux9* | hpux10* | hpux11*)
17058 # Give a soname corresponding to the major version so that dld.sl refuses to
17059 # link against other versions.
17060 version_type=sunos
17061 need_lib_prefix=no
17062 need_version=no
17063 case "$host_cpu" in
17064 ia64*)
17065 shrext_cmds='.so'
17066 hardcode_into_libs=yes
17067 dynamic_linker="$host_os dld.so"
17068 shlibpath_var=LD_LIBRARY_PATH
17069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 if test "X$HPUX_IA64_MODE" = X32; then
17073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17074 else
17075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17076 fi
17077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17078 ;;
17079 hppa*64*)
17080 shrext_cmds='.sl'
17081 hardcode_into_libs=yes
17082 dynamic_linker="$host_os dld.sl"
17083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17089 ;;
17090 *)
17091 shrext_cmds='.sl'
17092 dynamic_linker="$host_os dld.sl"
17093 shlibpath_var=SHLIB_PATH
17094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 ;;
17098 esac
17099 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17100 postinstall_cmds='chmod 555 $lib'
17101 ;;
17102
17103irix5* | irix6* | nonstopux*)
17104 case $host_os in
17105 nonstopux*) version_type=nonstopux ;;
17106 *)
17107 if test "$lt_cv_prog_gnu_ld" = yes; then
17108 version_type=linux
17109 else
17110 version_type=irix
17111 fi ;;
17112 esac
17113 need_lib_prefix=no
17114 need_version=no
17115 soname_spec='${libname}${release}${shared_ext}$major'
17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17117 case $host_os in
17118 irix5* | nonstopux*)
17119 libsuff= shlibsuff=
17120 ;;
17121 *)
17122 case $LD in # libtool.m4 will add one of these switches to LD
17123 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17124 libsuff= shlibsuff= libmagic=32-bit;;
17125 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17126 libsuff=32 shlibsuff=N32 libmagic=N32;;
17127 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17128 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17129 *) libsuff= shlibsuff= libmagic=never-match;;
17130 esac
17131 ;;
17132 esac
17133 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17134 shlibpath_overrides_runpath=no
17135 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17136 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17137 hardcode_into_libs=yes
17138 ;;
17139
17140# No shared lib support for Linux oldld, aout, or coff.
17141linux*oldld* | linux*aout* | linux*coff*)
17142 dynamic_linker=no
17143 ;;
17144
17145# This must be Linux ELF.
17146linux*)
17147 version_type=linux
17148 need_lib_prefix=no
17149 need_version=no
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151 soname_spec='${libname}${release}${shared_ext}$major'
17152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17153 shlibpath_var=LD_LIBRARY_PATH
17154 shlibpath_overrides_runpath=no
17155 # This implies no fast_install, which is unacceptable.
17156 # Some rework will be needed to allow for fast_install
17157 # before this can be enabled.
17158 hardcode_into_libs=yes
17159
17160 # Append ld.so.conf contents to the search path
17161 if test -f /etc/ld.so.conf; then
17162 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17164 fi
17165
17166 # We used to test for /lib/ld.so.1 and disable shared libraries on
17167 # powerpc, because MkLinux only supported shared libraries with the
17168 # GNU dynamic linker. Since this was broken with cross compilers,
17169 # most powerpc-linux boxes support dynamic linking these days and
17170 # people can always --disable-shared, the test was removed, and we
17171 # assume the GNU/Linux dynamic linker is in use.
17172 dynamic_linker='GNU/Linux ld.so'
17173 ;;
17174
17175netbsdelf*-gnu)
17176 version_type=linux
17177 need_lib_prefix=no
17178 need_version=no
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17180 soname_spec='${libname}${release}${shared_ext}$major'
17181 shlibpath_var=LD_LIBRARY_PATH
17182 shlibpath_overrides_runpath=no
17183 hardcode_into_libs=yes
17184 dynamic_linker='NetBSD ld.elf_so'
17185 ;;
17186
17187knetbsd*-gnu)
17188 version_type=linux
17189 need_lib_prefix=no
17190 need_version=no
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 shlibpath_var=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath=no
17195 hardcode_into_libs=yes
17196 dynamic_linker='GNU ld.so'
17197 ;;
17198
17199netbsd*)
17200 version_type=sunos
17201 need_lib_prefix=no
17202 need_version=no
17203 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17206 dynamic_linker='NetBSD (a.out) ld.so'
17207 else
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 dynamic_linker='NetBSD ld.elf_so'
17211 fi
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=yes
17214 hardcode_into_libs=yes
17215 ;;
17216
17217newsos6)
17218 version_type=linux
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 shlibpath_var=LD_LIBRARY_PATH
17221 shlibpath_overrides_runpath=yes
17222 ;;
17223
17224nto-qnx*)
17225 version_type=linux
17226 need_lib_prefix=no
17227 need_version=no
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 soname_spec='${libname}${release}${shared_ext}$major'
17230 shlibpath_var=LD_LIBRARY_PATH
17231 shlibpath_overrides_runpath=yes
17232 ;;
17233
17234openbsd*)
17235 version_type=sunos
17236 need_lib_prefix=no
17237 need_version=yes
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17242 case $host_os in
17243 openbsd2.[89] | openbsd2.[89].*)
17244 shlibpath_overrides_runpath=no
17245 ;;
17246 *)
17247 shlibpath_overrides_runpath=yes
17248 ;;
17249 esac
17250 else
17251 shlibpath_overrides_runpath=yes
17252 fi
17253 ;;
17254
17255os2*)
17256 libname_spec='$name'
17257 shrext_cmds=".dll"
17258 need_lib_prefix=no
17259 library_names_spec='$libname${shared_ext} $libname.a'
17260 dynamic_linker='OS/2 ld.exe'
17261 shlibpath_var=LIBPATH
17262 ;;
17263
17264osf3* | osf4* | osf5*)
17265 version_type=osf
17266 need_lib_prefix=no
17267 need_version=no
17268 soname_spec='${libname}${release}${shared_ext}$major'
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17273 ;;
17274
17275sco3.2v5*)
17276 version_type=osf
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 ;;
17281
17282solaris*)
17283 version_type=linux
17284 need_lib_prefix=no
17285 need_version=no
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 shlibpath_overrides_runpath=yes
17290 hardcode_into_libs=yes
17291 # ldd complains unless libraries are executable
17292 postinstall_cmds='chmod +x $lib'
17293 ;;
17294
17295sunos4*)
17296 version_type=sunos
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=yes
17301 if test "$with_gnu_ld" = yes; then
17302 need_lib_prefix=no
17303 fi
17304 need_version=yes
17305 ;;
17306
17307sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17308 version_type=linux
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17310 soname_spec='${libname}${release}${shared_ext}$major'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 case $host_vendor in
17313 sni)
17314 shlibpath_overrides_runpath=no
17315 need_lib_prefix=no
17316 export_dynamic_flag_spec='${wl}-Blargedynsym'
17317 runpath_var=LD_RUN_PATH
17318 ;;
17319 siemens)
17320 need_lib_prefix=no
17321 ;;
17322 motorola)
17323 need_lib_prefix=no
17324 need_version=no
17325 shlibpath_overrides_runpath=no
17326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17327 ;;
17328 esac
17329 ;;
17330
17331sysv4*MP*)
17332 if test -d /usr/nec ;then
17333 version_type=linux
17334 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17335 soname_spec='$libname${shared_ext}.$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 fi
17338 ;;
17339
17340uts4*)
17341 version_type=linux
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 soname_spec='${libname}${release}${shared_ext}$major'
17344 shlibpath_var=LD_LIBRARY_PATH
17345 ;;
17346
17347*)
17348 dynamic_linker=no
17349 ;;
17350esac
17351echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17352echo "${ECHO_T}$dynamic_linker" >&6
17353test "$dynamic_linker" = no && can_build_shared=no
17354
17355echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17356echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17357hardcode_action_GCJ=
17358if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17359 test -n "$runpath_var GCJ" || \
17360 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17361
17362 # We can hardcode non-existant directories.
17363 if test "$hardcode_direct_GCJ" != no &&
17364 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17365 # have to relink, otherwise we might link with an installed library
17366 # when we should be linking with a yet-to-be-installed one
17367 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17368 test "$hardcode_minus_L_GCJ" != no; then
17369 # Linking always hardcodes the temporary library directory.
17370 hardcode_action_GCJ=relink
17371 else
17372 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17373 hardcode_action_GCJ=immediate
17374 fi
17375else
17376 # We cannot hardcode anything, or else we can only hardcode existing
17377 # directories.
17378 hardcode_action_GCJ=unsupported
17379fi
17380echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17381echo "${ECHO_T}$hardcode_action_GCJ" >&6
17382
17383if test "$hardcode_action_GCJ" = relink; then
17384 # Fast installation is not supported
17385 enable_fast_install=no
17386elif test "$shlibpath_overrides_runpath" = yes ||
17387 test "$enable_shared" = no; then
17388 # Fast installation is not necessary
17389 enable_fast_install=needless
17390fi
17391
17392striplib=
17393old_striplib=
17394echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17395echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17396if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17397 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17398 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17399 echo "$as_me:$LINENO: result: yes" >&5
17400echo "${ECHO_T}yes" >&6
17401else
17402# FIXME - insert some real tests, host_os isn't really good enough
17403 case $host_os in
17404 darwin*)
17405 if test -n "$STRIP" ; then
17406 striplib="$STRIP -x"
17407 echo "$as_me:$LINENO: result: yes" >&5
17408echo "${ECHO_T}yes" >&6
17409 else
17410 echo "$as_me:$LINENO: result: no" >&5
17411echo "${ECHO_T}no" >&6
17412fi
17413 ;;
17414 *)
17415 echo "$as_me:$LINENO: result: no" >&5
17416echo "${ECHO_T}no" >&6
17417 ;;
17418 esac
17419fi
17420
17421if test "x$enable_dlopen" != xyes; then
17422 enable_dlopen=unknown
17423 enable_dlopen_self=unknown
17424 enable_dlopen_self_static=unknown
17425else
17426 lt_cv_dlopen=no
17427 lt_cv_dlopen_libs=
17428
17429 case $host_os in
17430 beos*)
17431 lt_cv_dlopen="load_add_on"
17432 lt_cv_dlopen_libs=
17433 lt_cv_dlopen_self=yes
17434 ;;
17435
17436 mingw* | pw32*)
17437 lt_cv_dlopen="LoadLibrary"
17438 lt_cv_dlopen_libs=
17439 ;;
17440
17441 cygwin*)
17442 lt_cv_dlopen="dlopen"
17443 lt_cv_dlopen_libs=
17444 ;;
17445
17446 darwin*)
17447 # if libdl is installed we need to link against it
17448 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17449echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17450if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17451 echo $ECHO_N "(cached) $ECHO_C" >&6
17452else
17453 ac_check_lib_save_LIBS=$LIBS
17454LIBS="-ldl $LIBS"
17455cat >conftest.$ac_ext <<_ACEOF
17456/* confdefs.h. */
17457_ACEOF
17458cat confdefs.h >>conftest.$ac_ext
17459cat >>conftest.$ac_ext <<_ACEOF
17460/* end confdefs.h. */
17461
17462/* Override any gcc2 internal prototype to avoid an error. */
17463#ifdef __cplusplus
17464extern "C"
17465#endif
17466/* We use char because int might match the return type of a gcc2
17467 builtin and then its argument prototype would still apply. */
17468char dlopen ();
17469int
17470main ()
17471{
17472dlopen ();
17473 ;
17474 return 0;
17475}
17476_ACEOF
17477rm -f conftest.$ac_objext conftest$ac_exeext
17478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17479 (eval $ac_link) 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag"
17487 || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest$ac_exeext'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_cv_lib_dl_dlopen=yes
17500else
17501 echo "$as_me: failed program was:" >&5
17502sed 's/^/| /' conftest.$ac_ext >&5
17503
17504ac_cv_lib_dl_dlopen=no
17505fi
17506rm -f conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17508LIBS=$ac_check_lib_save_LIBS
17509fi
17510echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17511echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17512if test $ac_cv_lib_dl_dlopen = yes; then
17513 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17514else
17515
17516 lt_cv_dlopen="dyld"
17517 lt_cv_dlopen_libs=
17518 lt_cv_dlopen_self=yes
17519
17520fi
17521
17522 ;;
17523
17524 *)
17525 echo "$as_me:$LINENO: checking for shl_load" >&5
17526echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17527if test "${ac_cv_func_shl_load+set}" = set; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529else
17530 cat >conftest.$ac_ext <<_ACEOF
17531/* confdefs.h. */
17532_ACEOF
17533cat confdefs.h >>conftest.$ac_ext
17534cat >>conftest.$ac_ext <<_ACEOF
17535/* end confdefs.h. */
17536/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17538#define shl_load innocuous_shl_load
17539
17540/* System header to define __stub macros and hopefully few prototypes,
17541 which can conflict with char shl_load (); below.
17542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17543 <limits.h> exists even on freestanding compilers. */
17544
17545#ifdef __STDC__
17546# include <limits.h>
17547#else
17548# include <assert.h>
17549#endif
17550
17551#undef shl_load
17552
17553/* Override any gcc2 internal prototype to avoid an error. */
17554#ifdef __cplusplus
17555extern "C"
17556{
17557#endif
17558/* We use char because int might match the return type of a gcc2
17559 builtin and then its argument prototype would still apply. */
17560char shl_load ();
17561/* The GNU C library defines this for functions which it implements
17562 to always fail with ENOSYS. Some functions are actually named
17563 something starting with __ and the normal name is an alias. */
17564#if defined (__stub_shl_load) || defined (__stub___shl_load)
17565choke me
17566#else
17567char (*f) () = shl_load;
17568#endif
17569#ifdef __cplusplus
17570}
17571#endif
17572
17573int
17574main ()
17575{
17576return f != shl_load;
17577 ;
17578 return 0;
17579}
17580_ACEOF
17581rm -f conftest.$ac_objext conftest$ac_exeext
17582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17583 (eval $ac_link) 2>conftest.er1
17584 ac_status=$?
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
17590 { ac_try='test -z "$ac_c_werror_flag"
17591 || test ! -s conftest.err'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; } &&
17597 { ac_try='test -s conftest$ac_exeext'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 ac_cv_func_shl_load=yes
17604else
17605 echo "$as_me: failed program was:" >&5
17606sed 's/^/| /' conftest.$ac_ext >&5
17607
17608ac_cv_func_shl_load=no
17609fi
17610rm -f conftest.err conftest.$ac_objext \
17611 conftest$ac_exeext conftest.$ac_ext
17612fi
17613echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17614echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17615if test $ac_cv_func_shl_load = yes; then
17616 lt_cv_dlopen="shl_load"
17617else
17618 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17619echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17620if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17622else
17623 ac_check_lib_save_LIBS=$LIBS
17624LIBS="-ldld $LIBS"
17625cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631
17632/* Override any gcc2 internal prototype to avoid an error. */
17633#ifdef __cplusplus
17634extern "C"
17635#endif
17636/* We use char because int might match the return type of a gcc2
17637 builtin and then its argument prototype would still apply. */
17638char shl_load ();
17639int
17640main ()
17641{
17642shl_load ();
17643 ;
17644 return 0;
17645}
17646_ACEOF
17647rm -f conftest.$ac_objext conftest$ac_exeext
17648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17649 (eval $ac_link) 2>conftest.er1
17650 ac_status=$?
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest$ac_exeext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_cv_lib_dld_shl_load=yes
17670else
17671 echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674ac_cv_lib_dld_shl_load=no
17675fi
17676rm -f conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17678LIBS=$ac_check_lib_save_LIBS
17679fi
17680echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17681echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17682if test $ac_cv_lib_dld_shl_load = yes; then
17683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17684else
17685 echo "$as_me:$LINENO: checking for dlopen" >&5
17686echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17687if test "${ac_cv_func_dlopen+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17689else
17690 cat >conftest.$ac_ext <<_ACEOF
17691/* confdefs.h. */
17692_ACEOF
17693cat confdefs.h >>conftest.$ac_ext
17694cat >>conftest.$ac_ext <<_ACEOF
17695/* end confdefs.h. */
17696/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17698#define dlopen innocuous_dlopen
17699
17700/* System header to define __stub macros and hopefully few prototypes,
17701 which can conflict with char dlopen (); below.
17702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17703 <limits.h> exists even on freestanding compilers. */
17704
17705#ifdef __STDC__
17706# include <limits.h>
17707#else
17708# include <assert.h>
17709#endif
17710
17711#undef dlopen
17712
17713/* Override any gcc2 internal prototype to avoid an error. */
17714#ifdef __cplusplus
17715extern "C"
17716{
17717#endif
17718/* We use char because int might match the return type of a gcc2
17719 builtin and then its argument prototype would still apply. */
17720char dlopen ();
17721/* The GNU C library defines this for functions which it implements
17722 to always fail with ENOSYS. Some functions are actually named
17723 something starting with __ and the normal name is an alias. */
17724#if defined (__stub_dlopen) || defined (__stub___dlopen)
17725choke me
17726#else
17727char (*f) () = dlopen;
17728#endif
17729#ifdef __cplusplus
17730}
17731#endif
17732
17733int
17734main ()
17735{
17736return f != dlopen;
17737 ;
17738 return 0;
17739}
17740_ACEOF
17741rm -f conftest.$ac_objext conftest$ac_exeext
17742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743 (eval $ac_link) 2>conftest.er1
17744 ac_status=$?
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -z "$ac_c_werror_flag"
17751 || test ! -s conftest.err'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest$ac_exeext'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_cv_func_dlopen=yes
17764else
17765 echo "$as_me: failed program was:" >&5
17766sed 's/^/| /' conftest.$ac_ext >&5
17767
17768ac_cv_func_dlopen=no
17769fi
17770rm -f conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17772fi
17773echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17774echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17775if test $ac_cv_func_dlopen = yes; then
17776 lt_cv_dlopen="dlopen"
17777else
17778 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17779echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17780if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782else
17783 ac_check_lib_save_LIBS=$LIBS
17784LIBS="-ldl $LIBS"
17785cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791
17792/* Override any gcc2 internal prototype to avoid an error. */
17793#ifdef __cplusplus
17794extern "C"
17795#endif
17796/* We use char because int might match the return type of a gcc2
17797 builtin and then its argument prototype would still apply. */
17798char dlopen ();
17799int
17800main ()
17801{
17802dlopen ();
17803 ;
17804 return 0;
17805}
17806_ACEOF
17807rm -f conftest.$ac_objext conftest$ac_exeext
17808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17809 (eval $ac_link) 2>conftest.er1
17810 ac_status=$?
17811 grep -v '^ *+' conftest.er1 >conftest.err
17812 rm -f conftest.er1
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -z "$ac_c_werror_flag"
17817 || test ! -s conftest.err'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } &&
17823 { ac_try='test -s conftest$ac_exeext'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; }; then
17829 ac_cv_lib_dl_dlopen=yes
17830else
17831 echo "$as_me: failed program was:" >&5
17832sed 's/^/| /' conftest.$ac_ext >&5
17833
17834ac_cv_lib_dl_dlopen=no
17835fi
17836rm -f conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838LIBS=$ac_check_lib_save_LIBS
17839fi
17840echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17841echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17842if test $ac_cv_lib_dl_dlopen = yes; then
17843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17844else
17845 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17846echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17847if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849else
17850 ac_check_lib_save_LIBS=$LIBS
17851LIBS="-lsvld $LIBS"
17852cat >conftest.$ac_ext <<_ACEOF
17853/* confdefs.h. */
17854_ACEOF
17855cat confdefs.h >>conftest.$ac_ext
17856cat >>conftest.$ac_ext <<_ACEOF
17857/* end confdefs.h. */
17858
17859/* Override any gcc2 internal prototype to avoid an error. */
17860#ifdef __cplusplus
17861extern "C"
17862#endif
17863/* We use char because int might match the return type of a gcc2
17864 builtin and then its argument prototype would still apply. */
17865char dlopen ();
17866int
17867main ()
17868{
17869dlopen ();
17870 ;
17871 return 0;
17872}
17873_ACEOF
17874rm -f conftest.$ac_objext conftest$ac_exeext
17875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17876 (eval $ac_link) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest$ac_exeext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_lib_svld_dlopen=yes
17897else
17898 echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901ac_cv_lib_svld_dlopen=no
17902fi
17903rm -f conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905LIBS=$ac_check_lib_save_LIBS
17906fi
17907echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17908echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17909if test $ac_cv_lib_svld_dlopen = yes; then
17910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17911else
17912 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17913echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17914if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916else
17917 ac_check_lib_save_LIBS=$LIBS
17918LIBS="-ldld $LIBS"
17919cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925
17926/* Override any gcc2 internal prototype to avoid an error. */
17927#ifdef __cplusplus
17928extern "C"
17929#endif
17930/* We use char because int might match the return type of a gcc2
17931 builtin and then its argument prototype would still apply. */
17932char dld_link ();
17933int
17934main ()
17935{
17936dld_link ();
17937 ;
17938 return 0;
17939}
17940_ACEOF
17941rm -f conftest.$ac_objext conftest$ac_exeext
17942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest$ac_exeext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_lib_dld_dld_link=yes
17964else
17965 echo "$as_me: failed program was:" >&5
17966sed 's/^/| /' conftest.$ac_ext >&5
17967
17968ac_cv_lib_dld_dld_link=no
17969fi
17970rm -f conftest.err conftest.$ac_objext \
17971 conftest$ac_exeext conftest.$ac_ext
17972LIBS=$ac_check_lib_save_LIBS
17973fi
17974echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17975echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17976if test $ac_cv_lib_dld_dld_link = yes; then
17977 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17978fi
17979
17980
17981fi
17982
17983
17984fi
17985
17986
17987fi
17988
17989
17990fi
17991
17992
17993fi
17994
17995 ;;
17996 esac
17997
17998 if test "x$lt_cv_dlopen" != xno; then
17999 enable_dlopen=yes
18000 else
18001 enable_dlopen=no
18002 fi
18003
18004 case $lt_cv_dlopen in
18005 dlopen)
18006 save_CPPFLAGS="$CPPFLAGS"
18007 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18008
18009 save_LDFLAGS="$LDFLAGS"
18010 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18011
18012 save_LIBS="$LIBS"
18013 LIBS="$lt_cv_dlopen_libs $LIBS"
18014
18015 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18016echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18017if test "${lt_cv_dlopen_self+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18019else
18020 if test "$cross_compiling" = yes; then :
18021 lt_cv_dlopen_self=cross
18022else
18023 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18024 lt_status=$lt_dlunknown
18025 cat > conftest.$ac_ext <<EOF
18026#line 18026 "configure"
18027#include "confdefs.h"
18028
18029#if HAVE_DLFCN_H
18030#include <dlfcn.h>
18031#endif
18032
18033#include <stdio.h>
18034
18035#ifdef RTLD_GLOBAL
18036# define LT_DLGLOBAL RTLD_GLOBAL
18037#else
18038# ifdef DL_GLOBAL
18039# define LT_DLGLOBAL DL_GLOBAL
18040# else
18041# define LT_DLGLOBAL 0
18042# endif
18043#endif
18044
18045/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18046 find out it does not work in some platform. */
18047#ifndef LT_DLLAZY_OR_NOW
18048# ifdef RTLD_LAZY
18049# define LT_DLLAZY_OR_NOW RTLD_LAZY
18050# else
18051# ifdef DL_LAZY
18052# define LT_DLLAZY_OR_NOW DL_LAZY
18053# else
18054# ifdef RTLD_NOW
18055# define LT_DLLAZY_OR_NOW RTLD_NOW
18056# else
18057# ifdef DL_NOW
18058# define LT_DLLAZY_OR_NOW DL_NOW
18059# else
18060# define LT_DLLAZY_OR_NOW 0
18061# endif
18062# endif
18063# endif
18064# endif
18065#endif
18066
18067#ifdef __cplusplus
18068extern "C" void exit (int);
18069#endif
18070
18071void fnord() { int i=42;}
18072int main ()
18073{
18074 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18075 int status = $lt_dlunknown;
18076
18077 if (self)
18078 {
18079 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18080 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18081 /* dlclose (self); */
18082 }
18083
18084 exit (status);
18085}
18086EOF
18087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18088 (eval $ac_link) 2>&5
18089 ac_status=$?
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18092 (./conftest; exit; ) 2>/dev/null
18093 lt_status=$?
18094 case x$lt_status in
18095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18097 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18098 esac
18099 else :
18100 # compilation failed
18101 lt_cv_dlopen_self=no
18102 fi
18103fi
18104rm -fr conftest*
18105
18106
18107fi
18108echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18109echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18110
18111 if test "x$lt_cv_dlopen_self" = xyes; then
18112 LDFLAGS="$LDFLAGS $link_static_flag"
18113 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18114echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18115if test "${lt_cv_dlopen_self_static+set}" = set; then
18116 echo $ECHO_N "(cached) $ECHO_C" >&6
18117else
18118 if test "$cross_compiling" = yes; then :
18119 lt_cv_dlopen_self_static=cross
18120else
18121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18122 lt_status=$lt_dlunknown
18123 cat > conftest.$ac_ext <<EOF
18124#line 18124 "configure"
18125#include "confdefs.h"
18126
18127#if HAVE_DLFCN_H
18128#include <dlfcn.h>
18129#endif
18130
18131#include <stdio.h>
18132
18133#ifdef RTLD_GLOBAL
18134# define LT_DLGLOBAL RTLD_GLOBAL
18135#else
18136# ifdef DL_GLOBAL
18137# define LT_DLGLOBAL DL_GLOBAL
18138# else
18139# define LT_DLGLOBAL 0
18140# endif
18141#endif
18142
18143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18144 find out it does not work in some platform. */
18145#ifndef LT_DLLAZY_OR_NOW
18146# ifdef RTLD_LAZY
18147# define LT_DLLAZY_OR_NOW RTLD_LAZY
18148# else
18149# ifdef DL_LAZY
18150# define LT_DLLAZY_OR_NOW DL_LAZY
18151# else
18152# ifdef RTLD_NOW
18153# define LT_DLLAZY_OR_NOW RTLD_NOW
18154# else
18155# ifdef DL_NOW
18156# define LT_DLLAZY_OR_NOW DL_NOW
18157# else
18158# define LT_DLLAZY_OR_NOW 0
18159# endif
18160# endif
18161# endif
18162# endif
18163#endif
18164
18165#ifdef __cplusplus
18166extern "C" void exit (int);
18167#endif
18168
18169void fnord() { int i=42;}
18170int main ()
18171{
18172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18173 int status = $lt_dlunknown;
18174
18175 if (self)
18176 {
18177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18178 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18179 /* dlclose (self); */
18180 }
18181
18182 exit (status);
18183}
18184EOF
18185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18186 (eval $ac_link) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18190 (./conftest; exit; ) 2>/dev/null
18191 lt_status=$?
18192 case x$lt_status in
18193 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18194 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18195 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18196 esac
18197 else :
18198 # compilation failed
18199 lt_cv_dlopen_self_static=no
18200 fi
18201fi
18202rm -fr conftest*
18203
18204
18205fi
18206echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18207echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18208 fi
18209
18210 CPPFLAGS="$save_CPPFLAGS"
18211 LDFLAGS="$save_LDFLAGS"
18212 LIBS="$save_LIBS"
18213 ;;
18214 esac
18215
18216 case $lt_cv_dlopen_self in
18217 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18218 *) enable_dlopen_self=unknown ;;
18219 esac
18220
18221 case $lt_cv_dlopen_self_static in
18222 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18223 *) enable_dlopen_self_static=unknown ;;
18224 esac
18225fi
18226
18227
18228# The else clause should only fire when bootstrapping the
18229# libtool distribution, otherwise you forgot to ship ltmain.sh
18230# with your package, and you will get complaints that there are
18231# no rules to generate ltmain.sh.
18232if test -f "$ltmain"; then
18233 # See if we are running on zsh, and set the options which allow our commands through
18234 # without removal of \ escapes.
18235 if test -n "${ZSH_VERSION+set}" ; then
18236 setopt NO_GLOB_SUBST
18237 fi
18238 # Now quote all the things that may contain metacharacters while being
18239 # careful not to overquote the AC_SUBSTed values. We take copies of the
18240 # variables and quote the copies for generation of the libtool script.
18241 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18242 SED SHELL STRIP \
18243 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18244 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18245 deplibs_check_method reload_flag reload_cmds need_locks \
18246 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18247 lt_cv_sys_global_symbol_to_c_name_address \
18248 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18249 old_postinstall_cmds old_postuninstall_cmds \
18250 compiler_GCJ \
18251 CC_GCJ \
18252 LD_GCJ \
18253 lt_prog_compiler_wl_GCJ \
18254 lt_prog_compiler_pic_GCJ \
18255 lt_prog_compiler_static_GCJ \
18256 lt_prog_compiler_no_builtin_flag_GCJ \
18257 export_dynamic_flag_spec_GCJ \
18258 thread_safe_flag_spec_GCJ \
18259 whole_archive_flag_spec_GCJ \
18260 enable_shared_with_static_runtimes_GCJ \
18261 old_archive_cmds_GCJ \
18262 old_archive_from_new_cmds_GCJ \
18263 predep_objects_GCJ \
18264 postdep_objects_GCJ \
18265 predeps_GCJ \
18266 postdeps_GCJ \
18267 compiler_lib_search_path_GCJ \
18268 archive_cmds_GCJ \
18269 archive_expsym_cmds_GCJ \
18270 postinstall_cmds_GCJ \
18271 postuninstall_cmds_GCJ \
18272 old_archive_from_expsyms_cmds_GCJ \
18273 allow_undefined_flag_GCJ \
18274 no_undefined_flag_GCJ \
18275 export_symbols_cmds_GCJ \
18276 hardcode_libdir_flag_spec_GCJ \
18277 hardcode_libdir_flag_spec_ld_GCJ \
18278 hardcode_libdir_separator_GCJ \
18279 hardcode_automatic_GCJ \
18280 module_cmds_GCJ \
18281 module_expsym_cmds_GCJ \
18282 lt_cv_prog_compiler_c_o_GCJ \
18283 exclude_expsyms_GCJ \
18284 include_expsyms_GCJ; do
18285
18286 case $var in
18287 old_archive_cmds_GCJ | \
18288 old_archive_from_new_cmds_GCJ | \
18289 archive_cmds_GCJ | \
18290 archive_expsym_cmds_GCJ | \
18291 module_cmds_GCJ | \
18292 module_expsym_cmds_GCJ | \
18293 old_archive_from_expsyms_cmds_GCJ | \
18294 export_symbols_cmds_GCJ | \
18295 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18296 postinstall_cmds | postuninstall_cmds | \
18297 old_postinstall_cmds | old_postuninstall_cmds | \
18298 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18299 # Double-quote double-evaled strings.
18300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18301 ;;
18302 *)
18303 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18304 ;;
18305 esac
18306 done
18307
18308 case $lt_echo in
18309 *'\$0 --fallback-echo"')
18310 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18311 ;;
18312 esac
18313
18314cfgfile="$ofile"
18315
18316 cat <<__EOF__ >> "$cfgfile"
18317# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18318
18319# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18320
18321# Shell to use when invoking shell scripts.
18322SHELL=$lt_SHELL
18323
18324# Whether or not to build shared libraries.
18325build_libtool_libs=$enable_shared
18326
18327# Whether or not to build static libraries.
18328build_old_libs=$enable_static
18329
18330# Whether or not to add -lc for building shared libraries.
18331build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18332
18333# Whether or not to disallow shared libs when runtime libs are static
18334allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18335
18336# Whether or not to optimize for fast installation.
18337fast_install=$enable_fast_install
18338
18339# The host system.
18340host_alias=$host_alias
18341host=$host
18342
18343# An echo program that does not interpret backslashes.
18344echo=$lt_echo
18345
18346# The archiver.
18347AR=$lt_AR
18348AR_FLAGS=$lt_AR_FLAGS
18349
18350# A C compiler.
18351LTCC=$lt_LTCC
18352
18353# A language-specific compiler.
18354CC=$lt_compiler_GCJ
18355
18356# Is the compiler the GNU C compiler?
18357with_gcc=$GCC_GCJ
18358
18359# An ERE matcher.
18360EGREP=$lt_EGREP
18361
18362# The linker used to build libraries.
18363LD=$lt_LD_GCJ
18364
18365# Whether we need hard or soft links.
18366LN_S=$lt_LN_S
18367
18368# A BSD-compatible nm program.
18369NM=$lt_NM
18370
18371# A symbol stripping program
18372STRIP=$lt_STRIP
18373
18374# Used to examine libraries when file_magic_cmd begins "file"
18375MAGIC_CMD=$MAGIC_CMD
18376
18377# Used on cygwin: DLL creation program.
18378DLLTOOL="$DLLTOOL"
18379
18380# Used on cygwin: object dumper.
18381OBJDUMP="$OBJDUMP"
18382
18383# Used on cygwin: assembler.
18384AS="$AS"
18385
18386# The name of the directory that contains temporary libtool files.
18387objdir=$objdir
18388
18389# How to create reloadable object files.
18390reload_flag=$lt_reload_flag
18391reload_cmds=$lt_reload_cmds
18392
18393# How to pass a linker flag through the compiler.
18394wl=$lt_lt_prog_compiler_wl_GCJ
18395
18396# Object file suffix (normally "o").
18397objext="$ac_objext"
18398
18399# Old archive suffix (normally "a").
18400libext="$libext"
18401
18402# Shared library suffix (normally ".so").
18403shrext_cmds='$shrext_cmds'
18404
18405# Executable file suffix (normally "").
18406exeext="$exeext"
18407
18408# Additional compiler flags for building library objects.
18409pic_flag=$lt_lt_prog_compiler_pic_GCJ
18410pic_mode=$pic_mode
18411
18412# What is the maximum length of a command?
18413max_cmd_len=$lt_cv_sys_max_cmd_len
18414
18415# Does compiler simultaneously support -c and -o options?
18416compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18417
18418# Must we lock files when doing compilation ?
18419need_locks=$lt_need_locks
18420
18421# Do we need the lib prefix for modules?
18422need_lib_prefix=$need_lib_prefix
18423
18424# Do we need a version for libraries?
18425need_version=$need_version
18426
18427# Whether dlopen is supported.
18428dlopen_support=$enable_dlopen
18429
18430# Whether dlopen of programs is supported.
18431dlopen_self=$enable_dlopen_self
18432
18433# Whether dlopen of statically linked programs is supported.
18434dlopen_self_static=$enable_dlopen_self_static
18435
18436# Compiler flag to prevent dynamic linking.
18437link_static_flag=$lt_lt_prog_compiler_static_GCJ
18438
18439# Compiler flag to turn off builtin functions.
18440no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18441
18442# Compiler flag to allow reflexive dlopens.
18443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18444
18445# Compiler flag to generate shared objects directly from archives.
18446whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18447
18448# Compiler flag to generate thread-safe objects.
18449thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18450
18451# Library versioning type.
18452version_type=$version_type
18453
18454# Format of library name prefix.
18455libname_spec=$lt_libname_spec
18456
18457# List of archive names. First name is the real one, the rest are links.
18458# The last name is the one that the linker finds with -lNAME.
18459library_names_spec=$lt_library_names_spec
18460
18461# The coded name of the library, if different from the real name.
18462soname_spec=$lt_soname_spec
18463
18464# Commands used to build and install an old-style archive.
18465RANLIB=$lt_RANLIB
18466old_archive_cmds=$lt_old_archive_cmds_GCJ
18467old_postinstall_cmds=$lt_old_postinstall_cmds
18468old_postuninstall_cmds=$lt_old_postuninstall_cmds
18469
18470# Create an old-style archive from a shared archive.
18471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18472
18473# Create a temporary old-style archive to link instead of a shared archive.
18474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18475
18476# Commands used to build and install a shared archive.
18477archive_cmds=$lt_archive_cmds_GCJ
18478archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18479postinstall_cmds=$lt_postinstall_cmds
18480postuninstall_cmds=$lt_postuninstall_cmds
18481
18482# Commands used to build a loadable module (assumed same as above if empty)
18483module_cmds=$lt_module_cmds_GCJ
18484module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18485
18486# Commands to strip libraries.
18487old_striplib=$lt_old_striplib
18488striplib=$lt_striplib
18489
18490# Dependencies to place before the objects being linked to create a
18491# shared library.
18492predep_objects=$lt_predep_objects_GCJ
18493
18494# Dependencies to place after the objects being linked to create a
18495# shared library.
18496postdep_objects=$lt_postdep_objects_GCJ
18497
18498# Dependencies to place before the objects being linked to create a
18499# shared library.
18500predeps=$lt_predeps_GCJ
18501
18502# Dependencies to place after the objects being linked to create a
18503# shared library.
18504postdeps=$lt_postdeps_GCJ
18505
18506# The library search path used internally by the compiler when linking
18507# a shared library.
18508compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18509
18510# Method to check whether dependent libraries are shared objects.
18511deplibs_check_method=$lt_deplibs_check_method
18512
18513# Command to use when deplibs_check_method == file_magic.
18514file_magic_cmd=$lt_file_magic_cmd
18515
18516# Flag that allows shared libraries with undefined symbols to be built.
18517allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18518
18519# Flag that forces no undefined symbols.
18520no_undefined_flag=$lt_no_undefined_flag_GCJ
18521
18522# Commands used to finish a libtool library installation in a directory.
18523finish_cmds=$lt_finish_cmds
18524
18525# Same as above, but a single script fragment to be evaled but not shown.
18526finish_eval=$lt_finish_eval
18527
18528# Take the output of nm and produce a listing of raw symbols and C names.
18529global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18530
18531# Transform the output of nm in a proper C declaration
18532global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18533
18534# Transform the output of nm in a C name address pair
18535global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18536
18537# This is the shared library runtime path variable.
18538runpath_var=$runpath_var
18539
18540# This is the shared library path variable.
18541shlibpath_var=$shlibpath_var
18542
18543# Is shlibpath searched before the hard-coded library search path?
18544shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18545
18546# How to hardcode a shared library path into an executable.
18547hardcode_action=$hardcode_action_GCJ
18548
18549# Whether we should hardcode library paths into libraries.
18550hardcode_into_libs=$hardcode_into_libs
18551
18552# Flag to hardcode \$libdir into a binary during linking.
18553# This must work even if \$libdir does not exist.
18554hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18555
18556# If ld is used when linking, flag to hardcode \$libdir into
18557# a binary during linking. This must work even if \$libdir does
18558# not exist.
18559hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18560
18561# Whether we need a single -rpath flag with a separated argument.
18562hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18563
18564# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18565# resulting binary.
18566hardcode_direct=$hardcode_direct_GCJ
18567
18568# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18569# resulting binary.
18570hardcode_minus_L=$hardcode_minus_L_GCJ
18571
18572# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18573# the resulting binary.
18574hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18575
18576# Set to yes if building a shared library automatically hardcodes DIR into the library
18577# and all subsequent libraries and executables linked against it.
18578hardcode_automatic=$hardcode_automatic_GCJ
18579
18580# Variables whose values should be saved in libtool wrapper scripts and
18581# restored at relink time.
18582variables_saved_for_relink="$variables_saved_for_relink"
18583
18584# Whether libtool must link a program against all its dependency libraries.
18585link_all_deplibs=$link_all_deplibs_GCJ
18586
18587# Compile-time system search path for libraries
18588sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18589
18590# Run-time system search path for libraries
18591sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18592
18593# Fix the shell variable \$srcfile for the compiler.
18594fix_srcfile_path="$fix_srcfile_path_GCJ"
18595
18596# Set to yes if exported symbols are required.
18597always_export_symbols=$always_export_symbols_GCJ
18598
18599# The commands to list exported symbols.
18600export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18601
18602# The commands to extract the exported symbol list from a shared archive.
18603extract_expsyms_cmds=$lt_extract_expsyms_cmds
18604
18605# Symbols that should not be listed in the preloaded symbols.
18606exclude_expsyms=$lt_exclude_expsyms_GCJ
18607
18608# Symbols that must always be exported.
18609include_expsyms=$lt_include_expsyms_GCJ
18610
18611# ### END LIBTOOL TAG CONFIG: $tagname
18612
18613__EOF__
18614
18615
18616else
18617 # If there is no Makefile yet, we rely on a make rule to execute
18618 # `config.status --recheck' to rerun these tests and create the
18619 # libtool script then.
18620 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18621 if test -f "$ltmain_in"; then
18622 test -f Makefile && make "$ltmain"
18623 fi
18624fi
18625
18626
18627ac_ext=c
18628ac_cpp='$CPP $CPPFLAGS'
18629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18631ac_compiler_gnu=$ac_cv_c_compiler_gnu
18632
18633CC="$lt_save_CC"
18634
18635 else
18636 tagname=""
18637 fi
18638 ;;
18639
18640 RC)
18641
18642
18643
18644# Source file extension for RC test sources.
18645ac_ext=rc
18646
18647# Object file extension for compiled RC test sources.
18648objext=o
18649objext_RC=$objext
18650
18651# Code to be used in simple compile tests
18652lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18653
18654# Code to be used in simple link tests
18655lt_simple_link_test_code="$lt_simple_compile_test_code"
18656
18657# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18658
18659# If no C compiler was specified, use CC.
18660LTCC=${LTCC-"$CC"}
18661
18662# Allow CC to be a program name with arguments.
18663compiler=$CC
18664
18665
18666# Allow CC to be a program name with arguments.
18667lt_save_CC="$CC"
18668CC=${RC-"windres"}
18669compiler=$CC
18670compiler_RC=$CC
18671lt_cv_prog_compiler_c_o_RC=yes
18672
18673# The else clause should only fire when bootstrapping the
18674# libtool distribution, otherwise you forgot to ship ltmain.sh
18675# with your package, and you will get complaints that there are
18676# no rules to generate ltmain.sh.
18677if test -f "$ltmain"; then
18678 # See if we are running on zsh, and set the options which allow our commands through
18679 # without removal of \ escapes.
18680 if test -n "${ZSH_VERSION+set}" ; then
18681 setopt NO_GLOB_SUBST
18682 fi
18683 # Now quote all the things that may contain metacharacters while being
18684 # careful not to overquote the AC_SUBSTed values. We take copies of the
18685 # variables and quote the copies for generation of the libtool script.
18686 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18687 SED SHELL STRIP \
18688 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18689 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18690 deplibs_check_method reload_flag reload_cmds need_locks \
18691 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18692 lt_cv_sys_global_symbol_to_c_name_address \
18693 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18694 old_postinstall_cmds old_postuninstall_cmds \
18695 compiler_RC \
18696 CC_RC \
18697 LD_RC \
18698 lt_prog_compiler_wl_RC \
18699 lt_prog_compiler_pic_RC \
18700 lt_prog_compiler_static_RC \
18701 lt_prog_compiler_no_builtin_flag_RC \
18702 export_dynamic_flag_spec_RC \
18703 thread_safe_flag_spec_RC \
18704 whole_archive_flag_spec_RC \
18705 enable_shared_with_static_runtimes_RC \
18706 old_archive_cmds_RC \
18707 old_archive_from_new_cmds_RC \
18708 predep_objects_RC \
18709 postdep_objects_RC \
18710 predeps_RC \
18711 postdeps_RC \
18712 compiler_lib_search_path_RC \
18713 archive_cmds_RC \
18714 archive_expsym_cmds_RC \
18715 postinstall_cmds_RC \
18716 postuninstall_cmds_RC \
18717 old_archive_from_expsyms_cmds_RC \
18718 allow_undefined_flag_RC \
18719 no_undefined_flag_RC \
18720 export_symbols_cmds_RC \
18721 hardcode_libdir_flag_spec_RC \
18722 hardcode_libdir_flag_spec_ld_RC \
18723 hardcode_libdir_separator_RC \
18724 hardcode_automatic_RC \
18725 module_cmds_RC \
18726 module_expsym_cmds_RC \
18727 lt_cv_prog_compiler_c_o_RC \
18728 exclude_expsyms_RC \
18729 include_expsyms_RC; do
18730
18731 case $var in
18732 old_archive_cmds_RC | \
18733 old_archive_from_new_cmds_RC | \
18734 archive_cmds_RC | \
18735 archive_expsym_cmds_RC | \
18736 module_cmds_RC | \
18737 module_expsym_cmds_RC | \
18738 old_archive_from_expsyms_cmds_RC | \
18739 export_symbols_cmds_RC | \
18740 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18741 postinstall_cmds | postuninstall_cmds | \
18742 old_postinstall_cmds | old_postuninstall_cmds | \
18743 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18744 # Double-quote double-evaled strings.
18745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18746 ;;
18747 *)
18748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18749 ;;
18750 esac
18751 done
18752
18753 case $lt_echo in
18754 *'\$0 --fallback-echo"')
18755 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18756 ;;
18757 esac
18758
18759cfgfile="$ofile"
18760
18761 cat <<__EOF__ >> "$cfgfile"
18762# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18763
18764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18765
18766# Shell to use when invoking shell scripts.
18767SHELL=$lt_SHELL
18768
18769# Whether or not to build shared libraries.
18770build_libtool_libs=$enable_shared
18771
18772# Whether or not to build static libraries.
18773build_old_libs=$enable_static
18774
18775# Whether or not to add -lc for building shared libraries.
18776build_libtool_need_lc=$archive_cmds_need_lc_RC
18777
18778# Whether or not to disallow shared libs when runtime libs are static
18779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18780
18781# Whether or not to optimize for fast installation.
18782fast_install=$enable_fast_install
18783
18784# The host system.
18785host_alias=$host_alias
18786host=$host
18787
18788# An echo program that does not interpret backslashes.
18789echo=$lt_echo
18790
18791# The archiver.
18792AR=$lt_AR
18793AR_FLAGS=$lt_AR_FLAGS
18794
18795# A C compiler.
18796LTCC=$lt_LTCC
18797
18798# A language-specific compiler.
18799CC=$lt_compiler_RC
18800
18801# Is the compiler the GNU C compiler?
18802with_gcc=$GCC_RC
18803
18804# An ERE matcher.
18805EGREP=$lt_EGREP
18806
18807# The linker used to build libraries.
18808LD=$lt_LD_RC
18809
18810# Whether we need hard or soft links.
18811LN_S=$lt_LN_S
18812
18813# A BSD-compatible nm program.
18814NM=$lt_NM
18815
18816# A symbol stripping program
18817STRIP=$lt_STRIP
18818
18819# Used to examine libraries when file_magic_cmd begins "file"
18820MAGIC_CMD=$MAGIC_CMD
18821
18822# Used on cygwin: DLL creation program.
18823DLLTOOL="$DLLTOOL"
18824
18825# Used on cygwin: object dumper.
18826OBJDUMP="$OBJDUMP"
18827
18828# Used on cygwin: assembler.
18829AS="$AS"
18830
18831# The name of the directory that contains temporary libtool files.
18832objdir=$objdir
18833
18834# How to create reloadable object files.
18835reload_flag=$lt_reload_flag
18836reload_cmds=$lt_reload_cmds
18837
18838# How to pass a linker flag through the compiler.
18839wl=$lt_lt_prog_compiler_wl_RC
18840
18841# Object file suffix (normally "o").
18842objext="$ac_objext"
18843
18844# Old archive suffix (normally "a").
18845libext="$libext"
18846
18847# Shared library suffix (normally ".so").
18848shrext_cmds='$shrext_cmds'
18849
18850# Executable file suffix (normally "").
18851exeext="$exeext"
18852
18853# Additional compiler flags for building library objects.
18854pic_flag=$lt_lt_prog_compiler_pic_RC
18855pic_mode=$pic_mode
18856
18857# What is the maximum length of a command?
18858max_cmd_len=$lt_cv_sys_max_cmd_len
18859
18860# Does compiler simultaneously support -c and -o options?
18861compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18862
18863# Must we lock files when doing compilation ?
18864need_locks=$lt_need_locks
18865
18866# Do we need the lib prefix for modules?
18867need_lib_prefix=$need_lib_prefix
18868
18869# Do we need a version for libraries?
18870need_version=$need_version
18871
18872# Whether dlopen is supported.
18873dlopen_support=$enable_dlopen
18874
18875# Whether dlopen of programs is supported.
18876dlopen_self=$enable_dlopen_self
18877
18878# Whether dlopen of statically linked programs is supported.
18879dlopen_self_static=$enable_dlopen_self_static
18880
18881# Compiler flag to prevent dynamic linking.
18882link_static_flag=$lt_lt_prog_compiler_static_RC
18883
18884# Compiler flag to turn off builtin functions.
18885no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18886
18887# Compiler flag to allow reflexive dlopens.
18888export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18889
18890# Compiler flag to generate shared objects directly from archives.
18891whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18892
18893# Compiler flag to generate thread-safe objects.
18894thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18895
18896# Library versioning type.
18897version_type=$version_type
18898
18899# Format of library name prefix.
18900libname_spec=$lt_libname_spec
18901
18902# List of archive names. First name is the real one, the rest are links.
18903# The last name is the one that the linker finds with -lNAME.
18904library_names_spec=$lt_library_names_spec
18905
18906# The coded name of the library, if different from the real name.
18907soname_spec=$lt_soname_spec
18908
18909# Commands used to build and install an old-style archive.
18910RANLIB=$lt_RANLIB
18911old_archive_cmds=$lt_old_archive_cmds_RC
18912old_postinstall_cmds=$lt_old_postinstall_cmds
18913old_postuninstall_cmds=$lt_old_postuninstall_cmds
18914
18915# Create an old-style archive from a shared archive.
18916old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18917
18918# Create a temporary old-style archive to link instead of a shared archive.
18919old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18920
18921# Commands used to build and install a shared archive.
18922archive_cmds=$lt_archive_cmds_RC
18923archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18924postinstall_cmds=$lt_postinstall_cmds
18925postuninstall_cmds=$lt_postuninstall_cmds
18926
18927# Commands used to build a loadable module (assumed same as above if empty)
18928module_cmds=$lt_module_cmds_RC
18929module_expsym_cmds=$lt_module_expsym_cmds_RC
18930
18931# Commands to strip libraries.
18932old_striplib=$lt_old_striplib
18933striplib=$lt_striplib
18934
18935# Dependencies to place before the objects being linked to create a
18936# shared library.
18937predep_objects=$lt_predep_objects_RC
18938
18939# Dependencies to place after the objects being linked to create a
18940# shared library.
18941postdep_objects=$lt_postdep_objects_RC
18942
18943# Dependencies to place before the objects being linked to create a
18944# shared library.
18945predeps=$lt_predeps_RC
18946
18947# Dependencies to place after the objects being linked to create a
18948# shared library.
18949postdeps=$lt_postdeps_RC
18950
18951# The library search path used internally by the compiler when linking
18952# a shared library.
18953compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18954
18955# Method to check whether dependent libraries are shared objects.
18956deplibs_check_method=$lt_deplibs_check_method
18957
18958# Command to use when deplibs_check_method == file_magic.
18959file_magic_cmd=$lt_file_magic_cmd
18960
18961# Flag that allows shared libraries with undefined symbols to be built.
18962allow_undefined_flag=$lt_allow_undefined_flag_RC
18963
18964# Flag that forces no undefined symbols.
18965no_undefined_flag=$lt_no_undefined_flag_RC
18966
18967# Commands used to finish a libtool library installation in a directory.
18968finish_cmds=$lt_finish_cmds
18969
18970# Same as above, but a single script fragment to be evaled but not shown.
18971finish_eval=$lt_finish_eval
18972
18973# Take the output of nm and produce a listing of raw symbols and C names.
18974global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18975
18976# Transform the output of nm in a proper C declaration
18977global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18978
18979# Transform the output of nm in a C name address pair
18980global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18981
18982# This is the shared library runtime path variable.
18983runpath_var=$runpath_var
18984
18985# This is the shared library path variable.
18986shlibpath_var=$shlibpath_var
18987
18988# Is shlibpath searched before the hard-coded library search path?
18989shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18990
18991# How to hardcode a shared library path into an executable.
18992hardcode_action=$hardcode_action_RC
18993
18994# Whether we should hardcode library paths into libraries.
18995hardcode_into_libs=$hardcode_into_libs
18996
18997# Flag to hardcode \$libdir into a binary during linking.
18998# This must work even if \$libdir does not exist.
18999hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19000
19001# If ld is used when linking, flag to hardcode \$libdir into
19002# a binary during linking. This must work even if \$libdir does
19003# not exist.
19004hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19005
19006# Whether we need a single -rpath flag with a separated argument.
19007hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19008
19009# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19010# resulting binary.
19011hardcode_direct=$hardcode_direct_RC
19012
19013# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19014# resulting binary.
19015hardcode_minus_L=$hardcode_minus_L_RC
19016
19017# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19018# the resulting binary.
19019hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19020
19021# Set to yes if building a shared library automatically hardcodes DIR into the library
19022# and all subsequent libraries and executables linked against it.
19023hardcode_automatic=$hardcode_automatic_RC
19024
19025# Variables whose values should be saved in libtool wrapper scripts and
19026# restored at relink time.
19027variables_saved_for_relink="$variables_saved_for_relink"
19028
19029# Whether libtool must link a program against all its dependency libraries.
19030link_all_deplibs=$link_all_deplibs_RC
19031
19032# Compile-time system search path for libraries
19033sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19034
19035# Run-time system search path for libraries
19036sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19037
19038# Fix the shell variable \$srcfile for the compiler.
19039fix_srcfile_path="$fix_srcfile_path_RC"
19040
19041# Set to yes if exported symbols are required.
19042always_export_symbols=$always_export_symbols_RC
19043
19044# The commands to list exported symbols.
19045export_symbols_cmds=$lt_export_symbols_cmds_RC
19046
19047# The commands to extract the exported symbol list from a shared archive.
19048extract_expsyms_cmds=$lt_extract_expsyms_cmds
19049
19050# Symbols that should not be listed in the preloaded symbols.
19051exclude_expsyms=$lt_exclude_expsyms_RC
19052
19053# Symbols that must always be exported.
19054include_expsyms=$lt_include_expsyms_RC
19055
19056# ### END LIBTOOL TAG CONFIG: $tagname
19057
19058__EOF__
19059
19060
19061else
19062 # If there is no Makefile yet, we rely on a make rule to execute
19063 # `config.status --recheck' to rerun these tests and create the
19064 # libtool script then.
19065 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19066 if test -f "$ltmain_in"; then
19067 test -f Makefile && make "$ltmain"
19068 fi
19069fi
19070
19071
19072ac_ext=c
19073ac_cpp='$CPP $CPPFLAGS'
19074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19076ac_compiler_gnu=$ac_cv_c_compiler_gnu
19077
19078CC="$lt_save_CC"
19079
19080 ;;
19081
19082 *)
19083 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19084echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19085 { (exit 1); exit 1; }; }
19086 ;;
19087 esac
19088
19089 # Append the new tag name to the list of available tags.
19090 if test -n "$tagname" ; then
19091 available_tags="$available_tags $tagname"
19092 fi
19093 fi
19094 done
19095 IFS="$lt_save_ifs"
19096
19097 # Now substitute the updated list of available tags.
19098 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19099 mv "${ofile}T" "$ofile"
19100 chmod +x "$ofile"
19101 else
19102 rm -f "${ofile}T"
19103 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19104echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19105 { (exit 1); exit 1; }; }
19106 fi
19107fi
19108
19109
19110
19111# This can be used to rebuild libtool when needed
19112LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19113
19114# Always use our own libtool.
19115LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19116
19117# Prevent multiple expansion
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136 8558
19137 8559
19138ac_ext=c 8560ac_ext=c
19139ac_cpp='$CPP $CPPFLAGS' 8561ac_cpp='$CPP $CPPFLAGS'
19140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19500 grep -v '^ *+' conftest.er1 >conftest.err 8922 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1 8923 rm -f conftest.er1
19502 cat conftest.err >&5 8924 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } && 8926 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag" 8927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506 || test ! -s conftest.err'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5 8929 (eval $ac_try) 2>&5
19509 ac_status=$? 8930 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } && 8932 (exit $ac_status); }; } &&
19559 grep -v '^ *+' conftest.er1 >conftest.err 8980 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1 8981 rm -f conftest.er1
19561 cat conftest.err >&5 8982 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && 8984 (exit $ac_status); } &&
19564 { ac_try='test -z "$ac_c_werror_flag" 8985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19565 || test ! -s conftest.err'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5 8987 (eval $ac_try) 2>&5
19568 ac_status=$? 8988 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; } && 8990 (exit $ac_status); }; } &&
19676 grep -v '^ *+' conftest.er1 >conftest.err 9096 grep -v '^ *+' conftest.er1 >conftest.err
19677 rm -f conftest.er1 9097 rm -f conftest.er1
19678 cat conftest.err >&5 9098 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } && 9100 (exit $ac_status); } &&
19681 { ac_try='test -z "$ac_c_werror_flag" 9101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19682 || test ! -s conftest.err'
19683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684 (eval $ac_try) 2>&5 9103 (eval $ac_try) 2>&5
19685 ac_status=$? 9104 ac_status=$?
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } && 9106 (exit $ac_status); }; } &&
19731 grep -v '^ *+' conftest.er1 >conftest.err 9150 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1 9151 rm -f conftest.er1
19733 cat conftest.err >&5 9152 cat conftest.err >&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } && 9154 (exit $ac_status); } &&
19736 { ac_try='test -z "$ac_c_werror_flag" 9155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5 9157 (eval $ac_try) 2>&5
19740 ac_status=$? 9158 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } && 9160 (exit $ac_status); }; } &&
19777 grep -v '^ *+' conftest.er1 >conftest.err 9195 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1 9196 rm -f conftest.er1
19779 cat conftest.err >&5 9197 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && 9199 (exit $ac_status); } &&
19782 { ac_try='test -z "$ac_c_werror_flag" 9200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19783 || test ! -s conftest.err'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5 9202 (eval $ac_try) 2>&5
19786 ac_status=$? 9203 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; } && 9205 (exit $ac_status); }; } &&
19822 grep -v '^ *+' conftest.er1 >conftest.err 9239 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1 9240 rm -f conftest.er1
19824 cat conftest.err >&5 9241 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && 9243 (exit $ac_status); } &&
19827 { ac_try='test -z "$ac_c_werror_flag" 9244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19828 || test ! -s conftest.err'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5 9246 (eval $ac_try) 2>&5
19831 ac_status=$? 9247 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; } && 9249 (exit $ac_status); }; } &&
20300 grep -v '^ *+' conftest.er1 >conftest.err 9716 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1 9717 rm -f conftest.er1
20302 cat conftest.err >&5 9718 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } && 9720 (exit $ac_status); } &&
20305 { ac_try='test -z "$ac_c_werror_flag" 9721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20306 || test ! -s conftest.err'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5 9723 (eval $ac_try) 2>&5
20309 ac_status=$? 9724 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; } && 9726 (exit $ac_status); }; } &&
20367 grep -v '^ *+' conftest.er1 >conftest.err 9782 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1 9783 rm -f conftest.er1
20369 cat conftest.err >&5 9784 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && 9786 (exit $ac_status); } &&
20372 { ac_try='test -z "$ac_c_werror_flag" 9787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20373 || test ! -s conftest.err'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5 9789 (eval $ac_try) 2>&5
20376 ac_status=$? 9790 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; } && 9792 (exit $ac_status); }; } &&
20457 grep -v '^ *+' conftest.er1 >conftest.err 9871 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1 9872 rm -f conftest.er1
20459 cat conftest.err >&5 9873 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && 9875 (exit $ac_status); } &&
20462 { ac_try='test -z "$ac_c_werror_flag" 9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20463 || test ! -s conftest.err'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5 9878 (eval $ac_try) 2>&5
20466 ac_status=$? 9879 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } && 9881 (exit $ac_status); }; } &&
20996 grep -v '^ *+' conftest.er1 >conftest.err 10409 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1 10410 rm -f conftest.er1
20998 cat conftest.err >&5 10411 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && 10413 (exit $ac_status); } &&
21001 { ac_try='test -z "$ac_c_werror_flag" 10414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21002 || test ! -s conftest.err'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5 10416 (eval $ac_try) 2>&5
21005 ac_status=$? 10417 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } && 10419 (exit $ac_status); }; } &&
21064 grep -v '^ *+' conftest.er1 >conftest.err 10476 grep -v '^ *+' conftest.er1 >conftest.err
21065 rm -f conftest.er1 10477 rm -f conftest.er1
21066 cat conftest.err >&5 10478 cat conftest.err >&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); } && 10480 (exit $ac_status); } &&
21069 { ac_try='test -z "$ac_c_werror_flag" 10481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21070 || test ! -s conftest.err'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5 10483 (eval $ac_try) 2>&5
21073 ac_status=$? 10484 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; } && 10486 (exit $ac_status); }; } &&
21100 LIBS="-lsocket $LIBS" 10511 LIBS="-lsocket $LIBS"
21101 10512
21102fi 10513fi
21103 10514
21104 10515
10516
10517if test "x$ac_path_x_has_been_run" != xyes; then
21105echo "$as_me:$LINENO: checking for X" >&5 10518 echo "$as_me:$LINENO: checking for X" >&5
21106echo $ECHO_N "checking for X... $ECHO_C" >&6 10519echo $ECHO_N "checking for X... $ECHO_C" >&6
21107 10520
10521ac_path_x_has_been_run=yes
21108 10522
21109# Check whether --with-x or --without-x was given. 10523# Check whether --with-x or --without-x was given.
21110if test "${with_x+set}" = set; then 10524if test "${with_x+set}" = set; then
21111 withval="$with_x" 10525 withval="$with_x"
21112 10526
21195 10609
21196/usr/openwin/include 10610/usr/openwin/include
21197/usr/openwin/share/include' 10611/usr/openwin/share/include'
21198 10612
21199if test "$ac_x_includes" = no; then 10613if test "$ac_x_includes" = no; then
21200 # Guess where to find include files, by looking for Intrinsic.h. 10614 # Guess where to find include files, by looking for a specified header file.
21201 # First, try using that file with no special directory specified. 10615 # First, try using that file with no special directory specified.
21202 cat >conftest.$ac_ext <<_ACEOF 10616 cat >conftest.$ac_ext <<_ACEOF
21203/* confdefs.h. */ 10617/* confdefs.h. */
21204_ACEOF 10618_ACEOF
21205cat confdefs.h >>conftest.$ac_ext 10619cat confdefs.h >>conftest.$ac_ext
21206cat >>conftest.$ac_ext <<_ACEOF 10620cat >>conftest.$ac_ext <<_ACEOF
21207/* end confdefs.h. */ 10621/* end confdefs.h. */
21208#include <X11/Intrinsic.h> 10622#include <X11/Xlib.h>
21209_ACEOF 10623_ACEOF
21210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21212 ac_status=$? 10626 ac_status=$?
21213 grep -v '^ *+' conftest.er1 >conftest.err 10627 grep -v '^ *+' conftest.er1 >conftest.err
21230else 10644else
21231 echo "$as_me: failed program was:" >&5 10645 echo "$as_me: failed program was:" >&5
21232sed 's/^/| /' conftest.$ac_ext >&5 10646sed 's/^/| /' conftest.$ac_ext >&5
21233 10647
21234 for ac_dir in $ac_x_header_dirs; do 10648 for ac_dir in $ac_x_header_dirs; do
21235 if test -r "$ac_dir/X11/Intrinsic.h"; then 10649 if test -r "$ac_dir/X11/Xlib.h"; then
21236 ac_x_includes=$ac_dir 10650 ac_x_includes=$ac_dir
21237 break 10651 break
21238 fi 10652 fi
21239done 10653done
21240fi 10654fi
21244if test "$ac_x_libraries" = no; then 10658if test "$ac_x_libraries" = no; then
21245 # Check for the libraries. 10659 # Check for the libraries.
21246 # See if we find them without any special options. 10660 # See if we find them without any special options.
21247 # Don't add to $LIBS permanently. 10661 # Don't add to $LIBS permanently.
21248 ac_save_LIBS=$LIBS 10662 ac_save_LIBS=$LIBS
21249 LIBS="-lXt $LIBS" 10663 LIBS="-lX11 $LIBS"
21250 cat >conftest.$ac_ext <<_ACEOF 10664 cat >conftest.$ac_ext <<_ACEOF
21251/* confdefs.h. */ 10665/* confdefs.h. */
21252_ACEOF 10666_ACEOF
21253cat confdefs.h >>conftest.$ac_ext 10667cat confdefs.h >>conftest.$ac_ext
21254cat >>conftest.$ac_ext <<_ACEOF 10668cat >>conftest.$ac_ext <<_ACEOF
21255/* end confdefs.h. */ 10669/* end confdefs.h. */
21256#include <X11/Intrinsic.h> 10670#include <X11/Xlib.h>
21257int 10671int
21258main () 10672main ()
21259{ 10673{
21260XtMalloc (0) 10674XrmInitialize ()
21261 ; 10675 ;
21262 return 0; 10676 return 0;
21263} 10677}
21264_ACEOF 10678_ACEOF
21265rm -f conftest.$ac_objext conftest$ac_exeext 10679rm -f conftest.$ac_objext conftest$ac_exeext
21269 grep -v '^ *+' conftest.er1 >conftest.err 10683 grep -v '^ *+' conftest.er1 >conftest.err
21270 rm -f conftest.er1 10684 rm -f conftest.er1
21271 cat conftest.err >&5 10685 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } && 10687 (exit $ac_status); } &&
21274 { ac_try='test -z "$ac_c_werror_flag" 10688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21275 || test ! -s conftest.err'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5 10690 (eval $ac_try) 2>&5
21278 ac_status=$? 10691 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; } && 10693 (exit $ac_status); }; } &&
21294LIBS=$ac_save_LIBS 10707LIBS=$ac_save_LIBS
21295for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 10708for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21296do 10709do
21297 # Don't even attempt the hair of trying to link an X program! 10710 # Don't even attempt the hair of trying to link an X program!
21298 for ac_extension in a so sl; do 10711 for ac_extension in a so sl; do
21299 if test -r $ac_dir/libXt.$ac_extension; then 10712 if test -r $ac_dir/libX11.$ac_extension; then
21300 ac_x_libraries=$ac_dir 10713 ac_x_libraries=$ac_dir
21301 break 2 10714 break 2
21302 fi 10715 fi
21303 done 10716 done
21304done 10717done
21330 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 10743 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21331 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 10744 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21332 # Update the cache value to reflect the command line values. 10745 # Update the cache value to reflect the command line values.
21333 ac_cv_have_x="have_x=yes \ 10746 ac_cv_have_x="have_x=yes \
21334 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 10747 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10748 # It might be that x_includes is empty (headers are found in the
10749 # standard search path. Then output the corresponding message
10750 ac_out_x_includes=$x_includes
10751 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21335 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 10752 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21336echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 10753echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
21337fi 10754fi
21338 10755
10756fi
21339if test "$no_x" = yes; then 10757if test "$no_x" = yes; then
21340 # Not all programs may use this symbol, but it does not hurt to define it. 10758 # Not all programs may use this symbol, but it does not hurt to define it.
21341 10759
21342cat >>confdefs.h <<\_ACEOF 10760cat >>confdefs.h <<\_ACEOF
21343#define X_DISPLAY_MISSING 1 10761#define X_DISPLAY_MISSING 1
21381 grep -v '^ *+' conftest.er1 >conftest.err 10799 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1 10800 rm -f conftest.er1
21383 cat conftest.err >&5 10801 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && 10803 (exit $ac_status); } &&
21386 { ac_try='test -z "$ac_c_werror_flag" 10804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21387 || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5 10806 (eval $ac_try) 2>&5
21390 ac_status=$? 10807 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } && 10809 (exit $ac_status); }; } &&
21433 grep -v '^ *+' conftest.er1 >conftest.err 10850 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1 10851 rm -f conftest.er1
21435 cat conftest.err >&5 10852 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } && 10854 (exit $ac_status); } &&
21438 { ac_try='test -z "$ac_c_werror_flag" 10855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21439 || test ! -s conftest.err'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5 10857 (eval $ac_try) 2>&5
21442 ac_status=$? 10858 ac_status=$?
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } && 10860 (exit $ac_status); }; } &&
21510 grep -v '^ *+' conftest.er1 >conftest.err 10926 grep -v '^ *+' conftest.er1 >conftest.err
21511 rm -f conftest.er1 10927 rm -f conftest.er1
21512 cat conftest.err >&5 10928 cat conftest.err >&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); } && 10930 (exit $ac_status); } &&
21515 { ac_try='test -z "$ac_c_werror_flag" 10931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21516 || test ! -s conftest.err'
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5 10933 (eval $ac_try) 2>&5
21519 ac_status=$? 10934 ac_status=$?
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; } && 10936 (exit $ac_status); }; } &&
21566 grep -v '^ *+' conftest.er1 >conftest.err 10981 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1 10982 rm -f conftest.er1
21568 cat conftest.err >&5 10983 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && 10985 (exit $ac_status); } &&
21571 { ac_try='test -z "$ac_c_werror_flag" 10986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21572 || test ! -s conftest.err'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5 10988 (eval $ac_try) 2>&5
21575 ac_status=$? 10989 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } && 10991 (exit $ac_status); }; } &&
21635 grep -v '^ *+' conftest.er1 >conftest.err 11049 grep -v '^ *+' conftest.er1 >conftest.err
21636 rm -f conftest.er1 11050 rm -f conftest.er1
21637 cat conftest.err >&5 11051 cat conftest.err >&5
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); } && 11053 (exit $ac_status); } &&
21640 { ac_try='test -z "$ac_c_werror_flag" 11054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21641 || test ! -s conftest.err'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5 11056 (eval $ac_try) 2>&5
21644 ac_status=$? 11057 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; } && 11059 (exit $ac_status); }; } &&
21744 grep -v '^ *+' conftest.er1 >conftest.err 11157 grep -v '^ *+' conftest.er1 >conftest.err
21745 rm -f conftest.er1 11158 rm -f conftest.er1
21746 cat conftest.err >&5 11159 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } && 11161 (exit $ac_status); } &&
21749 { ac_try='test -z "$ac_c_werror_flag" 11162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21750 || test ! -s conftest.err'
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5 11164 (eval $ac_try) 2>&5
21753 ac_status=$? 11165 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; } && 11167 (exit $ac_status); }; } &&
21809 grep -v '^ *+' conftest.er1 >conftest.err 11221 grep -v '^ *+' conftest.er1 >conftest.err
21810 rm -f conftest.er1 11222 rm -f conftest.er1
21811 cat conftest.err >&5 11223 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && 11225 (exit $ac_status); } &&
21814 { ac_try='test -z "$ac_c_werror_flag" 11226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21815 || test ! -s conftest.err'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5 11228 (eval $ac_try) 2>&5
21818 ac_status=$? 11229 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } && 11231 (exit $ac_status); }; } &&
21878 grep -v '^ *+' conftest.er1 >conftest.err 11289 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1 11290 rm -f conftest.er1
21880 cat conftest.err >&5 11291 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } && 11293 (exit $ac_status); } &&
21883 { ac_try='test -z "$ac_c_werror_flag" 11294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21884 || test ! -s conftest.err'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5 11296 (eval $ac_try) 2>&5
21887 ac_status=$? 11297 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; } && 11299 (exit $ac_status); }; } &&
21983 grep -v '^ *+' conftest.er1 >conftest.err 11393 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1 11394 rm -f conftest.er1
21985 cat conftest.err >&5 11395 cat conftest.err >&5
21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } && 11397 (exit $ac_status); } &&
21988 { ac_try='test -z "$ac_c_werror_flag" 11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21989 || test ! -s conftest.err'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5 11400 (eval $ac_try) 2>&5
21992 ac_status=$? 11401 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } && 11403 (exit $ac_status); }; } &&
22048 grep -v '^ *+' conftest.er1 >conftest.err 11457 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1 11458 rm -f conftest.er1
22050 cat conftest.err >&5 11459 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && 11461 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_c_werror_flag" 11462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054 || test ! -s conftest.err'
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5 11464 (eval $ac_try) 2>&5
22057 ac_status=$? 11465 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; } && 11467 (exit $ac_status); }; } &&
22146 grep -v '^ *+' conftest.er1 >conftest.err 11554 grep -v '^ *+' conftest.er1 >conftest.err
22147 rm -f conftest.er1 11555 rm -f conftest.er1
22148 cat conftest.err >&5 11556 cat conftest.err >&5
22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } && 11558 (exit $ac_status); } &&
22151 { ac_try='test -z "$ac_c_werror_flag" 11559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22152 || test ! -s conftest.err'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5 11561 (eval $ac_try) 2>&5
22155 ac_status=$? 11562 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } && 11564 (exit $ac_status); }; } &&
22211 grep -v '^ *+' conftest.er1 >conftest.err 11618 grep -v '^ *+' conftest.er1 >conftest.err
22212 rm -f conftest.er1 11619 rm -f conftest.er1
22213 cat conftest.err >&5 11620 cat conftest.err >&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } && 11622 (exit $ac_status); } &&
22216 { ac_try='test -z "$ac_c_werror_flag" 11623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22217 || test ! -s conftest.err'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5 11625 (eval $ac_try) 2>&5
22220 ac_status=$? 11626 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; } && 11628 (exit $ac_status); }; } &&
22309 grep -v '^ *+' conftest.er1 >conftest.err 11715 grep -v '^ *+' conftest.er1 >conftest.err
22310 rm -f conftest.er1 11716 rm -f conftest.er1
22311 cat conftest.err >&5 11717 cat conftest.err >&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } && 11719 (exit $ac_status); } &&
22314 { ac_try='test -z "$ac_c_werror_flag" 11720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22315 || test ! -s conftest.err'
22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317 (eval $ac_try) 2>&5 11722 (eval $ac_try) 2>&5
22318 ac_status=$? 11723 ac_status=$?
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; } && 11725 (exit $ac_status); }; } &&
22374 grep -v '^ *+' conftest.er1 >conftest.err 11779 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1 11780 rm -f conftest.er1
22376 cat conftest.err >&5 11781 cat conftest.err >&5
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } && 11783 (exit $ac_status); } &&
22379 { ac_try='test -z "$ac_c_werror_flag" 11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22380 || test ! -s conftest.err'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5 11786 (eval $ac_try) 2>&5
22383 ac_status=$? 11787 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; } && 11789 (exit $ac_status); }; } &&
22454 grep -v '^ *+' conftest.er1 >conftest.err 11858 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1 11859 rm -f conftest.er1
22456 cat conftest.err >&5 11860 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } && 11862 (exit $ac_status); } &&
22459 { ac_try='test -z "$ac_c_werror_flag" 11863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22460 || test ! -s conftest.err'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5 11865 (eval $ac_try) 2>&5
22463 ac_status=$? 11866 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; } && 11868 (exit $ac_status); }; } &&
22524 grep -v '^ *+' conftest.er1 >conftest.err 11927 grep -v '^ *+' conftest.er1 >conftest.err
22525 rm -f conftest.er1 11928 rm -f conftest.er1
22526 cat conftest.err >&5 11929 cat conftest.err >&5
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); } && 11931 (exit $ac_status); } &&
22529 { ac_try='test -z "$ac_c_werror_flag" 11932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22530 || test ! -s conftest.err'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5 11934 (eval $ac_try) 2>&5
22533 ac_status=$? 11935 ac_status=$?
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; } && 11937 (exit $ac_status); }; } &&
22591 grep -v '^ *+' conftest.er1 >conftest.err 11993 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1 11994 rm -f conftest.er1
22593 cat conftest.err >&5 11995 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && 11997 (exit $ac_status); } &&
22596 { ac_try='test -z "$ac_c_werror_flag" 11998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22597 || test ! -s conftest.err'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5 12000 (eval $ac_try) 2>&5
22600 ac_status=$? 12001 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; } && 12003 (exit $ac_status); }; } &&
22658 grep -v '^ *+' conftest.er1 >conftest.err 12059 grep -v '^ *+' conftest.er1 >conftest.err
22659 rm -f conftest.er1 12060 rm -f conftest.er1
22660 cat conftest.err >&5 12061 cat conftest.err >&5
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); } && 12063 (exit $ac_status); } &&
22663 { ac_try='test -z "$ac_c_werror_flag" 12064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22664 || test ! -s conftest.err'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5 12066 (eval $ac_try) 2>&5
22667 ac_status=$? 12067 ac_status=$?
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; } && 12069 (exit $ac_status); }; } &&
22725 grep -v '^ *+' conftest.er1 >conftest.err 12125 grep -v '^ *+' conftest.er1 >conftest.err
22726 rm -f conftest.er1 12126 rm -f conftest.er1
22727 cat conftest.err >&5 12127 cat conftest.err >&5
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); } && 12129 (exit $ac_status); } &&
22730 { ac_try='test -z "$ac_c_werror_flag" 12130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22731 || test ! -s conftest.err'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5 12132 (eval $ac_try) 2>&5
22734 ac_status=$? 12133 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; } && 12135 (exit $ac_status); }; } &&
22792 grep -v '^ *+' conftest.er1 >conftest.err 12191 grep -v '^ *+' conftest.er1 >conftest.err
22793 rm -f conftest.er1 12192 rm -f conftest.er1
22794 cat conftest.err >&5 12193 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && 12195 (exit $ac_status); } &&
22797 { ac_try='test -z "$ac_c_werror_flag" 12196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22798 || test ! -s conftest.err'
22799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22800 (eval $ac_try) 2>&5 12198 (eval $ac_try) 2>&5
22801 ac_status=$? 12199 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); }; } && 12201 (exit $ac_status); }; } &&
22859 grep -v '^ *+' conftest.er1 >conftest.err 12257 grep -v '^ *+' conftest.er1 >conftest.err
22860 rm -f conftest.er1 12258 rm -f conftest.er1
22861 cat conftest.err >&5 12259 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && 12261 (exit $ac_status); } &&
22864 { ac_try='test -z "$ac_c_werror_flag" 12262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22865 || test ! -s conftest.err'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5 12264 (eval $ac_try) 2>&5
22868 ac_status=$? 12265 ac_status=$?
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; } && 12267 (exit $ac_status); }; } &&
22926 grep -v '^ *+' conftest.er1 >conftest.err 12323 grep -v '^ *+' conftest.er1 >conftest.err
22927 rm -f conftest.er1 12324 rm -f conftest.er1
22928 cat conftest.err >&5 12325 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && 12327 (exit $ac_status); } &&
22931 { ac_try='test -z "$ac_c_werror_flag" 12328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22932 || test ! -s conftest.err'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5 12330 (eval $ac_try) 2>&5
22935 ac_status=$? 12331 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; } && 12333 (exit $ac_status); }; } &&
22996 grep -v '^ *+' conftest.er1 >conftest.err 12392 grep -v '^ *+' conftest.er1 >conftest.err
22997 rm -f conftest.er1 12393 rm -f conftest.er1
22998 cat conftest.err >&5 12394 cat conftest.err >&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); } && 12396 (exit $ac_status); } &&
23001 { ac_try='test -z "$ac_c_werror_flag" 12397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23002 || test ! -s conftest.err'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5 12399 (eval $ac_try) 2>&5
23005 ac_status=$? 12400 ac_status=$?
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; } && 12402 (exit $ac_status); }; } &&
23064 grep -v '^ *+' conftest.er1 >conftest.err 12459 grep -v '^ *+' conftest.er1 >conftest.err
23065 rm -f conftest.er1 12460 rm -f conftest.er1
23066 cat conftest.err >&5 12461 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && 12463 (exit $ac_status); } &&
23069 { ac_try='test -z "$ac_c_werror_flag" 12464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23070 || test ! -s conftest.err'
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5 12466 (eval $ac_try) 2>&5
23073 ac_status=$? 12467 ac_status=$?
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; } && 12469 (exit $ac_status); }; } &&
23132 grep -v '^ *+' conftest.er1 >conftest.err 12526 grep -v '^ *+' conftest.er1 >conftest.err
23133 rm -f conftest.er1 12527 rm -f conftest.er1
23134 cat conftest.err >&5 12528 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } && 12530 (exit $ac_status); } &&
23137 { ac_try='test -z "$ac_c_werror_flag" 12531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23138 || test ! -s conftest.err'
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5 12533 (eval $ac_try) 2>&5
23141 ac_status=$? 12534 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; } && 12536 (exit $ac_status); }; } &&
23199 grep -v '^ *+' conftest.er1 >conftest.err 12592 grep -v '^ *+' conftest.er1 >conftest.err
23200 rm -f conftest.er1 12593 rm -f conftest.er1
23201 cat conftest.err >&5 12594 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } && 12596 (exit $ac_status); } &&
23204 { ac_try='test -z "$ac_c_werror_flag" 12597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23205 || test ! -s conftest.err'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5 12599 (eval $ac_try) 2>&5
23208 ac_status=$? 12600 ac_status=$?
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; } && 12602 (exit $ac_status); }; } &&
23267 grep -v '^ *+' conftest.er1 >conftest.err 12659 grep -v '^ *+' conftest.er1 >conftest.err
23268 rm -f conftest.er1 12660 rm -f conftest.er1
23269 cat conftest.err >&5 12661 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); } && 12663 (exit $ac_status); } &&
23272 { ac_try='test -z "$ac_c_werror_flag" 12664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23273 || test ! -s conftest.err'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5 12666 (eval $ac_try) 2>&5
23276 ac_status=$? 12667 ac_status=$?
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } && 12669 (exit $ac_status); }; } &&
23341 grep -v '^ *+' conftest.er1 >conftest.err 12732 grep -v '^ *+' conftest.er1 >conftest.err
23342 rm -f conftest.er1 12733 rm -f conftest.er1
23343 cat conftest.err >&5 12734 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && 12736 (exit $ac_status); } &&
23346 { ac_try='test -z "$ac_c_werror_flag" 12737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23347 || test ! -s conftest.err'
23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5 12739 (eval $ac_try) 2>&5
23350 ac_status=$? 12740 ac_status=$?
23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; } && 12742 (exit $ac_status); }; } &&
23412 grep -v '^ *+' conftest.er1 >conftest.err 12802 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1 12803 rm -f conftest.er1
23414 cat conftest.err >&5 12804 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && 12806 (exit $ac_status); } &&
23417 { ac_try='test -z "$ac_c_werror_flag" 12807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23418 || test ! -s conftest.err'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5 12809 (eval $ac_try) 2>&5
23421 ac_status=$? 12810 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; } && 12812 (exit $ac_status); }; } &&
23481 grep -v '^ *+' conftest.er1 >conftest.err 12870 grep -v '^ *+' conftest.er1 >conftest.err
23482 rm -f conftest.er1 12871 rm -f conftest.er1
23483 cat conftest.err >&5 12872 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } && 12874 (exit $ac_status); } &&
23486 { ac_try='test -z "$ac_c_werror_flag" 12875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23487 || test ! -s conftest.err'
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5 12877 (eval $ac_try) 2>&5
23490 ac_status=$? 12878 ac_status=$?
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; } && 12880 (exit $ac_status); }; } &&
23558 grep -v '^ *+' conftest.er1 >conftest.err 12946 grep -v '^ *+' conftest.er1 >conftest.err
23559 rm -f conftest.er1 12947 rm -f conftest.er1
23560 cat conftest.err >&5 12948 cat conftest.err >&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); } && 12950 (exit $ac_status); } &&
23563 { ac_try='test -z "$ac_c_werror_flag" 12951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23564 || test ! -s conftest.err'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5 12953 (eval $ac_try) 2>&5
23567 ac_status=$? 12954 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; } && 12956 (exit $ac_status); }; } &&
23631 grep -v '^ *+' conftest.er1 >conftest.err 13018 grep -v '^ *+' conftest.er1 >conftest.err
23632 rm -f conftest.er1 13019 rm -f conftest.er1
23633 cat conftest.err >&5 13020 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } && 13022 (exit $ac_status); } &&
23636 { ac_try='test -z "$ac_c_werror_flag" 13023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23637 || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5 13025 (eval $ac_try) 2>&5
23640 ac_status=$? 13026 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } && 13028 (exit $ac_status); }; } &&
23686 grep -v '^ *+' conftest.er1 >conftest.err 13072 grep -v '^ *+' conftest.er1 >conftest.err
23687 rm -f conftest.er1 13073 rm -f conftest.er1
23688 cat conftest.err >&5 13074 cat conftest.err >&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && 13076 (exit $ac_status); } &&
23691 { ac_try='test -z "$ac_c_werror_flag" 13077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23692 || test ! -s conftest.err'
23693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23694 (eval $ac_try) 2>&5 13079 (eval $ac_try) 2>&5
23695 ac_status=$? 13080 ac_status=$?
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); }; } && 13082 (exit $ac_status); }; } &&
23758 grep -v '^ *+' conftest.er1 >conftest.err 13143 grep -v '^ *+' conftest.er1 >conftest.err
23759 rm -f conftest.er1 13144 rm -f conftest.er1
23760 cat conftest.err >&5 13145 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && 13147 (exit $ac_status); } &&
23763 { ac_try='test -z "$ac_c_werror_flag" 13148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23764 || test ! -s conftest.err'
23765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766 (eval $ac_try) 2>&5 13150 (eval $ac_try) 2>&5
23767 ac_status=$? 13151 ac_status=$?
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); }; } && 13153 (exit $ac_status); }; } &&
23813 grep -v '^ *+' conftest.er1 >conftest.err 13197 grep -v '^ *+' conftest.er1 >conftest.err
23814 rm -f conftest.er1 13198 rm -f conftest.er1
23815 cat conftest.err >&5 13199 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } && 13201 (exit $ac_status); } &&
23818 { ac_try='test -z "$ac_c_werror_flag" 13202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23819 || test ! -s conftest.err'
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5 13204 (eval $ac_try) 2>&5
23822 ac_status=$? 13205 ac_status=$?
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; } && 13207 (exit $ac_status); }; } &&
23881 grep -v '^ *+' conftest.er1 >conftest.err 13264 grep -v '^ *+' conftest.er1 >conftest.err
23882 rm -f conftest.er1 13265 rm -f conftest.er1
23883 cat conftest.err >&5 13266 cat conftest.err >&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); } && 13268 (exit $ac_status); } &&
23886 { ac_try='test -z "$ac_c_werror_flag" 13269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23887 || test ! -s conftest.err'
23888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23889 (eval $ac_try) 2>&5 13271 (eval $ac_try) 2>&5
23890 ac_status=$? 13272 ac_status=$?
23891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); }; } && 13274 (exit $ac_status); }; } &&
24063 grep -v '^ *+' conftest.er1 >conftest.err 13445 grep -v '^ *+' conftest.er1 >conftest.err
24064 rm -f conftest.er1 13446 rm -f conftest.er1
24065 cat conftest.err >&5 13447 cat conftest.err >&5
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); } && 13449 (exit $ac_status); } &&
24068 { ac_try='test -z "$ac_c_werror_flag" 13450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24069 || test ! -s conftest.err'
24070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24071 (eval $ac_try) 2>&5 13452 (eval $ac_try) 2>&5
24072 ac_status=$? 13453 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; } && 13455 (exit $ac_status); }; } &&
24256 grep -v '^ *+' conftest.er1 >conftest.err 13637 grep -v '^ *+' conftest.er1 >conftest.err
24257 rm -f conftest.er1 13638 rm -f conftest.er1
24258 cat conftest.err >&5 13639 cat conftest.err >&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } && 13641 (exit $ac_status); } &&
24261 { ac_try='test -z "$ac_c_werror_flag" 13642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24262 || test ! -s conftest.err'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5 13644 (eval $ac_try) 2>&5
24265 ac_status=$? 13645 ac_status=$?
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; } && 13647 (exit $ac_status); }; } &&
24317 grep -v '^ *+' conftest.er1 >conftest.err 13697 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1 13698 rm -f conftest.er1
24319 cat conftest.err >&5 13699 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } && 13701 (exit $ac_status); } &&
24322 { ac_try='test -z "$ac_c_werror_flag" 13702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24323 || test ! -s conftest.err'
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5 13704 (eval $ac_try) 2>&5
24326 ac_status=$? 13705 ac_status=$?
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; } && 13707 (exit $ac_status); }; } &&
24391 grep -v '^ *+' conftest.er1 >conftest.err 13770 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1 13771 rm -f conftest.er1
24393 cat conftest.err >&5 13772 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } && 13774 (exit $ac_status); } &&
24396 { ac_try='test -z "$ac_c_werror_flag" 13775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24397 || test ! -s conftest.err'
24398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399 (eval $ac_try) 2>&5 13777 (eval $ac_try) 2>&5
24400 ac_status=$? 13778 ac_status=$?
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); }; } && 13780 (exit $ac_status); }; } &&
24457 grep -v '^ *+' conftest.er1 >conftest.err 13835 grep -v '^ *+' conftest.er1 >conftest.err
24458 rm -f conftest.er1 13836 rm -f conftest.er1
24459 cat conftest.err >&5 13837 cat conftest.err >&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } && 13839 (exit $ac_status); } &&
24462 { ac_try='test -z "$ac_c_werror_flag" 13840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24463 || test ! -s conftest.err'
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5 13842 (eval $ac_try) 2>&5
24466 ac_status=$? 13843 ac_status=$?
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); }; } && 13845 (exit $ac_status); }; } &&
24524 grep -v '^ *+' conftest.er1 >conftest.err 13901 grep -v '^ *+' conftest.er1 >conftest.err
24525 rm -f conftest.er1 13902 rm -f conftest.er1
24526 cat conftest.err >&5 13903 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && 13905 (exit $ac_status); } &&
24529 { ac_try='test -z "$ac_c_werror_flag" 13906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24530 || test ! -s conftest.err'
24531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532 (eval $ac_try) 2>&5 13908 (eval $ac_try) 2>&5
24533 ac_status=$? 13909 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; } && 13911 (exit $ac_status); }; } &&
24587 grep -v '^ *+' conftest.er1 >conftest.err 13963 grep -v '^ *+' conftest.er1 >conftest.err
24588 rm -f conftest.er1 13964 rm -f conftest.er1
24589 cat conftest.err >&5 13965 cat conftest.err >&5
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); } && 13967 (exit $ac_status); } &&
24592 { ac_try='test -z "$ac_c_werror_flag" 13968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24593 || test ! -s conftest.err'
24594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595 (eval $ac_try) 2>&5 13970 (eval $ac_try) 2>&5
24596 ac_status=$? 13971 ac_status=$?
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); }; } && 13973 (exit $ac_status); }; } &&
24690 grep -v '^ *+' conftest.er1 >conftest.err 14065 grep -v '^ *+' conftest.er1 >conftest.err
24691 rm -f conftest.er1 14066 rm -f conftest.er1
24692 cat conftest.err >&5 14067 cat conftest.err >&5
24693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694 (exit $ac_status); } && 14069 (exit $ac_status); } &&
24695 { ac_try='test -z "$ac_c_werror_flag" 14070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24696 || test ! -s conftest.err'
24697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698 (eval $ac_try) 2>&5 14072 (eval $ac_try) 2>&5
24699 ac_status=$? 14073 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; } && 14075 (exit $ac_status); }; } &&
24753 grep -v '^ *+' conftest.er1 >conftest.err 14127 grep -v '^ *+' conftest.er1 >conftest.err
24754 rm -f conftest.er1 14128 rm -f conftest.er1
24755 cat conftest.err >&5 14129 cat conftest.err >&5
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && 14131 (exit $ac_status); } &&
24758 { ac_try='test -z "$ac_c_werror_flag" 14132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24759 || test ! -s conftest.err'
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5 14134 (eval $ac_try) 2>&5
24762 ac_status=$? 14135 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); }; } && 14137 (exit $ac_status); }; } &&
24794 grep -v '^ *+' conftest.er1 >conftest.err 14167 grep -v '^ *+' conftest.er1 >conftest.err
24795 rm -f conftest.er1 14168 rm -f conftest.er1
24796 cat conftest.err >&5 14169 cat conftest.err >&5
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); } && 14171 (exit $ac_status); } &&
24799 { ac_try='test -z "$ac_c_werror_flag" 14172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24800 || test ! -s conftest.err'
24801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802 (eval $ac_try) 2>&5 14174 (eval $ac_try) 2>&5
24803 ac_status=$? 14175 ac_status=$?
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); }; } && 14177 (exit $ac_status); }; } &&
24851 grep -v '^ *+' conftest.er1 >conftest.err 14223 grep -v '^ *+' conftest.er1 >conftest.err
24852 rm -f conftest.er1 14224 rm -f conftest.er1
24853 cat conftest.err >&5 14225 cat conftest.err >&5
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } && 14227 (exit $ac_status); } &&
24856 { ac_try='test -z "$ac_c_werror_flag" 14228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24857 || test ! -s conftest.err'
24858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859 (eval $ac_try) 2>&5 14230 (eval $ac_try) 2>&5
24860 ac_status=$? 14231 ac_status=$?
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); }; } && 14233 (exit $ac_status); }; } &&
24892 grep -v '^ *+' conftest.er1 >conftest.err 14263 grep -v '^ *+' conftest.er1 >conftest.err
24893 rm -f conftest.er1 14264 rm -f conftest.er1
24894 cat conftest.err >&5 14265 cat conftest.err >&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } && 14267 (exit $ac_status); } &&
24897 { ac_try='test -z "$ac_c_werror_flag" 14268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24898 || test ! -s conftest.err'
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5 14270 (eval $ac_try) 2>&5
24901 ac_status=$? 14271 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; } && 14273 (exit $ac_status); }; } &&
24957 grep -v '^ *+' conftest.er1 >conftest.err 14327 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1 14328 rm -f conftest.er1
24959 cat conftest.err >&5 14329 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && 14331 (exit $ac_status); } &&
24962 { ac_try='test -z "$ac_c_werror_flag" 14332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24963 || test ! -s conftest.err'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5 14334 (eval $ac_try) 2>&5
24966 ac_status=$? 14335 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; } && 14337 (exit $ac_status); }; } &&
24989See \`config.log' for more details." >&2;} 14358See \`config.log' for more details." >&2;}
24990 { (exit 1); exit 1; }; } ;; 14359 { (exit 1); exit 1; }; } ;;
24991esac 14360esac
24992else 14361else
24993 if test "$cross_compiling" = yes; then 14362 if test "$cross_compiling" = yes; then
24994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14363 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24995See \`config.log' for more details." >&5 14364echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24996echo "$as_me: error: cannot run test program while cross compiling
24997See \`config.log' for more details." >&2;}
24998 { (exit 1); exit 1; }; } 14365 { (exit 1); exit 1; }; }
24999else 14366else
25000 cat >conftest.$ac_ext <<_ACEOF 14367 cat >conftest.$ac_ext <<_ACEOF
25001/* confdefs.h. */ 14368/* confdefs.h. */
25002_ACEOF 14369_ACEOF
25104 grep -v '^ *+' conftest.er1 >conftest.err 14471 grep -v '^ *+' conftest.er1 >conftest.err
25105 rm -f conftest.er1 14472 rm -f conftest.er1
25106 cat conftest.err >&5 14473 cat conftest.err >&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); } && 14475 (exit $ac_status); } &&
25109 { ac_try='test -z "$ac_c_werror_flag" 14476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25110 || test ! -s conftest.err'
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5 14478 (eval $ac_try) 2>&5
25113 ac_status=$? 14479 ac_status=$?
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } && 14481 (exit $ac_status); }; } &&
25167 grep -v '^ *+' conftest.er1 >conftest.err 14533 grep -v '^ *+' conftest.er1 >conftest.err
25168 rm -f conftest.er1 14534 rm -f conftest.er1
25169 cat conftest.err >&5 14535 cat conftest.err >&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && 14537 (exit $ac_status); } &&
25172 { ac_try='test -z "$ac_c_werror_flag" 14538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25173 || test ! -s conftest.err'
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5 14540 (eval $ac_try) 2>&5
25176 ac_status=$? 14541 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; } && 14543 (exit $ac_status); }; } &&
25208 grep -v '^ *+' conftest.er1 >conftest.err 14573 grep -v '^ *+' conftest.er1 >conftest.err
25209 rm -f conftest.er1 14574 rm -f conftest.er1
25210 cat conftest.err >&5 14575 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } && 14577 (exit $ac_status); } &&
25213 { ac_try='test -z "$ac_c_werror_flag" 14578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25214 || test ! -s conftest.err'
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5 14580 (eval $ac_try) 2>&5
25217 ac_status=$? 14581 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; } && 14583 (exit $ac_status); }; } &&
25265 grep -v '^ *+' conftest.er1 >conftest.err 14629 grep -v '^ *+' conftest.er1 >conftest.err
25266 rm -f conftest.er1 14630 rm -f conftest.er1
25267 cat conftest.err >&5 14631 cat conftest.err >&5
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); } && 14633 (exit $ac_status); } &&
25270 { ac_try='test -z "$ac_c_werror_flag" 14634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25271 || test ! -s conftest.err'
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5 14636 (eval $ac_try) 2>&5
25274 ac_status=$? 14637 ac_status=$?
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; } && 14639 (exit $ac_status); }; } &&
25306 grep -v '^ *+' conftest.er1 >conftest.err 14669 grep -v '^ *+' conftest.er1 >conftest.err
25307 rm -f conftest.er1 14670 rm -f conftest.er1
25308 cat conftest.err >&5 14671 cat conftest.err >&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); } && 14673 (exit $ac_status); } &&
25311 { ac_try='test -z "$ac_c_werror_flag" 14674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25312 || test ! -s conftest.err'
25313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25314 (eval $ac_try) 2>&5 14676 (eval $ac_try) 2>&5
25315 ac_status=$? 14677 ac_status=$?
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); }; } && 14679 (exit $ac_status); }; } &&
25371 grep -v '^ *+' conftest.er1 >conftest.err 14733 grep -v '^ *+' conftest.er1 >conftest.err
25372 rm -f conftest.er1 14734 rm -f conftest.er1
25373 cat conftest.err >&5 14735 cat conftest.err >&5
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } && 14737 (exit $ac_status); } &&
25376 { ac_try='test -z "$ac_c_werror_flag" 14738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25377 || test ! -s conftest.err'
25378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379 (eval $ac_try) 2>&5 14740 (eval $ac_try) 2>&5
25380 ac_status=$? 14741 ac_status=$?
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); }; } && 14743 (exit $ac_status); }; } &&
25403See \`config.log' for more details." >&2;} 14764See \`config.log' for more details." >&2;}
25404 { (exit 1); exit 1; }; } ;; 14765 { (exit 1); exit 1; }; } ;;
25405esac 14766esac
25406else 14767else
25407 if test "$cross_compiling" = yes; then 14768 if test "$cross_compiling" = yes; then
25408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14769 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25409See \`config.log' for more details." >&5 14770echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25410echo "$as_me: error: cannot run test program while cross compiling
25411See \`config.log' for more details." >&2;}
25412 { (exit 1); exit 1; }; } 14771 { (exit 1); exit 1; }; }
25413else 14772else
25414 cat >conftest.$ac_ext <<_ACEOF 14773 cat >conftest.$ac_ext <<_ACEOF
25415/* confdefs.h. */ 14774/* confdefs.h. */
25416_ACEOF 14775_ACEOF
25721 grep -v '^ *+' conftest.er1 >conftest.err 15080 grep -v '^ *+' conftest.er1 >conftest.err
25722 rm -f conftest.er1 15081 rm -f conftest.er1
25723 cat conftest.err >&5 15082 cat conftest.err >&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } && 15084 (exit $ac_status); } &&
25726 { ac_try='test -z "$ac_c_werror_flag" 15085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25727 || test ! -s conftest.err'
25728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729 (eval $ac_try) 2>&5 15087 (eval $ac_try) 2>&5
25730 ac_status=$? 15088 ac_status=$?
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; } && 15090 (exit $ac_status); }; } &&
25820 grep -v '^ *+' conftest.er1 >conftest.err 15178 grep -v '^ *+' conftest.er1 >conftest.err
25821 rm -f conftest.er1 15179 rm -f conftest.er1
25822 cat conftest.err >&5 15180 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } && 15182 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag" 15183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25826 || test ! -s conftest.err'
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5 15185 (eval $ac_try) 2>&5
25829 ac_status=$? 15186 ac_status=$?
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; } && 15188 (exit $ac_status); }; } &&
25890 grep -v '^ *+' conftest.er1 >conftest.err 15247 grep -v '^ *+' conftest.er1 >conftest.err
25891 rm -f conftest.er1 15248 rm -f conftest.er1
25892 cat conftest.err >&5 15249 cat conftest.err >&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); } && 15251 (exit $ac_status); } &&
25895 { ac_try='test -z "$ac_c_werror_flag" 15252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25896 || test ! -s conftest.err'
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5 15254 (eval $ac_try) 2>&5
25899 ac_status=$? 15255 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; } && 15257 (exit $ac_status); }; } &&
25996 grep -v '^ *+' conftest.er1 >conftest.err 15352 grep -v '^ *+' conftest.er1 >conftest.err
25997 rm -f conftest.er1 15353 rm -f conftest.er1
25998 cat conftest.err >&5 15354 cat conftest.err >&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } && 15356 (exit $ac_status); } &&
26001 { ac_try='test -z "$ac_c_werror_flag" 15357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26002 || test ! -s conftest.err'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5 15359 (eval $ac_try) 2>&5
26005 ac_status=$? 15360 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; } && 15362 (exit $ac_status); }; } &&
26091 grep -v '^ *+' conftest.er1 >conftest.err 15446 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1 15447 rm -f conftest.er1
26093 cat conftest.err >&5 15448 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } && 15450 (exit $ac_status); } &&
26096 { ac_try='test -z "$ac_c_werror_flag" 15451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26097 || test ! -s conftest.err'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5 15453 (eval $ac_try) 2>&5
26100 ac_status=$? 15454 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; } && 15456 (exit $ac_status); }; } &&
26217 grep -v '^ *+' conftest.er1 >conftest.err 15571 grep -v '^ *+' conftest.er1 >conftest.err
26218 rm -f conftest.er1 15572 rm -f conftest.er1
26219 cat conftest.err >&5 15573 cat conftest.err >&5
26220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221 (exit $ac_status); } && 15575 (exit $ac_status); } &&
26222 { ac_try='test -z "$ac_c_werror_flag" 15576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26223 || test ! -s conftest.err'
26224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225 (eval $ac_try) 2>&5 15578 (eval $ac_try) 2>&5
26226 ac_status=$? 15579 ac_status=$?
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); }; } && 15581 (exit $ac_status); }; } &&
26277 grep -v '^ *+' conftest.er1 >conftest.err 15630 grep -v '^ *+' conftest.er1 >conftest.err
26278 rm -f conftest.er1 15631 rm -f conftest.er1
26279 cat conftest.err >&5 15632 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } && 15634 (exit $ac_status); } &&
26282 { ac_try='test -z "$ac_c_werror_flag" 15635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26283 || test ! -s conftest.err'
26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26285 (eval $ac_try) 2>&5 15637 (eval $ac_try) 2>&5
26286 ac_status=$? 15638 ac_status=$?
26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26288 (exit $ac_status); }; } && 15640 (exit $ac_status); }; } &&
26344 grep -v '^ *+' conftest.er1 >conftest.err 15696 grep -v '^ *+' conftest.er1 >conftest.err
26345 rm -f conftest.er1 15697 rm -f conftest.er1
26346 cat conftest.err >&5 15698 cat conftest.err >&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } && 15700 (exit $ac_status); } &&
26349 { ac_try='test -z "$ac_c_werror_flag" 15701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26350 || test ! -s conftest.err'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5 15703 (eval $ac_try) 2>&5
26353 ac_status=$? 15704 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; } && 15706 (exit $ac_status); }; } &&
26388 grep -v '^ *+' conftest.er1 >conftest.err 15739 grep -v '^ *+' conftest.er1 >conftest.err
26389 rm -f conftest.er1 15740 rm -f conftest.er1
26390 cat conftest.err >&5 15741 cat conftest.err >&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); } && 15743 (exit $ac_status); } &&
26393 { ac_try='test -z "$ac_c_werror_flag" 15744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26394 || test ! -s conftest.err'
26395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396 (eval $ac_try) 2>&5 15746 (eval $ac_try) 2>&5
26397 ac_status=$? 15747 ac_status=$?
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; } && 15749 (exit $ac_status); }; } &&
26431 grep -v '^ *+' conftest.er1 >conftest.err 15781 grep -v '^ *+' conftest.er1 >conftest.err
26432 rm -f conftest.er1 15782 rm -f conftest.er1
26433 cat conftest.err >&5 15783 cat conftest.err >&5
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); } && 15785 (exit $ac_status); } &&
26436 { ac_try='test -z "$ac_c_werror_flag" 15786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26437 || test ! -s conftest.err'
26438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439 (eval $ac_try) 2>&5 15788 (eval $ac_try) 2>&5
26440 ac_status=$? 15789 ac_status=$?
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); }; } && 15791 (exit $ac_status); }; } &&
26539 15888
26540cat >>confdefs.h <<_ACEOF 15889cat >>confdefs.h <<_ACEOF
26541#define BUNZIP "${BUNZIP}" 15890#define BUNZIP "${BUNZIP}"
26542_ACEOF 15891_ACEOF
26543 15892
15893
15894if true; then
15895 # Extract the first word of "perl5", so it can be a program name with args.
15896set dummy perl5; ac_word=$2
15897echo "$as_me:$LINENO: checking for $ac_word" >&5
15898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15899if test "${ac_cv_path_PERL+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901else
15902 case $PERL in
15903 [\\/]* | ?:[\\/]*)
15904 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15905 ;;
15906 *)
15907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908for as_dir in $PATH
15909do
15910 IFS=$as_save_IFS
15911 test -z "$as_dir" && as_dir=.
15912 for ac_exec_ext in '' $ac_executable_extensions; do
15913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15914 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15916 break 2
15917 fi
15918done
15919done
15920
15921 ;;
15922esac
15923fi
15924PERL=$ac_cv_path_PERL
15925
15926if test -n "$PERL"; then
15927 echo "$as_me:$LINENO: result: $PERL" >&5
15928echo "${ECHO_T}$PERL" >&6
15929else
15930 echo "$as_me:$LINENO: result: no" >&5
15931echo "${ECHO_T}no" >&6
15932fi
15933
15934 # Extract the first word of "perl", so it can be a program name with args.
15935set dummy perl; ac_word=$2
15936echo "$as_me:$LINENO: checking for $ac_word" >&5
15937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15938if test "${ac_cv_path_PERL+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940else
15941 case $PERL in
15942 [\\/]* | ?:[\\/]*)
15943 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15944 ;;
15945 *)
15946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15947for as_dir in $PATH
15948do
15949 IFS=$as_save_IFS
15950 test -z "$as_dir" && as_dir=.
15951 for ac_exec_ext in '' $ac_executable_extensions; do
15952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15953 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15955 break 2
15956 fi
15957done
15958done
15959
15960 ;;
15961esac
15962fi
15963PERL=$ac_cv_path_PERL
15964
15965if test -n "$PERL"; then
15966 echo "$as_me:$LINENO: result: $PERL" >&5
15967echo "${ECHO_T}$PERL" >&6
15968else
15969 echo "$as_me:$LINENO: result: no" >&5
15970echo "${ECHO_T}no" >&6
15971fi
15972
15973
15974 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
15975echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
15976 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
15977
15978 save_CFLAGS="$CFLAGS"
15979 save_LIBS="$LIBS"
15980 CFLAGS="$CFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
15981 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
15982 cat >conftest.$ac_ext <<_ACEOF
15983/* confdefs.h. */
15984_ACEOF
15985cat confdefs.h >>conftest.$ac_ext
15986cat >>conftest.$ac_ext <<_ACEOF
15987/* end confdefs.h. */
15988
15989#include <EXTERN.h>
15990#include <perl.h>
15991#include <XSUB.h>
15992
15993int
15994main ()
15995{
15996
15997 PerlInterpreter *perl = perl_alloc ();
15998
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext conftest$ac_exeext
16004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16005 (eval $ac_link) 2>conftest.er1
16006 ac_status=$?
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest$ac_exeext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 perl_link=yes
16025else
16026 echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029perl_link=no
16030fi
16031rm -f conftest.err conftest.$ac_objext \
16032 conftest$ac_exeext conftest.$ac_ext
16033 CXXFLAGS="$save_CFLAGS"
16034 LIBS="$save_LIBS"
16035
16036 if test x$perl_link = xyes; then
16037 echo "$as_me:$LINENO: result: ok" >&5
16038echo "${ECHO_T}ok" >&6
16039
16040cat >>confdefs.h <<\_ACEOF
16041#define ENABLE_PERL 1
16042_ACEOF
16043
16044 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
16045 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
16046 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
16047 PERL_PLUGIN=yes
16048 else
16049 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
16050echo "$as_me: error: no, unable to link" >&2;}
16051 { (exit 1); exit 1; }; }
16052 fi
16053 else
16054 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
16055echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
16056 { (exit 1); exit 1; }; }
16057 fi
16058fi
16059
16060
16061
16062
16063
16064
16065if test "x$PERL_PLUGIN" != "x"; then
16066 PERL_PLUGIN_TRUE=
16067 PERL_PLUGIN_FALSE='#'
16068else
16069 PERL_PLUGIN_TRUE='#'
16070 PERL_PLUGIN_FALSE=
16071fi
16072
16073
16074
16075 cat >conftest.$ac_ext <<_ACEOF
16076/* confdefs.h. */
16077_ACEOF
16078cat confdefs.h >>conftest.$ac_ext
16079cat >>conftest.$ac_ext <<_ACEOF
16080/* end confdefs.h. */
16081
16082#include <EXTERN.h>
16083#include <perl.h>
16084#include <XSUB.h>
16085
16086int
16087main ()
16088{
16089
16090 PerlInterpreter *perl = perl_alloc ();
16091
16092 ;
16093 return 0;
16094}
16095_ACEOF
16096rm -f conftest.$ac_objext conftest$ac_exeext
16097if { (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
16118else
16119 echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122rxvt_perl_link=no
16123fi
16124rm -f conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16126if test x$support_perl = xyes; then
16127 support_frills=yes
16128fi
26544 16129
26545############################################# 16130#############################################
26546# Plugin configuration 16131# Plugin configuration
26547echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16132echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26548echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16133echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26580 grep -v '^ *+' conftest.er1 >conftest.err 16165 grep -v '^ *+' conftest.er1 >conftest.err
26581 rm -f conftest.er1 16166 rm -f conftest.er1
26582 cat conftest.err >&5 16167 cat conftest.err >&5
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } && 16169 (exit $ac_status); } &&
26585 { ac_try='test -z "$ac_c_werror_flag" 16170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26586 || test ! -s conftest.err'
26587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588 (eval $ac_try) 2>&5 16172 (eval $ac_try) 2>&5
26589 ac_status=$? 16173 ac_status=$?
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); }; } && 16175 (exit $ac_status); }; } &&
26665 grep -v '^ *+' conftest.er1 >conftest.err 16249 grep -v '^ *+' conftest.er1 >conftest.err
26666 rm -f conftest.er1 16250 rm -f conftest.er1
26667 cat conftest.err >&5 16251 cat conftest.err >&5
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } && 16253 (exit $ac_status); } &&
26670 { ac_try='test -z "$ac_c_werror_flag" 16254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26671 || test ! -s conftest.err'
26672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26673 (eval $ac_try) 2>&5 16256 (eval $ac_try) 2>&5
26674 ac_status=$? 16257 ac_status=$?
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); }; } && 16259 (exit $ac_status); }; } &&
26822 grep -v '^ *+' conftest.er1 >conftest.err 16405 grep -v '^ *+' conftest.er1 >conftest.err
26823 rm -f conftest.er1 16406 rm -f conftest.er1
26824 cat conftest.err >&5 16407 cat conftest.err >&5
26825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826 (exit $ac_status); } && 16409 (exit $ac_status); } &&
26827 { ac_try='test -z "$ac_c_werror_flag" 16410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26828 || test ! -s conftest.err'
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5 16412 (eval $ac_try) 2>&5
26831 ac_status=$? 16413 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; } && 16415 (exit $ac_status); }; } &&
26974 grep -v '^ *+' conftest.er1 >conftest.err 16556 grep -v '^ *+' conftest.er1 >conftest.err
26975 rm -f conftest.er1 16557 rm -f conftest.er1
26976 cat conftest.err >&5 16558 cat conftest.err >&5
26977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978 (exit $ac_status); } && 16560 (exit $ac_status); } &&
26979 { ac_try='test -z "$ac_c_werror_flag" 16561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26980 || test ! -s conftest.err'
26981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982 (eval $ac_try) 2>&5 16563 (eval $ac_try) 2>&5
26983 ac_status=$? 16564 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; } && 16566 (exit $ac_status); }; } &&
27176 grep -v '^ *+' conftest.er1 >conftest.err 16757 grep -v '^ *+' conftest.er1 >conftest.err
27177 rm -f conftest.er1 16758 rm -f conftest.er1
27178 cat conftest.err >&5 16759 cat conftest.err >&5
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); } && 16761 (exit $ac_status); } &&
27181 { ac_try='test -z "$ac_c_werror_flag" 16762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27182 || test ! -s conftest.err'
27183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184 (eval $ac_try) 2>&5 16764 (eval $ac_try) 2>&5
27185 ac_status=$? 16765 ac_status=$?
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); }; } && 16767 (exit $ac_status); }; } &&
27262 grep -v '^ *+' conftest.er1 >conftest.err 16842 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1 16843 rm -f conftest.er1
27264 cat conftest.err >&5 16844 cat conftest.err >&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } && 16846 (exit $ac_status); } &&
27267 { ac_try='test -z "$ac_c_werror_flag" 16847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27268 || test ! -s conftest.err'
27269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27270 (eval $ac_try) 2>&5 16849 (eval $ac_try) 2>&5
27271 ac_status=$? 16850 ac_status=$?
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; } && 16852 (exit $ac_status); }; } &&
27324 grep -v '^ *+' conftest.er1 >conftest.err 16903 grep -v '^ *+' conftest.er1 >conftest.err
27325 rm -f conftest.er1 16904 rm -f conftest.er1
27326 cat conftest.err >&5 16905 cat conftest.err >&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } && 16907 (exit $ac_status); } &&
27329 { ac_try='test -z "$ac_c_werror_flag" 16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27330 || test ! -s conftest.err'
27331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332 (eval $ac_try) 2>&5 16910 (eval $ac_try) 2>&5
27333 ac_status=$? 16911 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; } && 16913 (exit $ac_status); }; } &&
27386 grep -v '^ *+' conftest.er1 >conftest.err 16964 grep -v '^ *+' conftest.er1 >conftest.err
27387 rm -f conftest.er1 16965 rm -f conftest.er1
27388 cat conftest.err >&5 16966 cat conftest.err >&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); } && 16968 (exit $ac_status); } &&
27391 { ac_try='test -z "$ac_c_werror_flag" 16969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27392 || test ! -s conftest.err'
27393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394 (eval $ac_try) 2>&5 16971 (eval $ac_try) 2>&5
27395 ac_status=$? 16972 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; } && 16974 (exit $ac_status); }; } &&
27528 PYTHON_PLUGIN_FALSE= 17105 PYTHON_PLUGIN_FALSE=
27529fi 17106fi
27530 17107
27531 17108
27532 17109
27533 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" 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"
27534cat >confcache <<\_ACEOF 17111cat >confcache <<\_ACEOF
27535# This file is a shell script that caches the results of configure 17112# This file is a shell script that caches the results of configure
27536# tests run on this system so they can be shared between configure 17113# tests run on this system so they can be shared between configure
27537# scripts and configure runs, see configure's option --config-cache. 17114# scripts and configure runs, see configure's option --config-cache.
27538# It is not useful on other systems. If it contains results you don't 17115# It is not useful on other systems. If it contains results you don't
27641Usually this means the macro was only invoked conditionally." >&5 17218Usually this means the macro was only invoked conditionally." >&5
27642echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 17219echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27643Usually this means the macro was only invoked conditionally." >&2;} 17220Usually this means the macro was only invoked conditionally." >&2;}
27644 { (exit 1); exit 1; }; } 17221 { (exit 1); exit 1; }; }
27645fi 17222fi
27646if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27647 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27648Usually this means the macro was only invoked conditionally." >&5
27649echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27650Usually this means the macro was only invoked conditionally." >&2;}
27651 { (exit 1); exit 1; }; }
27652fi
27653if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17223if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 17224 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27655Usually this means the macro was only invoked conditionally." >&5 17225Usually this means the macro was only invoked conditionally." >&5
27656echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 17226echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27657Usually this means the macro was only invoked conditionally." >&2;} 17227Usually this means the macro was only invoked conditionally." >&2;}
27659fi 17229fi
27660if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then 17230if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
27661 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined. 17231 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
27662Usually this means the macro was only invoked conditionally." >&5 17232Usually this means the macro was only invoked conditionally." >&5
27663echo "$as_me: error: conditional \"HAVE_X\" was never defined. 17233echo "$as_me: error: conditional \"HAVE_X\" was never defined.
17234Usually this means the macro was only invoked conditionally." >&2;}
17235 { (exit 1); exit 1; }; }
17236fi
17237if test -z "${PERL_PLUGIN_TRUE}" && test -z "${PERL_PLUGIN_FALSE}"; then
17238 { { echo "$as_me:$LINENO: error: conditional \"PERL_PLUGIN\" was never defined.
17239Usually this means the macro was only invoked conditionally." >&5
17240echo "$as_me: error: conditional \"PERL_PLUGIN\" was never defined.
27664Usually this means the macro was only invoked conditionally." >&2;} 17241Usually this means the macro was only invoked conditionally." >&2;}
27665 { (exit 1); exit 1; }; } 17242 { (exit 1); exit 1; }; }
27666fi 17243fi
27667if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then 17244if test -z "${HAVE_LIBDL_TRUE}" && test -z "${HAVE_LIBDL_FALSE}"; then
27668 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined. 17245 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDL\" was never defined.
27947## Running $as_me. ## 17524## Running $as_me. ##
27948_ASBOX 17525_ASBOX
27949} >&5 17526} >&5
27950cat >&5 <<_CSEOF 17527cat >&5 <<_CSEOF
27951 17528
27952This file was extended by crossfire $as_me 1.9.0, which was 17529This file was extended by crossfire $as_me 1.8.0, which was
27953generated by GNU Autoconf 2.59. Invocation command line was 17530generated by GNU Autoconf 2.59. Invocation command line was
27954 17531
27955 CONFIG_FILES = $CONFIG_FILES 17532 CONFIG_FILES = $CONFIG_FILES
27956 CONFIG_HEADERS = $CONFIG_HEADERS 17533 CONFIG_HEADERS = $CONFIG_HEADERS
27957 CONFIG_LINKS = $CONFIG_LINKS 17534 CONFIG_LINKS = $CONFIG_LINKS
28010Report bugs to <bug-autoconf@gnu.org>." 17587Report bugs to <bug-autoconf@gnu.org>."
28011_ACEOF 17588_ACEOF
28012 17589
28013cat >>$CONFIG_STATUS <<_ACEOF 17590cat >>$CONFIG_STATUS <<_ACEOF
28014ac_cs_version="\\ 17591ac_cs_version="\\
28015crossfire config.status 1.9.0 17592crossfire config.status 1.8.0
28016configured by $0, generated by GNU Autoconf 2.59, 17593configured by $0, generated by GNU Autoconf 2.59,
28017 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 17594 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28018 17595
28019Copyright (C) 2003 Free Software Foundation, Inc. 17596Copyright (C) 2003 Free Software Foundation, Inc.
28020This config.status script is free software; the Free Software Foundation 17597This config.status script is free software; the Free Software Foundation
28110# 17687#
28111# INIT-COMMANDS section. 17688# INIT-COMMANDS section.
28112# 17689#
28113 17690
28114AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17691AMDEP_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.
17696if test "X${CDPATH+set}" = Xset; then CDPATH=${ZSH_VERSION+.}:; export CDPATH; fi
17697
17698sed_quote_subst='$sed_quote_subst'
17699double_quote_subst='$double_quote_subst'
17700delay_variable_subst='$delay_variable_subst'
17701macro_version='`$echo "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17702macro_revision='`$echo "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17703enable_shared='`$echo "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17704enable_static='`$echo "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17705pic_mode='`$echo "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17706enable_fast_install='`$echo "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17707host_alias='`$echo "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17708host='`$echo "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17709SED='`$echo "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17710Xsed='`$echo "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17711GREP='`$echo "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17712EGREP='`$echo "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17713LD='`$echo "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17714reload_flag='`$echo "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17715reload_cmds='`$echo "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17716NM='`$echo "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17717LN_S='`$echo "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17718deplibs_check_method='`$echo "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17719file_magic_cmd='`$echo "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17720AR='`$echo "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17721AR_FLAGS='`$echo "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17722STRIP='`$echo "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17723RANLIB='`$echo "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17724old_postinstall_cmds='`$echo "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17725old_postuninstall_cmds='`$echo "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17726old_archive_cmds='`$echo "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17727lt_cv_sys_max_cmd_len='`$echo "X$lt_cv_sys_max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17728lt_cv_sys_global_symbol_pipe='`$echo "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17729lt_cv_sys_global_symbol_to_cdecl='`$echo "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17730lt_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"`'
17731ac_objext='`$echo "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17732exeext='`$echo "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17733objdir='`$echo "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17734CC='`$echo "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17735compiler='`$echo "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17736GCC='`$echo "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17737SHELL='`$echo "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17738echo='`$echo "X$echo" | $Xsed -e "$delay_single_quote_subst"`'
17739MAGIC_CMD='`$echo "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17740lt_prog_compiler_no_builtin_flag='`$echo "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17741lt_prog_compiler_wl='`$echo "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17742lt_prog_compiler_pic='`$echo "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17743lt_prog_compiler_static='`$echo "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17744lt_cv_prog_compiler_c_o='`$echo "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17745need_locks='`$echo "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17746libext='`$echo "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17747shrext_cmds='`$echo "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17748extract_expsyms_cmds='`$echo "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17749variables_saved_for_relink='`$echo "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17750archive_cmds_need_lc='`$echo "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17751enable_shared_with_static_runtimes='`$echo "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17752export_dynamic_flag_spec='`$echo "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17753whole_archive_flag_spec='`$echo "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17754old_archive_from_new_cmds='`$echo "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17755old_archive_from_expsyms_cmds='`$echo "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17756archive_cmds='`$echo "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17757archive_expsym_cmds='`$echo "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17758module_cmds='`$echo "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17759module_expsym_cmds='`$echo "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17760allow_undefined_flag='`$echo "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17761no_undefined_flag='`$echo "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17762hardcode_libdir_flag_spec='`$echo "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17763hardcode_libdir_flag_spec_ld='`$echo "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17764hardcode_libdir_separator='`$echo "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17765hardcode_direct='`$echo "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17766hardcode_minus_L='`$echo "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17767hardcode_shlibpath_var='`$echo "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17768hardcode_automatic='`$echo "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17769inherit_rpath='`$echo "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17770link_all_deplibs='`$echo "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17771fix_srcfile_path='`$echo "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17772always_export_symbols='`$echo "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17773export_symbols_cmds='`$echo "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17774exclude_expsyms='`$echo "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17775include_expsyms='`$echo "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17776need_lib_prefix='`$echo "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17777need_version='`$echo "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17778version_type='`$echo "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17779runpath_var='`$echo "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17780shlibpath_var='`$echo "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17781shlibpath_overrides_runpath='`$echo "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17782libname_spec='`$echo "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17783library_names_spec='`$echo "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17784soname_spec='`$echo "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17785postinstall_cmds='`$echo "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17786postuninstall_cmds='`$echo "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17787finish_cmds='`$echo "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17788finish_eval='`$echo "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17789hardcode_into_libs='`$echo "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17790sys_lib_search_path_spec='`$echo "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17791sys_lib_dlsearch_path_spec='`$echo "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17792hardcode_action='`$echo "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17793old_striplib='`$echo "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17794striplib='`$echo "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17795enable_dlopen='`$echo "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17796enable_dlopen_self='`$echo "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17797enable_dlopen_self_static='`$echo "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17798
17799LTCC='$LTCC'
17800compiler='$compiler_DEFAULT'
17801
17802# Quote evaled strings.
17803for 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\\"\\\`\\\\\\""
17805done
17806
17807# Double-quote double-evaled strings.
17808for 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\\"\\\`\\\\\\""
17810done
17811
17812# Fix-up fallback echo if it was mangled by the above quoting rules.
17813case \$lt_echo in
17814*'\\\$0 --fallback-echo"') lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17815 ;;
17816esac
17817
17818ac_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.
17822if test -n "\${ZSH_VERSION+set}" ; then
17823 setopt NO_GLOB_SUBST
17824fi
17825
17826
17827 PACKAGE='$PACKAGE'
17828 VERSION='$VERSION'
17829 TIMESTAMP='$TIMESTAMP'
17830 rm='$rm'
17831 ofile='$ofile'
17832
17833
17834
28115 17835
28116_ACEOF 17836_ACEOF
28117 17837
28118 17838
28119 17839
28151 "utils/crossloop.web" ) CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;; 17871 "utils/crossloop.web" ) CONFIG_FILES="$CONFIG_FILES utils/crossloop.web" ;;
28152 "utils/scores.pl" ) CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;; 17872 "utils/scores.pl" ) CONFIG_FILES="$CONFIG_FILES utils/scores.pl" ;;
28153 "utils/player_dl.pl" ) CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;; 17873 "utils/player_dl.pl" ) CONFIG_FILES="$CONFIG_FILES utils/player_dl.pl" ;;
28154 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 17874 "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
28155 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 17875 "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
17876 "plugins/cfperl/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfperl/Makefile" ;;
28156 "plugins/cfpython/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;; 17877 "plugins/cfpython/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/Makefile" ;;
28157 "plugins/cfpython/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfpython/include/Makefile" ;;
28158 "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;; 17878 "plugins/cfanim/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/Makefile" ;;
28159 "plugins/cfanim/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/cfanim/include/Makefile" ;;
28160 "plugins/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/Makefile" ;;
28161 "plugins/common/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/common/include/Makefile" ;;
28162 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;; 17879 "devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES devel/Makefile" ;;
28163 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17880 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17881 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28164 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; 17882 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
28165 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 17883 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28166echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 17884echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28167 { (exit 1); exit 1; }; };; 17885 { (exit 1); exit 1; }; };;
28168 esac 17886 esac
28270s,@am__tar@,$am__tar,;t t 17988s,@am__tar@,$am__tar,;t t
28271s,@am__untar@,$am__untar,;t t 17989s,@am__untar@,$am__untar,;t t
28272s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 17990s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
28273s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 17991s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
28274s,@MAINT@,$MAINT,;t t 17992s,@MAINT@,$MAINT,;t t
17993s,@LIBTOOL@,$LIBTOOL,;t t
28275s,@build@,$build,;t t 17994s,@build@,$build,;t t
28276s,@build_cpu@,$build_cpu,;t t 17995s,@build_cpu@,$build_cpu,;t t
28277s,@build_vendor@,$build_vendor,;t t 17996s,@build_vendor@,$build_vendor,;t t
28278s,@build_os@,$build_os,;t t 17997s,@build_os@,$build_os,;t t
28279s,@host@,$host,;t t 17998s,@host@,$host,;t t
28294s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 18013s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
28295s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 18014s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
28296s,@CCDEPMODE@,$CCDEPMODE,;t t 18015s,@CCDEPMODE@,$CCDEPMODE,;t t
28297s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 18016s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
28298s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 18017s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18018s,@SED@,$SED,;t t
28299s,@EGREP@,$EGREP,;t t 18019s,@EGREP@,$EGREP,;t t
18020s,@LD@,$LD,;t t
18021s,@NM@,$NM,;t t
28300s,@LN_S@,$LN_S,;t t 18022s,@LN_S@,$LN_S,;t t
28301s,@ECHO@,$ECHO,;t t
28302s,@AR@,$AR,;t t 18023s,@AR@,$AR,;t t
28303s,@ac_ct_AR@,$ac_ct_AR,;t t 18024s,@ac_ct_AR@,$ac_ct_AR,;t t
28304s,@RANLIB@,$RANLIB,;t t 18025s,@RANLIB@,$RANLIB,;t t
28305s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 18026s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18027s,@ECHO@,$ECHO,;t t
28306s,@CPP@,$CPP,;t t 18028s,@CPP@,$CPP,;t t
28307s,@CXX@,$CXX,;t t
28308s,@CXXFLAGS@,$CXXFLAGS,;t t
28309s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28310s,@CXXDEPMODE@,$CXXDEPMODE,;t t
28311s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
28312s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
28313s,@CXXCPP@,$CXXCPP,;t t
28314s,@F77@,$F77,;t t
28315s,@FFLAGS@,$FFLAGS,;t t
28316s,@ac_ct_F77@,$ac_ct_F77,;t t
28317s,@LIBTOOL@,$LIBTOOL,;t t
28318s,@LEX@,$LEX,;t t 18029s,@LEX@,$LEX,;t t
28319s,@LEXLIB@,$LEXLIB,;t t 18030s,@LEXLIB@,$LEXLIB,;t t
28320s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 18031s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
28321s,@LATEX@,$LATEX,;t t 18032s,@LATEX@,$LATEX,;t t
28322s,@GZIP@,$GZIP,;t t 18033s,@GZIP@,$GZIP,;t t
28339s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t 18050s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
28340s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t 18051s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
28341s,@X11LIBS@,$X11LIBS,;t t 18052s,@X11LIBS@,$X11LIBS,;t t
28342s,@pkgstatedir@,$pkgstatedir,;t t 18053s,@pkgstatedir@,$pkgstatedir,;t t
28343s,@pkgconfdir@,$pkgconfdir,;t t 18054s,@pkgconfdir@,$pkgconfdir,;t t
18055s,@PERLLIB@,$PERLLIB,;t t
18056s,@PERLFLAGS@,$PERLFLAGS,;t t
18057s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
18058s,@PERL_PLUGIN_TRUE@,$PERL_PLUGIN_TRUE,;t t
18059s,@PERL_PLUGIN_FALSE@,$PERL_PLUGIN_FALSE,;t t
18060s,@PERL_PLUGIN@,$PERL_PLUGIN,;t t
28344s,@HAVE_LIBDL_TRUE@,$HAVE_LIBDL_TRUE,;t t 18061s,@HAVE_LIBDL_TRUE@,$HAVE_LIBDL_TRUE,;t t
28345s,@HAVE_LIBDL_FALSE@,$HAVE_LIBDL_FALSE,;t t 18062s,@HAVE_LIBDL_FALSE@,$HAVE_LIBDL_FALSE,;t t
28346s,@PYTHON_LIB@,$PYTHON_LIB,;t t 18063s,@PYTHON_LIB@,$PYTHON_LIB,;t t
28347s,@PY_LIBS@,$PY_LIBS,;t t 18064s,@PY_LIBS@,$PY_LIBS,;t t
28348s,@PY_INCLUDES@,$PY_INCLUDES,;t t 18065s,@PY_INCLUDES@,$PY_INCLUDES,;t t
28514 case $INSTALL in 18231 case $INSTALL in
28515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18232 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28516 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 18233 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28517 esac 18234 esac
28518 18235
28519 if test x"$ac_file" != x-; then
28520 { echo "$as_me:$LINENO: creating $ac_file" >&5
28521echo "$as_me: creating $ac_file" >&6;}
28522 rm -f "$ac_file"
28523 fi
28524 # Let's still pretend it is `configure' which instantiates (i.e., don't 18236 # Let's still pretend it is `configure' which instantiates (i.e., don't
28525 # use $as_me), people would be surprised to read: 18237 # use $as_me), people would be surprised to read:
28526 # /* config.h. Generated by config.status. */ 18238 # /* config.h. Generated by config.status. */
28527 if test x"$ac_file" = x-; then 18239 if test x"$ac_file" = x-; then
28528 configure_input= 18240 configure_input=
28557echo "$as_me: error: cannot find input file: $f" >&2;} 18269echo "$as_me: error: cannot find input file: $f" >&2;}
28558 { (exit 1); exit 1; }; } 18270 { (exit 1); exit 1; }; }
28559 fi;; 18271 fi;;
28560 esac 18272 esac
28561 done` || { (exit 1); exit 1; } 18273 done` || { (exit 1); exit 1; }
18274
18275 if test x"$ac_file" != x-; then
18276 { echo "$as_me:$LINENO: creating $ac_file" >&5
18277echo "$as_me: creating $ac_file" >&6;}
18278 rm -f "$ac_file"
18279 fi
28562_ACEOF 18280_ACEOF
28563cat >>$CONFIG_STATUS <<_ACEOF 18281cat >>$CONFIG_STATUS <<_ACEOF
28564 sed "$ac_vpsub 18282 sed "$ac_vpsub
28565$extrasub 18283$extrasub
28566_ACEOF 18284_ACEOF
29030 # echo "creating $dirpart/$file" 18748 # echo "creating $dirpart/$file"
29031 echo '# dummy' > "$dirpart/$file" 18749 echo '# dummy' > "$dirpart/$file"
29032 done 18750 done
29033done 18751done
29034 ;; 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.
18801available_tags=""
18802
18803# ### BEGIN LIBTOOL CONFIG
18804
18805# Which release of libtool.m4 was used?
18806macro_version=$macro_version
18807macro_revision=$macro_revision
18808
18809# Whether or not to build shared libraries.
18810build_libtool_libs=$enable_shared
18811
18812# Whether or not to build static libraries.
18813build_old_libs=$enable_static
18814
18815# What type of objects to build.
18816pic_mode=$pic_mode
18817
18818# Whether or not to optimize for fast installation.
18819fast_install=$enable_fast_install
18820
18821# The host system.
18822host_alias=$host_alias
18823host=$host
18824
18825# A sed program that does not truncate output.
18826SED=$lt_SED
18827
18828# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18829Xsed="\$SED -e s/^X//"
18830
18831# A grep program that handles long line.
18832GREP=$lt_GREP
18833
18834# An ERE matcher.
18835EGREP=$lt_EGREP
18836
18837# How to create reloadable object files.
18838reload_flag=$lt_reload_flag
18839reload_cmds=$lt_reload_cmds
18840
18841# A BSD-compatible nm program.
18842NM=$lt_NM
18843
18844# Whether we need soft or hard links.
18845LN_S=$lt_LN_S
18846
18847# Method to check whether dependent libraries are shared objects.
18848deplibs_check_method=$lt_deplibs_check_method
18849
18850# Command to use when deplibs_check_method == "file_magic".
18851file_magic_cmd=$lt_file_magic_cmd
18852
18853# The archiver.
18854AR=$lt_AR
18855AR_FLAGS=$lt_AR_FLAGS
18856
18857# A symbol stripping program.
18858STRIP=$lt_STRIP
18859
18860# Commands used to install an old-style archive.
18861RANLIB=$lt_RANLIB
18862old_postinstall_cmds=$lt_old_postinstall_cmds
18863old_postuninstall_cmds=$lt_old_postuninstall_cmds
18864
18865# What is the maximum length of a command?
18866max_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.
18869global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18870
18871# Transform the output of nm in a proper C declaration.
18872global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18873
18874# Transform the output of nm in a C name address pair.
18875global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18876
18877# Object file suffix (normally "o").
18878objext=$ac_objext
18879
18880# Executable file suffix (normally "").
18881exeext=$exeext
18882
18883# The name of the directory that contains temporary libtool files.
18884objdir=$objdir
18885
18886# A C compiler.
18887LTCC=$lt_CC
18888
18889# Shell to use when invoking shell scripts.
18890SHELL=$lt_SHELL
18891
18892# An echo program that does not interpret backslashes.
18893echo=$lt_echo
18894
18895# Used to examine libraries when file_magic_cmd begins "file".
18896MAGIC_CMD=$MAGIC_CMD
18897
18898# Does compiler simultaneously support -c and -o options?
18899compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18900
18901# Must we lock files when doing compilation?
18902need_locks=$lt_need_locks
18903
18904# Old archive suffix (normally "a").
18905libext=$libext
18906
18907# Shared library suffix (normally ".so").
18908shrext_cmds=$lt_shrext_cmds
18909
18910# The commands to extract the exported symbol list from a shared archive.
18911extract_expsyms_cmds=$lt_extract_expsyms_cmds
18912
18913# Variables whose values should be saved in libtool wrapper scripts and
18914# restored at link time.
18915variables_saved_for_relink=$lt_variables_saved_for_relink
18916
18917# Do we need the "lib" prefix for modules?
18918need_lib_prefix=$need_lib_prefix
18919
18920# Do we need a version for libraries?
18921need_version=$need_version
18922
18923# Library versioning type.
18924version_type=$version_type
18925
18926# Shared library runtime path variable.
18927runpath_var=$runpath_var
18928
18929# Shared library path variable.
18930shlibpath_var=$shlibpath_var
18931
18932# Is shibpath searched before the hard-coded library search path?
18933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18934
18935# Format of library name prefix.
18936libname_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
18940library_names_spec=$lt_library_names_spec
18941
18942# The coded name of the library,if different from the real name.
18943soname_spec=$lt_soname_spec
18944
18945# Command to use after installation of a shared archive.
18946postinstall_cmds=$lt_postinstall_cmds
18947
18948# Command to use after uninstallation of a shared archive.
18949postuninstall_cmds=$lt_postuninstall_cmds
18950
18951# Commands used to finish a libtool library installation in a directory.
18952finish_cmds=$lt_finish_cmds
18953
18954# As "finish_cmds",except a single script fragment to be evaled but
18955# not shown.
18956finish_eval=$lt_finish_eval
18957
18958# Whether we should hardcode library paths into libraries.
18959hardcode_into_libs=$hardcode_into_libs
18960
18961# Compile-time system search path for libraries.
18962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18963
18964# Run-time system search path for libraries.
18965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18966
18967# Commands to strip libraries.
18968old_striplib=$lt_old_striplib
18969striplib=$lt_striplib
18970
18971# Whether dlopen is supported.
18972dlopen_support=$enable_dlopen
18973
18974# Whether dlopen of programs is supported.
18975dlopen_self=$enable_dlopen_self
18976
18977# Whether dlopen of statically linked programs is supported.
18978dlopen_self_static=$enable_dlopen_self_static
18979
18980
18981# The linker used to build libraries.
18982LD=$lt_LD
18983
18984# Commands used to build an old-style archive.
18985old_archive_cmds=$lt_old_archive_cmds
18986
18987# A language specific compiler.
18988CC=$lt_compiler
18989
18990# Is the compiler the GNU C compiler?
18991with_gcc=$GCC
18992
18993# Compiler flag to turn off builtin functions.
18994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18995
18996# How to pass a linker flag through the compiler.
18997wl=$lt_lt_prog_compiler_wl
18998
18999# Additional compiler flags for building library objects.
19000pic_flag=$lt_lt_prog_compiler_pic
19001
19002# Compiler flag to prevent dynamic linking.
19003link_static_flag=$lt_lt_prog_compiler_static
19004
19005# Whether or not to add -lc for building shared libraries.
19006build_libtool_need_lc=$archive_cmds_need_lc
19007
19008# Whether or not to disallow shared libs when runtime libs are static.
19009allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19010
19011# Compiler flag to allow reflexive dlopens.
19012export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19013
19014# Compiler flag to generate shared objects directly from archives.
19015whole_archive_flag_spec=$lt_whole_archive_flag_spec
19016
19017# Create an old-style archive from a shared archive.
19018old_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.
19021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19022
19023# Commands used to build a shared archive.
19024archive_cmds=$lt_archive_cmds
19025archive_expsym_cmds=$lt_archive_expsym_cmds
19026
19027# Commands used to build a loadable module if different from building
19028# a shared archive.
19029module_cmds=$lt_module_cmds
19030module_expsym_cmds=$lt_module_expsym_cmds
19031
19032# Flag that allows shared libraries with undefined symbols to be built.
19033allow_undefined_flag=$lt_allow_undefined_flag
19034
19035# Flag that enforces no undefined symbols.
19036no_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
19040hardcode_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.
19044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19045
19046# Whether we need a single "-rpath" flag with a separated argument.
19047hardcode_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.
19051hardcode_direct=$hardcode_direct
19052
19053# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19054# into the resulting binary.
19055hardcode_minus_L=$hardcode_minus_L
19056
19057# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19058# into the resulting binary.
19059hardcode_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.
19064hardcode_automatic=$hardcode_automatic
19065
19066# Set to yes if linker adds runtime paths of dependent libraries
19067# to runtime path list.
19068inherit_rpath=$inherit_rpath
19069
19070# Whether libtool must link a program against all its dependency libraries.
19071link_all_deplibs=$link_all_deplibs
19072
19073# Fix the shell variable $srcfile for the compiler.
19074fix_srcfile_path=$lt_fix_srcfile_path
19075
19076# Set to "yes" if exported symbols are required.
19077always_export_symbols=$always_export_symbols
19078
19079# The commands to list exported symbols.
19080export_symbols_cmds=$lt_export_symbols_cmds
19081
19082# Symbols that should not be listed in the preloaded symbols.
19083exclude_expsyms=$lt_exclude_expsyms
19084
19085# Symbols that must always be exported.
19086include_expsyms=$lt_include_expsyms
19087
19088# How to hardcode a shared library path into an executable.
19089hardcode_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.
19095if 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.
19105if test "X${COLLECT_NAMES+set}" != Xset; then
19106 COLLECT_NAMES=
19107 export COLLECT_NAMES
19108fi
19109_LT_EOF
19110 ;;
19111 esac
19112
19113
19114case $ac_aux_dir in
19115 $srcdir) ltmain=./ltmain.sh ;;
19116 $srcdir/*) ltmain=`expr "$ac_aux_dir" : "$srcdir/\(.*\)"`/ltmain.sh ;;
19117esac
19118test -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 ;;
29035 esac 19132 esac
29036done 19133done
29037_ACEOF 19134_ACEOF
29038 19135
29039cat >>$CONFIG_STATUS <<\_ACEOF 19136cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines