joachim99@14: # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- joachim99@2: ## Copyright 1996, 1997, 1998, 1999, 2000, 2001 joachim99@2: ## Free Software Foundation, Inc. joachim99@2: ## Originally by Gordon Matzigkeit , 1996 joachim99@2: ## joachim99@2: ## This program is free software; you can redistribute it and/or modify joachim99@2: ## it under the terms of the GNU General Public License as published by joachim99@2: ## the Free Software Foundation; either version 2 of the License, or joachim99@2: ## (at your option) any later version. joachim99@2: ## joachim99@2: ## This program is distributed in the hope that it will be useful, but joachim99@2: ## WITHOUT ANY WARRANTY; without even the implied warranty of joachim99@2: ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU joachim99@2: ## General Public License for more details. joachim99@2: ## joachim99@2: ## You should have received a copy of the GNU General Public License joachim99@2: ## along with this program; if not, write to the Free Software joachim99@2: ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. joachim99@2: ## joachim99@2: ## As a special exception to the GNU General Public License, if you joachim99@2: ## distribute this file as part of a program that contains a joachim99@2: ## configuration script generated by Autoconf, you may include it under joachim99@2: ## the same distribution terms that you use for the rest of that program. joachim99@2: joachim99@14: # serial 47 AC_PROG_LIBTOOL joachim99@14: joachim99@14: # AC_PROG_LIBTOOL joachim99@14: # --------------- joachim99@2: AC_DEFUN([AC_PROG_LIBTOOL], joachim99@2: [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl joachim99@2: dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX joachim99@2: dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. joachim99@2: AC_PROVIDE_IFELSE([AC_PROG_CXX], joachim99@2: [AC_LIBTOOL_CXX], joachim99@2: [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX joachim99@14: ])]) joachim99@2: joachim99@2: dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. joachim99@2: dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run joachim99@2: dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. joachim99@2: AC_PROVIDE_IFELSE([AC_PROG_GCJ], joachim99@2: [AC_LIBTOOL_GCJ], joachim99@2: [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], joachim99@14: [AC_LIBTOOL_GCJ], joachim99@14: [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], joachim99@14: [AC_LIBTOOL_GCJ], joachim99@14: [ifdef([AC_PROG_GCJ], joachim99@14: [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) joachim99@14: ifdef([A][M_PROG_GCJ], joachim99@14: [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) joachim99@14: ifdef([LT_AC_PROG_GCJ], joachim99@14: [define([LT_AC_PROG_GCJ], joachim99@14: defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) joachim99@14: ])])# AC_PROG_LIBTOOL joachim99@14: joachim99@14: joachim99@14: # _AC_PROG_LIBTOOL joachim99@14: # ---------------- joachim99@2: AC_DEFUN([_AC_PROG_LIBTOOL], joachim99@2: [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl joachim99@2: AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl joachim99@2: AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl joachim99@2: joachim99@2: # This can be used to rebuild libtool when needed joachim99@14: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" joachim99@2: joachim99@2: # Always use our own libtool. joachim99@14: LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' joachim99@2: AC_SUBST(LIBTOOL)dnl joachim99@2: joachim99@14: # Prevent multiple expansion joachim99@14: define([AC_PROG_LIBTOOL], []) joachim99@14: ])# _AC_PROG_LIBTOOL joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_SETUP joachim99@14: # ---------------- joachim99@2: AC_DEFUN([AC_LIBTOOL_SETUP], joachim99@14: [AC_PREREQ(2.50)dnl joachim99@2: AC_REQUIRE([AC_ENABLE_SHARED])dnl joachim99@2: AC_REQUIRE([AC_ENABLE_STATIC])dnl joachim99@2: AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl joachim99@2: AC_REQUIRE([AC_CANONICAL_HOST])dnl joachim99@2: AC_REQUIRE([AC_CANONICAL_BUILD])dnl joachim99@2: AC_REQUIRE([AC_PROG_CC])dnl joachim99@2: AC_REQUIRE([AC_PROG_LD])dnl joachim99@2: AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl joachim99@2: AC_REQUIRE([AC_PROG_NM])dnl joachim99@14: AC_REQUIRE([LT_AC_PROG_SED])dnl joachim99@14: joachim99@2: AC_REQUIRE([AC_PROG_LN_S])dnl joachim99@2: AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl joachim99@2: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! joachim99@2: AC_REQUIRE([AC_OBJEXT])dnl joachim99@2: AC_REQUIRE([AC_EXEEXT])dnl joachim99@2: dnl joachim99@2: joachim99@14: AC_LIBTOOL_SYS_MAX_CMD_LEN joachim99@14: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE joachim99@14: AC_LIBTOOL_OBJDIR joachim99@14: joachim99@14: AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl joachim99@14: _LT_AC_PROG_ECHO_BACKSLASH joachim99@14: joachim99@14: case $host_os in joachim99@14: aix3*) joachim99@14: # AIX sometimes has problems with the GCC collect2 program. For some joachim99@14: # reason, if we set the COLLECT_NAMES environment variable, the problems joachim99@14: # vanish in a puff of smoke. joachim99@14: if test "X${COLLECT_NAMES+set}" != Xset; then joachim99@14: COLLECT_NAMES= joachim99@14: export COLLECT_NAMES joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: # Sed substitution that helps us do robust quoting. It backslashifies joachim99@14: # metacharacters that are still active within double-quoted strings. joachim99@14: Xsed='sed -e s/^X//' joachim99@14: [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] joachim99@14: joachim99@14: # Same as above, but do not quote variable references. joachim99@14: [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] joachim99@14: joachim99@14: # Sed substitution to delay expansion of an escaped shell variable in a joachim99@14: # double_quote_subst'ed string. joachim99@14: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' joachim99@14: joachim99@14: # Sed substitution to avoid accidental globbing in evaled expressions joachim99@14: no_glob_subst='s/\*/\\\*/g' joachim99@14: joachim99@14: # Constants: joachim99@14: rm="rm -f" joachim99@14: joachim99@14: # Global variables: joachim99@14: default_ofile=libtool joachim99@14: can_build_shared=yes joachim99@14: joachim99@14: # All known linkers require a `.a' archive for static linking (except M$VC, joachim99@14: # which needs '.lib'). joachim99@14: libext=a joachim99@14: ltmain="$ac_aux_dir/ltmain.sh" joachim99@14: ofile="$default_ofile" joachim99@14: with_gnu_ld="$lt_cv_prog_gnu_ld" joachim99@14: joachim99@14: AC_CHECK_TOOL(RANLIB, ranlib, :) joachim99@14: AC_CHECK_TOOL(STRIP, strip, :) joachim99@14: joachim99@14: old_CC="$CC" joachim99@14: old_CFLAGS="$CFLAGS" joachim99@14: joachim99@14: # Set sane defaults for various variables joachim99@14: test -z "$AR" && AR=ar joachim99@14: test -z "$AR_FLAGS" && AR_FLAGS=cru joachim99@14: test -z "$AS" && AS=as joachim99@14: test -z "$CC" && CC=cc joachim99@14: test -z "$LTCC" && LTCC=$CC joachim99@14: test -z "$DLLTOOL" && DLLTOOL=dlltool joachim99@14: test -z "$LD" && LD=ld joachim99@14: test -z "$LN_S" && LN_S="ln -s" joachim99@14: test -z "$MAGIC_CMD" && MAGIC_CMD=file joachim99@14: test -z "$NM" && NM=nm joachim99@14: test -z "$SED" && SED=sed joachim99@14: test -z "$OBJDUMP" && OBJDUMP=objdump joachim99@14: test -z "$RANLIB" && RANLIB=: joachim99@14: test -z "$STRIP" && STRIP=: joachim99@14: test -z "$ac_objext" && ac_objext=o joachim99@14: joachim99@14: # Determine commands to create old-style static archives. joachim99@14: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' joachim99@14: old_postinstall_cmds='chmod 644 $oldlib' joachim99@14: old_postuninstall_cmds= joachim99@14: joachim99@14: if test -n "$RANLIB"; then joachim99@14: case $host_os in joachim99@14: openbsd*) joachim99@14: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" joachim99@14: ;; joachim99@14: *) joachim99@14: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" joachim99@14: ;; joachim99@14: esac joachim99@14: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" joachim99@14: fi joachim99@14: joachim99@2: # Only perform the check for file, if the check method requires it joachim99@2: case $deplibs_check_method in joachim99@2: file_magic*) joachim99@2: if test "$file_magic_cmd" = '$MAGIC_CMD'; then joachim99@2: AC_PATH_MAGIC joachim99@2: fi joachim99@2: ;; joachim99@2: esac joachim99@2: joachim99@14: ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) joachim99@2: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], joachim99@14: enable_win32_dll=yes, enable_win32_dll=no) joachim99@14: joachim99@14: AC_ARG_ENABLE([libtool-lock], joachim99@14: [AC_HELP_STRING([--disable-libtool-lock], joachim99@14: [avoid locking (might break parallel builds)])]) joachim99@14: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes joachim99@14: joachim99@14: AC_ARG_WITH([pic], joachim99@14: [AC_HELP_STRING([--with-pic], joachim99@14: [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], joachim99@14: [pic_mode="$withval"], joachim99@14: [pic_mode=default]) joachim99@14: test -z "$pic_mode" && pic_mode=default joachim99@14: joachim99@14: # Use C for the default configuration in the libtool script joachim99@14: tagname= joachim99@14: AC_LIBTOOL_LANG_C_CONFIG joachim99@14: _LT_AC_TAGCONFIG joachim99@14: ])# AC_LIBTOOL_SETUP joachim99@14: joachim99@14: joachim99@14: # _LT_AC_SYS_COMPILER joachim99@14: # ------------------- joachim99@14: AC_DEFUN([_LT_AC_SYS_COMPILER], joachim99@14: [AC_REQUIRE([AC_PROG_CC])dnl joachim99@14: joachim99@14: # If no C compiler was specified, use CC. joachim99@14: LTCC=${LTCC-"$CC"} joachim99@14: joachim99@14: # Allow CC to be a program name with arguments. joachim99@14: set dummy $CC joachim99@14: compiler="[$]2" joachim99@14: ])# _LT_AC_SYS_COMPILER joachim99@14: joachim99@14: joachim99@14: # _LT_AC_SYS_LIBPATH_AIX joachim99@14: # ---------------------- joachim99@14: # Links a minimal program and checks the executable joachim99@14: # for the system default hardcoded library path. In most cases, joachim99@14: # this is /usr/lib:/lib, but when the MPI compilers are used joachim99@14: # the location of the communication and MPI libs are included too. joachim99@14: # If we don't find anything, use the default library path according joachim99@14: # to the aix ld manual. joachim99@14: AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], joachim99@14: [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ joachim99@14: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } joachim99@14: }'` joachim99@14: # Check for a 64-bit object if we didn't find anything. joachim99@14: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } joachim99@14: }'`; fi],[]) joachim99@14: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi joachim99@14: ])# _LT_AC_SYS_LIBPATH_AIX joachim99@14: joachim99@14: joachim99@14: # _LT_AC_PROG_ECHO_BACKSLASH joachim99@14: # -------------------------- joachim99@14: # Add some code to the start of the generated configure script which joachim99@14: # will find an echo command which doesn't interpret backslashes. joachim99@14: AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], joachim99@14: [ifdef([AC_DIVERSION_NOTICE], joachim99@14: [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], joachim99@14: [AC_DIVERT_PUSH(NOTICE)]) joachim99@14: joachim99@14: # Check that we are running under the correct shell. joachim99@14: SHELL=${CONFIG_SHELL-/bin/sh} joachim99@14: joachim99@14: case X$ECHO in joachim99@14: X*--fallback-echo) joachim99@14: # Remove one level of quotation (which was required for Make). joachim99@14: ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: echo=${ECHO-echo} joachim99@14: if test "X[$]1" = X--no-reexec; then joachim99@14: # Discard the --no-reexec flag, and continue. joachim99@14: shift joachim99@14: elif test "X[$]1" = X--fallback-echo; then joachim99@14: # Avoid inline document here, it may be left over joachim99@14: : joachim99@14: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then joachim99@14: # Yippee, $echo works! joachim99@14: : joachim99@14: else joachim99@14: # Restart under the correct shell. joachim99@14: exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} joachim99@14: fi joachim99@14: joachim99@14: if test "X[$]1" = X--fallback-echo; then joachim99@14: # used as fallback echo joachim99@14: shift joachim99@14: cat </dev/null && joachim99@14: echo_test_string="`eval $cmd`" && joachim99@14: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null joachim99@14: then joachim99@14: break joachim99@14: fi joachim99@14: done joachim99@14: fi joachim99@14: joachim99@14: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && joachim99@14: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && joachim99@14: test "X$echo_testing_string" = "X$echo_test_string"; then joachim99@14: : joachim99@14: else joachim99@14: # The Solaris, AIX, and Digital Unix default echo programs unquote joachim99@14: # backslashes. This makes it impossible to quote backslashes using joachim99@14: # echo "$something" | sed 's/\\/\\\\/g' joachim99@14: # joachim99@14: # So, first we look for a working echo in the user's PATH. joachim99@14: joachim99@14: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR joachim99@14: for dir in $PATH /usr/ucb; do joachim99@14: IFS="$lt_save_ifs" joachim99@14: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && joachim99@14: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && joachim99@14: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && joachim99@14: test "X$echo_testing_string" = "X$echo_test_string"; then joachim99@14: echo="$dir/echo" joachim99@14: break joachim99@14: fi joachim99@14: done joachim99@14: IFS="$lt_save_ifs" joachim99@14: joachim99@14: if test "X$echo" = Xecho; then joachim99@14: # We didn't find a better echo, so look for alternatives. joachim99@14: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && joachim99@14: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && joachim99@14: test "X$echo_testing_string" = "X$echo_test_string"; then joachim99@14: # This shell has a builtin print -r that does the trick. joachim99@14: echo='print -r' joachim99@14: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && joachim99@14: test "X$CONFIG_SHELL" != X/bin/ksh; then joachim99@14: # If we have ksh, try running configure again with it. joachim99@14: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} joachim99@14: export ORIGINAL_CONFIG_SHELL joachim99@14: CONFIG_SHELL=/bin/ksh joachim99@14: export CONFIG_SHELL joachim99@14: exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} joachim99@14: else joachim99@14: # Try using printf. joachim99@14: echo='printf %s\n' joachim99@14: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && joachim99@14: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && joachim99@14: test "X$echo_testing_string" = "X$echo_test_string"; then joachim99@14: # Cool, printf works joachim99@14: : joachim99@14: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && joachim99@14: test "X$echo_testing_string" = 'X\t' && joachim99@14: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && joachim99@14: test "X$echo_testing_string" = "X$echo_test_string"; then joachim99@14: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL joachim99@14: export CONFIG_SHELL joachim99@14: SHELL="$CONFIG_SHELL" joachim99@14: export SHELL joachim99@14: echo="$CONFIG_SHELL [$]0 --fallback-echo" joachim99@14: elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && joachim99@14: test "X$echo_testing_string" = 'X\t' && joachim99@14: echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && joachim99@14: test "X$echo_testing_string" = "X$echo_test_string"; then joachim99@14: echo="$CONFIG_SHELL [$]0 --fallback-echo" joachim99@14: else joachim99@14: # maybe with a smaller string... joachim99@14: prev=: joachim99@14: joachim99@14: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do joachim99@14: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null joachim99@14: then joachim99@14: break joachim99@14: fi joachim99@14: prev="$cmd" joachim99@14: done joachim99@14: joachim99@14: if test "$prev" != 'sed 50q "[$]0"'; then joachim99@14: echo_test_string=`eval $prev` joachim99@14: export echo_test_string joachim99@14: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} joachim99@14: else joachim99@14: # Oops. We lost completely, so just stick with echo. joachim99@14: echo=echo joachim99@14: fi joachim99@14: fi joachim99@14: fi joachim99@14: fi joachim99@14: fi joachim99@14: fi joachim99@14: joachim99@14: # Copy echo and quote the copy suitably for passing to libtool from joachim99@14: # the Makefile, instead of quoting the original, which is used later. joachim99@14: ECHO=$echo joachim99@14: if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then joachim99@14: ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" joachim99@14: fi joachim99@14: joachim99@14: AC_SUBST(ECHO) joachim99@14: AC_DIVERT_POP joachim99@14: ])# _LT_AC_PROG_ECHO_BACKSLASH joachim99@14: joachim99@14: joachim99@14: # _LT_AC_LOCK joachim99@14: # ----------- joachim99@14: AC_DEFUN([_LT_AC_LOCK], joachim99@14: [AC_ARG_ENABLE([libtool-lock], joachim99@14: [AC_HELP_STRING([--disable-libtool-lock], joachim99@14: [avoid locking (might break parallel builds)])]) joachim99@14: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes joachim99@2: joachim99@2: # Some flags need to be propagated to the compiler or linker for good joachim99@2: # libtool support. joachim99@2: case $host in joachim99@14: ia64-*-hpux*) joachim99@14: # Find out which ABI we are using. joachim99@14: echo 'int i;' > conftest.$ac_ext joachim99@14: if AC_TRY_EVAL(ac_compile); then joachim99@14: case `/usr/bin/file conftest.$ac_objext` in joachim99@14: *ELF-32*) joachim99@14: HPUX_IA64_MODE="32" joachim99@14: ;; joachim99@14: *ELF-64*) joachim99@14: HPUX_IA64_MODE="64" joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: rm -rf conftest* joachim99@14: ;; joachim99@2: *-*-irix6*) joachim99@2: # Find out which ABI we are using. joachim99@2: echo '[#]line __oline__ "configure"' > conftest.$ac_ext joachim99@2: if AC_TRY_EVAL(ac_compile); then joachim99@2: case `/usr/bin/file conftest.$ac_objext` in joachim99@2: *32-bit*) joachim99@2: LD="${LD-ld} -32" joachim99@2: ;; joachim99@2: *N32*) joachim99@2: LD="${LD-ld} -n32" joachim99@2: ;; joachim99@2: *64-bit*) joachim99@2: LD="${LD-ld} -64" joachim99@2: ;; joachim99@2: esac joachim99@2: fi joachim99@2: rm -rf conftest* joachim99@2: ;; joachim99@2: joachim99@14: *-*-linux*) joachim99@14: # Test if the compiler is 64bit joachim99@14: echo 'int i;' > conftest.$ac_ext joachim99@14: if AC_TRY_EVAL(ac_compile); then joachim99@14: case `/usr/bin/file conftest.$ac_objext` in joachim99@14: *"ELF 32"*) joachim99@14: LINUX_64_MODE="32" joachim99@14: ;; joachim99@14: *"ELF 64"*) joachim99@14: LINUX_64_MODE="64" joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: rm -rf conftest* joachim99@14: ;; joachim99@14: joachim99@2: *-*-sco3.2v5*) joachim99@2: # On SCO OpenServer 5, we need -belf to get full-featured binaries. joachim99@2: SAVE_CFLAGS="$CFLAGS" joachim99@2: CFLAGS="$CFLAGS -belf" joachim99@2: AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, joachim99@14: [AC_LANG_PUSH(C) joachim99@2: AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) joachim99@14: AC_LANG_POP]) joachim99@2: if test x"$lt_cv_cc_needs_belf" != x"yes"; then joachim99@2: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf joachim99@2: CFLAGS="$SAVE_CFLAGS" joachim99@2: fi joachim99@2: ;; joachim99@2: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], joachim99@2: [*-*-cygwin* | *-*-mingw* | *-*-pw32*) joachim99@2: AC_CHECK_TOOL(DLLTOOL, dlltool, false) joachim99@2: AC_CHECK_TOOL(AS, as, false) joachim99@2: AC_CHECK_TOOL(OBJDUMP, objdump, false) joachim99@2: joachim99@2: # recent cygwin and mingw systems supply a stub DllMain which the user joachim99@2: # can override, but on older systems we have to supply one joachim99@2: AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, joachim99@2: [AC_TRY_LINK([], joachim99@2: [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); joachim99@2: DllMain (0, 0, 0);], joachim99@2: [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) joachim99@2: joachim99@2: case $host/$CC in joachim99@2: *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) joachim99@2: # old mingw systems require "-dll" to link a DLL, while more recent ones joachim99@2: # require "-mdll" joachim99@2: SAVE_CFLAGS="$CFLAGS" joachim99@2: CFLAGS="$CFLAGS -mdll" joachim99@2: AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, joachim99@2: [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) joachim99@2: CFLAGS="$SAVE_CFLAGS" ;; joachim99@2: *-*-cygwin* | *-*-pw32*) joachim99@2: # cygwin systems need to pass --dll to the linker, and not link joachim99@2: # crt.o which will require a WinMain@16 definition. joachim99@2: lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; joachim99@2: esac joachim99@2: ;; joachim99@2: ]) joachim99@2: esac joachim99@14: joachim99@14: need_locks="$enable_libtool_lock" joachim99@14: joachim99@14: ])# _LT_AC_LOCK joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, joachim99@14: # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) joachim99@14: # ---------------------------------------------------------------- joachim99@14: # Check whether the given compiler option works joachim99@14: AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], joachim99@14: [AC_CACHE_CHECK([$1], [$2], joachim99@14: [$2=no joachim99@14: ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) joachim99@14: save_CFLAGS="$CFLAGS" joachim99@14: CFLAGS="$CFLAGS $3" joachim99@14: echo "$lt_simple_compile_test_code" > conftest.$ac_ext joachim99@14: if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then joachim99@14: # The compiler can only warn and ignore the option if not recognized joachim99@14: # So say no if there are warnings joachim99@14: if test -s conftest.err; then joachim99@14: # Append any errors to the config.log. joachim99@14: cat conftest.err 1>&AS_MESSAGE_LOG_FD joachim99@14: else joachim99@14: $2=yes joachim99@14: fi joachim99@14: fi joachim99@14: $rm conftest* joachim99@14: CFLAGS="$save_CFLAGS" joachim99@2: ]) joachim99@2: joachim99@14: if test x"[$]$2" = xyes; then joachim99@14: ifelse([$5], , :, [$5]) joachim99@14: else joachim99@14: ifelse([$6], , :, [$6]) joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_COMPILER_OPTION joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, joachim99@14: # [ACTION-SUCCESS], [ACTION-FAILURE]) joachim99@14: # ------------------------------------------------------------ joachim99@14: # Check whether the given compiler option works joachim99@14: AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], joachim99@14: [AC_CACHE_CHECK([$1], [$2], joachim99@14: [$2=no joachim99@14: save_LDFLAGS="$LDFLAGS" joachim99@14: LDFLAGS="$LDFLAGS $3" joachim99@14: echo "$lt_simple_link_test_code" > conftest.$ac_ext joachim99@14: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then joachim99@14: # The compiler can only warn and ignore the option if not recognized joachim99@14: # So say no if there are warnings joachim99@14: if test -s conftest.err; then joachim99@14: # Append any errors to the config.log. joachim99@14: cat conftest.err 1>&AS_MESSAGE_LOG_FD joachim99@14: else joachim99@14: $2=yes joachim99@14: fi joachim99@14: fi joachim99@14: $rm conftest* joachim99@14: LDFLAGS="$save_LDFLAGS" joachim99@14: ]) joachim99@14: joachim99@14: if test x"[$]$2" = xyes; then joachim99@14: ifelse([$4], , :, [$4]) joachim99@14: else joachim99@14: ifelse([$5], , :, [$5]) joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_LINKER_OPTION joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_SYS_MAX_CMD_LEN joachim99@14: # -------------------------- joachim99@14: AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], joachim99@14: [# find the maximum length of command line arguments joachim99@14: AC_MSG_CHECKING([the maximum length of command line arguments]) joachim99@14: AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl joachim99@14: i=0 joachim99@14: testring="ABCD" joachim99@14: joachim99@14: case $host_os in joachim99@14: msdosdjgpp*) joachim99@14: # On DJGPP, this test can blow up pretty badly due to problems in libc joachim99@14: # (any single argument exceeding 2000 bytes causes a buffer overrun joachim99@14: # during glob expansion). Even if it were fixed, the result of this joachim99@14: # check would be larger than it should be. joachim99@14: lt_cv_sys_max_cmd_len=12288; # 12K is about right joachim99@14: ;; joachim99@14: joachim99@14: gnu*) joachim99@14: # Under GNU Hurd, this test is not required because there is joachim99@14: # no limit to the length of command line arguments. joachim99@14: # Libtool will interpret -1 as no limit whatsoever joachim99@14: lt_cv_sys_max_cmd_len=-1; joachim99@14: ;; joachim99@14: joachim99@14: *) joachim99@14: # If test is not a shell built-in, we'll probably end up computing a joachim99@14: # maximum length that is only half of the actual maximum length, but joachim99@14: # we can't tell. joachim99@14: while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ joachim99@14: = "XX$testring") >/dev/null 2>&1 && joachim99@14: new_result=`expr "X$testring" : ".*" 2>&1` && joachim99@14: lt_cv_sys_max_cmd_len=$new_result && joachim99@14: test $i != 17 # 1/2 MB should be enough joachim99@14: do joachim99@14: i=`expr $i + 1` joachim99@14: testring=$testring$testring joachim99@14: done joachim99@14: testring= joachim99@14: # Add a significant safety factor because C++ compilers can tack on massive joachim99@14: # amounts of additional arguments before passing them to the linker. joachim99@14: # It appears as though 1/2 is a usable value. joachim99@14: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` joachim99@14: ;; joachim99@14: esac joachim99@14: ]) joachim99@14: if test -n $lt_cv_sys_max_cmd_len ; then joachim99@14: AC_MSG_RESULT($lt_cv_sys_max_cmd_len) joachim99@14: else joachim99@14: AC_MSG_RESULT(none) joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_SYS_MAX_CMD_LEN joachim99@14: joachim99@14: joachim99@14: # _LT_AC_CHECK_DLFCN joachim99@14: # -------------------- joachim99@14: AC_DEFUN([_LT_AC_CHECK_DLFCN], joachim99@14: [AC_CHECK_HEADERS(dlfcn.h)dnl joachim99@14: ])# _LT_AC_CHECK_DLFCN joachim99@14: joachim99@14: joachim99@14: # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, joachim99@14: # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) joachim99@14: # ------------------------------------------------------------------ joachim99@14: AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], joachim99@14: [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl joachim99@14: if test "$cross_compiling" = yes; then : joachim99@14: [$4] joachim99@14: else joachim99@14: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 joachim99@14: lt_status=$lt_dlunknown joachim99@14: cat > conftest.$ac_ext < joachim99@14: #endif joachim99@14: joachim99@14: #include joachim99@14: joachim99@14: #ifdef RTLD_GLOBAL joachim99@14: # define LT_DLGLOBAL RTLD_GLOBAL joachim99@14: #else joachim99@14: # ifdef DL_GLOBAL joachim99@14: # define LT_DLGLOBAL DL_GLOBAL joachim99@14: # else joachim99@14: # define LT_DLGLOBAL 0 joachim99@14: # endif joachim99@14: #endif joachim99@14: joachim99@14: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we joachim99@14: find out it does not work in some platform. */ joachim99@14: #ifndef LT_DLLAZY_OR_NOW joachim99@14: # ifdef RTLD_LAZY joachim99@14: # define LT_DLLAZY_OR_NOW RTLD_LAZY joachim99@14: # else joachim99@14: # ifdef DL_LAZY joachim99@14: # define LT_DLLAZY_OR_NOW DL_LAZY joachim99@14: # else joachim99@14: # ifdef RTLD_NOW joachim99@14: # define LT_DLLAZY_OR_NOW RTLD_NOW joachim99@14: # else joachim99@14: # ifdef DL_NOW joachim99@14: # define LT_DLLAZY_OR_NOW DL_NOW joachim99@14: # else joachim99@14: # define LT_DLLAZY_OR_NOW 0 joachim99@14: # endif joachim99@14: # endif joachim99@14: # endif joachim99@14: # endif joachim99@14: #endif joachim99@14: joachim99@14: #ifdef __cplusplus joachim99@14: extern "C" void exit (int); joachim99@14: #endif joachim99@14: joachim99@14: void fnord() { int i=42;} joachim99@14: int main () joachim99@14: { joachim99@14: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); joachim99@14: int status = $lt_dlunknown; joachim99@14: joachim99@14: if (self) joachim99@14: { joachim99@14: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; joachim99@14: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; joachim99@14: /* dlclose (self); */ joachim99@14: } joachim99@14: joachim99@14: exit (status); joachim99@14: }] joachim99@14: EOF joachim99@14: if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then joachim99@14: (./conftest; exit; ) 2>/dev/null joachim99@14: lt_status=$? joachim99@14: case x$lt_status in joachim99@14: x$lt_dlno_uscore) $1 ;; joachim99@14: x$lt_dlneed_uscore) $2 ;; joachim99@14: x$lt_unknown|x*) $3 ;; joachim99@14: esac joachim99@14: else : joachim99@14: # compilation failed joachim99@14: $3 joachim99@14: fi joachim99@14: fi joachim99@14: rm -fr conftest* joachim99@14: ])# _LT_AC_TRY_DLOPEN_SELF joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_DLOPEN_SELF joachim99@14: # ------------------- joachim99@14: AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], joachim99@14: [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl joachim99@14: if test "x$enable_dlopen" != xyes; then joachim99@14: enable_dlopen=unknown joachim99@14: enable_dlopen_self=unknown joachim99@14: enable_dlopen_self_static=unknown joachim99@14: else joachim99@14: lt_cv_dlopen=no joachim99@14: lt_cv_dlopen_libs= joachim99@14: joachim99@14: case $host_os in joachim99@14: beos*) joachim99@14: lt_cv_dlopen="load_add_on" joachim99@14: lt_cv_dlopen_libs= joachim99@14: lt_cv_dlopen_self=yes joachim99@14: ;; joachim99@14: joachim99@14: cygwin* | mingw* | pw32*) joachim99@14: lt_cv_dlopen="LoadLibrary" joachim99@14: lt_cv_dlopen_libs= joachim99@14: ;; joachim99@14: joachim99@14: *) joachim99@14: AC_CHECK_FUNC([shl_load], joachim99@14: [lt_cv_dlopen="shl_load"], joachim99@14: [AC_CHECK_LIB([dld], [shl_load], joachim99@14: [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], joachim99@14: [AC_CHECK_FUNC([dlopen], joachim99@14: [lt_cv_dlopen="dlopen"], joachim99@14: [AC_CHECK_LIB([dl], [dlopen], joachim99@14: [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], joachim99@14: [AC_CHECK_LIB([svld], [dlopen], joachim99@14: [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], joachim99@14: [AC_CHECK_LIB([dld], [dld_link], joachim99@14: [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) joachim99@14: ]) joachim99@14: ]) joachim99@14: ]) joachim99@14: ]) joachim99@14: ]) joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: if test "x$lt_cv_dlopen" != xno; then joachim99@14: enable_dlopen=yes joachim99@14: else joachim99@14: enable_dlopen=no joachim99@14: fi joachim99@14: joachim99@14: case $lt_cv_dlopen in joachim99@14: dlopen) joachim99@14: save_CPPFLAGS="$CPPFLAGS" joachim99@14: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" joachim99@14: joachim99@14: save_LDFLAGS="$LDFLAGS" joachim99@14: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" joachim99@14: joachim99@14: save_LIBS="$LIBS" joachim99@14: LIBS="$lt_cv_dlopen_libs $LIBS" joachim99@14: joachim99@14: AC_CACHE_CHECK([whether a program can dlopen itself], joachim99@14: lt_cv_dlopen_self, [dnl joachim99@14: _LT_AC_TRY_DLOPEN_SELF( joachim99@14: lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, joachim99@14: lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) joachim99@14: ]) joachim99@14: joachim99@14: if test "x$lt_cv_dlopen_self" = xyes; then joachim99@14: LDFLAGS="$LDFLAGS $link_static_flag" joachim99@14: AC_CACHE_CHECK([whether a statically linked program can dlopen itself], joachim99@14: lt_cv_dlopen_self_static, [dnl joachim99@14: _LT_AC_TRY_DLOPEN_SELF( joachim99@14: lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, joachim99@14: lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) joachim99@14: ]) joachim99@14: fi joachim99@14: joachim99@14: CPPFLAGS="$save_CPPFLAGS" joachim99@14: LDFLAGS="$save_LDFLAGS" joachim99@14: LIBS="$save_LIBS" joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: case $lt_cv_dlopen_self in joachim99@14: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; joachim99@14: *) enable_dlopen_self=unknown ;; joachim99@14: esac joachim99@14: joachim99@14: case $lt_cv_dlopen_self_static in joachim99@14: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; joachim99@14: *) enable_dlopen_self_static=unknown ;; joachim99@14: esac joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_DLOPEN_SELF joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) joachim99@14: # --------------------------------- joachim99@14: # Check to see if options -c and -o are simultaneously supported by compiler joachim99@14: AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], joachim99@14: [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl joachim99@14: AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], joachim99@14: [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], joachim99@14: [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no joachim99@14: $rm -r conftest 2>/dev/null joachim99@14: mkdir conftest joachim99@14: cd conftest joachim99@14: mkdir out joachim99@14: ifelse([$1],[],[save_CFLAGS="$CFLAGS" joachim99@14: CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"], joachim99@14: [$1],[CXX],[save_CXXFLAGS="$CXXFLAGS" joachim99@14: CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"], joachim99@14: [$1],[GCJ],[save_GCJFLAGS="$GCJFLAGS" joachim99@14: GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"]) joachim99@14: echo "$lt_simple_compile_test_code" > conftest.$ac_ext joachim99@14: joachim99@14: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers joachim99@14: # that will create temporary files in the current directory regardless of joachim99@14: # the output directory. Thus, making CWD read-only will cause this test joachim99@14: # to fail, enabling locking or at least warning the user not to do parallel joachim99@14: # builds. joachim99@14: chmod -w . joachim99@14: joachim99@14: if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext joachim99@14: then joachim99@14: # The compiler can only warn and ignore the option if not recognized joachim99@14: # So say no if there are warnings joachim99@14: if test -s out/conftest.err; then joachim99@14: # Append any errors to the config.log. joachim99@14: cat out/conftest.err 1>&AS_MESSAGE_LOG_FD joachim99@14: else joachim99@14: _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes joachim99@14: fi joachim99@14: fi joachim99@14: ifelse([$1],[],[CFLAGS="$save_CFLAGS"], joachim99@14: [$1],[CXX],[CXXFLAGS="$save_CXXFLAGS"], joachim99@14: [$1],[GCJ],[GCJFLAGS="$save_GCJFLAGS"]) joachim99@14: chmod u+w . joachim99@14: $rm conftest* out/* joachim99@14: rmdir out joachim99@14: cd .. joachim99@14: rmdir conftest joachim99@14: $rm conftest* joachim99@14: ]) joachim99@14: ])# AC_LIBTOOL_PROG_CC_C_O joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) joachim99@14: # ----------------------------------------- joachim99@14: # Check to see if we can do hard links to lock some files if needed joachim99@14: AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], joachim99@14: [AC_REQUIRE([_LT_AC_LOCK])dnl joachim99@14: joachim99@14: hard_links="nottested" joachim99@14: if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then joachim99@14: # do not overwrite the value of need_locks provided by the user joachim99@14: AC_MSG_CHECKING([if we can lock with hard links]) joachim99@14: hard_links=yes joachim99@14: $rm conftest* joachim99@14: ln conftest.a conftest.b 2>/dev/null && hard_links=no joachim99@14: touch conftest.a joachim99@14: ln conftest.a conftest.b 2>&5 || hard_links=no joachim99@14: ln conftest.a conftest.b 2>/dev/null && hard_links=no joachim99@14: AC_MSG_RESULT([$hard_links]) joachim99@14: if test "$hard_links" = no; then joachim99@14: AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) joachim99@14: need_locks=warn joachim99@14: fi joachim99@14: else joachim99@14: need_locks=no joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_OBJDIR joachim99@14: # ----------------- joachim99@14: AC_DEFUN([AC_LIBTOOL_OBJDIR], joachim99@14: [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], joachim99@14: [rm -f .libs 2>/dev/null joachim99@14: mkdir .libs 2>/dev/null joachim99@14: if test -d .libs; then joachim99@14: lt_cv_objdir=.libs joachim99@14: else joachim99@14: # MS-DOS does not allow filenames that begin with a dot. joachim99@14: lt_cv_objdir=_libs joachim99@14: fi joachim99@14: rmdir .libs 2>/dev/null]) joachim99@14: objdir=$lt_cv_objdir joachim99@14: ])# AC_LIBTOOL_OBJDIR joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) joachim99@14: # ---------------------------------------------- joachim99@14: # Check hardcoding attributes. joachim99@14: AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], joachim99@14: [AC_MSG_CHECKING([how to hardcode library paths into programs]) joachim99@14: _LT_AC_TAGVAR(hardcode_action, $1)= joachim99@14: if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ joachim99@14: test -n "$_LT_AC_TAGVAR(runpath_var $1)"; then joachim99@14: joachim99@14: # We can hardcode non-existant directories. joachim99@14: if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && joachim99@14: # If the only mechanism to avoid hardcoding is shlibpath_var, we joachim99@14: # have to relink, otherwise we might link with an installed library joachim99@14: # when we should be linking with a yet-to-be-installed one joachim99@14: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && joachim99@14: test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then joachim99@14: # Linking always hardcodes the temporary library directory. joachim99@14: _LT_AC_TAGVAR(hardcode_action, $1)=relink joachim99@14: else joachim99@14: # We can link without hardcoding, and we can hardcode nonexisting dirs. joachim99@14: _LT_AC_TAGVAR(hardcode_action, $1)=immediate joachim99@14: fi joachim99@14: else joachim99@14: # We cannot hardcode anything, or else we can only hardcode existing joachim99@14: # directories. joachim99@14: _LT_AC_TAGVAR(hardcode_action, $1)=unsupported joachim99@14: fi joachim99@14: AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) joachim99@14: joachim99@14: if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then joachim99@14: # Fast installation is not supported joachim99@14: enable_fast_install=no joachim99@14: elif test "$shlibpath_overrides_runpath" = yes || joachim99@14: test "$enable_shared" = no; then joachim99@14: # Fast installation is not necessary joachim99@14: enable_fast_install=needless joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_SYS_LIB_STRIP joachim99@14: # ------------------------ joachim99@14: AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], joachim99@14: [striplib= joachim99@14: old_striplib= joachim99@14: AC_MSG_CHECKING([whether stripping libraries is possible]) joachim99@14: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then joachim99@14: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" joachim99@14: test -z "$striplib" && striplib="$STRIP --strip-unneeded" joachim99@14: AC_MSG_RESULT([yes]) joachim99@14: else joachim99@14: AC_MSG_RESULT([no]) joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_SYS_LIB_STRIP joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_SYS_DYNAMIC_LINKER joachim99@14: # ----------------------------- joachim99@14: # PORTME Fill in your ld.so characteristics joachim99@14: AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], joachim99@14: [AC_MSG_CHECKING([dynamic linker characteristics]) joachim99@14: library_names_spec= joachim99@14: libname_spec='lib$name' joachim99@14: soname_spec= joachim99@14: postinstall_cmds= joachim99@14: postuninstall_cmds= joachim99@14: finish_cmds= joachim99@14: finish_eval= joachim99@14: shlibpath_var= joachim99@14: shlibpath_overrides_runpath=unknown joachim99@14: version_type=none joachim99@14: dynamic_linker="$host_os ld.so" joachim99@14: sys_lib_dlsearch_path_spec="/lib /usr/lib" joachim99@14: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" joachim99@14: need_lib_prefix=unknown joachim99@14: hardcode_into_libs=no joachim99@14: joachim99@14: # when you set need_version to no, make sure it does not cause -set_version joachim99@14: # flags to be left without arguments joachim99@14: need_version=unknown joachim99@14: joachim99@14: case $host_os in joachim99@14: aix3*) joachim99@14: version_type=linux joachim99@14: library_names_spec='${libname}${release}.so$versuffix $libname.a' joachim99@14: shlibpath_var=LIBPATH joachim99@14: joachim99@14: # AIX 3 has no versioning support, so we append a major version to the name. joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: ;; joachim99@14: joachim99@14: aix4* | aix5*) joachim99@14: version_type=linux joachim99@14: hardcode_into_libs=yes joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # AIX 5 supports IA64 joachim99@14: library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: else joachim99@14: # With GCC up to 2.95.x, collect2 would create an import file joachim99@14: # for dependence libraries. The import file would start with joachim99@14: # the line `#! .'. This would cause the generated library to joachim99@14: # depend on `.', always an invalid library. This was fixed in joachim99@14: # development snapshots of GCC prior to 3.0. joachim99@14: case $host_os in joachim99@14: aix4 | aix4.[[01]] | aix4.[[01]].*) joachim99@14: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' joachim99@14: echo ' yes ' joachim99@14: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then joachim99@14: : joachim99@14: else joachim99@14: can_build_shared=no joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct joachim99@14: # soname into executable. Probably we can add versioning support to joachim99@14: # collect2, so additional links can be useful in future. joachim99@14: if test "$aix_use_runtimelinking" = yes; then joachim99@14: # If using run time linking (on AIX 4.2 or later) use lib.so joachim99@14: # instead of lib.a to let people know that these are not joachim99@14: # typical AIX shared libraries. joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: else joachim99@14: # We preserve .a as extension for shared libraries through AIX4.2 joachim99@14: # and later when we are not doing run time linking. joachim99@14: library_names_spec='${libname}${release}.a $libname.a' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: fi joachim99@14: shlibpath_var=LIBPATH joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: amigaos*) joachim99@14: library_names_spec='$libname.ixlibrary $libname.a' joachim99@14: # Create ${libname}_ixlibrary.a entries in /sys/libs. joachim99@14: 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' joachim99@14: ;; joachim99@14: joachim99@14: beos*) joachim99@14: library_names_spec='${libname}.so' joachim99@14: dynamic_linker="$host_os ld.so" joachim99@14: shlibpath_var=LIBRARY_PATH joachim99@14: ;; joachim99@14: joachim99@14: bsdi4*) joachim99@14: version_type=linux joachim99@14: need_version=no joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" joachim99@14: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" joachim99@14: # the default ld.so.conf also contains /usr/contrib/lib and joachim99@14: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow joachim99@14: # libtool to hard-code these into programs joachim99@14: ;; joachim99@14: joachim99@14: cygwin* | mingw* | pw32*) joachim99@14: version_type=windows joachim99@14: need_version=no joachim99@14: need_lib_prefix=no joachim99@14: case $GCC,$host_os in joachim99@14: yes,cygwin*) joachim99@14: library_names_spec='$libname.dll.a' joachim99@14: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" joachim99@14: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' joachim99@14: postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ joachim99@14: dldir=$destdir/`dirname \$dlpath`~ joachim99@14: test -d \$dldir || mkdir -p \$dldir~ joachim99@14: $install_prog .libs/$dlname \$dldir/$dlname' joachim99@14: postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ joachim99@14: dlpath=$dir/\$dldll~ joachim99@14: $rm \$dlpath' joachim99@14: ;; joachim99@14: yes,mingw*) joachim99@14: library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' joachim99@14: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` joachim99@14: if echo "$sys_lib_search_path_spec" | [egrep ';[C-Z]:/' >/dev/null]; then joachim99@14: # It is most probably a Windows format PATH printed by joachim99@14: # mingw gcc, but we are running on Cygwin. Gcc prints its search joachim99@14: # path with ; separators, and with drive letters. We can handle the joachim99@14: # drive letters (cygwin fileutils understands them), so leave them, joachim99@14: # especially as we might pass files found there to a mingw objdump, joachim99@14: # which wouldn't understand a cygwinified path. Ahh. joachim99@14: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` joachim99@14: else joachim99@14: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` joachim99@14: fi joachim99@14: ;; joachim99@14: yes,pw32*) joachim99@14: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' joachim99@14: ;; joachim99@14: *) joachim99@14: library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' joachim99@14: ;; joachim99@14: esac joachim99@14: dynamic_linker='Win32 ld.exe' joachim99@14: # FIXME: first we should search . and the directory the executable is in joachim99@14: shlibpath_var=PATH joachim99@14: ;; joachim99@14: joachim99@14: darwin* | rhapsody*) joachim99@14: dynamic_linker="$host_os dyld" joachim99@14: version_type=darwin joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: # FIXME: Relying on posixy $() will cause problems for joachim99@14: # cross-compilation, but unfortunately the echo tests do not joachim99@14: # yet detect zsh echo's removal of \ escapes. joachim99@14: library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' joachim99@14: soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: shlibpath_var=DYLD_LIBRARY_PATH joachim99@14: ;; joachim99@14: joachim99@14: dgux*) joachim99@14: version_type=linux joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: ;; joachim99@14: joachim99@14: freebsd1*) joachim99@14: dynamic_linker=no joachim99@14: ;; joachim99@14: joachim99@14: freebsd*) joachim99@14: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` joachim99@14: version_type=freebsd-$objformat joachim99@14: case $version_type in joachim99@14: freebsd-elf*) joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' joachim99@14: need_version=no joachim99@14: need_lib_prefix=no joachim99@14: ;; joachim99@14: freebsd-*) joachim99@14: library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' joachim99@14: need_version=yes joachim99@14: ;; joachim99@14: esac joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: case $host_os in joachim99@14: freebsd2*) joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: ;; joachim99@14: freebsd3.[01]* | freebsdelf3.[01]*) joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: hardcode_into_libs=yes joachim99@14: ;; joachim99@14: *) # from 3.2 on joachim99@14: shlibpath_overrides_runpath=no joachim99@14: hardcode_into_libs=yes joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: joachim99@14: gnu*) joachim99@14: version_type=linux joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: hardcode_into_libs=yes joachim99@14: ;; joachim99@14: joachim99@14: hpux9* | hpux10* | hpux11*) joachim99@14: # Give a soname corresponding to the major version so that dld.sl refuses to joachim99@14: # link against other versions. joachim99@14: version_type=sunos joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: hardcode_into_libs=yes joachim99@14: dynamic_linker="$host_os dld.so" joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: if test "X$HPUX_IA64_MODE" = X32; then joachim99@14: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" joachim99@14: else joachim99@14: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" joachim99@14: fi joachim99@14: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec joachim99@14: else joachim99@14: dynamic_linker="$host_os dld.sl" joachim99@14: shlibpath_var=SHLIB_PATH joachim99@14: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH joachim99@14: library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' joachim99@14: soname_spec='${libname}${release}.sl$major' joachim99@14: fi joachim99@14: # HP-UX runs *really* slowly unless shared libraries are mode 555. joachim99@14: postinstall_cmds='chmod 555 $lib' joachim99@14: ;; joachim99@14: joachim99@14: irix5* | irix6* | nonstopux*) joachim99@14: case $host_os in joachim99@14: nonstopux*) version_type=nonstopux ;; joachim99@14: *) version_type=irix ;; joachim99@14: esac joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' joachim99@14: case $host_os in joachim99@14: irix5* | nonstopux*) joachim99@14: libsuff= shlibsuff= joachim99@14: ;; joachim99@14: *) joachim99@14: case $LD in # libtool.m4 will add one of these switches to LD joachim99@14: *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; joachim99@14: *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; joachim99@14: *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; joachim99@14: *) libsuff= shlibsuff= libmagic=never-match;; joachim99@14: esac joachim99@14: ;; joachim99@14: esac joachim99@14: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH joachim99@14: shlibpath_overrides_runpath=no joachim99@14: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" joachim99@14: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" joachim99@14: ;; joachim99@14: joachim99@14: # No shared lib support for Linux oldld, aout, or coff. joachim99@14: linux*oldld* | linux*aout* | linux*coff*) joachim99@14: dynamic_linker=no joachim99@14: ;; joachim99@14: joachim99@14: # This must be Linux ELF. joachim99@14: linux*) joachim99@14: version_type=linux joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' joachim99@14: libsuff= joachim99@14: if test "x$LINUX_64_MODE" = x64; then joachim99@14: # Some platforms are per default 64-bit, so there's no /lib64 joachim99@14: if test -d /lib64; then joachim99@14: libsuff=64 joachim99@14: fi joachim99@14: fi joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: shlibpath_overrides_runpath=no joachim99@14: sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" joachim99@14: sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" joachim99@14: # This implies no fast_install, which is unacceptable. joachim99@14: # Some rework will be needed to allow for fast_install joachim99@14: # before this can be enabled. joachim99@14: hardcode_into_libs=yes joachim99@14: joachim99@14: # We used to test for /lib/ld.so.1 and disable shared libraries on joachim99@14: # powerpc, because MkLinux only supported shared libraries with the joachim99@14: # GNU dynamic linker. Since this was broken with cross compilers, joachim99@14: # most powerpc-linux boxes support dynamic linking these days and joachim99@14: # people can always --disable-shared, the test was removed, and we joachim99@14: # assume the GNU/Linux dynamic linker is in use. joachim99@14: dynamic_linker='GNU/Linux ld.so' joachim99@14: ;; joachim99@14: joachim99@14: netbsd*) joachim99@14: version_type=sunos joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' joachim99@14: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' joachim99@14: dynamic_linker='NetBSD (a.out) ld.so' joachim99@14: else joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: dynamic_linker='NetBSD ld.elf_so' joachim99@14: fi joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: hardcode_into_libs=yes joachim99@14: ;; joachim99@14: joachim99@14: newsos6) joachim99@14: version_type=linux joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: ;; joachim99@14: joachim99@14: nto-qnx) joachim99@14: version_type=linux joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: ;; joachim99@14: joachim99@14: openbsd*) joachim99@14: version_type=sunos joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' joachim99@14: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then joachim99@14: case $host_os in joachim99@14: openbsd2.[[89]] | openbsd2.[[89]].*) joachim99@14: shlibpath_overrides_runpath=no joachim99@14: ;; joachim99@14: *) joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: ;; joachim99@14: esac joachim99@14: else joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: os2*) joachim99@14: libname_spec='$name' joachim99@14: need_lib_prefix=no joachim99@14: library_names_spec='$libname.dll $libname.a' joachim99@14: dynamic_linker='OS/2 ld.exe' joachim99@14: shlibpath_var=LIBPATH joachim99@14: ;; joachim99@14: joachim99@14: osf3* | osf4* | osf5*) joachim99@14: version_type=osf joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: soname_spec='${libname}${release}.so' joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" joachim99@14: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" joachim99@14: ;; joachim99@14: joachim99@14: sco3.2v5*) joachim99@14: version_type=osf joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: ;; joachim99@14: joachim99@14: solaris*) joachim99@14: version_type=linux joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: hardcode_into_libs=yes joachim99@14: # ldd complains unless libraries are executable joachim99@14: postinstall_cmds='chmod +x $lib' joachim99@14: ;; joachim99@14: joachim99@14: sunos4*) joachim99@14: version_type=sunos joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' joachim99@14: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: shlibpath_overrides_runpath=yes joachim99@14: if test "$with_gnu_ld" = yes; then joachim99@14: need_lib_prefix=no joachim99@14: fi joachim99@14: need_version=yes joachim99@14: ;; joachim99@14: joachim99@14: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) joachim99@14: version_type=linux joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: case $host_vendor in joachim99@14: sni) joachim99@14: shlibpath_overrides_runpath=no joachim99@14: ;; joachim99@14: motorola) joachim99@14: need_lib_prefix=no joachim99@14: need_version=no joachim99@14: shlibpath_overrides_runpath=no joachim99@14: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: joachim99@14: sysv4*MP*) joachim99@14: if test -d /usr/nec ;then joachim99@14: version_type=linux joachim99@14: library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' joachim99@14: soname_spec='$libname.so.$major' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: uts4*) joachim99@14: version_type=linux joachim99@14: library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' joachim99@14: soname_spec='${libname}${release}.so$major' joachim99@14: shlibpath_var=LD_LIBRARY_PATH joachim99@14: ;; joachim99@14: joachim99@14: *) joachim99@14: dynamic_linker=no joachim99@14: ;; joachim99@14: esac joachim99@14: AC_MSG_RESULT([$dynamic_linker]) joachim99@14: test "$dynamic_linker" = no && can_build_shared=no joachim99@14: ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER joachim99@14: joachim99@14: joachim99@14: # _LT_AC_TAGCONFIG joachim99@14: # ---------------- joachim99@14: AC_DEFUN([_LT_AC_TAGCONFIG], joachim99@14: [AC_ARG_WITH([tags], joachim99@14: [AC_HELP_STRING([--with-tags=TAGS], joachim99@14: [include additional configurations @<:@CXX,GCJ@:>@])], joachim99@14: [tagnames="$withval"], joachim99@14: [tagnames="CXX,GCJ" joachim99@14: case $host_os in joachim99@14: mingw*|cygwin*) tagnames="$tagnames,RC" ;; joachim99@14: esac]) joachim99@14: joachim99@14: if test -f "$ltmain" && test -n "$tagnames"; then joachim99@14: if test ! -f "${ofile}"; then joachim99@14: AC_MSG_WARN([output file `$ofile' does not exist]) joachim99@14: fi joachim99@14: joachim99@14: if test -z "$LTCC"; then joachim99@14: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" joachim99@14: if test -z "$LTCC"; then joachim99@14: AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) joachim99@14: else joachim99@14: AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) joachim99@14: fi joachim99@14: fi joachim99@14: joachim99@14: # Extract list of available tagged configurations in $ofile. joachim99@14: # Note that this assumes the entire list is on one line. joachim99@14: available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` joachim99@14: joachim99@14: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," joachim99@14: for tagname in $tagnames; do joachim99@14: IFS="$lt_save_ifs" joachim99@14: # Check whether tagname contains only valid characters joachim99@14: case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in joachim99@14: "") ;; joachim99@14: *) AC_MSG_ERROR([invalid tag name: $tagname]) joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null joachim99@14: then joachim99@14: AC_MSG_ERROR([tag name \"$tagname\" already exists]) joachim99@14: fi joachim99@14: joachim99@14: # Update the list of available tags. joachim99@14: if test -n "$tagname"; then joachim99@14: echo appending configuration tag \"$tagname\" to $ofile joachim99@14: joachim99@14: case $tagname in joachim99@14: CXX) joachim99@14: AC_LIBTOOL_LANG_CXX_CONFIG joachim99@14: ;; joachim99@14: joachim99@14: GCJ) joachim99@14: AC_LIBTOOL_LANG_GCJ_CONFIG joachim99@14: ;; joachim99@14: joachim99@14: RC) joachim99@14: AC_LIBTOOL_LANG_RC_CONFIG joachim99@14: ;; joachim99@14: joachim99@14: *) joachim99@14: AC_MSG_ERROR([Unsupported tag name: $tagname]) joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: # Append the new tag name to the list of available tags. joachim99@14: available_tags="$available_tags $tagname" joachim99@14: fi joachim99@14: done joachim99@14: IFS="$lt_save_ifs" joachim99@14: joachim99@14: # Now substitute the updated list of available tags. joachim99@14: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then joachim99@14: mv "${ofile}T" "$ofile" joachim99@14: chmod +x "$ofile" joachim99@14: else joachim99@14: rm -f "${ofile}T" joachim99@14: AC_MSG_ERROR([unable to update list of available tagged configurations.]) joachim99@14: fi joachim99@14: fi joachim99@14: ])# _LT_AC_TAGCONFIG joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_DLOPEN joachim99@14: # ----------------- joachim99@14: # enable checks for dlopen support joachim99@14: AC_DEFUN([AC_LIBTOOL_DLOPEN], joachim99@14: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) joachim99@14: ])# AC_LIBTOOL_DLOPEN joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_WIN32_DLL joachim99@14: # -------------------- joachim99@14: # declare package support for building win32 dll's joachim99@14: AC_DEFUN([AC_LIBTOOL_WIN32_DLL], joachim99@14: [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) joachim99@14: ])# AC_LIBTOOL_WIN32_DLL joachim99@14: joachim99@14: joachim99@14: # AC_ENABLE_SHARED([DEFAULT]) joachim99@14: # --------------------------- joachim99@14: # implement the --enable-shared flag joachim99@14: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. joachim99@2: AC_DEFUN([AC_ENABLE_SHARED], joachim99@2: [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl joachim99@14: AC_ARG_ENABLE([shared], joachim99@14: [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], joachim99@14: [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], joachim99@14: [p=${PACKAGE-default} joachim99@14: case $enableval in joachim99@14: yes) enable_shared=yes ;; joachim99@14: no) enable_shared=no ;; joachim99@14: *) joachim99@14: enable_shared=no joachim99@14: # Look at the argument we got. We use all the common list separators. joachim99@14: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," joachim99@14: for pkg in $enableval; do joachim99@14: IFS="$lt_save_ifs" joachim99@14: if test "X$pkg" = "X$p"; then joachim99@14: enable_shared=yes joachim99@14: fi joachim99@14: done joachim99@14: IFS="$lt_save_ifs" joachim99@14: ;; joachim99@14: esac], joachim99@14: [enable_shared=]AC_ENABLE_SHARED_DEFAULT) joachim99@14: ])# AC_ENABLE_SHARED joachim99@14: joachim99@14: joachim99@14: # AC_DISABLE_SHARED joachim99@14: # ----------------- joachim99@14: #- set the default shared flag to --disable-shared joachim99@14: AC_DEFUN([AC_DISABLE_SHARED], joachim99@14: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl joachim99@14: AC_ENABLE_SHARED(no) joachim99@14: ])# AC_DISABLE_SHARED joachim99@14: joachim99@14: joachim99@14: # AC_ENABLE_STATIC([DEFAULT]) joachim99@14: # --------------------------- joachim99@14: # implement the --enable-static flag joachim99@14: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. joachim99@2: AC_DEFUN([AC_ENABLE_STATIC], joachim99@2: [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl joachim99@14: AC_ARG_ENABLE([static], joachim99@14: [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], joachim99@14: [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], joachim99@14: [p=${PACKAGE-default} joachim99@14: case $enableval in joachim99@14: yes) enable_static=yes ;; joachim99@14: no) enable_static=no ;; joachim99@14: *) joachim99@14: enable_static=no joachim99@14: # Look at the argument we got. We use all the common list separators. joachim99@14: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," joachim99@14: for pkg in $enableval; do joachim99@14: IFS="$lt_save_ifs" joachim99@14: if test "X$pkg" = "X$p"; then joachim99@14: enable_static=yes joachim99@14: fi joachim99@14: done joachim99@14: IFS="$lt_save_ifs" joachim99@14: ;; joachim99@14: esac], joachim99@14: [enable_static=]AC_ENABLE_STATIC_DEFAULT) joachim99@14: ])# AC_ENABLE_STATIC joachim99@14: joachim99@14: joachim99@14: # AC_DISABLE_STATIC joachim99@14: # ----------------- joachim99@14: # set the default static flag to --disable-static joachim99@2: AC_DEFUN([AC_DISABLE_STATIC], joachim99@2: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl joachim99@14: AC_ENABLE_STATIC(no) joachim99@14: ])# AC_DISABLE_STATIC joachim99@14: joachim99@14: joachim99@14: # AC_ENABLE_FAST_INSTALL([DEFAULT]) joachim99@14: # --------------------------------- joachim99@14: # implement the --enable-fast-install flag joachim99@14: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. joachim99@2: AC_DEFUN([AC_ENABLE_FAST_INSTALL], joachim99@2: [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl joachim99@14: AC_ARG_ENABLE([fast-install], joachim99@14: [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], joachim99@14: [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], joachim99@14: [p=${PACKAGE-default} joachim99@14: case $enableval in joachim99@14: yes) enable_fast_install=yes ;; joachim99@14: no) enable_fast_install=no ;; joachim99@14: *) joachim99@14: enable_fast_install=no joachim99@14: # Look at the argument we got. We use all the common list separators. joachim99@14: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," joachim99@14: for pkg in $enableval; do joachim99@14: IFS="$lt_save_ifs" joachim99@14: if test "X$pkg" = "X$p"; then joachim99@14: enable_fast_install=yes joachim99@14: fi joachim99@14: done joachim99@14: IFS="$lt_save_ifs" joachim99@14: ;; joachim99@14: esac], joachim99@14: [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) joachim99@14: ])# AC_ENABLE_FAST_INSTALL joachim99@14: joachim99@14: joachim99@14: # AC_DISABLE_FAST_INSTALL joachim99@14: # ----------------------- joachim99@14: # set the default to --disable-fast-install joachim99@2: AC_DEFUN([AC_DISABLE_FAST_INSTALL], joachim99@2: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl joachim99@14: AC_ENABLE_FAST_INSTALL(no) joachim99@14: ])# AC_DISABLE_FAST_INSTALL joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_PICMODE([MODE]) joachim99@14: # -------------------------- joachim99@14: # implement the --with-pic flag joachim99@14: # MODE is either `yes' or `no'. If omitted, it defaults to `both'. joachim99@2: AC_DEFUN([AC_LIBTOOL_PICMODE], joachim99@2: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl joachim99@14: pic_mode=ifelse($#,1,$1,default) joachim99@14: ])# AC_LIBTOOL_PICMODE joachim99@14: joachim99@14: joachim99@14: # AC_PATH_TOOL_PREFIX joachim99@14: # ------------------- joachim99@14: # find a file program which can recognise shared library joachim99@2: AC_DEFUN([AC_PATH_TOOL_PREFIX], joachim99@2: [AC_MSG_CHECKING([for $1]) joachim99@2: AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, joachim99@2: [case $MAGIC_CMD in joachim99@14: [[\\/*] | ?:[\\/]*]) joachim99@2: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. joachim99@2: ;; joachim99@14: *) joachim99@14: lt_save_MAGIC_CMD="$MAGIC_CMD" joachim99@14: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR joachim99@2: dnl $ac_dummy forces splitting on constant user-supplied paths. joachim99@2: dnl POSIX.2 word splitting is done only on the output of word expansions, joachim99@2: dnl not every word. This closes a longstanding sh security hole. joachim99@2: ac_dummy="ifelse([$2], , $PATH, [$2])" joachim99@2: for ac_dir in $ac_dummy; do joachim99@14: IFS="$lt_save_ifs" joachim99@2: test -z "$ac_dir" && ac_dir=. joachim99@2: if test -f $ac_dir/$1; then joachim99@2: lt_cv_path_MAGIC_CMD="$ac_dir/$1" joachim99@2: if test -n "$file_magic_test_file"; then joachim99@2: case $deplibs_check_method in joachim99@2: "file_magic "*) joachim99@2: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" joachim99@2: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" joachim99@2: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | joachim99@2: egrep "$file_magic_regex" > /dev/null; then joachim99@2: : joachim99@2: else joachim99@2: cat <&2 joachim99@2: joachim99@2: *** Warning: the command libtool uses to detect shared libraries, joachim99@2: *** $file_magic_cmd, produces output that libtool cannot recognize. joachim99@2: *** The result is that libtool may fail to recognize shared libraries joachim99@2: *** as such. This will affect the creation of libtool libraries that joachim99@2: *** depend on shared libraries, but programs linked with such libtool joachim99@2: *** libraries will work regardless of this problem. Nevertheless, you joachim99@2: *** may want to report the problem to your system manager and/or to joachim99@2: *** bug-libtool@gnu.org joachim99@2: joachim99@2: EOF joachim99@2: fi ;; joachim99@2: esac joachim99@2: fi joachim99@2: break joachim99@2: fi joachim99@2: done joachim99@14: IFS="$lt_save_ifs" joachim99@14: MAGIC_CMD="$lt_save_MAGIC_CMD" joachim99@2: ;; joachim99@2: esac]) joachim99@2: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" joachim99@2: if test -n "$MAGIC_CMD"; then joachim99@2: AC_MSG_RESULT($MAGIC_CMD) joachim99@2: else joachim99@2: AC_MSG_RESULT(no) joachim99@2: fi joachim99@14: ])# AC_PATH_TOOL_PREFIX joachim99@14: joachim99@14: joachim99@14: # AC_PATH_MAGIC joachim99@14: # ------------- joachim99@14: # find a file program which can recognise a shared library joachim99@2: AC_DEFUN([AC_PATH_MAGIC], joachim99@14: [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) joachim99@2: if test -z "$lt_cv_path_MAGIC_CMD"; then joachim99@2: if test -n "$ac_tool_prefix"; then joachim99@14: AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) joachim99@2: else joachim99@2: MAGIC_CMD=: joachim99@2: fi joachim99@2: fi joachim99@14: ])# AC_PATH_MAGIC joachim99@14: joachim99@14: joachim99@14: # AC_PROG_LD joachim99@14: # ---------- joachim99@14: # find the path to the GNU or non-GNU linker joachim99@2: AC_DEFUN([AC_PROG_LD], joachim99@14: [AC_ARG_WITH([gnu-ld], joachim99@14: [AC_HELP_STRING([--with-gnu-ld], joachim99@14: [assume the C compiler uses GNU ld @<:@default=no@:>@])], joachim99@14: [test "$withval" = no || with_gnu_ld=yes], joachim99@14: [with_gnu_ld=no]) joachim99@2: AC_REQUIRE([AC_PROG_CC])dnl joachim99@2: AC_REQUIRE([AC_CANONICAL_HOST])dnl joachim99@2: AC_REQUIRE([AC_CANONICAL_BUILD])dnl joachim99@2: ac_prog=ld joachim99@2: if test "$GCC" = yes; then joachim99@2: # Check if gcc -print-prog-name=ld gives a path. joachim99@2: AC_MSG_CHECKING([for ld used by GCC]) joachim99@2: case $host in joachim99@2: *-*-mingw*) joachim99@2: # gcc leaves a trailing carriage return which upsets mingw joachim99@2: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; joachim99@2: *) joachim99@2: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; joachim99@2: esac joachim99@2: case $ac_prog in joachim99@2: # Accept absolute paths. joachim99@14: [[\\/]]* | ?:[[\\/]]*) joachim99@14: re_direlt='/[[^/]][[^/]]*/\.\./' joachim99@2: # Canonicalize the path of ld joachim99@2: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` joachim99@2: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do joachim99@2: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` joachim99@2: done joachim99@2: test -z "$LD" && LD="$ac_prog" joachim99@2: ;; joachim99@2: "") joachim99@2: # If it fails, then pretend we aren't using GCC. joachim99@2: ac_prog=ld joachim99@2: ;; joachim99@2: *) joachim99@2: # If it is relative, then search for the first ld in PATH. joachim99@2: with_gnu_ld=unknown joachim99@2: ;; joachim99@2: esac joachim99@2: elif test "$with_gnu_ld" = yes; then joachim99@2: AC_MSG_CHECKING([for GNU ld]) joachim99@2: else joachim99@2: AC_MSG_CHECKING([for non-GNU ld]) joachim99@2: fi joachim99@2: AC_CACHE_VAL(lt_cv_path_LD, joachim99@2: [if test -z "$LD"; then joachim99@14: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR joachim99@2: for ac_dir in $PATH; do joachim99@14: IFS="$lt_save_ifs" joachim99@2: test -z "$ac_dir" && ac_dir=. joachim99@2: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then joachim99@2: lt_cv_path_LD="$ac_dir/$ac_prog" joachim99@2: # Check to see if the program is GNU ld. I'd rather use --version, joachim99@2: # but apparently some GNU ld's only accept -v. joachim99@2: # Break only if it was the GNU/non-GNU ld that we prefer. joachim99@2: if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then joachim99@2: test "$with_gnu_ld" != no && break joachim99@2: else joachim99@2: test "$with_gnu_ld" != yes && break joachim99@2: fi joachim99@2: fi joachim99@2: done joachim99@14: IFS="$lt_save_ifs" joachim99@2: else joachim99@2: lt_cv_path_LD="$LD" # Let the user override the test with a path. joachim99@2: fi]) joachim99@2: LD="$lt_cv_path_LD" joachim99@2: if test -n "$LD"; then joachim99@2: AC_MSG_RESULT($LD) joachim99@2: else joachim99@2: AC_MSG_RESULT(no) joachim99@2: fi joachim99@2: test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) joachim99@2: AC_PROG_LD_GNU joachim99@14: ])# AC_PROG_LD joachim99@14: joachim99@14: joachim99@14: # AC_PROG_LD_GNU joachim99@14: # -------------- joachim99@2: AC_DEFUN([AC_PROG_LD_GNU], joachim99@2: [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, joachim99@2: [# I'd rather use --version here, but apparently some GNU ld's only accept -v. joachim99@2: if $LD -v 2>&1 &5; then joachim99@2: lt_cv_prog_gnu_ld=yes joachim99@2: else joachim99@2: lt_cv_prog_gnu_ld=no joachim99@2: fi]) joachim99@2: with_gnu_ld=$lt_cv_prog_gnu_ld joachim99@14: ])# AC_PROG_LD_GNU joachim99@14: joachim99@14: joachim99@14: # AC_PROG_LD_RELOAD_FLAG joachim99@14: # ---------------------- joachim99@14: # find reload flag for linker joachim99@2: # -- PORTME Some linkers may need a different reload flag. joachim99@2: AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], joachim99@14: [AC_CACHE_CHECK([for $LD option to reload object files], joachim99@14: lt_cv_ld_reload_flag, joachim99@14: [lt_cv_ld_reload_flag='-r']) joachim99@2: reload_flag=$lt_cv_ld_reload_flag joachim99@14: case $reload_flag in joachim99@14: "" | " "*) ;; joachim99@14: *) reload_flag=" $reload_flag" ;; joachim99@14: esac joachim99@14: reload_cmds='$LD$reload_flag -o $output$reload_objs' joachim99@14: ])# AC_PROG_LD_RELOAD_FLAG joachim99@14: joachim99@14: joachim99@14: # AC_DEPLIBS_CHECK_METHOD joachim99@14: # ----------------------- joachim99@14: # how to check for library dependencies joachim99@2: # -- PORTME fill in with the dynamic library characteristics joachim99@2: AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], joachim99@2: [AC_CACHE_CHECK([how to recognise dependant libraries], joachim99@2: lt_cv_deplibs_check_method, joachim99@2: [lt_cv_file_magic_cmd='$MAGIC_CMD' joachim99@2: lt_cv_file_magic_test_file= joachim99@2: lt_cv_deplibs_check_method='unknown' joachim99@2: # Need to set the preceding variable on all platforms that support joachim99@2: # interlibrary dependencies. joachim99@2: # 'none' -- dependencies not supported. joachim99@2: # `unknown' -- same as none, but documents that we really don't know. joachim99@2: # 'pass_all' -- all dependencies passed with no checks. joachim99@2: # 'test_compile' -- check by making test program. joachim99@14: # 'file_magic [[regex]]' -- check by looking for files in library path joachim99@2: # which responds to the $file_magic_cmd with a given egrep regex. joachim99@2: # If you have `file' or equivalent on your system and you're not sure joachim99@2: # whether `pass_all' will *always* work, you probably want this one. joachim99@2: joachim99@2: case $host_os in joachim99@14: aix4* | aix5*) joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: ;; joachim99@2: joachim99@2: beos*) joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: ;; joachim99@2: joachim99@2: bsdi4*) joachim99@14: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' joachim99@2: lt_cv_file_magic_cmd='/usr/bin/file -L' joachim99@2: lt_cv_file_magic_test_file=/shlib/libc.so joachim99@2: ;; joachim99@2: joachim99@14: cygwin* | mingw* | pw32*) joachim99@2: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' joachim99@2: lt_cv_file_magic_cmd='$OBJDUMP -f' joachim99@2: ;; joachim99@2: joachim99@2: darwin* | rhapsody*) joachim99@2: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' joachim99@2: lt_cv_file_magic_cmd='/usr/bin/file -L' joachim99@2: case "$host_os" in joachim99@14: rhapsody* | darwin1.[[012]]) joachim99@14: lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` joachim99@2: ;; joachim99@2: *) # Darwin 1.3 on joachim99@2: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' joachim99@2: ;; joachim99@2: esac joachim99@2: ;; joachim99@2: joachim99@14: freebsd*) joachim99@2: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then joachim99@2: case $host_cpu in joachim99@2: i*86 ) joachim99@2: # Not sure whether the presence of OpenBSD here was a mistake. joachim99@2: # Let's accept both of them until this is cleared up. joachim99@14: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' joachim99@2: lt_cv_file_magic_cmd=/usr/bin/file joachim99@2: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` joachim99@2: ;; joachim99@2: esac joachim99@2: else joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: fi joachim99@2: ;; joachim99@2: joachim99@2: gnu*) joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: ;; joachim99@2: joachim99@14: hpux10.20* | hpux11*) joachim99@2: lt_cv_file_magic_cmd=/usr/bin/file joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' joachim99@14: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so joachim99@14: else joachim99@14: lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' joachim99@14: lt_cv_file_magic_test_file=/usr/lib/libc.sl joachim99@14: fi joachim99@2: ;; joachim99@2: joachim99@14: irix5* | irix6* | nonstopux*) joachim99@2: case $host_os in joachim99@14: irix5* | nonstopux*) joachim99@2: # this will be overridden with pass_all, but let us keep it just in case joachim99@2: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" joachim99@2: ;; joachim99@2: *) joachim99@2: case $LD in joachim99@2: *-32|*"-32 ") libmagic=32-bit;; joachim99@2: *-n32|*"-n32 ") libmagic=N32;; joachim99@2: *-64|*"-64 ") libmagic=64-bit;; joachim99@2: *) libmagic=never-match;; joachim99@2: esac joachim99@2: # this will be overridden with pass_all, but let us keep it just in case joachim99@14: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" joachim99@2: ;; joachim99@2: esac joachim99@2: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: ;; joachim99@2: joachim99@2: # This must be Linux ELF. joachim99@14: linux*) joachim99@2: case $host_cpu in joachim99@14: alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* ) joachim99@14: lt_cv_deplibs_check_method=pass_all ;; joachim99@14: # the debian people say, arm and glibc 2.3.1 works for them with pass_all joachim99@14: arm* ) joachim99@2: lt_cv_deplibs_check_method=pass_all ;; joachim99@2: *) joachim99@2: # glibc up to 2.1.1 does not perform some relocations on ARM joachim99@14: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; joachim99@2: esac joachim99@2: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` joachim99@2: ;; joachim99@2: joachim99@2: netbsd*) joachim99@2: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then joachim99@14: lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' joachim99@2: else joachim99@14: lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' joachim99@2: fi joachim99@2: ;; joachim99@2: joachim99@14: newos6*) joachim99@14: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' joachim99@2: lt_cv_file_magic_cmd=/usr/bin/file joachim99@2: lt_cv_file_magic_test_file=/usr/lib/libnls.so joachim99@2: ;; joachim99@2: joachim99@14: nto-qnx) joachim99@14: lt_cv_deplibs_check_method=unknown joachim99@14: ;; joachim99@14: joachim99@14: openbsd*) joachim99@14: lt_cv_file_magic_cmd=/usr/bin/file joachim99@14: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` joachim99@14: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then joachim99@14: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' joachim99@14: else joachim99@14: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@2: osf3* | osf4* | osf5*) joachim99@2: # this will be overridden with pass_all, but let us keep it just in case joachim99@2: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' joachim99@2: lt_cv_file_magic_test_file=/shlib/libc.so joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: ;; joachim99@2: joachim99@2: sco3.2v5*) joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: ;; joachim99@2: joachim99@2: solaris*) joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: lt_cv_file_magic_test_file=/lib/libc.so joachim99@2: ;; joachim99@2: joachim99@2: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) joachim99@2: case $host_vendor in joachim99@14: motorola) joachim99@14: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' joachim99@14: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` joachim99@14: ;; joachim99@2: ncr) joachim99@2: lt_cv_deplibs_check_method=pass_all joachim99@2: ;; joachim99@14: sequent) joachim99@14: lt_cv_file_magic_cmd='/bin/file' joachim99@14: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' joachim99@14: ;; joachim99@14: sni) joachim99@14: lt_cv_file_magic_cmd='/bin/file' joachim99@14: lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" joachim99@14: lt_cv_file_magic_test_file=/lib/libc.so joachim99@2: ;; joachim99@2: esac joachim99@2: ;; joachim99@14: joachim99@14: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) joachim99@14: lt_cv_deplibs_check_method=pass_all joachim99@14: ;; joachim99@2: esac joachim99@2: ]) joachim99@2: file_magic_cmd=$lt_cv_file_magic_cmd joachim99@2: deplibs_check_method=$lt_cv_deplibs_check_method joachim99@14: test -z "$deplibs_check_method" && deplibs_check_method=unknown joachim99@14: ])# AC_DEPLIBS_CHECK_METHOD joachim99@14: joachim99@14: joachim99@14: # AC_PROG_NM joachim99@14: # ---------- joachim99@14: # find the path to a BSD-compatible name lister joachim99@2: AC_DEFUN([AC_PROG_NM], joachim99@14: [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, joachim99@2: [if test -n "$NM"; then joachim99@2: # Let the user override the test. joachim99@2: lt_cv_path_NM="$NM" joachim99@2: else joachim99@14: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR joachim99@2: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do joachim99@14: IFS="$lt_save_ifs" joachim99@2: test -z "$ac_dir" && ac_dir=. joachim99@14: tmp_nm="$ac_dir/${ac_tool_prefix}nm" joachim99@14: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then joachim99@2: # Check to see if the nm accepts a BSD-compat flag. joachim99@2: # Adding the `sed 1q' prevents false positives on HP-UX, which says: joachim99@2: # nm: unknown option "B" ignored joachim99@2: # Tru64's nm complains that /dev/null is an invalid object file joachim99@14: if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then joachim99@2: lt_cv_path_NM="$tmp_nm -B" joachim99@2: break joachim99@14: elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then joachim99@2: lt_cv_path_NM="$tmp_nm -p" joachim99@2: break joachim99@2: else joachim99@2: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but joachim99@2: continue # so that we can try to find one that supports BSD flags joachim99@2: fi joachim99@2: fi joachim99@2: done joachim99@14: IFS="$lt_save_ifs" joachim99@2: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm joachim99@2: fi]) joachim99@2: NM="$lt_cv_path_NM" joachim99@14: ])# AC_PROG_NM joachim99@14: joachim99@14: joachim99@14: # AC_CHECK_LIBM joachim99@14: # ------------- joachim99@14: # check for math library joachim99@2: AC_DEFUN([AC_CHECK_LIBM], joachim99@2: [AC_REQUIRE([AC_CANONICAL_HOST])dnl joachim99@2: LIBM= joachim99@2: case $host in joachim99@2: *-*-beos* | *-*-cygwin* | *-*-pw32*) joachim99@2: # These system don't have libm joachim99@2: ;; joachim99@2: *-ncr-sysv4.3*) joachim99@2: AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") joachim99@2: AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") joachim99@2: ;; joachim99@2: *) joachim99@2: AC_CHECK_LIB(m, main, LIBM="-lm") joachim99@2: ;; joachim99@2: esac joachim99@14: ])# AC_CHECK_LIBM joachim99@14: joachim99@14: joachim99@14: # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) joachim99@14: # ----------------------------------- joachim99@14: # sets LIBLTDL to the link flags for the libltdl convenience library and joachim99@14: # LTDLINCL to the include flags for the libltdl header and adds joachim99@14: # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL joachim99@14: # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If joachim99@14: # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will joachim99@14: # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with joachim99@2: # '${top_srcdir}/' (note the single quotes!). If your package is not joachim99@2: # flat and you're not using automake, define top_builddir and joachim99@2: # top_srcdir appropriately in the Makefiles. joachim99@2: AC_DEFUN([AC_LIBLTDL_CONVENIENCE], joachim99@2: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl joachim99@2: case $enable_ltdl_convenience in joachim99@2: no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; joachim99@2: "") enable_ltdl_convenience=yes joachim99@2: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; joachim99@2: esac joachim99@2: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la joachim99@14: LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) joachim99@14: # For backwards non-gettext consistent compatibility... joachim99@14: INCLTDL="$LTDLINCL" joachim99@14: ])# AC_LIBLTDL_CONVENIENCE joachim99@14: joachim99@14: joachim99@14: # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) joachim99@14: # ----------------------------------- joachim99@14: # sets LIBLTDL to the link flags for the libltdl installable library and joachim99@14: # LTDLINCL to the include flags for the libltdl header and adds joachim99@14: # --enable-ltdl-install to the configure arguments. Note that LIBLTDL joachim99@14: # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If joachim99@14: # DIRECTORY is not provided and an installed libltdl is not found, it is joachim99@14: # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' joachim99@14: # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single joachim99@14: # quotes!). If your package is not flat and you're not using automake, joachim99@14: # define top_builddir and top_srcdir appropriately in the Makefiles. joachim99@2: # In the future, this macro may have to be called after AC_PROG_LIBTOOL. joachim99@2: AC_DEFUN([AC_LIBLTDL_INSTALLABLE], joachim99@2: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl joachim99@2: AC_CHECK_LIB(ltdl, main, joachim99@2: [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], joachim99@2: [if test x"$enable_ltdl_install" = xno; then joachim99@2: AC_MSG_WARN([libltdl not installed, but installation disabled]) joachim99@2: else joachim99@2: enable_ltdl_install=yes joachim99@2: fi joachim99@2: ]) joachim99@2: if test x"$enable_ltdl_install" = x"yes"; then joachim99@2: ac_configure_args="$ac_configure_args --enable-ltdl-install" joachim99@2: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la joachim99@14: LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) joachim99@2: else joachim99@2: ac_configure_args="$ac_configure_args --enable-ltdl-install=no" joachim99@2: LIBLTDL="-lltdl" joachim99@14: LTDLINCL= joachim99@2: fi joachim99@14: # For backwards non-gettext consistent compatibility... joachim99@14: INCLTDL="$LTDLINCL" joachim99@14: ])# AC_LIBLTDL_INSTALLABLE joachim99@14: joachim99@2: joachim99@2: # If this macro is not defined by Autoconf, define it here. joachim99@2: ifdef([AC_PROVIDE_IFELSE], joachim99@2: [], joachim99@2: [define([AC_PROVIDE_IFELSE], joachim99@14: [ifdef([AC_PROVIDE_$1], joachim99@14: [$2], [$3])])]) joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_CXX joachim99@14: # -------------- joachim99@14: # enable support for C++ libraries joachim99@14: AC_DEFUN([AC_LIBTOOL_CXX], joachim99@14: [AC_REQUIRE([_LT_AC_LANG_CXX]) joachim99@14: ])# AC_LIBTOOL_CXX joachim99@14: joachim99@14: joachim99@14: # _LT_AC_LANG_CXX joachim99@14: # --------------- joachim99@14: AC_DEFUN([_LT_AC_LANG_CXX], joachim99@2: [AC_REQUIRE([AC_PROG_CXX]) joachim99@2: AC_REQUIRE([AC_PROG_CXXCPP]) joachim99@14: ])# _LT_AC_LANG_CXX joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_GCJ joachim99@14: # -------------- joachim99@14: # enable support for GCJ libraries joachim99@14: AC_DEFUN([AC_LIBTOOL_GCJ], joachim99@14: [AC_REQUIRE([_LT_AC_LANG_GCJ]) joachim99@14: ])# AC_LIBTOOL_GCJ joachim99@14: joachim99@14: joachim99@14: # _LT_AC_LANG_GCJ joachim99@14: # --------------- joachim99@14: AC_DEFUN([_LT_AC_LANG_GCJ], joachim99@14: [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], joachim99@2: [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], joachim99@2: [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], joachim99@2: [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], joachim99@14: [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], joachim99@14: [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) joachim99@14: ])# _LT_AC_LANG_GCJ joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_RC joachim99@14: # -------------- joachim99@14: # enable support for Windows resource files joachim99@14: AC_DEFUN([AC_LIBTOOL_RC], joachim99@14: [AC_REQUIRE([AC_PROG_RC]) joachim99@14: ])# AC_LIBTOOL_RC joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_LANG_C_CONFIG joachim99@14: # ------------------------ joachim99@14: # Ensure that the configuration vars for the C compiler are joachim99@14: # suitably defined. Those variables are subsequently used by joachim99@14: # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. joachim99@14: AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) joachim99@14: AC_DEFUN([_LT_AC_LANG_C_CONFIG], joachim99@14: [lt_save_CC="$CC" joachim99@14: AC_LANG_PUSH(C) joachim99@14: joachim99@14: # Source file extension for C test sources. joachim99@14: ac_ext=c joachim99@14: joachim99@14: # Object file extension for compiled C test sources. joachim99@14: objext=o joachim99@14: _LT_AC_TAGVAR(objext, $1)=$objext joachim99@14: joachim99@14: # Code to be used in simple compile tests joachim99@14: lt_simple_compile_test_code="int some_variable = 0;" joachim99@14: joachim99@14: # Code to be used in simple link tests joachim99@14: lt_simple_link_test_code='main(){return(0);}' joachim99@14: joachim99@14: _LT_AC_SYS_COMPILER joachim99@14: joachim99@14: # joachim99@14: # Check for any special shared library compilation flags. joachim99@14: # joachim99@14: _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= joachim99@14: if test "$GCC" = no; then joachim99@14: case $host_os in joachim99@14: sco3.2v5*) joachim99@14: _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then joachim99@14: AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) joachim99@14: if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : joachim99@14: else joachim99@14: AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) joachim99@14: _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no joachim99@14: fi joachim99@14: fi joachim99@14: joachim99@14: joachim99@14: # joachim99@14: # Check to make sure the static flag actually works. joachim99@14: # joachim99@14: AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), joachim99@14: $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), joachim99@14: [], joachim99@14: [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) joachim99@14: joachim99@14: joachim99@14: ## CAVEAT EMPTOR: joachim99@14: ## There is no encapsulation within the following macros, do not change joachim99@14: ## the running order or otherwise move them around unless you know exactly joachim99@14: ## what you are doing... joachim99@14: AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) joachim99@14: AC_LIBTOOL_PROG_COMPILER_PIC($1) joachim99@14: AC_LIBTOOL_PROG_CC_C_O($1) joachim99@14: AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) joachim99@14: AC_LIBTOOL_PROG_LD_SHLIBS($1) joachim99@14: AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) joachim99@14: AC_LIBTOOL_SYS_LIB_STRIP joachim99@14: AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) joachim99@14: AC_LIBTOOL_DLOPEN_SELF($1) joachim99@14: joachim99@14: # Report which librarie types wil actually be built joachim99@14: AC_MSG_CHECKING([if libtool supports shared libraries]) joachim99@14: AC_MSG_RESULT([$can_build_shared]) joachim99@14: joachim99@14: AC_MSG_CHECKING([whether to build shared libraries]) joachim99@14: test "$can_build_shared" = "no" && enable_shared=no joachim99@14: joachim99@14: # On AIX, shared libraries and static libraries use the same namespace, and joachim99@14: # are all built from PIC. joachim99@14: case "$host_os" in joachim99@14: aix3*) joachim99@14: test "$enable_shared" = yes && enable_static=no joachim99@14: if test -n "$RANLIB"; then joachim99@14: archive_cmds="$archive_cmds~\$RANLIB \$lib" joachim99@14: postinstall_cmds='$RANLIB $lib' joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: aix4*) joachim99@14: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then joachim99@14: test "$enable_shared" = yes && enable_static=no joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: AC_MSG_RESULT([$enable_shared]) joachim99@14: joachim99@14: AC_MSG_CHECKING([whether to build static libraries]) joachim99@14: # Make sure either enable_shared or enable_static is yes. joachim99@14: test "$enable_shared" = yes || enable_static=yes joachim99@14: AC_MSG_RESULT([$enable_static]) joachim99@14: joachim99@14: AC_LIBTOOL_CONFIG($1) joachim99@14: joachim99@14: AC_LANG_POP joachim99@14: CC="$lt_save_CC" joachim99@14: ])# AC_LIBTOOL_LANG_C_CONFIG joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_LANG_CXX_CONFIG joachim99@14: # -------------------------- joachim99@14: # Ensure that the configuration vars for the C compiler are joachim99@14: # suitably defined. Those variables are subsequently used by joachim99@14: # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. joachim99@14: AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) joachim99@14: AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], joachim99@14: [AC_LANG_PUSH(C++) joachim99@14: AC_REQUIRE([AC_PROG_CXX]) joachim99@14: AC_REQUIRE([AC_PROG_CXXCPP]) joachim99@14: joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)= joachim99@14: _LT_AC_TAGVAR(always_export_symbols, $1)=no joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)= joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=no joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=no joachim99@14: _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown joachim99@14: _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds joachim99@14: _LT_AC_TAGVAR(no_undefined_flag, $1)= joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= joachim99@14: joachim99@14: # Dependencies to place before and after the object being linked: joachim99@14: _LT_AC_TAGVAR(predep_objects, $1)= joachim99@14: _LT_AC_TAGVAR(postdep_objects, $1)= joachim99@14: _LT_AC_TAGVAR(predeps, $1)= joachim99@14: _LT_AC_TAGVAR(postdeps, $1)= joachim99@14: _LT_AC_TAGVAR(compiler_lib_search_path, $1)= joachim99@14: joachim99@14: # Source file extension for C test sources. joachim99@14: ac_ext=cc joachim99@14: joachim99@14: # Object file extension for compiled C test sources. joachim99@14: objext=o joachim99@14: _LT_AC_TAGVAR(objext, $1)=$objext joachim99@14: joachim99@14: # Code to be used in simple compile tests joachim99@14: lt_simple_compile_test_code="int some_variable = 0;" joachim99@14: joachim99@14: # Code to be used in simple link tests joachim99@14: lt_simple_link_test_code='int main(int char *[]) { return(0); }' joachim99@14: joachim99@14: # ltmain only uses $CC for tagged configurations so make sure $CC is set. joachim99@14: _LT_AC_SYS_COMPILER joachim99@14: joachim99@14: # Allow CC to be a program name with arguments. joachim99@2: lt_save_CC="$CC" joachim99@14: CC=${CXX-"c++"} joachim99@14: set dummy $CC joachim99@14: compiler="[$]2" joachim99@14: _LT_AC_TAGVAR(compiler, $1)=$CC joachim99@14: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` joachim99@14: joachim99@14: # We don't want -fno-exception wen compiling C++ code, so set the joachim99@14: # no_builtin_flag separately joachim99@14: if test "$GXX" = yes; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= joachim99@14: fi joachim99@14: joachim99@14: if test "$GXX" = yes; then joachim99@14: # Set up default GNU C++ configuration joachim99@14: joachim99@14: # Check if GNU C++ uses GNU ld as the underlying linker, since the joachim99@14: # archiving commands below assume that GNU ld is being used. joachim99@14: if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ joachim99@14: egrep 'GNU ld' > /dev/null; then joachim99@14: with_gnu_ld=yes joachim99@14: joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' joachim99@14: joachim99@14: # If archive_cmds runs LD, not CC, wlarc should be empty joachim99@14: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to joachim99@14: # investigate it a little bit more. (MM) joachim99@14: wlarc='${wl}' joachim99@14: joachim99@14: # ancient GNU ld didn't support --whole-archive et. al. joachim99@14: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ joachim99@14: egrep 'no-whole-archive' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= joachim99@14: fi joachim99@14: else joachim99@14: with_gnu_ld=no joachim99@14: wlarc= joachim99@14: joachim99@14: # A generic and very simple default shared library creation joachim99@14: # command for GNU C++ for the case where it uses the native joachim99@14: # linker, instead of GNU ld. If possible, this setting should joachim99@14: # overridden to take advantage of the native linker features on joachim99@14: # the platform it is being used on. joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' joachim99@14: fi joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' joachim99@14: joachim99@14: else joachim99@14: GXX=no joachim99@14: with_gnu_ld=no joachim99@14: wlarc= joachim99@14: fi joachim99@14: joachim99@14: # PORTME: fill in a description of your system's C++ link characteristics joachim99@14: AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=yes joachim99@14: case $host_os in joachim99@14: aix3*) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: aix4* | aix5*) joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # On IA64, the linker does run time linking by default, so we don't joachim99@14: # have to do anything special. joachim99@14: aix_use_runtimelinking=no joachim99@14: exp_sym_flag='-Bexport' joachim99@14: no_entry_flag="" joachim99@14: else joachim99@14: # KDE requires run time linking. Make it the default. joachim99@14: aix_use_runtimelinking=yes joachim99@14: exp_sym_flag='-bexport' joachim99@14: no_entry_flag='-bnoentry' joachim99@14: fi joachim99@14: joachim99@14: # When large executables or shared objects are built, AIX ld can joachim99@14: # have problems creating the table of contents. If linking a library joachim99@14: # or program results in "error TOC overflow" add -mminimal-toc to joachim99@14: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not joachim99@14: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. joachim99@14: joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' joachim99@14: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes joachim99@14: joachim99@14: if test "$GXX" = yes; then joachim99@14: case $host_os in aix4.[012]|aix4.[012].*) joachim99@14: # We only want to do this on AIX 4.2 and lower, the check joachim99@14: # below for broken collect2 doesn't work under 4.3+ joachim99@14: collect2name=`${CC} -print-prog-name=collect2` joachim99@14: if test -f "$collect2name" && \ joachim99@14: strings "$collect2name" | grep resolve_lib_name >/dev/null joachim99@14: then joachim99@14: # We have reworked collect2 joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: else joachim99@14: # We have old collect2 joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported joachim99@14: # It fails to find uninstalled libraries when the uninstalled joachim99@14: # path is not listed in the libpath. Setting hardcode_minus_L joachim99@14: # to unsupported forces relinking joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= joachim99@14: fi joachim99@14: esac joachim99@14: shared_flag='-shared' joachim99@14: else joachim99@14: # not using gcc joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release joachim99@14: # chokes on -Wl,-G. The following line is correct: joachim99@14: shared_flag='-G' joachim99@14: else joachim99@14: if test "$aix_use_runtimelinking" = yes; then joachim99@14: shared_flag='-qmkshrobj ${wl}-G' joachim99@14: else joachim99@14: shared_flag='-qmkshrobj' joachim99@14: fi joachim99@14: fi joachim99@14: fi joachim99@14: joachim99@14: # Let the compiler handle the export list. joachim99@14: _LT_AC_TAGVAR(always_export_symbols, $1)=no joachim99@14: if test "$aix_use_runtimelinking" = yes; then joachim99@14: # Warning - without using the other runtime loading flags (-brtl), joachim99@14: # -berok will link without error, but may produce a broken library. joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' joachim99@14: # Determine the default libpath from the value encoded in an empty executable. joachim99@14: _LT_AC_SYS_LIBPATH_AIX joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" joachim99@14: joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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}$exp_sym_flag:\$export_symbols $shared_flag" joachim99@14: else joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" joachim99@14: else joachim99@14: # Determine the default libpath from the value encoded in an empty executable. joachim99@14: _LT_AC_SYS_LIBPATH_AIX joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" joachim99@14: # Warning - without using the other run time loading flags, joachim99@14: # -berok will link without error, but may produce a broken library. joachim99@14: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' joachim99@14: # -bexpall does not export symbols beginning with underscore (_) joachim99@14: _LT_AC_TAGVAR(always_export_symbols, $1)=yes joachim99@14: # Exported symbols can be pulled into shared objects from archives joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes joachim99@14: # This is similar to how AIX traditionally builds it's shared libraries. joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' joachim99@14: fi joachim99@14: fi joachim99@14: ;; joachim99@14: chorus*) joachim99@14: case $cc_basename in joachim99@14: *) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: dgux*) joachim99@14: case $cc_basename in joachim99@14: ec++) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: ghcx) joachim99@14: # Green Hills C++ Compiler joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: *) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: freebsd[12]*) joachim99@14: # C++ shared libraries reported to be fairly broken before switch to ELF joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: freebsd-elf*) joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no joachim99@14: ;; joachim99@14: freebsd*) joachim99@14: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF joachim99@14: # conventions joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=yes joachim99@14: ;; joachim99@14: gnu*) joachim99@14: ;; joachim99@14: hpux*) joachim99@14: if test $with_gnu_ld = no; then joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' joachim99@14: fi joachim99@14: fi joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=no joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: else joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, joachim99@14: # but as the default joachim99@14: # location of the library. joachim99@14: joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: aCC) joachim99@14: case $host_os in joachim99@14: hpux9*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: ;; joachim99@14: *) joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: # joachim99@14: # There doesn't appear to be a way to prevent this compiler from joachim99@14: # explicitly linking system object files so we need to strip them joachim99@14: # from the output so that they don't get included in the library joachim99@14: # dependencies. joachim99@14: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' joachim99@14: ;; joachim99@14: *) joachim99@14: if test "$GXX" = yes; then joachim99@14: if test $with_gnu_ld = no; then joachim99@14: case $host_os in joachim99@14: hpux9*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: ;; joachim99@14: *) joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: else joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: irix5* | irix6*) joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: # SGI C++ joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: joachim99@14: # Archives containing C++ object files must be created using joachim99@14: # "CC -ar", where "CC" is the IRIX C++ compiler. This is joachim99@14: # necessary to make sure instantiated templates are included joachim99@14: # in the archive. joachim99@14: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' joachim99@14: ;; joachim99@14: *) joachim99@14: if test "$GXX" = yes; then joachim99@14: if test "$with_gnu_ld" = no; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' joachim99@14: fi joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes joachim99@14: ;; joachim99@14: esac joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: ;; joachim99@14: linux*) joachim99@14: case $cc_basename in joachim99@14: KCC) joachim99@14: # Kuck and Associates, Inc. (KAI) C++ Compiler joachim99@14: joachim99@14: # KCC will only create a shared library if the output file joachim99@14: # ends with ".so" (or ".sl" for HP-UX), so rename the library joachim99@14: # to its proper name (with version) after linking. joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: # joachim99@14: # There doesn't appear to be a way to prevent this compiler from joachim99@14: # explicitly linking system object files so we need to strip them joachim99@14: # from the output so that they don't get included in the library joachim99@14: # dependencies. joachim99@14: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' joachim99@14: joachim99@14: # Archives containing C++ object files must be created using joachim99@14: # "CC -Bstatic", where "CC" is the KAI C++ compiler. joachim99@14: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' joachim99@14: ;; joachim99@14: icpc) joachim99@14: # Intel C++ joachim99@14: with_gnu_ld=yes joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' joachim99@14: ;; joachim99@14: cxx) joachim99@14: # Compaq C++ joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' joachim99@14: joachim99@14: runpath_var=LD_RUN_PATH joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: # joachim99@14: # There doesn't appear to be a way to prevent this compiler from joachim99@14: # explicitly linking system object files so we need to strip them joachim99@14: # from the output so that they don't get included in the library joachim99@14: # dependencies. joachim99@14: 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' joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: lynxos*) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: m88k*) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: mvs*) joachim99@14: case $cc_basename in joachim99@14: cxx) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: *) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: netbsd*) joachim99@14: # NetBSD uses g++ - do we need to do anything? joachim99@14: ;; joachim99@14: osf3*) joachim99@14: case $cc_basename in joachim99@14: KCC) joachim99@14: # Kuck and Associates, Inc. (KAI) C++ Compiler joachim99@14: joachim99@14: # KCC will only create a shared library if the output file joachim99@14: # ends with ".so" (or ".sl" for HP-UX), so rename the library joachim99@14: # to its proper name (with version) after linking. joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: joachim99@14: # Archives containing C++ object files must be created using joachim99@14: # "CC -Bstatic", where "CC" is the KAI C++ compiler. joachim99@14: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' joachim99@14: joachim99@14: ;; joachim99@14: RCC) joachim99@14: # Rational C++ 2.4.1 joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: cxx) joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: # joachim99@14: # There doesn't appear to be a way to prevent this compiler from joachim99@14: # explicitly linking system object files so we need to strip them joachim99@14: # from the output so that they don't get included in the library joachim99@14: # dependencies. joachim99@14: 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' joachim99@14: ;; joachim99@14: *) joachim99@14: if test "$GXX" = yes && test "$with_gnu_ld" = no; then joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' joachim99@14: joachim99@14: else joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: osf4* | osf5*) joachim99@14: case $cc_basename in joachim99@14: KCC) joachim99@14: # Kuck and Associates, Inc. (KAI) C++ Compiler joachim99@14: joachim99@14: # KCC will only create a shared library if the output file joachim99@14: # ends with ".so" (or ".sl" for HP-UX), so rename the library joachim99@14: # to its proper name (with version) after linking. joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: joachim99@14: # Archives containing C++ object files must be created using joachim99@14: # the KAI C++ compiler. joachim99@14: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' joachim99@14: ;; joachim99@14: RCC) joachim99@14: # Rational C++ 2.4.1 joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: cxx) joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ joachim99@14: echo "-hidden">> $lib.exp~ joachim99@14: $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~ joachim99@14: $rm $lib.exp' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: # joachim99@14: # There doesn't appear to be a way to prevent this compiler from joachim99@14: # explicitly linking system object files so we need to strip them joachim99@14: # from the output so that they don't get included in the library joachim99@14: # dependencies. joachim99@14: 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' joachim99@14: ;; joachim99@14: *) joachim99@14: if test "$GXX" = yes && test "$with_gnu_ld" = no; then joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' joachim99@14: joachim99@14: else joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: psos*) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: sco*) joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: *) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: sunos4*) joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: # Sun C++ 4.x joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: lcc) joachim99@14: # Lucid joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: *) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: solaris*) joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: # Sun C++ 4.2, 5.x and Centerline C++ joachim99@14: _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ joachim99@14: $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' joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: case $host_os in joachim99@14: solaris2.[0-5] | solaris2.[0-5].*) ;; joachim99@14: *) joachim99@14: # The C++ compiler is used as linker so we must use $wl joachim99@14: # flag to pass the commands to the underlying system joachim99@14: # linker. joachim99@14: # Supported since Solaris 2.6 (maybe 2.5.1?) joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' joachim99@14: ;; joachim99@14: esac joachim99@14: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: # joachim99@14: # There doesn't appear to be a way to prevent this compiler from joachim99@14: # explicitly linking system object files so we need to strip them joachim99@14: # from the output so that they don't get included in the library joachim99@14: # dependencies. joachim99@14: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' joachim99@14: joachim99@14: # Archives containing C++ object files must be created using joachim99@14: # "CC -xar", where "CC" is the Sun C++ compiler. This is joachim99@14: # necessary to make sure instantiated templates are included joachim99@14: # in the archive. joachim99@14: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' joachim99@14: ;; joachim99@14: gcx) joachim99@14: # Green Hills C++ Compiler joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' joachim99@14: joachim99@14: # The C++ compiler must be used to create the archive. joachim99@14: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' joachim99@14: ;; joachim99@14: *) joachim99@14: # GNU C++ compiler with Solaris linker joachim99@14: if test "$GXX" = yes && test "$with_gnu_ld" = no; then joachim99@14: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' joachim99@14: if $CC --version | egrep -v '^2\.7' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ joachim99@14: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" joachim99@14: else joachim99@14: # g++ 2.7 appears to require `-G' NOT `-shared' on this joachim99@14: # platform. joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ joachim99@14: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' joachim99@14: joachim99@14: # Commands to make compiler produce verbose output that lists joachim99@14: # what "hidden" libraries, object files and flags are used when joachim99@14: # linking a shared library. joachim99@14: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" joachim99@14: fi joachim99@14: joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no joachim99@14: ;; joachim99@14: tandem*) joachim99@14: case $cc_basename in joachim99@14: NCC) joachim99@14: # NonStop-UX NCC 3.20 joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: *) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: vxworks*) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: *) joachim99@14: # FIXME: insert proper C++ library support joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) joachim99@14: test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no joachim99@14: joachim99@14: # Figure out "hidden" C++ library dependencies from verbose joachim99@14: # compiler output whening linking a shared library. joachim99@14: cat > conftest.$ac_ext <> "$cfgfile" joachim99@14: ifelse([$1], [], joachim99@14: [#! $SHELL joachim99@14: joachim99@14: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. joachim99@14: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) joachim99@14: # NOTE: Changes made to this file will be lost: look at ltmain.sh. joachim99@14: # joachim99@14: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 joachim99@14: # Free Software Foundation, Inc. joachim99@14: # joachim99@14: # This file is part of GNU Libtool: joachim99@14: # Originally by Gordon Matzigkeit , 1996 joachim99@14: # joachim99@14: # This program is free software; you can redistribute it and/or modify joachim99@14: # it under the terms of the GNU General Public License as published by joachim99@14: # the Free Software Foundation; either version 2 of the License, or joachim99@14: # (at your option) any later version. joachim99@14: # joachim99@14: # This program is distributed in the hope that it will be useful, but joachim99@14: # WITHOUT ANY WARRANTY; without even the implied warranty of joachim99@14: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU joachim99@14: # General Public License for more details. joachim99@14: # joachim99@14: # You should have received a copy of the GNU General Public License joachim99@14: # along with this program; if not, write to the Free Software joachim99@14: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. joachim99@14: # joachim99@14: # As a special exception to the GNU General Public License, if you joachim99@14: # distribute this file as part of a program that contains a joachim99@14: # configuration script generated by Autoconf, you may include it under joachim99@14: # the same distribution terms that you use for the rest of that program. joachim99@14: joachim99@14: # Sed that helps us avoid accidentally triggering echo(1) options like -n. joachim99@14: Xsed="sed -e s/^X//" joachim99@14: joachim99@14: # The HP-UX ksh and POSIX shell print the target directory to stdout joachim99@14: # if CDPATH is set. joachim99@14: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi joachim99@14: joachim99@14: # The names of the tagged configurations supported by this script. joachim99@14: available_tags= joachim99@14: joachim99@14: # ### BEGIN LIBTOOL CONFIG], joachim99@14: [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) joachim99@14: joachim99@14: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: joachim99@14: joachim99@14: # Shell to use when invoking shell scripts. joachim99@14: SHELL=$lt_SHELL joachim99@14: joachim99@14: # Whether or not to build shared libraries. joachim99@14: build_libtool_libs=$enable_shared joachim99@14: joachim99@14: # Whether or not to build static libraries. joachim99@14: build_old_libs=$enable_static joachim99@14: joachim99@14: # Whether or not to add -lc for building shared libraries. joachim99@14: build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) joachim99@14: joachim99@14: # Whether or not to optimize for fast installation. joachim99@14: fast_install=$enable_fast_install joachim99@14: joachim99@14: # The host system. joachim99@14: host_alias=$host_alias joachim99@14: host=$host joachim99@14: joachim99@14: # An echo program that does not interpret backslashes. joachim99@14: echo=$lt_echo joachim99@14: joachim99@14: # The archiver. joachim99@14: AR=$lt_AR joachim99@14: AR_FLAGS=$lt_AR_FLAGS joachim99@14: joachim99@14: # A C compiler. joachim99@14: LTCC=$lt_LTCC joachim99@14: joachim99@14: # A language-specific compiler. joachim99@14: CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) joachim99@14: joachim99@14: # Is the compiler the GNU C compiler? joachim99@14: with_gcc=$_LT_AC_TAGVAR(GCC, $1) joachim99@14: joachim99@14: # The linker used to build libraries. joachim99@14: LD=$lt_[]_LT_AC_TAGVAR(LD, $1) joachim99@14: joachim99@14: # Whether we need hard or soft links. joachim99@14: LN_S=$lt_LN_S joachim99@14: joachim99@14: # A BSD-compatible nm program. joachim99@14: NM=$lt_NM joachim99@14: joachim99@14: # A sed program that does not truncate output. joachim99@14: SED=$lt_SED joachim99@14: joachim99@14: # A symbol stripping program joachim99@14: STRIP=$STRIP joachim99@14: joachim99@14: # Used to examine libraries when file_magic_cmd begins "file" joachim99@14: MAGIC_CMD=$MAGIC_CMD joachim99@14: joachim99@14: # Used on cygwin: DLL creation program. joachim99@14: DLLTOOL="$DLLTOOL" joachim99@14: joachim99@14: # Used on cygwin: object dumper. joachim99@14: OBJDUMP="$OBJDUMP" joachim99@14: joachim99@14: # Used on cygwin: assembler. joachim99@14: AS="$AS" joachim99@14: joachim99@14: # The name of the directory that contains temporary libtool files. joachim99@14: objdir=$objdir joachim99@14: joachim99@14: # How to create reloadable object files. joachim99@14: reload_flag=$lt_reload_flag joachim99@14: reload_cmds=$lt_reload_cmds joachim99@14: joachim99@14: # How to pass a linker flag through the compiler. joachim99@14: wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) joachim99@14: joachim99@14: # Object file suffix (normally "o"). joachim99@14: objext="$ac_objext" joachim99@14: joachim99@14: # Old archive suffix (normally "a"). joachim99@14: libext="$libext" joachim99@14: joachim99@14: # Executable file suffix (normally ""). joachim99@14: exeext="$exeext" joachim99@14: joachim99@14: # Additional compiler flags for building library objects. joachim99@14: pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) joachim99@14: pic_mode=$pic_mode joachim99@14: joachim99@14: # What is the maximum length of a command? joachim99@14: max_cmd_len=$lt_cv_sys_max_cmd_len joachim99@14: joachim99@14: # Does compiler simultaneously support -c and -o options? joachim99@14: compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) joachim99@14: joachim99@14: # Must we lock files when doing compilation ? joachim99@14: need_locks=$lt_need_locks joachim99@14: joachim99@14: # Do we need the lib prefix for modules? joachim99@14: need_lib_prefix=$need_lib_prefix joachim99@14: joachim99@14: # Do we need a version for libraries? joachim99@14: need_version=$need_version joachim99@14: joachim99@14: # Whether dlopen is supported. joachim99@14: dlopen_support=$enable_dlopen joachim99@14: joachim99@14: # Whether dlopen of programs is supported. joachim99@14: dlopen_self=$enable_dlopen_self joachim99@14: joachim99@14: # Whether dlopen of statically linked programs is supported. joachim99@14: dlopen_self_static=$enable_dlopen_self_static joachim99@14: joachim99@14: # Compiler flag to prevent dynamic linking. joachim99@14: link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) joachim99@14: joachim99@14: # Compiler flag to turn off builtin functions. joachim99@14: no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) joachim99@14: joachim99@14: # Compiler flag to allow reflexive dlopens. joachim99@14: export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) joachim99@14: joachim99@14: # Compiler flag to generate shared objects directly from archives. joachim99@14: whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) joachim99@14: joachim99@14: # Compiler flag to generate thread-safe objects. joachim99@14: thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) joachim99@14: joachim99@14: # Library versioning type. joachim99@14: version_type=$version_type joachim99@14: joachim99@14: # Format of library name prefix. joachim99@14: libname_spec=$lt_libname_spec joachim99@14: joachim99@14: # List of archive names. First name is the real one, the rest are links. joachim99@14: # The last name is the one that the linker finds with -lNAME. joachim99@14: library_names_spec=$lt_library_names_spec joachim99@14: joachim99@14: # The coded name of the library, if different from the real name. joachim99@14: soname_spec=$lt_soname_spec joachim99@14: joachim99@14: # Commands used to build and install an old-style archive. joachim99@14: RANLIB=$lt_RANLIB joachim99@14: old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) joachim99@14: old_postinstall_cmds=$lt_old_postinstall_cmds joachim99@14: old_postuninstall_cmds=$lt_old_postuninstall_cmds joachim99@14: joachim99@14: # Create an old-style archive from a shared archive. joachim99@14: old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) joachim99@14: joachim99@14: # Create a temporary old-style archive to link instead of a shared archive. joachim99@14: old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) joachim99@14: joachim99@14: # Commands used to build and install a shared archive. joachim99@14: archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) joachim99@14: archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) joachim99@14: postinstall_cmds=$lt_postinstall_cmds joachim99@14: postuninstall_cmds=$lt_postuninstall_cmds joachim99@14: joachim99@14: # Commands to strip libraries. joachim99@14: old_striplib=$lt_old_striplib joachim99@14: striplib=$lt_striplib joachim99@14: joachim99@14: # Dependencies to place before the objects being linked to create a joachim99@14: # shared library. joachim99@14: predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) joachim99@14: joachim99@14: # Dependencies to place after the objects being linked to create a joachim99@14: # shared library. joachim99@14: postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) joachim99@14: joachim99@14: # Dependencies to place before the objects being linked to create a joachim99@14: # shared library. joachim99@14: predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) joachim99@14: joachim99@14: # Dependencies to place after the objects being linked to create a joachim99@14: # shared library. joachim99@14: postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) joachim99@14: joachim99@14: # The library search path used internally by the compiler when linking joachim99@14: # a shared library. joachim99@14: compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) joachim99@14: joachim99@14: # Method to check whether dependent libraries are shared objects. joachim99@14: deplibs_check_method=$lt_deplibs_check_method joachim99@14: joachim99@14: # Command to use when deplibs_check_method == file_magic. joachim99@14: file_magic_cmd=$lt_file_magic_cmd joachim99@14: joachim99@14: # Flag that allows shared libraries with undefined symbols to be built. joachim99@14: allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) joachim99@14: joachim99@14: # Flag that forces no undefined symbols. joachim99@14: no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) joachim99@14: joachim99@14: # Commands used to finish a libtool library installation in a directory. joachim99@14: finish_cmds=$lt_finish_cmds joachim99@14: joachim99@14: # Same as above, but a single script fragment to be evaled but not shown. joachim99@14: finish_eval=$lt_finish_eval joachim99@14: joachim99@14: # Take the output of nm and produce a listing of raw symbols and C names. joachim99@14: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe joachim99@14: joachim99@14: # Transform the output of nm in a proper C declaration joachim99@14: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl joachim99@14: joachim99@14: # Transform the output of nm in a C name address pair joachim99@14: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address joachim99@14: joachim99@14: # This is the shared library runtime path variable. joachim99@14: runpath_var=$runpath_var joachim99@14: joachim99@14: # This is the shared library path variable. joachim99@14: shlibpath_var=$shlibpath_var joachim99@14: joachim99@14: # Is shlibpath searched before the hard-coded library search path? joachim99@14: shlibpath_overrides_runpath=$shlibpath_overrides_runpath joachim99@14: joachim99@14: # How to hardcode a shared library path into an executable. joachim99@14: hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) joachim99@14: joachim99@14: # Whether we should hardcode library paths into libraries. joachim99@14: hardcode_into_libs=$hardcode_into_libs joachim99@14: joachim99@14: # Flag to hardcode \$libdir into a binary during linking. joachim99@14: # This must work even if \$libdir does not exist. joachim99@14: hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) joachim99@14: joachim99@14: # Whether we need a single -rpath flag with a separated argument. joachim99@14: hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) joachim99@14: joachim99@14: # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the joachim99@14: # resulting binary. joachim99@14: hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) joachim99@14: joachim99@14: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the joachim99@14: # resulting binary. joachim99@14: hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) joachim99@14: joachim99@14: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into joachim99@14: # the resulting binary. joachim99@14: hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) joachim99@14: joachim99@14: # Variables whose values should be saved in libtool wrapper scripts and joachim99@14: # restored at relink time. joachim99@14: variables_saved_for_relink="$variables_saved_for_relink" joachim99@14: joachim99@14: # Whether libtool must link a program against all its dependency libraries. joachim99@14: link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) joachim99@14: joachim99@14: # Compile-time system search path for libraries joachim99@14: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec joachim99@14: joachim99@14: # Run-time system search path for libraries joachim99@14: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec joachim99@14: joachim99@14: # Fix the shell variable \$srcfile for the compiler. joachim99@14: fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" joachim99@14: joachim99@14: # Set to yes if exported symbols are required. joachim99@14: always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) joachim99@14: joachim99@14: # The commands to list exported symbols. joachim99@14: export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) joachim99@14: joachim99@14: # The commands to extract the exported symbol list from a shared archive. joachim99@14: extract_expsyms_cmds=$lt_extract_expsyms_cmds joachim99@14: joachim99@14: # Symbols that should not be listed in the preloaded symbols. joachim99@14: exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) joachim99@14: joachim99@14: # Symbols that must always be exported. joachim99@14: include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) joachim99@14: joachim99@14: ifelse([$1],[], joachim99@14: [# ### END LIBTOOL CONFIG], joachim99@14: [# ### END LIBTOOL TAG CONFIG: $tagname]) joachim99@14: joachim99@14: __EOF__ joachim99@14: joachim99@14: ifelse([$1],[], [ joachim99@14: case $host_os in joachim99@14: aix3*) joachim99@14: cat <<\EOF >> "$cfgfile" joachim99@14: joachim99@14: # AIX sometimes has problems with the GCC collect2 program. For some joachim99@14: # reason, if we set the COLLECT_NAMES environment variable, the problems joachim99@14: # vanish in a puff of smoke. joachim99@14: if test "X${COLLECT_NAMES+set}" != Xset; then joachim99@14: COLLECT_NAMES= joachim99@14: export COLLECT_NAMES joachim99@14: fi joachim99@14: EOF joachim99@14: ;; joachim99@14: joachim99@14: cygwin* | mingw* | pw32* | os2*) joachim99@14: cat <<'EOF' >> "$cfgfile" joachim99@14: # This is a source program that is used to create dlls on Windows joachim99@14: # Don't remove nor modify the starting and closing comments joachim99@14: _LT_AC_FILE_LTDLL_C joachim99@14: # This is a source program that is used to create import libraries joachim99@14: # on Windows for dlls which lack them. Don't remove nor modify the joachim99@14: # starting and closing comments joachim99@14: _LT_AC_FILE_IMPGEN_C joachim99@14: EOF joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: # We use sed instead of cat because bash on DJGPP gets confused if joachim99@14: # if finds mixed CR/LF and LF-only lines. Since sed operates in joachim99@14: # text mode, it properly converts lines to CR/LF. This bash problem joachim99@14: # is reportedly fixed, but why not run on old versions too? joachim99@14: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) joachim99@14: joachim99@14: mv -f "$cfgfile" "$ofile" || \ joachim99@14: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") joachim99@14: chmod +x "$ofile" joachim99@2: ]) joachim99@14: else joachim99@14: # If there is no Makefile yet, we rely on a make rule to execute joachim99@14: # `config.status --recheck' to rerun these tests and create the joachim99@14: # libtool script then. joachim99@14: test -f Makefile && make "$ltmain" joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_CONFIG joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) joachim99@14: # ------------------------------------------- joachim99@14: AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], joachim99@14: [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl joachim99@14: joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= joachim99@14: joachim99@14: if test "$GCC" = yes; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' joachim99@14: joachim99@14: AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], joachim99@14: lt_cv_prog_compiler_rtti_exceptions, joachim99@14: [-fno-rtti -fno-exceptions -c conftest.$ac_ext], [], joachim99@14: [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE joachim99@14: # --------------------------------- joachim99@14: AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], joachim99@14: [AC_REQUIRE([AC_CANONICAL_HOST]) joachim99@14: AC_REQUIRE([AC_PROG_NM]) joachim99@14: AC_REQUIRE([AC_OBJEXT]) joachim99@14: # Check for command to grab the raw symbol name followed by C symbol from nm. joachim99@14: AC_MSG_CHECKING([command to parse $NM output from $compiler object]) joachim99@14: AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], joachim99@14: [ joachim99@14: # These are sane defaults that work on at least a few old systems. joachim99@14: # [They come from Ultrix. What could be older than Ultrix?!! ;)] joachim99@14: joachim99@14: # Character class describing NM global symbol codes. joachim99@14: symcode='[[BCDEGRST]]' joachim99@14: joachim99@14: # Regexp to match symbols that can be accessed directly from C. joachim99@14: sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' joachim99@14: joachim99@14: # Transform the above into a raw symbol and a C symbol. joachim99@14: symxfrm='\1 \2\3 \3' joachim99@14: joachim99@14: # Transform an extracted symbol line into a proper C declaration joachim99@14: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" joachim99@14: joachim99@14: # Transform an extracted symbol line into symbol name and symbol address joachim99@14: 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'" joachim99@14: joachim99@14: # Define system-specific variables. joachim99@14: case $host_os in joachim99@14: aix*) joachim99@14: symcode='[[BCDT]]' joachim99@14: ;; joachim99@14: cygwin* | mingw* | pw32*) joachim99@14: symcode='[[ABCDGISTW]]' joachim99@14: ;; joachim99@14: hpux*) # Its linker distinguishes data from code symbols joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: symcode='[[ABCDEGRST]]' joachim99@14: fi joachim99@14: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" joachim99@14: 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'" joachim99@14: ;; joachim99@14: irix* | nonstopux*) joachim99@14: symcode='[[BCDEGRST]]' joachim99@14: ;; joachim99@14: solaris* | sysv5*) joachim99@14: symcode='[[BDT]]' joachim99@14: ;; joachim99@14: sysv4) joachim99@14: symcode='[[DFNSTU]]' joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: # Handle CRLF in mingw tool chain joachim99@14: opt_cr= joachim99@14: case $host_os in joachim99@14: mingw*) joachim99@14: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: # If we're using GNU nm, then use its standard symbol codes. joachim99@14: if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then joachim99@14: symcode='[[ABCDGISTW]]' joachim99@14: fi joachim99@14: joachim99@14: # Try without a prefix undercore, then with it. joachim99@14: for ac_symprfx in "" "_"; do joachim99@14: joachim99@14: # Write the raw and C identifiers. joachim99@14: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" joachim99@14: joachim99@14: # Check to see that the pipe works correctly. joachim99@14: pipe_works=no joachim99@14: joachim99@14: rm -f conftest* joachim99@14: cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then joachim99@14: # Try sorting and uniquifying the output. joachim99@14: if sort "$nlist" | uniq > "$nlist"T; then joachim99@14: mv -f "$nlist"T "$nlist" joachim99@14: else joachim99@14: rm -f "$nlist"T joachim99@14: fi joachim99@14: joachim99@14: # Make sure that we snagged all the symbols we need. joachim99@14: if egrep ' nm_test_var$' "$nlist" >/dev/null; then joachim99@14: if egrep ' nm_test_func$' "$nlist" >/dev/null; then joachim99@14: cat < conftest.$ac_ext joachim99@14: #ifdef __cplusplus joachim99@14: extern "C" { joachim99@14: #endif joachim99@14: joachim99@14: EOF joachim99@14: # Now generate the symbol file. joachim99@14: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' joachim99@14: joachim99@14: cat <> conftest.$ac_ext joachim99@14: #if defined (__STDC__) && __STDC__ joachim99@14: # define lt_ptr_t void * joachim99@14: #else joachim99@14: # define lt_ptr_t char * joachim99@14: # define const joachim99@14: #endif joachim99@14: joachim99@14: /* The mapping between symbol names and symbols. */ joachim99@14: const struct { joachim99@14: const char *name; joachim99@14: lt_ptr_t address; joachim99@14: } joachim99@14: lt_preloaded_symbols[[]] = joachim99@14: { joachim99@14: EOF joachim99@14: sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext joachim99@14: cat <<\EOF >> conftest.$ac_ext joachim99@14: {0, (lt_ptr_t) 0} joachim99@14: }; joachim99@14: joachim99@14: #ifdef __cplusplus joachim99@14: } joachim99@14: #endif joachim99@14: EOF joachim99@14: # Now try linking the two files. joachim99@14: mv conftest.$ac_objext conftstm.$ac_objext joachim99@14: lt_save_LIBS="$LIBS" joachim99@14: lt_save_CFLAGS="$CFLAGS" joachim99@14: LIBS="conftstm.$ac_objext" joachim99@14: CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" joachim99@14: if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then joachim99@14: pipe_works=yes joachim99@14: fi joachim99@14: LIBS="$lt_save_LIBS" joachim99@14: CFLAGS="$lt_save_CFLAGS" joachim99@14: else joachim99@14: echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD joachim99@14: fi joachim99@14: else joachim99@14: echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD joachim99@14: fi joachim99@14: else joachim99@14: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD joachim99@14: fi joachim99@14: else joachim99@14: echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD joachim99@14: cat conftest.$ac_ext >&5 joachim99@14: fi joachim99@14: rm -f conftest* conftst* joachim99@14: joachim99@14: # Do not use the global_symbol_pipe unless it works. joachim99@14: if test "$pipe_works" = yes; then joachim99@14: break joachim99@14: else joachim99@14: lt_cv_sys_global_symbol_pipe= joachim99@14: fi joachim99@14: done joachim99@14: ]) joachim99@14: if test -z "$lt_cv_sys_global_symbol_pipe"; then joachim99@14: lt_cv_sys_global_symbol_to_cdecl= joachim99@14: fi joachim99@14: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then joachim99@14: AC_MSG_RESULT(failed) joachim99@14: else joachim99@14: AC_MSG_RESULT(ok) joachim99@14: fi joachim99@14: ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) joachim99@14: # --------------------------------------- joachim99@14: AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], joachim99@14: [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= joachim99@14: joachim99@14: AC_MSG_CHECKING([for $compiler option to produce PIC]) joachim99@14: ifelse([$1],[CXX],[ joachim99@14: # C++ specific cases for pic, static, wl, etc. joachim99@14: if test "$GXX" = yes; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' joachim99@14: joachim99@14: case $host_os in joachim99@14: aix*) joachim99@14: # All AIX code is PIC. joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # AIX 5 now supports IA64 processor joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: fi joachim99@14: ;; joachim99@14: amigaos*) joachim99@14: # FIXME: we need at least 68020 code to build shared libraries, but joachim99@14: # adding the `-m68020' flag to GCC prevents building anything better, joachim99@14: # like `-m68040'. joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' joachim99@14: ;; joachim99@14: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) joachim99@14: # PIC is the default for these OSes. joachim99@14: ;; joachim99@14: cygwin* | mingw* | os2*) joachim99@14: # This hack is so that the source file can tell whether it is being joachim99@14: # built for inclusion in a dll (and should export symbols for example). joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' joachim99@14: ;; joachim99@14: darwin* | rhapsody*) joachim99@14: # PIC is the default on this platform joachim99@14: # Common symbols not allowed in MH_DYLIB files joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' joachim99@14: ;; joachim99@14: *djgpp*) joachim99@14: # DJGPP does not support shared libraries at all joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= joachim99@14: ;; joachim99@14: sysv4*MP*) joachim99@14: if test -d /usr/nec; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic joachim99@14: fi joachim99@14: ;; joachim99@14: hpux*) joachim99@14: # PIC is the default for IA64 HP-UX, but not for PA HP-UX. joachim99@14: if test "$host_cpu" != ia64; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' joachim99@14: fi joachim99@14: ;; joachim99@14: *) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' joachim99@14: ;; joachim99@14: esac joachim99@14: else joachim99@14: case $host_os in joachim99@14: aix4* | aix5*) joachim99@14: # All AIX code is PIC. joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # AIX 5 now supports IA64 processor joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' joachim99@14: fi joachim99@14: ;; joachim99@14: chorus*) joachim99@14: case $cc_basename in joachim99@14: cxch68) joachim99@14: # Green Hills C++ Compiler joachim99@14: # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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" joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: dgux*) joachim99@14: case $cc_basename in joachim99@14: ec++) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' joachim99@14: ;; joachim99@14: ghcx) joachim99@14: # Green Hills C++ Compiler joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: freebsd*) joachim99@14: # FreeBSD uses GNU C++ joachim99@14: ;; joachim99@14: hpux9* | hpux10* | hpux11*) joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" joachim99@14: if test "$host_cpu" != ia64; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' joachim99@14: fi joachim99@14: ;; joachim99@14: aCC) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" joachim99@14: if test "$host_cpu" != ia64; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' joachim99@14: fi joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: irix5* | irix6* | nonstopux*) joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' joachim99@14: # CC pic flag -KPIC is the default. joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: linux*) joachim99@14: case $cc_basename in joachim99@14: KCC) joachim99@14: # KAI C++ Compiler joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' joachim99@14: ;; joachim99@14: icpc) joachim99@14: # Intel C++ joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' joachim99@14: ;; joachim99@14: cxx) joachim99@14: # Compaq C++ joachim99@14: # Make sure the PIC flag is empty. It appears that all Alpha joachim99@14: # Linux and Compaq Tru64 Unix objects are PIC. joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: lynxos*) joachim99@14: ;; joachim99@14: m88k*) joachim99@14: ;; joachim99@14: mvs*) joachim99@14: case $cc_basename in joachim99@14: cxx) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: netbsd*) joachim99@14: ;; joachim99@14: osf3* | osf4* | osf5*) joachim99@14: case $cc_basename in joachim99@14: KCC) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' joachim99@14: ;; joachim99@14: RCC) joachim99@14: # Rational C++ 2.4.1 joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' joachim99@14: ;; joachim99@14: cxx) joachim99@14: # Digital/Compaq C++ joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: # Make sure the PIC flag is empty. It appears that all Alpha joachim99@14: # Linux and Compaq Tru64 Unix objects are PIC. joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: psos*) joachim99@14: ;; joachim99@14: sco*) joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: solaris*) joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: # Sun C++ 4.2, 5.x and Centerline C++ joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' joachim99@14: ;; joachim99@14: gcx) joachim99@14: # Green Hills C++ Compiler joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: sunos4*) joachim99@14: case $cc_basename in joachim99@14: CC) joachim99@14: # Sun C++ 4.x joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: ;; joachim99@14: lcc) joachim99@14: # Lucid joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: tandem*) joachim99@14: case $cc_basename in joachim99@14: NCC) joachim99@14: # NonStop-UX NCC 3.20 joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' joachim99@14: ;; joachim99@14: *) joachim99@14: ;; joachim99@14: esac joachim99@14: ;; joachim99@14: unixware*) joachim99@14: ;; joachim99@14: vxworks*) joachim99@14: ;; joachim99@14: *) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: ], joachim99@14: [ joachim99@14: if test "$GCC" = yes; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' joachim99@14: joachim99@14: case $host_os in joachim99@14: aix*) joachim99@14: # All AIX code is PIC. joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # AIX 5 now supports IA64 processor joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: amigaos*) joachim99@14: # FIXME: we need at least 68020 code to build shared libraries, but joachim99@14: # adding the `-m68020' flag to GCC prevents building anything better, joachim99@14: # like `-m68040'. joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' joachim99@14: ;; joachim99@14: joachim99@14: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) joachim99@14: # PIC is the default for these OSes. joachim99@14: ;; joachim99@14: joachim99@14: cygwin* | mingw* | pw32* | os2*) joachim99@14: # This hack is so that the source file can tell whether it is being joachim99@14: # built for inclusion in a dll (and should export symbols for example). joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' joachim99@14: ;; joachim99@14: joachim99@14: darwin* | rhapsody*) joachim99@14: # PIC is the default on this platform joachim99@14: # Common symbols not allowed in MH_DYLIB files joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' joachim99@14: ;; joachim99@14: joachim99@14: msdosdjgpp*) joachim99@14: # Just because we use GCC doesn't mean we suddenly get shared libraries joachim99@14: # on systems that don't support them. joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no joachim99@14: enable_shared=no joachim99@14: ;; joachim99@14: joachim99@14: sysv4*MP*) joachim99@14: if test -d /usr/nec; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: hpux*) joachim99@14: # PIC is the default for IA64 HP-UX, but not for PA HP-UX. joachim99@14: if test "$host_cpu" != ia64; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: *) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' joachim99@14: ;; joachim99@14: esac joachim99@14: else joachim99@14: # PORTME Check for flag to pass linker flags through the system compiler. joachim99@14: case $host_os in joachim99@14: aix*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # AIX 5 now supports IA64 processor joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: cygwin* | mingw* | pw32* | os2*) joachim99@14: # This hack is so that the source file can tell whether it is being joachim99@14: # built for inclusion in a dll (and should export symbols for example). joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' joachim99@14: ;; joachim99@14: joachim99@14: hpux9* | hpux10* | hpux11*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: if test "$host_cpu" != ia64; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' joachim99@14: fi joachim99@14: # Is there a better lt_prog_compiler_static that works with the bundled CC? joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' joachim99@14: ;; joachim99@14: joachim99@14: irix5* | irix6* | nonstopux*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: # PIC (with -KPIC) is the default. joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' joachim99@14: ;; joachim99@14: joachim99@14: newsos6) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: ;; joachim99@14: joachim99@14: linux*) joachim99@14: if test "$CC" = "icc"; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: osf3* | osf4* | osf5*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: # All OSF/1 code is PIC. joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' joachim99@14: ;; joachim99@14: joachim99@14: sco3.2v5*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' joachim99@14: ;; joachim99@14: joachim99@14: solaris*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: ;; joachim99@14: joachim99@14: sunos4*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: ;; joachim99@14: joachim99@14: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) joachim99@14: if test "x$host_vendor" = xsni; then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-LD' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: ;; joachim99@14: joachim99@14: sysv4*MP*) joachim99@14: if test -d /usr/nec ;then joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: uts4*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' joachim99@14: ;; joachim99@14: joachim99@14: *) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: ]) joachim99@14: AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) joachim99@14: joachim99@14: # joachim99@14: # Check to make sure the PIC flag actually works. joachim99@14: # joachim99@14: if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then joachim99@14: AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), joachim99@14: [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) -DPIC], [], joachim99@14: [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in joachim99@14: "" | " "*) ;; joachim99@14: *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; joachim99@14: esac], joachim99@14: [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) joachim99@14: fi joachim99@14: case "$host_os" in joachim99@14: # For platforms which do not support PIC, -DPIC is meaningless: joachim99@14: *djgpp*) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= joachim99@14: ;; joachim99@14: *) joachim99@14: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) -DPIC" joachim99@14: ;; joachim99@14: esac joachim99@14: ]) joachim99@14: joachim99@14: joachim99@14: # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) joachim99@14: # ------------------------------------ joachim99@14: # See if the linker supports building shared libraries. joachim99@14: AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], joachim99@14: [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) joachim99@14: ifelse([$1],[CXX],[ joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' joachim99@14: case $host_os in joachim99@14: aix4* | aix5*) joachim99@14: # If we're using GNU nm, then we don't want the "-C" option. joachim99@14: # -C means demangle to AIX nm, but means don't demangle with GNU nm joachim99@14: if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' joachim99@14: fi joachim99@14: ;; joachim99@14: cygwin* | mingw* | pw32*) joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" joachim99@14: ;; joachim99@14: *) joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' joachim99@14: ;; joachim99@14: esac joachim99@14: ],[ joachim99@14: runpath_var= joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)= joachim99@14: joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)= joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)= joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)= joachim99@14: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= joachim99@14: _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= joachim99@14: _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=no joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=no joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported joachim99@14: _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown joachim99@14: _LT_AC_TAGVAR(always_export_symbols, $1)=no joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' joachim99@14: # include_expsyms should be a list of space-separated symbols to be *always* joachim99@14: # included in the symbol list joachim99@14: _LT_AC_TAGVAR(include_expsyms, $1)= joachim99@14: # exclude_expsyms can be an egrep regular expression of symbols to exclude joachim99@14: # it will be wrapped by ` (' and `)$', so one must not match beginning or joachim99@14: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', joachim99@14: # as well as any symbol that contains `d'. joachim99@14: _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" joachim99@14: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out joachim99@14: # platforms (ab)use it in PIC code, but their linkers get confused if joachim99@14: # the symbol is explicitly referenced. Since portable code cannot joachim99@14: # rely on this symbol name, it's probably fine to never include it in joachim99@14: # preloaded symbol tables. joachim99@14: extract_expsyms_cmds= joachim99@14: joachim99@14: case $host_os in joachim99@14: cygwin* | mingw* | pw32*) joachim99@14: # FIXME: the MSVC++ port hasn't been tested in a loooong time joachim99@14: # When not using gcc, we currently assume that we are using joachim99@14: # Microsoft Visual C++. joachim99@14: if test "$GCC" != yes; then joachim99@14: with_gnu_ld=no joachim99@14: fi joachim99@14: ;; joachim99@14: openbsd*) joachim99@14: with_gnu_ld=no joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=yes joachim99@14: if test "$with_gnu_ld" = yes; then joachim99@14: # If archive_cmds runs LD, not CC, wlarc should be empty joachim99@14: wlarc='${wl}' joachim99@14: joachim99@14: # See if GNU ld supports shared libraries. joachim99@14: case $host_os in joachim99@14: aix3* | aix4* | aix5*) joachim99@14: # On AIX/PPC, the GNU linker is very broken joachim99@14: if test "$host_cpu" != ia64; then joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: cat <&2 joachim99@14: joachim99@14: *** Warning: the GNU linker, at least up to release 2.9.1, is reported joachim99@14: *** to be unable to reliably create shared libraries on AIX. joachim99@14: *** Therefore, libtool is disabling shared libraries support. If you joachim99@14: *** really care for shared libraries, you may want to modify your PATH joachim99@14: *** so that a non-GNU linker is found, and then restart. joachim99@14: joachim99@14: EOF joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: amigaos*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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)' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: joachim99@14: # Samuel A. Falvo II reports joachim99@14: # that the semantics of dynamic libraries on AmigaOS, at least up joachim99@14: # to version 4, is to share data among multiple programs linked joachim99@14: # with the same dynamic library. Since this doesn't match the joachim99@14: # behavior of shared libraries on other platforms, we can't use joachim99@14: # them. joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: beos*) joachim99@14: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported joachim99@14: # Joseph Beckenbach says some releases of gcc joachim99@14: # support --undefined. This deserves some investigation. FIXME joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: cygwin* | mingw* | pw32*) joachim99@14: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, as there is joachim99@14: # no search path for DLLs. joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported joachim99@14: _LT_AC_TAGVAR(always_export_symbols, $1)=yes joachim99@14: joachim99@14: extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ joachim99@14: sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ joachim99@14: test -f $output_objdir/impgen.exe || (cd $output_objdir && \ joachim99@14: if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ joachim99@14: else $CC -o impgen impgen.c ; fi)~ joachim99@14: $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' joachim99@14: joachim99@14: _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' joachim99@14: joachim99@14: # cygwin and mingw dlls have different entry points and sets of symbols joachim99@14: # to exclude. joachim99@14: # FIXME: what about values for MSVC? joachim99@14: dll_entry=__cygwin_dll_entry@12 joachim99@14: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ joachim99@14: case $host_os in joachim99@14: mingw*) joachim99@14: # mingw values joachim99@14: dll_entry=_DllMainCRTStartup@12 joachim99@14: dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: # mingw and cygwin differ, and it's simplest to just exclude the union joachim99@14: # of the two symbol sets. joachim99@14: dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 joachim99@14: joachim99@14: # recent cygwin and mingw systems supply a stub DllMain which the user joachim99@14: # can override, but on older systems we have to supply one (in ltdll.c) joachim99@14: if test "x$lt_cv_need_dllmain" = "xyes"; then joachim99@14: ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " joachim99@14: ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ joachim99@14: test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' joachim99@14: else joachim99@14: ltdll_obj= joachim99@14: ltdll_cmds= joachim99@14: fi joachim99@14: joachim99@14: # Extract the symbol export list from an `--export-all' def file, joachim99@14: # then regenerate the def file from the symbol export list, so that joachim99@14: # the compiled dll only exports the symbol export list. joachim99@14: # Be careful not to strip the DATA tag left by newer dlltools. joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"' joachim99@14: $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ joachim99@14: sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' joachim99@14: joachim99@14: # If the export-symbols file already is a .def file (1st line joachim99@14: # is EXPORTS), use it as is. joachim99@14: # If DATA tags from a recent dlltool are present, honour them! joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then joachim99@14: cp $export_symbols $output_objdir/$soname-def; joachim99@14: else joachim99@14: echo EXPORTS > $output_objdir/$soname-def; joachim99@14: _lt_hint=1; joachim99@14: cat $export_symbols | while read symbol; do joachim99@14: set dummy \$symbol; joachim99@14: case \[$]# in joachim99@14: 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; joachim99@14: *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; joachim99@14: esac; joachim99@14: _lt_hint=`expr 1 + \$_lt_hint`; joachim99@14: done; joachim99@14: fi~ joachim99@14: '"$ltdll_cmds"' joachim99@14: $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ joachim99@14: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ joachim99@14: $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ joachim99@14: $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ joachim99@14: $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' joachim99@14: ;; joachim99@14: joachim99@14: netbsd*) joachim99@14: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' joachim99@14: wlarc= joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: solaris* | sysv5*) joachim99@14: if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: cat <&2 joachim99@14: joachim99@14: *** Warning: The releases 2.8.* of the GNU linker cannot reliably joachim99@14: *** create shared libraries on Solaris systems. Therefore, libtool joachim99@14: *** is disabling shared libraries support. We urge you to upgrade GNU joachim99@14: *** binutils to release 2.9.1 or newer. Another option is to modify joachim99@14: *** your PATH or compiler configuration so that the native linker is joachim99@14: *** used, and then restart. joachim99@14: joachim99@14: EOF joachim99@14: elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: sunos4*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' joachim99@14: wlarc= joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: *) joachim99@14: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then joachim99@14: runpath_var=LD_RUN_PATH joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' joachim99@14: case $host_os in joachim99@14: cygwin* | mingw* | pw32*) joachim99@14: # dlltool doesn't understand --whole-archive et. al. joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= joachim99@14: ;; joachim99@14: *) joachim99@14: # ancient GNU ld didn't support --whole-archive et. al. joachim99@14: if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: else joachim99@14: # PORTME fill in a description of your system's linker (not GNU ld) joachim99@14: case $host_os in joachim99@14: aix3*) joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported joachim99@14: _LT_AC_TAGVAR(always_export_symbols, $1)=yes joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' joachim99@14: # Note: this linker hardcodes the directories in LIBPATH if there joachim99@14: # are no directories specified by -L. joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: if test "$GCC" = yes && test -z "$link_static_flag"; then joachim99@14: # Neither direct hardcoding nor static linking is supported with a joachim99@14: # broken collect2. joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: aix4* | aix5*) joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # On IA64, the linker does run time linking by default, so we don't joachim99@14: # have to do anything special. joachim99@14: aix_use_runtimelinking=no joachim99@14: exp_sym_flag='-Bexport' joachim99@14: no_entry_flag="" joachim99@14: else joachim99@14: # If we're using GNU nm, then we don't want the "-C" option. joachim99@14: # -C means demangle to AIX nm, but means don't demangle with GNU nm joachim99@14: if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' joachim99@14: fi joachim99@14: joachim99@14: # KDE requires run time linking. Make it the default. joachim99@14: aix_use_runtimelinking=yes joachim99@14: exp_sym_flag='-bexport' joachim99@14: no_entry_flag='-bnoentry' joachim99@14: fi joachim99@14: joachim99@14: # When large executables or shared objects are built, AIX ld can joachim99@14: # have problems creating the table of contents. If linking a library joachim99@14: # or program results in "error TOC overflow" add -mminimal-toc to joachim99@14: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not joachim99@14: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. joachim99@14: joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' joachim99@14: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes joachim99@14: joachim99@14: if test "$GCC" = yes; then joachim99@14: case $host_os in aix4.[012]|aix4.[012].*) joachim99@14: # We only want to do this on AIX 4.2 and lower, the check joachim99@14: # below for broken collect2 doesn't work under 4.3+ joachim99@14: collect2name=`${CC} -print-prog-name=collect2` joachim99@14: if test -f "$collect2name" && \ joachim99@14: strings "$collect2name" | grep resolve_lib_name >/dev/null joachim99@14: then joachim99@14: # We have reworked collect2 joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: else joachim99@14: # We have old collect2 joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported joachim99@14: # It fails to find uninstalled libraries when the uninstalled joachim99@14: # path is not listed in the libpath. Setting hardcode_minus_L joachim99@14: # to unsupported forces relinking joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= joachim99@14: fi joachim99@14: esac joachim99@14: shared_flag='-shared' joachim99@14: else joachim99@14: # not using gcc joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release joachim99@14: # chokes on -Wl,-G. The following line is correct: joachim99@14: shared_flag='-G' joachim99@14: else joachim99@14: if test "$aix_use_runtimelinking" = yes; then joachim99@14: shared_flag='-qmkshrobj ${wl}-G' joachim99@14: else joachim99@14: shared_flag='-qmkshrobj' joachim99@14: fi joachim99@14: fi joachim99@14: fi joachim99@14: joachim99@14: # Let the compiler handle the export list. joachim99@14: _LT_AC_TAGVAR(always_export_symbols, $1)=no joachim99@14: if test "$aix_use_runtimelinking" = yes; then joachim99@14: # Warning - without using the other runtime loading flags (-brtl), joachim99@14: # -berok will link without error, but may produce a broken library. joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' joachim99@14: # Determine the default libpath from the value encoded in an empty executable. joachim99@14: _LT_AC_SYS_LIBPATH_AIX joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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}$exp_sym_flag:\$export_symbols $shared_flag" joachim99@14: else joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" joachim99@14: else joachim99@14: # Determine the default libpath from the value encoded in an empty executable. joachim99@14: _LT_AC_SYS_LIBPATH_AIX joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" joachim99@14: # Warning - without using the other run time loading flags, joachim99@14: # -berok will link without error, but may produce a broken library. joachim99@14: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' joachim99@14: # -bexpall does not export symbols beginning with underscore (_) joachim99@14: _LT_AC_TAGVAR(always_export_symbols, $1)=yes joachim99@14: # Exported symbols can be pulled into shared objects from archives joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes joachim99@14: # This is similar to how AIX traditionally builds it's shared libraries. joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' joachim99@14: fi joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: amigaos*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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)' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: # see comment about different semantics on the GNU ld section joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: bsdi4*) joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic joachim99@14: ;; joachim99@14: joachim99@14: cygwin* | mingw* | pw32*) joachim99@14: # When not using gcc, we currently assume that we are using joachim99@14: # Microsoft Visual C++. joachim99@14: # hardcode_libdir_flag_spec is actually meaningless, as there is joachim99@14: # no search path for DLLs. joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported joachim99@14: # Tell ltmain to make .lib files, not .a files. joachim99@14: libext=lib joachim99@14: # FIXME: Setting linknames here is a bad hack. joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' joachim99@14: # The linker will automatically build a .lib file if we build a DLL. joachim99@14: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' joachim99@14: # FIXME: Should let the user specify the lib program. joachim99@14: _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' joachim99@14: fix_srcfile_path='`cygpath -w "$srcfile"`' joachim99@14: ;; joachim99@14: joachim99@14: darwin* | rhapsody*) joachim99@14: case "$host_os" in joachim99@14: rhapsody* | darwin1.[[012]]) joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' joachim99@14: ;; joachim99@14: *) # Darwin 1.3 on joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' joachim99@14: ;; joachim99@14: esac joachim99@14: joachim99@14: # FIXME: Relying on posixy $() will cause problems for joachim99@14: # cross-compilation, but unfortunately the echo tests do not joachim99@14: # yet detect zsh echo's removal of \ escapes. Also zsh mangles joachim99@14: # `"' quotes if we put them in here... so don't! joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' joachim99@14: # We need to add '_' to the symbols in $export_symbols first joachim99@14: #_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$_LT_AC_TAGVAR(archive_cmds, $1)"' && strip -s $export_symbols' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' joachim99@14: ;; joachim99@14: joachim99@14: dgux*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: freebsd1*) joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor joachim99@14: # support. Future versions do this automatically, but an explicit c++rt0.o joachim99@14: # does not break anything, and helps significantly (at the cost of a little joachim99@14: # extra space). joachim99@14: freebsd2.2*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: # Unfortunately, older versions of FreeBSD 2 do not have this feature. joachim99@14: freebsd2*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. joachim99@14: freebsd*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: hpux9* | hpux10* | hpux11*) joachim99@14: if test "$GCC" = yes; then joachim99@14: case $host_os in joachim99@14: hpux9*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: ;; joachim99@14: *) joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: else joachim99@14: case $host_os in joachim99@14: hpux9*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: ;; joachim99@14: *) joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' joachim99@14: fi joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: if test "$host_cpu" = ia64; then joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=no joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: else joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: fi joachim99@14: # hardcode_minus_L: Not really in the search PATH, joachim99@14: # but as the default location of the library. joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' joachim99@14: ;; joachim99@14: joachim99@14: irix5* | irix6* | nonstopux*) joachim99@14: if test "$GCC" = yes; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes joachim99@14: ;; joachim99@14: joachim99@14: netbsd*) joachim99@14: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: newsos6) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: openbsd*) joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: joachim99@14: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' joachim99@14: else joachim99@14: case $host_os in joachim99@14: openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' joachim99@14: ;; joachim99@14: *) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: os2*) joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' joachim99@14: ;; joachim99@14: joachim99@14: osf3*) joachim99@14: if test "$GCC" = yes; then joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: ;; joachim99@14: joachim99@14: osf4* | osf5*) # as osf3* with the addition of -msym flag joachim99@14: if test "$GCC" = yes; then joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$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' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ joachim99@14: $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' joachim99@14: joachim99@14: # Both c and cxx compiler support -rpath directly joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: joachim99@14: ;; joachim99@14: joachim99@14: sco3.2v5*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' joachim99@14: runpath_var=LD_RUN_PATH joachim99@14: hardcode_runpath_var=yes joachim99@14: ;; joachim99@14: joachim99@14: solaris*) joachim99@14: _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' joachim99@14: if test "$GCC" = yes; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ joachim99@14: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ joachim99@14: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: case $host_os in joachim99@14: solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; joachim99@14: *) # Supported since Solaris 2.6 (maybe 2.5.1?) joachim99@14: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; joachim99@14: esac joachim99@14: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes joachim99@14: ;; joachim99@14: joachim99@14: sunos4*) joachim99@14: if test "x$host_vendor" = xsequent; then joachim99@14: # Use $CC to link under sequent, because it throws in some extra .o joachim99@14: # files that make .init and .fini sections work. joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: sysv4) joachim99@14: if test "x$host_vendor" = xsni; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie joachim99@14: fi joachim99@14: runpath_var='LD_RUN_PATH' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: sysv4.3*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' joachim99@14: ;; joachim99@14: joachim99@14: sysv4*MP*) joachim99@14: if test -d /usr/nec; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: runpath_var=LD_RUN_PATH joachim99@14: hardcode_runpath_var=yes joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=yes joachim99@14: fi joachim99@14: ;; joachim99@14: joachim99@14: sysv4.2uw2*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_direct, $1)=yes joachim99@14: _LT_AC_TAGVAR(hardcode_minus_L, $1)=no joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: hardcode_runpath_var=yes joachim99@14: runpath_var=LD_RUN_PATH joachim99@14: ;; joachim99@14: joachim99@14: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) joachim99@14: _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' joachim99@14: if test "$GCC" = yes; then joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' joachim99@14: fi joachim99@14: runpath_var='LD_RUN_PATH' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: sysv5*) joachim99@14: _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' joachim99@14: # $CC -shared without GNU ld will not create a library from C++ joachim99@14: # object files and a static libstdc++, better avoid it by now joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ joachim99@14: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: runpath_var='LD_RUN_PATH' joachim99@14: ;; joachim99@14: joachim99@14: uts4*) joachim99@14: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' joachim99@14: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' joachim99@14: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no joachim99@14: ;; joachim99@14: joachim99@14: *) joachim99@14: _LT_AC_TAGVAR(ld_shlibs, $1)=no joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: ]) joachim99@14: AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) joachim99@14: test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no joachim99@14: joachim99@14: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" joachim99@14: if test "$GCC" = yes; then joachim99@14: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" joachim99@14: fi joachim99@14: joachim99@14: # joachim99@14: # Do we need to explicitly link libc? joachim99@14: # joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes joachim99@14: if test "$enable_shared" = yes && test "$GCC" = yes; then joachim99@14: case $_LT_AC_TAGVAR(archive_cmds, $1) in joachim99@14: *'~'*) joachim99@14: # FIXME: we may have to deal with multi-command sequences. joachim99@14: ;; joachim99@14: '$CC '*) joachim99@14: # Test whether the compiler implicitly links with -lc since on some joachim99@14: # systems, -lgcc has to come before -lc. If gcc already passes -lc joachim99@14: # to ld, don't add -lc before -lgcc. joachim99@14: AC_MSG_CHECKING([whether -lc should be explicitly linked in]) joachim99@14: $rm conftest* joachim99@14: echo 'static int dummy;' > conftest.$ac_ext joachim99@14: joachim99@14: if AC_TRY_EVAL(ac_compile) 2>conftest.err; then joachim99@14: soname=conftest joachim99@14: lib=conftest joachim99@14: libobjs=conftest.$ac_objext joachim99@14: deplibs= joachim99@14: wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) joachim99@14: compiler_flags=-v joachim99@14: linker_flags=-v joachim99@14: verstring= joachim99@14: output_objdir=. joachim99@14: libname=conftest joachim99@14: lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)= joachim99@14: if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) joachim99@14: then joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no joachim99@14: else joachim99@14: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes joachim99@14: fi joachim99@14: _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag joachim99@14: else joachim99@14: cat conftest.err 1>&5 joachim99@14: fi joachim99@14: $rm conftest* joachim99@14: AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) joachim99@14: ;; joachim99@14: esac joachim99@14: fi joachim99@14: ])# AC_LIBTOOL_PROG_LD_SHLIBS joachim99@14: joachim99@14: joachim99@14: # _LT_AC_FILE_LTDLL_C joachim99@14: # ------------------- joachim99@14: # Be careful that the start marker always follows a newline. joachim99@14: AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ joachim99@14: # /* ltdll.c starts here */ joachim99@14: # #define WIN32_LEAN_AND_MEAN joachim99@14: # #include joachim99@14: # #undef WIN32_LEAN_AND_MEAN joachim99@14: # #include joachim99@14: # joachim99@14: # #ifndef __CYGWIN__ joachim99@14: # # ifdef __CYGWIN32__ joachim99@14: # # define __CYGWIN__ __CYGWIN32__ joachim99@14: # # endif joachim99@14: # #endif joachim99@14: # joachim99@14: # #ifdef __cplusplus joachim99@14: # extern "C" { joachim99@14: # #endif joachim99@14: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); joachim99@14: # #ifdef __cplusplus joachim99@14: # } joachim99@14: # #endif joachim99@14: # joachim99@14: # #ifdef __CYGWIN__ joachim99@14: # #include joachim99@14: # DECLARE_CYGWIN_DLL( DllMain ); joachim99@14: # #endif joachim99@14: # HINSTANCE __hDllInstance_base; joachim99@14: # joachim99@14: # BOOL APIENTRY joachim99@14: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) joachim99@14: # { joachim99@14: # __hDllInstance_base = hInst; joachim99@14: # return TRUE; joachim99@14: # } joachim99@14: # /* ltdll.c ends here */ joachim99@14: ])# _LT_AC_FILE_LTDLL_C joachim99@14: joachim99@14: joachim99@14: # _LT_AC_FILE_IMPGEN_C joachim99@14: # -------------------- joachim99@14: # Be careful that the start marker always follows a newline. joachim99@14: AC_DEFUN([_LT_AC_FILE_IMPGEN_C], [ joachim99@14: # /* impgen.c starts here */ joachim99@14: # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. joachim99@14: # joachim99@14: # This file is part of GNU libtool. joachim99@14: # joachim99@14: # This program is free software; you can redistribute it and/or modify joachim99@14: # it under the terms of the GNU General Public License as published by joachim99@14: # the Free Software Foundation; either version 2 of the License, or joachim99@14: # (at your option) any later version. joachim99@14: # joachim99@14: # This program is distributed in the hope that it will be useful, joachim99@14: # but WITHOUT ANY WARRANTY; without even the implied warranty of joachim99@14: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the joachim99@14: # GNU General Public License for more details. joachim99@14: # joachim99@14: # You should have received a copy of the GNU General Public License joachim99@14: # along with this program; if not, write to the Free Software joachim99@14: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. joachim99@14: # */ joachim99@14: # joachim99@14: # #include /* for printf() */ joachim99@14: # #include /* for open(), lseek(), read() */ joachim99@14: # #include /* for O_RDONLY, O_BINARY */ joachim99@14: # #include /* for strdup() */ joachim99@14: # joachim99@14: # /* O_BINARY isn't required (or even defined sometimes) under Unix */ joachim99@14: # #ifndef O_BINARY joachim99@14: # #define O_BINARY 0 joachim99@14: # #endif joachim99@14: # joachim99@14: # static unsigned int joachim99@14: # pe_get16 (fd, offset) joachim99@14: # int fd; joachim99@14: # int offset; joachim99@14: # { joachim99@14: # unsigned char b[2]; joachim99@14: # lseek (fd, offset, SEEK_SET); joachim99@14: # read (fd, b, 2); joachim99@14: # return b[0] + (b[1]<<8); joachim99@14: # } joachim99@14: # joachim99@14: # static unsigned int joachim99@14: # pe_get32 (fd, offset) joachim99@14: # int fd; joachim99@14: # int offset; joachim99@14: # { joachim99@14: # unsigned char b[4]; joachim99@14: # lseek (fd, offset, SEEK_SET); joachim99@14: # read (fd, b, 4); joachim99@14: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); joachim99@14: # } joachim99@14: # joachim99@14: # static unsigned int joachim99@14: # pe_as32 (ptr) joachim99@14: # void *ptr; joachim99@14: # { joachim99@14: # unsigned char *b = ptr; joachim99@14: # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); joachim99@14: # } joachim99@14: # joachim99@14: # int joachim99@14: # main (argc, argv) joachim99@14: # int argc; joachim99@14: # char *argv[]; joachim99@14: # { joachim99@14: # int dll; joachim99@14: # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; joachim99@14: # unsigned long export_rva, export_size, nsections, secptr, expptr; joachim99@14: # unsigned long name_rvas, nexp; joachim99@14: # unsigned char *expdata, *erva; joachim99@14: # char *filename, *dll_name; joachim99@14: # joachim99@14: # filename = argv[1]; joachim99@14: # joachim99@14: # dll = open(filename, O_RDONLY|O_BINARY); joachim99@14: # if (dll < 1) joachim99@14: # return 1; joachim99@14: # joachim99@14: # dll_name = filename; joachim99@14: # joachim99@14: # for (i=0; filename[i]; i++) joachim99@14: # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') joachim99@14: # dll_name = filename + i +1; joachim99@14: # joachim99@14: # pe_header_offset = pe_get32 (dll, 0x3c); joachim99@14: # opthdr_ofs = pe_header_offset + 4 + 20; joachim99@14: # num_entries = pe_get32 (dll, opthdr_ofs + 92); joachim99@14: # joachim99@14: # if (num_entries < 1) /* no exports */ joachim99@14: # return 1; joachim99@14: # joachim99@14: # export_rva = pe_get32 (dll, opthdr_ofs + 96); joachim99@14: # export_size = pe_get32 (dll, opthdr_ofs + 100); joachim99@14: # nsections = pe_get16 (dll, pe_header_offset + 4 +2); joachim99@14: # secptr = (pe_header_offset + 4 + 20 + joachim99@14: # pe_get16 (dll, pe_header_offset + 4 + 16)); joachim99@14: # joachim99@14: # expptr = 0; joachim99@14: # for (i = 0; i < nsections; i++) joachim99@14: # { joachim99@14: # char sname[8]; joachim99@14: # unsigned long secptr1 = secptr + 40 * i; joachim99@14: # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); joachim99@14: # unsigned long vsize = pe_get32 (dll, secptr1 + 16); joachim99@14: # unsigned long fptr = pe_get32 (dll, secptr1 + 20); joachim99@14: # lseek(dll, secptr1, SEEK_SET); joachim99@14: # read(dll, sname, 8); joachim99@14: # if (vaddr <= export_rva && vaddr+vsize > export_rva) joachim99@14: # { joachim99@14: # expptr = fptr + (export_rva - vaddr); joachim99@14: # if (export_rva + export_size > vaddr + vsize) joachim99@14: # export_size = vsize - (export_rva - vaddr); joachim99@14: # break; joachim99@14: # } joachim99@14: # } joachim99@14: # joachim99@14: # expdata = (unsigned char*)malloc(export_size); joachim99@14: # lseek (dll, expptr, SEEK_SET); joachim99@14: # read (dll, expdata, export_size); joachim99@14: # erva = expdata - export_rva; joachim99@14: # joachim99@14: # nexp = pe_as32 (expdata+24); joachim99@14: # name_rvas = pe_as32 (expdata+32); joachim99@14: # joachim99@14: # printf ("EXPORTS\n"); joachim99@14: # for (i = 0; i/dev/null` && joachim99@14: test -n "$tmp" && test -d "$tmp" joachim99@14: } || joachim99@14: { joachim99@14: tmp=$TMPDIR/sed$$-$RANDOM joachim99@14: (umask 077 && mkdir $tmp) joachim99@14: } || joachim99@14: { joachim99@14: echo "$me: cannot create a temporary directory in $TMPDIR" >&2 joachim99@14: { (exit 1); exit 1; } joachim99@14: } joachim99@14: _max=0 joachim99@14: _count=0 joachim99@14: # Add /usr/xpg4/bin/sed as it is typically found on Solaris joachim99@14: # along with /bin/sed that truncates output. joachim99@14: for _sed in $_sed_list /usr/xpg4/bin/sed; do joachim99@14: test ! -f ${_sed} && break joachim99@14: cat /dev/null > "$tmp/sed.in" joachim99@14: _count=0 joachim99@14: echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in" joachim99@14: # Check for GNU sed and select it if it is found. joachim99@14: if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then joachim99@14: lt_cv_path_SED=${_sed} joachim99@14: break; joachim99@14: fi joachim99@14: while true; do joachim99@14: cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" joachim99@14: mv "$tmp/sed.tmp" "$tmp/sed.in" joachim99@14: cp "$tmp/sed.in" "$tmp/sed.nl" joachim99@14: echo >>"$tmp/sed.nl" joachim99@14: ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break joachim99@14: cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break joachim99@14: # 10000 chars as input seems more than enough joachim99@14: test $_count -gt 10 && break joachim99@14: _count=`expr $_count + 1` joachim99@14: if test $_count -gt $_max; then joachim99@14: _max=$_count joachim99@14: lt_cv_path_SED=$_sed joachim99@14: fi joachim99@14: done joachim99@14: done joachim99@14: rm -rf "$tmp" joachim99@14: ]) joachim99@14: AC_MSG_RESULT([$SED]) joachim99@14: ])