cannam@85: # generated automatically by aclocal 1.8.2 -*- Autoconf -*- cannam@85: cannam@85: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 cannam@85: # Free Software Foundation, Inc. cannam@85: # This file is free software; the Free Software Foundation cannam@85: # gives unlimited permission to copy and/or distribute it, cannam@85: # with or without modifications, as long as this notice is preserved. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY, to the extent permitted by law; without cannam@85: # even the implied warranty of MERCHANTABILITY or FITNESS FOR A cannam@85: # PARTICULAR PURPOSE. cannam@85: cannam@85: # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- cannam@85: cannam@85: # serial 47 AC_PROG_LIBTOOL cannam@85: # Debian $Rev: 192 $ cannam@85: cannam@85: cannam@85: # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) cannam@85: # ----------------------------------------------------------- cannam@85: # If this macro is not defined by Autoconf, define it here. cannam@85: m4_ifdef([AC_PROVIDE_IFELSE], cannam@85: [], cannam@85: [m4_define([AC_PROVIDE_IFELSE], cannam@85: [m4_ifdef([AC_PROVIDE_$1], cannam@85: [$2], [$3])])]) cannam@85: cannam@85: cannam@85: # AC_PROG_LIBTOOL cannam@85: # --------------- cannam@85: AC_DEFUN([AC_PROG_LIBTOOL], cannam@85: [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl cannam@85: dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX cannam@85: dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. cannam@85: AC_PROVIDE_IFELSE([AC_PROG_CXX], cannam@85: [AC_LIBTOOL_CXX], cannam@85: [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX cannam@85: ])]) cannam@85: dnl And a similar setup for Fortran 77 support cannam@85: AC_PROVIDE_IFELSE([AC_PROG_F77], cannam@85: [AC_LIBTOOL_F77], cannam@85: [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 cannam@85: ])]) cannam@85: cannam@85: dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. cannam@85: dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run cannam@85: dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. cannam@85: AC_PROVIDE_IFELSE([AC_PROG_GCJ], cannam@85: [AC_LIBTOOL_GCJ], cannam@85: [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], cannam@85: [AC_LIBTOOL_GCJ], cannam@85: [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], cannam@85: [AC_LIBTOOL_GCJ], cannam@85: [ifdef([AC_PROG_GCJ], cannam@85: [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) cannam@85: ifdef([A][M_PROG_GCJ], cannam@85: [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) cannam@85: ifdef([LT_AC_PROG_GCJ], cannam@85: [define([LT_AC_PROG_GCJ], cannam@85: defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) cannam@85: ])])# AC_PROG_LIBTOOL cannam@85: cannam@85: cannam@85: # _AC_PROG_LIBTOOL cannam@85: # ---------------- cannam@85: AC_DEFUN([_AC_PROG_LIBTOOL], cannam@85: [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl cannam@85: AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl cannam@85: AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl cannam@85: AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl cannam@85: cannam@85: # This can be used to rebuild libtool when needed cannam@85: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" cannam@85: cannam@85: # Always use our own libtool. cannam@85: LIBTOOL='$(SHELL) $(top_builddir)/libtool' cannam@85: AC_SUBST(LIBTOOL)dnl cannam@85: cannam@85: # Prevent multiple expansion cannam@85: define([AC_PROG_LIBTOOL], []) cannam@85: ])# _AC_PROG_LIBTOOL cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_SETUP cannam@85: # ---------------- cannam@85: AC_DEFUN([AC_LIBTOOL_SETUP], cannam@85: [AC_PREREQ(2.50)dnl cannam@85: AC_REQUIRE([AC_ENABLE_SHARED])dnl cannam@85: AC_REQUIRE([AC_ENABLE_STATIC])dnl cannam@85: AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl cannam@85: AC_REQUIRE([AC_CANONICAL_HOST])dnl cannam@85: AC_REQUIRE([AC_CANONICAL_BUILD])dnl cannam@85: AC_REQUIRE([AC_PROG_CC])dnl cannam@85: AC_REQUIRE([AC_PROG_LD])dnl cannam@85: AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl cannam@85: AC_REQUIRE([AC_PROG_NM])dnl cannam@85: cannam@85: AC_REQUIRE([AC_PROG_LN_S])dnl cannam@85: AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl cannam@85: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! cannam@85: AC_REQUIRE([AC_OBJEXT])dnl cannam@85: AC_REQUIRE([AC_EXEEXT])dnl cannam@85: dnl cannam@85: cannam@85: AC_LIBTOOL_SYS_MAX_CMD_LEN cannam@85: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE cannam@85: AC_LIBTOOL_OBJDIR cannam@85: cannam@85: AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl cannam@85: _LT_AC_PROG_ECHO_BACKSLASH cannam@85: cannam@85: case $host_os in cannam@85: aix3*) cannam@85: # AIX sometimes has problems with the GCC collect2 program. For some cannam@85: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@85: # vanish in a puff of smoke. cannam@85: if test "X${COLLECT_NAMES+set}" != Xset; then cannam@85: COLLECT_NAMES= cannam@85: export COLLECT_NAMES cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # Sed substitution that helps us do robust quoting. It backslashifies cannam@85: # metacharacters that are still active within double-quoted strings. cannam@85: Xsed='sed -e s/^X//' cannam@85: [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] cannam@85: cannam@85: # Same as above, but do not quote variable references. cannam@85: [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] cannam@85: cannam@85: # Sed substitution to delay expansion of an escaped shell variable in a cannam@85: # double_quote_subst'ed string. cannam@85: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' cannam@85: cannam@85: # Sed substitution to avoid accidental globbing in evaled expressions cannam@85: no_glob_subst='s/\*/\\\*/g' cannam@85: cannam@85: # Constants: cannam@85: rm="rm -f" cannam@85: cannam@85: # Global variables: cannam@85: default_ofile=libtool cannam@85: can_build_shared=yes cannam@85: cannam@85: # All known linkers require a `.a' archive for static linking (except M$VC, cannam@85: # which needs '.lib'). cannam@85: libext=a cannam@85: ltmain="$ac_aux_dir/ltmain.sh" cannam@85: ofile="$default_ofile" cannam@85: with_gnu_ld="$lt_cv_prog_gnu_ld" cannam@85: cannam@85: AC_CHECK_TOOL(AR, ar, false) cannam@85: AC_CHECK_TOOL(RANLIB, ranlib, :) cannam@85: AC_CHECK_TOOL(STRIP, strip, :) cannam@85: cannam@85: old_CC="$CC" cannam@85: old_CFLAGS="$CFLAGS" cannam@85: cannam@85: # Set sane defaults for various variables cannam@85: test -z "$AR" && AR=ar cannam@85: test -z "$AR_FLAGS" && AR_FLAGS=cru cannam@85: test -z "$AS" && AS=as cannam@85: test -z "$CC" && CC=cc cannam@85: test -z "$LTCC" && LTCC=$CC cannam@85: test -z "$DLLTOOL" && DLLTOOL=dlltool cannam@85: test -z "$LD" && LD=ld cannam@85: test -z "$LN_S" && LN_S="ln -s" cannam@85: test -z "$MAGIC_CMD" && MAGIC_CMD=file cannam@85: test -z "$NM" && NM=nm cannam@85: test -z "$SED" && SED=sed cannam@85: test -z "$OBJDUMP" && OBJDUMP=objdump cannam@85: test -z "$RANLIB" && RANLIB=: cannam@85: test -z "$STRIP" && STRIP=: cannam@85: test -z "$ac_objext" && ac_objext=o cannam@85: cannam@85: # Determine commands to create old-style static archives. cannam@85: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' cannam@85: old_postinstall_cmds='chmod 644 $oldlib' cannam@85: old_postuninstall_cmds= cannam@85: cannam@85: if test -n "$RANLIB"; then cannam@85: case $host_os in cannam@85: openbsd*) cannam@85: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" cannam@85: ;; cannam@85: *) cannam@85: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" cannam@85: ;; cannam@85: esac cannam@85: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" cannam@85: fi cannam@85: cannam@85: # Only perform the check for file, if the check method requires it cannam@85: case $deplibs_check_method in cannam@85: file_magic*) cannam@85: if test "$file_magic_cmd" = '$MAGIC_CMD'; then cannam@85: AC_PATH_MAGIC cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) cannam@85: AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], cannam@85: enable_win32_dll=yes, enable_win32_dll=no) cannam@85: cannam@85: AC_ARG_ENABLE([libtool-lock], cannam@85: [AC_HELP_STRING([--disable-libtool-lock], cannam@85: [avoid locking (might break parallel builds)])]) cannam@85: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes cannam@85: cannam@85: AC_ARG_WITH([pic], cannam@85: [AC_HELP_STRING([--with-pic], cannam@85: [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], cannam@85: [pic_mode="$withval"], cannam@85: [pic_mode=default]) cannam@85: test -z "$pic_mode" && pic_mode=default cannam@85: cannam@85: # Use C for the default configuration in the libtool script cannam@85: tagname= cannam@85: AC_LIBTOOL_LANG_C_CONFIG cannam@85: _LT_AC_TAGCONFIG cannam@85: ])# AC_LIBTOOL_SETUP cannam@85: cannam@85: cannam@85: # _LT_AC_SYS_COMPILER cannam@85: # ------------------- cannam@85: AC_DEFUN([_LT_AC_SYS_COMPILER], cannam@85: [AC_REQUIRE([AC_PROG_CC])dnl cannam@85: cannam@85: # If no C compiler was specified, use CC. cannam@85: LTCC=${LTCC-"$CC"} cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: compiler=$CC cannam@85: ])# _LT_AC_SYS_COMPILER cannam@85: cannam@85: cannam@85: # _LT_AC_SYS_LIBPATH_AIX cannam@85: # ---------------------- cannam@85: # Links a minimal program and checks the executable cannam@85: # for the system default hardcoded library path. In most cases, cannam@85: # this is /usr/lib:/lib, but when the MPI compilers are used cannam@85: # the location of the communication and MPI libs are included too. cannam@85: # If we don't find anything, use the default library path according cannam@85: # to the aix ld manual. cannam@85: AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], cannam@85: [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ cannam@85: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } cannam@85: }'` cannam@85: # Check for a 64-bit object if we didn't find anything. cannam@85: 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; } cannam@85: }'`; fi],[]) cannam@85: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi cannam@85: ])# _LT_AC_SYS_LIBPATH_AIX cannam@85: cannam@85: cannam@85: # _LT_AC_SHELL_INIT(ARG) cannam@85: # ---------------------- cannam@85: AC_DEFUN([_LT_AC_SHELL_INIT], cannam@85: [ifdef([AC_DIVERSION_NOTICE], cannam@85: [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], cannam@85: [AC_DIVERT_PUSH(NOTICE)]) cannam@85: $1 cannam@85: AC_DIVERT_POP cannam@85: ])# _LT_AC_SHELL_INIT cannam@85: cannam@85: cannam@85: # _LT_AC_PROG_ECHO_BACKSLASH cannam@85: # -------------------------- cannam@85: # Add some code to the start of the generated configure script which cannam@85: # will find an echo command which doesn't interpret backslashes. cannam@85: AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], cannam@85: [_LT_AC_SHELL_INIT([ cannam@85: # Check that we are running under the correct shell. cannam@85: SHELL=${CONFIG_SHELL-/bin/sh} cannam@85: cannam@85: case X$ECHO in cannam@85: X*--fallback-echo) cannam@85: # Remove one level of quotation (which was required for Make). cannam@85: ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` cannam@85: ;; cannam@85: esac cannam@85: cannam@85: echo=${ECHO-echo} cannam@85: if test "X[$]1" = X--no-reexec; then cannam@85: # Discard the --no-reexec flag, and continue. cannam@85: shift cannam@85: elif test "X[$]1" = X--fallback-echo; then cannam@85: # Avoid inline document here, it may be left over cannam@85: : cannam@85: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then cannam@85: # Yippee, $echo works! cannam@85: : cannam@85: else cannam@85: # Restart under the correct shell. cannam@85: exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} cannam@85: fi cannam@85: cannam@85: if test "X[$]1" = X--fallback-echo; then cannam@85: # used as fallback echo cannam@85: shift cannam@85: cat </dev/null && cannam@85: echo_test_string="`eval $cmd`" && cannam@85: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null cannam@85: then cannam@85: break cannam@85: fi cannam@85: done cannam@85: fi cannam@85: cannam@85: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && cannam@85: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: : cannam@85: else cannam@85: # The Solaris, AIX, and Digital Unix default echo programs unquote cannam@85: # backslashes. This makes it impossible to quote backslashes using cannam@85: # echo "$something" | sed 's/\\/\\\\/g' cannam@85: # cannam@85: # So, first we look for a working echo in the user's PATH. cannam@85: cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: for dir in $PATH /usr/ucb; do cannam@85: IFS="$lt_save_ifs" cannam@85: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && cannam@85: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && cannam@85: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: echo="$dir/echo" cannam@85: break cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: cannam@85: if test "X$echo" = Xecho; then cannam@85: # We didn't find a better echo, so look for alternatives. cannam@85: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && cannam@85: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: # This shell has a builtin print -r that does the trick. cannam@85: echo='print -r' cannam@85: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && cannam@85: test "X$CONFIG_SHELL" != X/bin/ksh; then cannam@85: # If we have ksh, try running configure again with it. cannam@85: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} cannam@85: export ORIGINAL_CONFIG_SHELL cannam@85: CONFIG_SHELL=/bin/ksh cannam@85: export CONFIG_SHELL cannam@85: exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} cannam@85: else cannam@85: # Try using printf. cannam@85: echo='printf %s\n' cannam@85: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && cannam@85: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: # Cool, printf works cannam@85: : cannam@85: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && cannam@85: test "X$echo_testing_string" = 'X\t' && cannam@85: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL cannam@85: export CONFIG_SHELL cannam@85: SHELL="$CONFIG_SHELL" cannam@85: export SHELL cannam@85: echo="$CONFIG_SHELL [$]0 --fallback-echo" cannam@85: elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && cannam@85: test "X$echo_testing_string" = 'X\t' && cannam@85: echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && cannam@85: test "X$echo_testing_string" = "X$echo_test_string"; then cannam@85: echo="$CONFIG_SHELL [$]0 --fallback-echo" cannam@85: else cannam@85: # maybe with a smaller string... cannam@85: prev=: cannam@85: cannam@85: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do cannam@85: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null cannam@85: then cannam@85: break cannam@85: fi cannam@85: prev="$cmd" cannam@85: done cannam@85: cannam@85: if test "$prev" != 'sed 50q "[$]0"'; then cannam@85: echo_test_string=`eval $prev` cannam@85: export echo_test_string cannam@85: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} cannam@85: else cannam@85: # Oops. We lost completely, so just stick with echo. cannam@85: echo=echo cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: cannam@85: # Copy echo and quote the copy suitably for passing to libtool from cannam@85: # the Makefile, instead of quoting the original, which is used later. cannam@85: ECHO=$echo cannam@85: if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then cannam@85: ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" cannam@85: fi cannam@85: cannam@85: AC_SUBST(ECHO) cannam@85: ])])# _LT_AC_PROG_ECHO_BACKSLASH cannam@85: cannam@85: cannam@85: # _LT_AC_LOCK cannam@85: # ----------- cannam@85: AC_DEFUN([_LT_AC_LOCK], cannam@85: [AC_ARG_ENABLE([libtool-lock], cannam@85: [AC_HELP_STRING([--disable-libtool-lock], cannam@85: [avoid locking (might break parallel builds)])]) cannam@85: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes cannam@85: cannam@85: # Some flags need to be propagated to the compiler or linker for good cannam@85: # libtool support. cannam@85: case $host in cannam@85: ia64-*-hpux*) cannam@85: # Find out which ABI we are using. cannam@85: echo 'int i;' > conftest.$ac_ext cannam@85: if AC_TRY_EVAL(ac_compile); then cannam@85: case `/usr/bin/file conftest.$ac_objext` in cannam@85: *ELF-32*) cannam@85: HPUX_IA64_MODE="32" cannam@85: ;; cannam@85: *ELF-64*) cannam@85: HPUX_IA64_MODE="64" cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: rm -rf conftest* cannam@85: ;; cannam@85: *-*-irix6*) cannam@85: # Find out which ABI we are using. cannam@85: echo '[#]line __oline__ "configure"' > conftest.$ac_ext cannam@85: if AC_TRY_EVAL(ac_compile); then cannam@85: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@85: case `/usr/bin/file conftest.$ac_objext` in cannam@85: *32-bit*) cannam@85: LD="${LD-ld} -melf32bsmip" cannam@85: ;; cannam@85: *N32*) cannam@85: LD="${LD-ld} -melf32bmipn32" cannam@85: ;; cannam@85: *64-bit*) cannam@85: LD="${LD-ld} -melf64bmip" cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: case `/usr/bin/file conftest.$ac_objext` in cannam@85: *32-bit*) cannam@85: LD="${LD-ld} -32" cannam@85: ;; cannam@85: *N32*) cannam@85: LD="${LD-ld} -n32" cannam@85: ;; cannam@85: *64-bit*) cannam@85: LD="${LD-ld} -64" cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: fi cannam@85: rm -rf conftest* cannam@85: ;; cannam@85: cannam@85: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) cannam@85: # Find out which ABI we are using. cannam@85: echo 'int i;' > conftest.$ac_ext cannam@85: if AC_TRY_EVAL(ac_compile); then cannam@85: case "`/usr/bin/file conftest.o`" in cannam@85: *32-bit*) cannam@85: case $host in cannam@85: x86_64-*linux*) cannam@85: LD="${LD-ld} -m elf_i386" cannam@85: ;; cannam@85: ppc64-*linux*|powerpc64-*linux*) cannam@85: LD="${LD-ld} -m elf32ppclinux" cannam@85: ;; cannam@85: s390x-*linux*) cannam@85: LD="${LD-ld} -m elf_s390" cannam@85: ;; cannam@85: sparc64-*linux*) cannam@85: LD="${LD-ld} -m elf32_sparc" cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: *64-bit*) cannam@85: case $host in cannam@85: x86_64-*linux*) cannam@85: LD="${LD-ld} -m elf_x86_64" cannam@85: ;; cannam@85: ppc*-*linux*|powerpc*-*linux*) cannam@85: LD="${LD-ld} -m elf64ppc" cannam@85: ;; cannam@85: s390*-*linux*) cannam@85: LD="${LD-ld} -m elf64_s390" cannam@85: ;; cannam@85: sparc*-*linux*) cannam@85: LD="${LD-ld} -m elf64_sparc" cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: rm -rf conftest* cannam@85: ;; cannam@85: cannam@85: *-*-sco3.2v5*) cannam@85: # On SCO OpenServer 5, we need -belf to get full-featured binaries. cannam@85: SAVE_CFLAGS="$CFLAGS" cannam@85: CFLAGS="$CFLAGS -belf" cannam@85: AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, cannam@85: [AC_LANG_PUSH(C) cannam@85: AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) cannam@85: AC_LANG_POP]) cannam@85: if test x"$lt_cv_cc_needs_belf" != x"yes"; then cannam@85: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf cannam@85: CFLAGS="$SAVE_CFLAGS" cannam@85: fi cannam@85: ;; cannam@85: AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], cannam@85: [*-*-cygwin* | *-*-mingw* | *-*-pw32*) cannam@85: AC_CHECK_TOOL(DLLTOOL, dlltool, false) cannam@85: AC_CHECK_TOOL(AS, as, false) cannam@85: AC_CHECK_TOOL(OBJDUMP, objdump, false) cannam@85: ;; cannam@85: ]) cannam@85: esac cannam@85: cannam@85: need_locks="$enable_libtool_lock" cannam@85: cannam@85: ])# _LT_AC_LOCK cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, cannam@85: # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) cannam@85: # ---------------------------------------------------------------- cannam@85: # Check whether the given compiler option works cannam@85: AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], cannam@85: [AC_REQUIRE([LT_AC_PROG_SED]) cannam@85: AC_CACHE_CHECK([$1], [$2], cannam@85: [$2=no cannam@85: ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: lt_compiler_flag="$3" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: # The option is referenced via a variable to avoid confusing sed. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) cannam@85: (eval "$lt_compile" 2>conftest.err) cannam@85: ac_status=$? cannam@85: cat conftest.err >&AS_MESSAGE_LOG_FD cannam@85: echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD cannam@85: if (exit $ac_status) && test -s "$ac_outfile"; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s conftest.err; then cannam@85: $2=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: ]) cannam@85: cannam@85: if test x"[$]$2" = xyes; then cannam@85: ifelse([$5], , :, [$5]) cannam@85: else cannam@85: ifelse([$6], , :, [$6]) cannam@85: fi cannam@85: ])# AC_LIBTOOL_COMPILER_OPTION cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, cannam@85: # [ACTION-SUCCESS], [ACTION-FAILURE]) cannam@85: # ------------------------------------------------------------ cannam@85: # Check whether the given compiler option works cannam@85: AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], cannam@85: [AC_CACHE_CHECK([$1], [$2], cannam@85: [$2=no cannam@85: save_LDFLAGS="$LDFLAGS" cannam@85: LDFLAGS="$LDFLAGS $3" cannam@85: printf "$lt_simple_link_test_code" > conftest.$ac_ext cannam@85: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test -s conftest.err; then cannam@85: # Append any errors to the config.log. cannam@85: cat conftest.err 1>&AS_MESSAGE_LOG_FD cannam@85: else cannam@85: $2=yes cannam@85: fi cannam@85: fi cannam@85: $rm conftest* cannam@85: LDFLAGS="$save_LDFLAGS" cannam@85: ]) cannam@85: cannam@85: if test x"[$]$2" = xyes; then cannam@85: ifelse([$4], , :, [$4]) cannam@85: else cannam@85: ifelse([$5], , :, [$5]) cannam@85: fi cannam@85: ])# AC_LIBTOOL_LINKER_OPTION cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_SYS_MAX_CMD_LEN cannam@85: # -------------------------- cannam@85: AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], cannam@85: [# find the maximum length of command line arguments cannam@85: AC_MSG_CHECKING([the maximum length of command line arguments]) cannam@85: AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl cannam@85: i=0 cannam@85: testring="ABCD" cannam@85: cannam@85: case $build_os in cannam@85: msdosdjgpp*) cannam@85: # On DJGPP, this test can blow up pretty badly due to problems in libc cannam@85: # (any single argument exceeding 2000 bytes causes a buffer overrun cannam@85: # during glob expansion). Even if it were fixed, the result of this cannam@85: # check would be larger than it should be. cannam@85: lt_cv_sys_max_cmd_len=12288; # 12K is about right cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: # Under GNU Hurd, this test is not required because there is cannam@85: # no limit to the length of command line arguments. cannam@85: # Libtool will interpret -1 as no limit whatsoever cannam@85: lt_cv_sys_max_cmd_len=-1; cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw*) cannam@85: # On Win9x/ME, this test blows up -- it succeeds, but takes cannam@85: # about 5 minutes as the teststring grows exponentially. cannam@85: # Worse, since 9x/ME are not pre-emptively multitasking, cannam@85: # you end up with a "frozen" computer, even though with patience cannam@85: # the test eventually succeeds (with a max line length of 256k). cannam@85: # Instead, let's just punt: use the minimum linelength reported by cannam@85: # all of the supported platforms: 8192 (on NT/2K/XP). cannam@85: lt_cv_sys_max_cmd_len=8192; cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: # On AmigaOS with pdksh, this test takes hours, literally. cannam@85: # So we just punt and use a minimum line length of 8192. cannam@85: lt_cv_sys_max_cmd_len=8192; cannam@85: ;; cannam@85: cannam@85: *) cannam@85: # If test is not a shell built-in, we'll probably end up computing a cannam@85: # maximum length that is only half of the actual maximum length, but cannam@85: # we can't tell. cannam@85: while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ cannam@85: = "XX$testring") >/dev/null 2>&1 && cannam@85: new_result=`expr "X$testring" : ".*" 2>&1` && cannam@85: lt_cv_sys_max_cmd_len=$new_result && cannam@85: test $i != 17 # 1/2 MB should be enough cannam@85: do cannam@85: i=`expr $i + 1` cannam@85: testring=$testring$testring cannam@85: done cannam@85: testring= cannam@85: # Add a significant safety factor because C++ compilers can tack on massive cannam@85: # amounts of additional arguments before passing them to the linker. cannam@85: # It appears as though 1/2 is a usable value. cannam@85: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` cannam@85: ;; cannam@85: esac cannam@85: ]) cannam@85: if test -n $lt_cv_sys_max_cmd_len ; then cannam@85: AC_MSG_RESULT($lt_cv_sys_max_cmd_len) cannam@85: else cannam@85: AC_MSG_RESULT(none) cannam@85: fi cannam@85: ])# AC_LIBTOOL_SYS_MAX_CMD_LEN cannam@85: cannam@85: cannam@85: # _LT_AC_CHECK_DLFCN cannam@85: # -------------------- cannam@85: AC_DEFUN([_LT_AC_CHECK_DLFCN], cannam@85: [AC_CHECK_HEADERS(dlfcn.h)dnl cannam@85: ])# _LT_AC_CHECK_DLFCN cannam@85: cannam@85: cannam@85: # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, cannam@85: # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) cannam@85: # ------------------------------------------------------------------ cannam@85: AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], cannam@85: [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl cannam@85: if test "$cross_compiling" = yes; then : cannam@85: [$4] cannam@85: else cannam@85: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 cannam@85: lt_status=$lt_dlunknown cannam@85: cat > conftest.$ac_ext < cannam@85: #endif cannam@85: cannam@85: #include cannam@85: cannam@85: #ifdef RTLD_GLOBAL cannam@85: # define LT_DLGLOBAL RTLD_GLOBAL cannam@85: #else cannam@85: # ifdef DL_GLOBAL cannam@85: # define LT_DLGLOBAL DL_GLOBAL cannam@85: # else cannam@85: # define LT_DLGLOBAL 0 cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we cannam@85: find out it does not work in some platform. */ cannam@85: #ifndef LT_DLLAZY_OR_NOW cannam@85: # ifdef RTLD_LAZY cannam@85: # define LT_DLLAZY_OR_NOW RTLD_LAZY cannam@85: # else cannam@85: # ifdef DL_LAZY cannam@85: # define LT_DLLAZY_OR_NOW DL_LAZY cannam@85: # else cannam@85: # ifdef RTLD_NOW cannam@85: # define LT_DLLAZY_OR_NOW RTLD_NOW cannam@85: # else cannam@85: # ifdef DL_NOW cannam@85: # define LT_DLLAZY_OR_NOW DL_NOW cannam@85: # else cannam@85: # define LT_DLLAZY_OR_NOW 0 cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: # endif cannam@85: #endif cannam@85: cannam@85: #ifdef __cplusplus cannam@85: extern "C" void exit (int); cannam@85: #endif cannam@85: cannam@85: void fnord() { int i=42;} cannam@85: int main () cannam@85: { cannam@85: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); cannam@85: int status = $lt_dlunknown; cannam@85: cannam@85: if (self) cannam@85: { cannam@85: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; cannam@85: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; cannam@85: /* dlclose (self); */ cannam@85: } cannam@85: cannam@85: exit (status); cannam@85: }] cannam@85: EOF cannam@85: if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then cannam@85: (./conftest; exit; ) 2>/dev/null cannam@85: lt_status=$? cannam@85: case x$lt_status in cannam@85: x$lt_dlno_uscore) $1 ;; cannam@85: x$lt_dlneed_uscore) $2 ;; cannam@85: x$lt_unknown|x*) $3 ;; cannam@85: esac cannam@85: else : cannam@85: # compilation failed cannam@85: $3 cannam@85: fi cannam@85: fi cannam@85: rm -fr conftest* cannam@85: ])# _LT_AC_TRY_DLOPEN_SELF cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_DLOPEN_SELF cannam@85: # ------------------- cannam@85: AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], cannam@85: [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl cannam@85: if test "x$enable_dlopen" != xyes; then cannam@85: enable_dlopen=unknown cannam@85: enable_dlopen_self=unknown cannam@85: enable_dlopen_self_static=unknown cannam@85: else cannam@85: lt_cv_dlopen=no cannam@85: lt_cv_dlopen_libs= cannam@85: cannam@85: case $host_os in cannam@85: beos*) cannam@85: lt_cv_dlopen="load_add_on" cannam@85: lt_cv_dlopen_libs= cannam@85: lt_cv_dlopen_self=yes cannam@85: ;; cannam@85: cannam@85: mingw* | pw32*) cannam@85: lt_cv_dlopen="LoadLibrary" cannam@85: lt_cv_dlopen_libs= cannam@85: ;; cannam@85: cannam@85: cygwin*) cannam@85: lt_cv_dlopen="dlopen" cannam@85: lt_cv_dlopen_libs= cannam@85: ;; cannam@85: cannam@85: darwin*) cannam@85: # if libdl is installed we need to link against it cannam@85: AC_CHECK_LIB([dl], [dlopen], cannam@85: [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ cannam@85: lt_cv_dlopen="dyld" cannam@85: lt_cv_dlopen_libs= cannam@85: lt_cv_dlopen_self=yes cannam@85: ]) cannam@85: ;; cannam@85: cannam@85: *) cannam@85: AC_CHECK_FUNC([shl_load], cannam@85: [lt_cv_dlopen="shl_load"], cannam@85: [AC_CHECK_LIB([dld], [shl_load], cannam@85: [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], cannam@85: [AC_CHECK_FUNC([dlopen], cannam@85: [lt_cv_dlopen="dlopen"], cannam@85: [AC_CHECK_LIB([dl], [dlopen], cannam@85: [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], cannam@85: [AC_CHECK_LIB([svld], [dlopen], cannam@85: [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], cannam@85: [AC_CHECK_LIB([dld], [dld_link], cannam@85: [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) cannam@85: ]) cannam@85: ]) cannam@85: ]) cannam@85: ]) cannam@85: ]) cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if test "x$lt_cv_dlopen" != xno; then cannam@85: enable_dlopen=yes cannam@85: else cannam@85: enable_dlopen=no cannam@85: fi cannam@85: cannam@85: case $lt_cv_dlopen in cannam@85: dlopen) cannam@85: save_CPPFLAGS="$CPPFLAGS" cannam@85: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" cannam@85: cannam@85: save_LDFLAGS="$LDFLAGS" cannam@85: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" cannam@85: cannam@85: save_LIBS="$LIBS" cannam@85: LIBS="$lt_cv_dlopen_libs $LIBS" cannam@85: cannam@85: AC_CACHE_CHECK([whether a program can dlopen itself], cannam@85: lt_cv_dlopen_self, [dnl cannam@85: _LT_AC_TRY_DLOPEN_SELF( cannam@85: lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, cannam@85: lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) cannam@85: ]) cannam@85: cannam@85: if test "x$lt_cv_dlopen_self" = xyes; then cannam@85: LDFLAGS="$LDFLAGS $link_static_flag" cannam@85: AC_CACHE_CHECK([whether a statically linked program can dlopen itself], cannam@85: lt_cv_dlopen_self_static, [dnl cannam@85: _LT_AC_TRY_DLOPEN_SELF( cannam@85: lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, cannam@85: lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) cannam@85: ]) cannam@85: fi cannam@85: cannam@85: CPPFLAGS="$save_CPPFLAGS" cannam@85: LDFLAGS="$save_LDFLAGS" cannam@85: LIBS="$save_LIBS" cannam@85: ;; cannam@85: esac cannam@85: cannam@85: case $lt_cv_dlopen_self in cannam@85: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; cannam@85: *) enable_dlopen_self=unknown ;; cannam@85: esac cannam@85: cannam@85: case $lt_cv_dlopen_self_static in cannam@85: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; cannam@85: *) enable_dlopen_self_static=unknown ;; cannam@85: esac cannam@85: fi cannam@85: ])# AC_LIBTOOL_DLOPEN_SELF cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) cannam@85: # --------------------------------- cannam@85: # Check to see if options -c and -o are simultaneously supported by compiler cannam@85: AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], cannam@85: [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl cannam@85: AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], cannam@85: [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], cannam@85: [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no cannam@85: $rm -r conftest 2>/dev/null cannam@85: mkdir conftest cannam@85: cd conftest cannam@85: mkdir out cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: lt_compiler_flag="-o out/conftest2.$ac_objext" cannam@85: # Insert the option either (1) after the last *FLAGS variable, or cannam@85: # (2) before a word containing "conftest.", or (3) at the end. cannam@85: # Note that $ac_compile itself does not contain backslashes and begins cannam@85: # with a dollar sign (not a hyphen), so the echo should work correctly. cannam@85: lt_compile=`echo "$ac_compile" | $SED \ cannam@85: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ cannam@85: -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ cannam@85: -e 's:$: $lt_compiler_flag:'` cannam@85: (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) cannam@85: (eval "$lt_compile" 2>out/conftest.err) cannam@85: ac_status=$? cannam@85: cat out/conftest.err >&AS_MESSAGE_LOG_FD cannam@85: echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD cannam@85: if (exit $ac_status) && test -s out/conftest2.$ac_objext cannam@85: then cannam@85: # The compiler can only warn and ignore the option if not recognized cannam@85: # So say no if there are warnings cannam@85: if test ! -s out/conftest.err; then cannam@85: _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes cannam@85: fi cannam@85: fi cannam@85: chmod u+w . cannam@85: $rm conftest* cannam@85: # SGI C++ compiler will create directory out/ii_files/ for cannam@85: # template instantiation cannam@85: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files cannam@85: $rm out/* && rmdir out cannam@85: cd .. cannam@85: rmdir conftest cannam@85: $rm conftest* cannam@85: ]) cannam@85: ])# AC_LIBTOOL_PROG_CC_C_O cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) cannam@85: # ----------------------------------------- cannam@85: # Check to see if we can do hard links to lock some files if needed cannam@85: AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], cannam@85: [AC_REQUIRE([_LT_AC_LOCK])dnl cannam@85: cannam@85: hard_links="nottested" cannam@85: if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then cannam@85: # do not overwrite the value of need_locks provided by the user cannam@85: AC_MSG_CHECKING([if we can lock with hard links]) cannam@85: hard_links=yes cannam@85: $rm conftest* cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: touch conftest.a cannam@85: ln conftest.a conftest.b 2>&5 || hard_links=no cannam@85: ln conftest.a conftest.b 2>/dev/null && hard_links=no cannam@85: AC_MSG_RESULT([$hard_links]) cannam@85: if test "$hard_links" = no; then cannam@85: AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) cannam@85: need_locks=warn cannam@85: fi cannam@85: else cannam@85: need_locks=no cannam@85: fi cannam@85: ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_OBJDIR cannam@85: # ----------------- cannam@85: AC_DEFUN([AC_LIBTOOL_OBJDIR], cannam@85: [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], cannam@85: [rm -f .libs 2>/dev/null cannam@85: mkdir .libs 2>/dev/null cannam@85: if test -d .libs; then cannam@85: lt_cv_objdir=.libs cannam@85: else cannam@85: # MS-DOS does not allow filenames that begin with a dot. cannam@85: lt_cv_objdir=_libs cannam@85: fi cannam@85: rmdir .libs 2>/dev/null]) cannam@85: objdir=$lt_cv_objdir cannam@85: ])# AC_LIBTOOL_OBJDIR cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) cannam@85: # ---------------------------------------------- cannam@85: # Check hardcoding attributes. cannam@85: AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], cannam@85: [AC_MSG_CHECKING([how to hardcode library paths into programs]) cannam@85: _LT_AC_TAGVAR(hardcode_action, $1)= cannam@85: if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ cannam@85: test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ cannam@85: test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then cannam@85: cannam@85: # We can hardcode non-existant directories. cannam@85: if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && cannam@85: # If the only mechanism to avoid hardcoding is shlibpath_var, we cannam@85: # have to relink, otherwise we might link with an installed library cannam@85: # when we should be linking with a yet-to-be-installed one cannam@85: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && cannam@85: test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then cannam@85: # Linking always hardcodes the temporary library directory. cannam@85: _LT_AC_TAGVAR(hardcode_action, $1)=relink cannam@85: else cannam@85: # We can link without hardcoding, and we can hardcode nonexisting dirs. cannam@85: _LT_AC_TAGVAR(hardcode_action, $1)=immediate cannam@85: fi cannam@85: else cannam@85: # We cannot hardcode anything, or else we can only hardcode existing cannam@85: # directories. cannam@85: _LT_AC_TAGVAR(hardcode_action, $1)=unsupported cannam@85: fi cannam@85: AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) cannam@85: cannam@85: if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then cannam@85: # Fast installation is not supported cannam@85: enable_fast_install=no cannam@85: elif test "$shlibpath_overrides_runpath" = yes || cannam@85: test "$enable_shared" = no; then cannam@85: # Fast installation is not necessary cannam@85: enable_fast_install=needless cannam@85: fi cannam@85: ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_SYS_LIB_STRIP cannam@85: # ------------------------ cannam@85: AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], cannam@85: [striplib= cannam@85: old_striplib= cannam@85: AC_MSG_CHECKING([whether stripping libraries is possible]) cannam@85: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then cannam@85: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" cannam@85: test -z "$striplib" && striplib="$STRIP --strip-unneeded" cannam@85: AC_MSG_RESULT([yes]) cannam@85: else cannam@85: # FIXME - insert some real tests, host_os isn't really good enough cannam@85: case $host_os in cannam@85: darwin*) cannam@85: if test -n "$STRIP" ; then cannam@85: striplib="$STRIP -x" cannam@85: AC_MSG_RESULT([yes]) cannam@85: else cannam@85: AC_MSG_RESULT([no]) cannam@85: fi cannam@85: ;; cannam@85: *) cannam@85: AC_MSG_RESULT([no]) cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ])# AC_LIBTOOL_SYS_LIB_STRIP cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_SYS_DYNAMIC_LINKER cannam@85: # ----------------------------- cannam@85: # PORTME Fill in your ld.so characteristics cannam@85: AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], cannam@85: [AC_MSG_CHECKING([dynamic linker characteristics]) cannam@85: library_names_spec= cannam@85: libname_spec='lib$name' cannam@85: soname_spec= cannam@85: shrext=".so" cannam@85: postinstall_cmds= cannam@85: postuninstall_cmds= cannam@85: finish_cmds= cannam@85: finish_eval= cannam@85: shlibpath_var= cannam@85: shlibpath_overrides_runpath=unknown cannam@85: version_type=none cannam@85: dynamic_linker="$host_os ld.so" cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib" cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then cannam@85: # if the path contains ";" then we assume it to be the separator cannam@85: # otherwise default to the standard path separator (i.e. ":") - it is cannam@85: # assumed that no part of a normal pathname contains ";" but that should cannam@85: # okay in the real world where ";" in dirpaths is itself problematic. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: else cannam@85: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" cannam@85: fi cannam@85: need_lib_prefix=unknown cannam@85: hardcode_into_libs=no cannam@85: cannam@85: # when you set need_version to no, make sure it does not cause -set_version cannam@85: # flags to be left without arguments cannam@85: need_version=unknown cannam@85: cannam@85: case $host_os in cannam@85: aix3*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' cannam@85: shlibpath_var=LIBPATH cannam@85: cannam@85: # AIX 3 has no versioning support, so we append a major version to the name. cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: hardcode_into_libs=yes cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 supports IA64 cannam@85: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: else cannam@85: # With GCC up to 2.95.x, collect2 would create an import file cannam@85: # for dependence libraries. The import file would start with cannam@85: # the line `#! .'. This would cause the generated library to cannam@85: # depend on `.', always an invalid library. This was fixed in cannam@85: # development snapshots of GCC prior to 3.0. cannam@85: case $host_os in cannam@85: aix4 | aix4.[[01]] | aix4.[[01]].*) cannam@85: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' cannam@85: echo ' yes ' cannam@85: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then cannam@85: : cannam@85: else cannam@85: can_build_shared=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct cannam@85: # soname into executable. Probably we can add versioning support to cannam@85: # collect2, so additional links can be useful in future. cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # If using run time linking (on AIX 4.2 or later) use lib.so cannam@85: # instead of lib.a to let people know that these are not cannam@85: # typical AIX shared libraries. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: else cannam@85: # We preserve .a as extension for shared libraries through AIX4.2 cannam@85: # and later when we are not doing run time linking. cannam@85: library_names_spec='${libname}${release}.a $libname.a' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: fi cannam@85: shlibpath_var=LIBPATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: library_names_spec='$libname.ixlibrary $libname.a' cannam@85: # Create ${libname}_ixlibrary.a entries in /sys/libs. cannam@85: 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' cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: library_names_spec='${libname}${shared_ext}' cannam@85: dynamic_linker="$host_os ld.so" cannam@85: shlibpath_var=LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: version_type=linux cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" cannam@85: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" cannam@85: # the default ld.so.conf also contains /usr/contrib/lib and cannam@85: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow cannam@85: # libtool to hard-code these into programs cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: version_type=windows cannam@85: shrext=".dll" cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: cannam@85: case $GCC,$host_os in cannam@85: yes,cygwin* | yes,mingw* | yes,pw32*) cannam@85: library_names_spec='$libname.dll.a' cannam@85: # DLL is installed to $(libdir)/../bin by postinstall_cmds cannam@85: postinstall_cmds='base_file=`basename \${file}`~ cannam@85: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ cannam@85: dldir=$destdir/`dirname \$dlpath`~ cannam@85: test -d \$dldir || mkdir -p \$dldir~ cannam@85: $install_prog $dir/$dlname \$dldir/$dlname' cannam@85: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ cannam@85: dlpath=$dir/\$dldll~ cannam@85: $rm \$dlpath' cannam@85: shlibpath_overrides_runpath=yes cannam@85: cannam@85: case $host_os in cannam@85: cygwin*) cannam@85: # Cygwin DLLs use 'cyg' prefix rather than 'lib' cannam@85: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" cannam@85: ;; cannam@85: mingw*) cannam@85: # MinGW DLLs use traditional 'lib' prefix cannam@85: soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` cannam@85: if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then cannam@85: # It is most probably a Windows format PATH printed by cannam@85: # mingw gcc, but we are running on Cygwin. Gcc prints its search cannam@85: # path with ; separators, and with drive letters. We can handle the cannam@85: # drive letters (cygwin fileutils understands them), so leave them, cannam@85: # especially as we might pass files found there to a mingw objdump, cannam@85: # which wouldn't understand a cygwinified path. Ahh. cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` cannam@85: else cannam@85: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` cannam@85: fi cannam@85: ;; cannam@85: pw32*) cannam@85: # pw32 DLLs use 'pw' prefix rather than 'lib' cannam@85: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' cannam@85: ;; cannam@85: esac cannam@85: dynamic_linker='Win32 ld.exe' cannam@85: # FIXME: first we should search . and the directory the executable is in cannam@85: shlibpath_var=PATH cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: dynamic_linker="$host_os dyld" cannam@85: version_type=darwin cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' cannam@85: soname_spec='${libname}${release}${major}$shared_ext' cannam@85: shlibpath_overrides_runpath=yes cannam@85: shlibpath_var=DYLD_LIBRARY_PATH cannam@85: shrext='$(test .$module = .yes && echo .so || echo .dylib)' cannam@85: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. cannam@85: if test "$GCC" = yes; then cannam@85: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` cannam@85: else cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: kfreebsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: freebsd*) cannam@85: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` cannam@85: version_type=freebsd-$objformat cannam@85: case $version_type in cannam@85: freebsd-elf*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: need_version=no cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: freebsd-*) cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' cannam@85: need_version=yes cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_os in cannam@85: freebsd2*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: freebsd3.[01]* | freebsdelf3.[01]*) cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: *) # from 3.2 on cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: # Give a soname corresponding to the major version so that dld.sl refuses to cannam@85: # link against other versions. cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: case "$host_cpu" in cannam@85: ia64*) cannam@85: shrext='.so' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.so" cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: if test "X$HPUX_IA64_MODE" = X32; then cannam@85: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" cannam@85: else cannam@85: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" cannam@85: fi cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: hppa*64*) cannam@85: shrext='.sl' cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH cannam@85: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" cannam@85: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec cannam@85: ;; cannam@85: *) cannam@85: shrext='.sl' cannam@85: dynamic_linker="$host_os dld.sl" cannam@85: shlibpath_var=SHLIB_PATH cannam@85: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: ;; cannam@85: esac cannam@85: # HP-UX runs *really* slowly unless shared libraries are mode 555. cannam@85: postinstall_cmds='chmod 555 $lib' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $host_os in cannam@85: nonstopux*) version_type=nonstopux ;; cannam@85: *) cannam@85: if test "$lt_cv_prog_gnu_ld" = yes; then cannam@85: version_type=linux cannam@85: else cannam@85: version_type=irix cannam@85: fi ;; cannam@85: esac cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' cannam@85: case $host_os in cannam@85: irix5* | nonstopux*) cannam@85: libsuff= shlibsuff= cannam@85: ;; cannam@85: *) cannam@85: case $LD in # libtool.m4 will add one of these switches to LD cannam@85: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") cannam@85: libsuff= shlibsuff= libmagic=32-bit;; cannam@85: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") cannam@85: libsuff=32 shlibsuff=N32 libmagic=N32;; cannam@85: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") cannam@85: libsuff=64 shlibsuff=64 libmagic=64-bit;; cannam@85: *) libsuff= shlibsuff= libmagic=never-match;; cannam@85: esac cannam@85: ;; cannam@85: esac cannam@85: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" cannam@85: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: # No shared lib support for Linux oldld, aout, or coff. cannam@85: linux*oldld* | linux*aout* | linux*coff*) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: cannam@85: # This must be Linux ELF. cannam@85: linux*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: # This implies no fast_install, which is unacceptable. cannam@85: # Some rework will be needed to allow for fast_install cannam@85: # before this can be enabled. cannam@85: hardcode_into_libs=yes cannam@85: cannam@85: # Append ld.so.conf contents to the search path cannam@85: if test -f /etc/ld.so.conf; then cannam@85: ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf` cannam@85: sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" cannam@85: fi cannam@85: cannam@85: # We used to test for /lib/ld.so.1 and disable shared libraries on cannam@85: # powerpc, because MkLinux only supported shared libraries with the cannam@85: # GNU dynamic linker. Since this was broken with cross compilers, cannam@85: # most powerpc-linux boxes support dynamic linking these days and cannam@85: # people can always --disable-shared, the test was removed, and we cannam@85: # assume the GNU/Linux dynamic linker is in use. cannam@85: dynamic_linker='GNU/Linux ld.so' cannam@85: ;; cannam@85: cannam@85: knetbsd*-gnu) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=no cannam@85: hardcode_into_libs=yes cannam@85: dynamic_linker='GNU ld.so' cannam@85: ;; cannam@85: cannam@85: netbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: dynamic_linker='NetBSD (a.out) ld.so' cannam@85: else cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: dynamic_linker='NetBSD ld.elf_so' cannam@85: fi cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: nto-qnx*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: version_type=sunos cannam@85: need_lib_prefix=no cannam@85: need_version=yes cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: case $host_os in cannam@85: openbsd2.[[89]] | openbsd2.[[89]].*) cannam@85: shlibpath_overrides_runpath=no cannam@85: ;; cannam@85: *) cannam@85: shlibpath_overrides_runpath=yes cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: shlibpath_overrides_runpath=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: libname_spec='$name' cannam@85: shrext=".dll" cannam@85: need_lib_prefix=no cannam@85: library_names_spec='$libname${shared_ext} $libname.a' cannam@85: dynamic_linker='OS/2 ld.exe' cannam@85: shlibpath_var=LIBPATH cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: version_type=osf cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" cannam@85: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: version_type=osf cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: version_type=linux cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: hardcode_into_libs=yes cannam@85: # ldd complains unless libraries are executable cannam@85: postinstall_cmds='chmod +x $lib' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: version_type=sunos cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' cannam@85: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: shlibpath_overrides_runpath=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: need_lib_prefix=no cannam@85: fi cannam@85: need_version=yes cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: case $host_vendor in cannam@85: sni) cannam@85: shlibpath_overrides_runpath=no cannam@85: need_lib_prefix=no cannam@85: export_dynamic_flag_spec='${wl}-Blargedynsym' cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: siemens) cannam@85: need_lib_prefix=no cannam@85: ;; cannam@85: motorola) cannam@85: need_lib_prefix=no cannam@85: need_version=no cannam@85: shlibpath_overrides_runpath=no cannam@85: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: version_type=linux cannam@85: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' cannam@85: soname_spec='$libname${shared_ext}.$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: version_type=linux cannam@85: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' cannam@85: soname_spec='${libname}${release}${shared_ext}$major' cannam@85: shlibpath_var=LD_LIBRARY_PATH cannam@85: ;; cannam@85: cannam@85: *) cannam@85: dynamic_linker=no cannam@85: ;; cannam@85: esac cannam@85: AC_MSG_RESULT([$dynamic_linker]) cannam@85: test "$dynamic_linker" = no && can_build_shared=no cannam@85: ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER cannam@85: cannam@85: cannam@85: # _LT_AC_TAGCONFIG cannam@85: # ---------------- cannam@85: AC_DEFUN([_LT_AC_TAGCONFIG], cannam@85: [AC_ARG_WITH([tags], cannam@85: [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], cannam@85: [include additional configurations @<:@automatic@:>@])], cannam@85: [tagnames="$withval"]) cannam@85: cannam@85: if test -f "$ltmain" && test -n "$tagnames"; then cannam@85: if test ! -f "${ofile}"; then cannam@85: AC_MSG_WARN([output file `$ofile' does not exist]) cannam@85: fi cannam@85: cannam@85: if test -z "$LTCC"; then cannam@85: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" cannam@85: if test -z "$LTCC"; then cannam@85: AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) cannam@85: else cannam@85: AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) cannam@85: fi cannam@85: fi cannam@85: cannam@85: # Extract list of available tagged configurations in $ofile. cannam@85: # Note that this assumes the entire list is on one line. cannam@85: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` cannam@85: cannam@85: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@85: for tagname in $tagnames; do cannam@85: IFS="$lt_save_ifs" cannam@85: # Check whether tagname contains only valid characters cannam@85: case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in cannam@85: "") ;; cannam@85: *) AC_MSG_ERROR([invalid tag name: $tagname]) cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null cannam@85: then cannam@85: AC_MSG_ERROR([tag name \"$tagname\" already exists]) cannam@85: fi cannam@85: cannam@85: # Update the list of available tags. cannam@85: if test -n "$tagname"; then cannam@85: echo appending configuration tag \"$tagname\" to $ofile cannam@85: cannam@85: case $tagname in cannam@85: CXX) cannam@85: if test -n "$CXX" && test "X$CXX" != "Xno"; then cannam@85: AC_LIBTOOL_LANG_CXX_CONFIG cannam@85: else cannam@85: tagname="" cannam@85: fi cannam@85: ;; cannam@85: cannam@85: F77) cannam@85: if test -n "$F77" && test "X$F77" != "Xno"; then cannam@85: AC_LIBTOOL_LANG_F77_CONFIG cannam@85: else cannam@85: tagname="" cannam@85: fi cannam@85: ;; cannam@85: cannam@85: GCJ) cannam@85: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then cannam@85: AC_LIBTOOL_LANG_GCJ_CONFIG cannam@85: else cannam@85: tagname="" cannam@85: fi cannam@85: ;; cannam@85: cannam@85: RC) cannam@85: AC_LIBTOOL_LANG_RC_CONFIG cannam@85: ;; cannam@85: cannam@85: *) cannam@85: AC_MSG_ERROR([Unsupported tag name: $tagname]) cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # Append the new tag name to the list of available tags. cannam@85: if test -n "$tagname" ; then cannam@85: available_tags="$available_tags $tagname" cannam@85: fi cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: cannam@85: # Now substitute the updated list of available tags. cannam@85: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then cannam@85: mv "${ofile}T" "$ofile" cannam@85: chmod +x "$ofile" cannam@85: else cannam@85: rm -f "${ofile}T" cannam@85: AC_MSG_ERROR([unable to update list of available tagged configurations.]) cannam@85: fi cannam@85: fi cannam@85: ])# _LT_AC_TAGCONFIG cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_DLOPEN cannam@85: # ----------------- cannam@85: # enable checks for dlopen support cannam@85: AC_DEFUN([AC_LIBTOOL_DLOPEN], cannam@85: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) cannam@85: ])# AC_LIBTOOL_DLOPEN cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_WIN32_DLL cannam@85: # -------------------- cannam@85: # declare package support for building win32 dll's cannam@85: AC_DEFUN([AC_LIBTOOL_WIN32_DLL], cannam@85: [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) cannam@85: ])# AC_LIBTOOL_WIN32_DLL cannam@85: cannam@85: cannam@85: # AC_ENABLE_SHARED([DEFAULT]) cannam@85: # --------------------------- cannam@85: # implement the --enable-shared flag cannam@85: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. cannam@85: AC_DEFUN([AC_ENABLE_SHARED], cannam@85: [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl cannam@85: AC_ARG_ENABLE([shared], cannam@85: [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], cannam@85: [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], cannam@85: [p=${PACKAGE-default} cannam@85: case $enableval in cannam@85: yes) enable_shared=yes ;; cannam@85: no) enable_shared=no ;; cannam@85: *) cannam@85: enable_shared=no cannam@85: # Look at the argument we got. We use all the common list separators. cannam@85: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@85: for pkg in $enableval; do cannam@85: IFS="$lt_save_ifs" cannam@85: if test "X$pkg" = "X$p"; then cannam@85: enable_shared=yes cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: ;; cannam@85: esac], cannam@85: [enable_shared=]AC_ENABLE_SHARED_DEFAULT) cannam@85: ])# AC_ENABLE_SHARED cannam@85: cannam@85: cannam@85: # AC_DISABLE_SHARED cannam@85: # ----------------- cannam@85: #- set the default shared flag to --disable-shared cannam@85: AC_DEFUN([AC_DISABLE_SHARED], cannam@85: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl cannam@85: AC_ENABLE_SHARED(no) cannam@85: ])# AC_DISABLE_SHARED cannam@85: cannam@85: cannam@85: # AC_ENABLE_STATIC([DEFAULT]) cannam@85: # --------------------------- cannam@85: # implement the --enable-static flag cannam@85: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. cannam@85: AC_DEFUN([AC_ENABLE_STATIC], cannam@85: [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl cannam@85: AC_ARG_ENABLE([static], cannam@85: [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], cannam@85: [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], cannam@85: [p=${PACKAGE-default} cannam@85: case $enableval in cannam@85: yes) enable_static=yes ;; cannam@85: no) enable_static=no ;; cannam@85: *) cannam@85: enable_static=no cannam@85: # Look at the argument we got. We use all the common list separators. cannam@85: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@85: for pkg in $enableval; do cannam@85: IFS="$lt_save_ifs" cannam@85: if test "X$pkg" = "X$p"; then cannam@85: enable_static=yes cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: ;; cannam@85: esac], cannam@85: [enable_static=]AC_ENABLE_STATIC_DEFAULT) cannam@85: ])# AC_ENABLE_STATIC cannam@85: cannam@85: cannam@85: # AC_DISABLE_STATIC cannam@85: # ----------------- cannam@85: # set the default static flag to --disable-static cannam@85: AC_DEFUN([AC_DISABLE_STATIC], cannam@85: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl cannam@85: AC_ENABLE_STATIC(no) cannam@85: ])# AC_DISABLE_STATIC cannam@85: cannam@85: cannam@85: # AC_ENABLE_FAST_INSTALL([DEFAULT]) cannam@85: # --------------------------------- cannam@85: # implement the --enable-fast-install flag cannam@85: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. cannam@85: AC_DEFUN([AC_ENABLE_FAST_INSTALL], cannam@85: [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl cannam@85: AC_ARG_ENABLE([fast-install], cannam@85: [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], cannam@85: [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], cannam@85: [p=${PACKAGE-default} cannam@85: case $enableval in cannam@85: yes) enable_fast_install=yes ;; cannam@85: no) enable_fast_install=no ;; cannam@85: *) cannam@85: enable_fast_install=no cannam@85: # Look at the argument we got. We use all the common list separators. cannam@85: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," cannam@85: for pkg in $enableval; do cannam@85: IFS="$lt_save_ifs" cannam@85: if test "X$pkg" = "X$p"; then cannam@85: enable_fast_install=yes cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: ;; cannam@85: esac], cannam@85: [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) cannam@85: ])# AC_ENABLE_FAST_INSTALL cannam@85: cannam@85: cannam@85: # AC_DISABLE_FAST_INSTALL cannam@85: # ----------------------- cannam@85: # set the default to --disable-fast-install cannam@85: AC_DEFUN([AC_DISABLE_FAST_INSTALL], cannam@85: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl cannam@85: AC_ENABLE_FAST_INSTALL(no) cannam@85: ])# AC_DISABLE_FAST_INSTALL cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_PICMODE([MODE]) cannam@85: # -------------------------- cannam@85: # implement the --with-pic flag cannam@85: # MODE is either `yes' or `no'. If omitted, it defaults to `both'. cannam@85: AC_DEFUN([AC_LIBTOOL_PICMODE], cannam@85: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl cannam@85: pic_mode=ifelse($#,1,$1,default) cannam@85: ])# AC_LIBTOOL_PICMODE cannam@85: cannam@85: cannam@85: # AC_PROG_EGREP cannam@85: # ------------- cannam@85: # This is predefined starting with Autoconf 2.54, so this conditional cannam@85: # definition can be removed once we require Autoconf 2.54 or later. cannam@85: m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], cannam@85: [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], cannam@85: [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 cannam@85: then ac_cv_prog_egrep='grep -E' cannam@85: else ac_cv_prog_egrep='egrep' cannam@85: fi]) cannam@85: EGREP=$ac_cv_prog_egrep cannam@85: AC_SUBST([EGREP]) cannam@85: ])]) cannam@85: cannam@85: cannam@85: # AC_PATH_TOOL_PREFIX cannam@85: # ------------------- cannam@85: # find a file program which can recognise shared library cannam@85: AC_DEFUN([AC_PATH_TOOL_PREFIX], cannam@85: [AC_REQUIRE([AC_PROG_EGREP])dnl cannam@85: AC_MSG_CHECKING([for $1]) cannam@85: AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, cannam@85: [case $MAGIC_CMD in cannam@85: [[\\/*] | ?:[\\/]*]) cannam@85: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. cannam@85: ;; cannam@85: *) cannam@85: lt_save_MAGIC_CMD="$MAGIC_CMD" cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: dnl $ac_dummy forces splitting on constant user-supplied paths. cannam@85: dnl POSIX.2 word splitting is done only on the output of word expansions, cannam@85: dnl not every word. This closes a longstanding sh security hole. cannam@85: ac_dummy="ifelse([$2], , $PATH, [$2])" cannam@85: for ac_dir in $ac_dummy; do cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$ac_dir" && ac_dir=. cannam@85: if test -f $ac_dir/$1; then cannam@85: lt_cv_path_MAGIC_CMD="$ac_dir/$1" cannam@85: if test -n "$file_magic_test_file"; then cannam@85: case $deplibs_check_method in cannam@85: "file_magic "*) cannam@85: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" cannam@85: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@85: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | cannam@85: $EGREP "$file_magic_regex" > /dev/null; then cannam@85: : cannam@85: else cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: the command libtool uses to detect shared libraries, cannam@85: *** $file_magic_cmd, produces output that libtool cannot recognize. cannam@85: *** The result is that libtool may fail to recognize shared libraries cannam@85: *** as such. This will affect the creation of libtool libraries that cannam@85: *** depend on shared libraries, but programs linked with such libtool cannam@85: *** libraries will work regardless of this problem. Nevertheless, you cannam@85: *** may want to report the problem to your system manager and/or to cannam@85: *** bug-libtool@gnu.org cannam@85: cannam@85: EOF cannam@85: fi ;; cannam@85: esac cannam@85: fi cannam@85: break cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: MAGIC_CMD="$lt_save_MAGIC_CMD" cannam@85: ;; cannam@85: esac]) cannam@85: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" cannam@85: if test -n "$MAGIC_CMD"; then cannam@85: AC_MSG_RESULT($MAGIC_CMD) cannam@85: else cannam@85: AC_MSG_RESULT(no) cannam@85: fi cannam@85: ])# AC_PATH_TOOL_PREFIX cannam@85: cannam@85: cannam@85: # AC_PATH_MAGIC cannam@85: # ------------- cannam@85: # find a file program which can recognise a shared library cannam@85: AC_DEFUN([AC_PATH_MAGIC], cannam@85: [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) cannam@85: if test -z "$lt_cv_path_MAGIC_CMD"; then cannam@85: if test -n "$ac_tool_prefix"; then cannam@85: AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) cannam@85: else cannam@85: MAGIC_CMD=: cannam@85: fi cannam@85: fi cannam@85: ])# AC_PATH_MAGIC cannam@85: cannam@85: cannam@85: # AC_PROG_LD cannam@85: # ---------- cannam@85: # find the pathname to the GNU or non-GNU linker cannam@85: AC_DEFUN([AC_PROG_LD], cannam@85: [AC_ARG_WITH([gnu-ld], cannam@85: [AC_HELP_STRING([--with-gnu-ld], cannam@85: [assume the C compiler uses GNU ld @<:@default=no@:>@])], cannam@85: [test "$withval" = no || with_gnu_ld=yes], cannam@85: [with_gnu_ld=no]) cannam@85: AC_REQUIRE([LT_AC_PROG_SED])dnl cannam@85: AC_REQUIRE([AC_PROG_CC])dnl cannam@85: AC_REQUIRE([AC_CANONICAL_HOST])dnl cannam@85: AC_REQUIRE([AC_CANONICAL_BUILD])dnl cannam@85: ac_prog=ld cannam@85: if test "$GCC" = yes; then cannam@85: # Check if gcc -print-prog-name=ld gives a path. cannam@85: AC_MSG_CHECKING([for ld used by $CC]) cannam@85: case $host in cannam@85: *-*-mingw*) cannam@85: # gcc leaves a trailing carriage return which upsets mingw cannam@85: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; cannam@85: *) cannam@85: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; cannam@85: esac cannam@85: case $ac_prog in cannam@85: # Accept absolute paths. cannam@85: [[\\/]]* | ?:[[\\/]]*) cannam@85: re_direlt='/[[^/]][[^/]]*/\.\./' cannam@85: # Canonicalize the pathname of ld cannam@85: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` cannam@85: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do cannam@85: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` cannam@85: done cannam@85: test -z "$LD" && LD="$ac_prog" cannam@85: ;; cannam@85: "") cannam@85: # If it fails, then pretend we aren't using GCC. cannam@85: ac_prog=ld cannam@85: ;; cannam@85: *) cannam@85: # If it is relative, then search for the first ld in PATH. cannam@85: with_gnu_ld=unknown cannam@85: ;; cannam@85: esac cannam@85: elif test "$with_gnu_ld" = yes; then cannam@85: AC_MSG_CHECKING([for GNU ld]) cannam@85: else cannam@85: AC_MSG_CHECKING([for non-GNU ld]) cannam@85: fi cannam@85: AC_CACHE_VAL(lt_cv_path_LD, cannam@85: [if test -z "$LD"; then cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: for ac_dir in $PATH; do cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$ac_dir" && ac_dir=. cannam@85: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then cannam@85: lt_cv_path_LD="$ac_dir/$ac_prog" cannam@85: # Check to see if the program is GNU ld. I'd rather use --version, cannam@85: # but apparently some GNU ld's only accept -v. cannam@85: # Break only if it was the GNU/non-GNU ld that we prefer. cannam@85: case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then cannam@85: case $host_cpu in cannam@85: i*86 ) cannam@85: # Not sure whether the presence of OpenBSD here was a mistake. cannam@85: # Let's accept both of them until this is cleared up. cannam@85: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' cannam@85: lt_cv_file_magic_cmd=/usr/bin/file cannam@85: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: fi cannam@85: ;; cannam@85: cannam@85: gnu*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: hpux10.20* | hpux11*) cannam@85: lt_cv_file_magic_cmd=/usr/bin/file cannam@85: case "$host_cpu" in cannam@85: ia64*) cannam@85: lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' cannam@85: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so cannam@85: ;; cannam@85: hppa*64*) cannam@85: [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] cannam@85: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl cannam@85: ;; cannam@85: *) cannam@85: lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' cannam@85: lt_cv_file_magic_test_file=/usr/lib/libc.sl cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $LD in cannam@85: *-32|*"-32 ") libmagic=32-bit;; cannam@85: *-n32|*"-n32 ") libmagic=N32;; cannam@85: *-64|*"-64 ") libmagic=64-bit;; cannam@85: *) libmagic=never-match;; cannam@85: esac cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: # This must be Linux ELF. cannam@85: linux*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then cannam@85: lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' cannam@85: else cannam@85: lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: newos6*) cannam@85: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' cannam@85: lt_cv_file_magic_cmd=/usr/bin/file cannam@85: lt_cv_file_magic_test_file=/usr/lib/libnls.so cannam@85: ;; cannam@85: cannam@85: nto-qnx*) cannam@85: lt_cv_deplibs_check_method=unknown cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: lt_cv_file_magic_cmd=/usr/bin/file cannam@85: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' cannam@85: else cannam@85: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: case $host_vendor in cannam@85: motorola) cannam@85: 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]]' cannam@85: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` cannam@85: ;; cannam@85: ncr) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: sequent) cannam@85: lt_cv_file_magic_cmd='/bin/file' cannam@85: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' cannam@85: ;; cannam@85: sni) cannam@85: lt_cv_file_magic_cmd='/bin/file' cannam@85: lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" cannam@85: lt_cv_file_magic_test_file=/lib/libc.so cannam@85: ;; cannam@85: siemens) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) cannam@85: lt_cv_deplibs_check_method=pass_all cannam@85: ;; cannam@85: esac cannam@85: ]) cannam@85: file_magic_cmd=$lt_cv_file_magic_cmd cannam@85: deplibs_check_method=$lt_cv_deplibs_check_method cannam@85: test -z "$deplibs_check_method" && deplibs_check_method=unknown cannam@85: ])# AC_DEPLIBS_CHECK_METHOD cannam@85: cannam@85: cannam@85: # AC_PROG_NM cannam@85: # ---------- cannam@85: # find the pathname to a BSD-compatible name lister cannam@85: AC_DEFUN([AC_PROG_NM], cannam@85: [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, cannam@85: [if test -n "$NM"; then cannam@85: # Let the user override the test. cannam@85: lt_cv_path_NM="$NM" cannam@85: else cannam@85: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR cannam@85: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$ac_dir" && ac_dir=. cannam@85: tmp_nm="$ac_dir/${ac_tool_prefix}nm" cannam@85: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then cannam@85: # Check to see if the nm accepts a BSD-compat flag. cannam@85: # Adding the `sed 1q' prevents false positives on HP-UX, which says: cannam@85: # nm: unknown option "B" ignored cannam@85: # Tru64's nm complains that /dev/null is an invalid object file cannam@85: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in cannam@85: */dev/null* | *'Invalid file or object type'*) cannam@85: lt_cv_path_NM="$tmp_nm -B" cannam@85: break cannam@85: ;; cannam@85: *) cannam@85: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in cannam@85: */dev/null*) cannam@85: lt_cv_path_NM="$tmp_nm -p" cannam@85: break cannam@85: ;; cannam@85: *) cannam@85: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but cannam@85: continue # so that we can try to find one that supports BSD flags cannam@85: ;; cannam@85: esac cannam@85: esac cannam@85: fi cannam@85: done cannam@85: IFS="$lt_save_ifs" cannam@85: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm cannam@85: fi]) cannam@85: NM="$lt_cv_path_NM" cannam@85: ])# AC_PROG_NM cannam@85: cannam@85: cannam@85: # AC_CHECK_LIBM cannam@85: # ------------- cannam@85: # check for math library cannam@85: AC_DEFUN([AC_CHECK_LIBM], cannam@85: [AC_REQUIRE([AC_CANONICAL_HOST])dnl cannam@85: LIBM= cannam@85: case $host in cannam@85: *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) cannam@85: # These system don't have libm, or don't need it cannam@85: ;; cannam@85: *-ncr-sysv4.3*) cannam@85: AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") cannam@85: AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") cannam@85: ;; cannam@85: *) cannam@85: AC_CHECK_LIB(m, cos, LIBM="-lm") cannam@85: ;; cannam@85: esac cannam@85: ])# AC_CHECK_LIBM cannam@85: cannam@85: cannam@85: # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) cannam@85: # ----------------------------------- cannam@85: # sets LIBLTDL to the link flags for the libltdl convenience library and cannam@85: # LTDLINCL to the include flags for the libltdl header and adds cannam@85: # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL cannam@85: # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If cannam@85: # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will cannam@85: # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with cannam@85: # '${top_srcdir}/' (note the single quotes!). If your package is not cannam@85: # flat and you're not using automake, define top_builddir and cannam@85: # top_srcdir appropriately in the Makefiles. cannam@85: AC_DEFUN([AC_LIBLTDL_CONVENIENCE], cannam@85: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl cannam@85: case $enable_ltdl_convenience in cannam@85: no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; cannam@85: "") enable_ltdl_convenience=yes cannam@85: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; cannam@85: esac cannam@85: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la cannam@85: LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) cannam@85: # For backwards non-gettext consistent compatibility... cannam@85: INCLTDL="$LTDLINCL" cannam@85: ])# AC_LIBLTDL_CONVENIENCE cannam@85: cannam@85: cannam@85: # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) cannam@85: # ----------------------------------- cannam@85: # sets LIBLTDL to the link flags for the libltdl installable library and cannam@85: # LTDLINCL to the include flags for the libltdl header and adds cannam@85: # --enable-ltdl-install to the configure arguments. Note that LIBLTDL cannam@85: # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If cannam@85: # DIRECTORY is not provided and an installed libltdl is not found, it is cannam@85: # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' cannam@85: # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single cannam@85: # quotes!). If your package is not flat and you're not using automake, cannam@85: # define top_builddir and top_srcdir appropriately in the Makefiles. cannam@85: # In the future, this macro may have to be called after AC_PROG_LIBTOOL. cannam@85: AC_DEFUN([AC_LIBLTDL_INSTALLABLE], cannam@85: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl cannam@85: AC_CHECK_LIB(ltdl, lt_dlinit, cannam@85: [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], cannam@85: [if test x"$enable_ltdl_install" = xno; then cannam@85: AC_MSG_WARN([libltdl not installed, but installation disabled]) cannam@85: else cannam@85: enable_ltdl_install=yes cannam@85: fi cannam@85: ]) cannam@85: if test x"$enable_ltdl_install" = x"yes"; then cannam@85: ac_configure_args="$ac_configure_args --enable-ltdl-install" cannam@85: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la cannam@85: LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) cannam@85: else cannam@85: ac_configure_args="$ac_configure_args --enable-ltdl-install=no" cannam@85: LIBLTDL="-lltdl" cannam@85: LTDLINCL= cannam@85: fi cannam@85: # For backwards non-gettext consistent compatibility... cannam@85: INCLTDL="$LTDLINCL" cannam@85: ])# AC_LIBLTDL_INSTALLABLE cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_CXX cannam@85: # -------------- cannam@85: # enable support for C++ libraries cannam@85: AC_DEFUN([AC_LIBTOOL_CXX], cannam@85: [AC_REQUIRE([_LT_AC_LANG_CXX]) cannam@85: ])# AC_LIBTOOL_CXX cannam@85: cannam@85: cannam@85: # _LT_AC_LANG_CXX cannam@85: # --------------- cannam@85: AC_DEFUN([_LT_AC_LANG_CXX], cannam@85: [AC_REQUIRE([AC_PROG_CXX]) cannam@85: AC_REQUIRE([AC_PROG_CXXCPP]) cannam@85: _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) cannam@85: ])# _LT_AC_LANG_CXX cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_F77 cannam@85: # -------------- cannam@85: # enable support for Fortran 77 libraries cannam@85: AC_DEFUN([AC_LIBTOOL_F77], cannam@85: [AC_REQUIRE([_LT_AC_LANG_F77]) cannam@85: ])# AC_LIBTOOL_F77 cannam@85: cannam@85: cannam@85: # _LT_AC_LANG_F77 cannam@85: # --------------- cannam@85: AC_DEFUN([_LT_AC_LANG_F77], cannam@85: [AC_REQUIRE([AC_PROG_F77]) cannam@85: _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) cannam@85: ])# _LT_AC_LANG_F77 cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_GCJ cannam@85: # -------------- cannam@85: # enable support for GCJ libraries cannam@85: AC_DEFUN([AC_LIBTOOL_GCJ], cannam@85: [AC_REQUIRE([_LT_AC_LANG_GCJ]) cannam@85: ])# AC_LIBTOOL_GCJ cannam@85: cannam@85: cannam@85: # _LT_AC_LANG_GCJ cannam@85: # --------------- cannam@85: AC_DEFUN([_LT_AC_LANG_GCJ], cannam@85: [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], cannam@85: [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], cannam@85: [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], cannam@85: [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], cannam@85: [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], cannam@85: [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) cannam@85: _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) cannam@85: ])# _LT_AC_LANG_GCJ cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_RC cannam@85: # -------------- cannam@85: # enable support for Windows resource files cannam@85: AC_DEFUN([AC_LIBTOOL_RC], cannam@85: [AC_REQUIRE([LT_AC_PROG_RC]) cannam@85: _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) cannam@85: ])# AC_LIBTOOL_RC cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_LANG_C_CONFIG cannam@85: # ------------------------ cannam@85: # Ensure that the configuration vars for the C compiler are cannam@85: # suitably defined. Those variables are subsequently used by cannam@85: # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. cannam@85: AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) cannam@85: AC_DEFUN([_LT_AC_LANG_C_CONFIG], cannam@85: [lt_save_CC="$CC" cannam@85: AC_LANG_PUSH(C) cannam@85: cannam@85: # Source file extension for C test sources. cannam@85: ac_ext=c cannam@85: cannam@85: # Object file extension for compiled C test sources. cannam@85: objext=o cannam@85: _LT_AC_TAGVAR(objext, $1)=$objext cannam@85: cannam@85: # Code to be used in simple compile tests cannam@85: lt_simple_compile_test_code="int some_variable = 0;\n" cannam@85: cannam@85: # Code to be used in simple link tests cannam@85: lt_simple_link_test_code='int main(){return(0);}\n' cannam@85: cannam@85: _LT_AC_SYS_COMPILER cannam@85: cannam@85: # cannam@85: # Check for any special shared library compilation flags. cannam@85: # cannam@85: _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= cannam@85: if test "$GCC" = no; then cannam@85: case $host_os in cannam@85: sco3.2v5*) cannam@85: _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then cannam@85: AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) cannam@85: if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : cannam@85: else cannam@85: AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) cannam@85: _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no cannam@85: fi cannam@85: fi cannam@85: cannam@85: cannam@85: # cannam@85: # Check to make sure the static flag actually works. cannam@85: # cannam@85: AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), cannam@85: $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), cannam@85: [], cannam@85: [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) cannam@85: cannam@85: cannam@85: AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) cannam@85: AC_LIBTOOL_PROG_COMPILER_PIC($1) cannam@85: AC_LIBTOOL_PROG_CC_C_O($1) cannam@85: AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) cannam@85: AC_LIBTOOL_PROG_LD_SHLIBS($1) cannam@85: AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) cannam@85: AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) cannam@85: AC_LIBTOOL_SYS_LIB_STRIP cannam@85: AC_LIBTOOL_DLOPEN_SELF($1) cannam@85: cannam@85: # Report which librarie types wil actually be built cannam@85: AC_MSG_CHECKING([if libtool supports shared libraries]) cannam@85: AC_MSG_RESULT([$can_build_shared]) cannam@85: cannam@85: AC_MSG_CHECKING([whether to build shared libraries]) cannam@85: test "$can_build_shared" = "no" && enable_shared=no cannam@85: cannam@85: # On AIX, shared libraries and static libraries use the same namespace, and cannam@85: # are all built from PIC. cannam@85: case "$host_os" in cannam@85: aix3*) cannam@85: test "$enable_shared" = yes && enable_static=no cannam@85: if test -n "$RANLIB"; then cannam@85: archive_cmds="$archive_cmds~\$RANLIB \$lib" cannam@85: postinstall_cmds='$RANLIB $lib' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: aix4*) cannam@85: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then cannam@85: test "$enable_shared" = yes && enable_static=no cannam@85: fi cannam@85: ;; cannam@85: darwin* | rhapsody*) cannam@85: if test "$GCC" = yes; then cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: case "$host_os" in cannam@85: rhapsody* | darwin1.[[012]]) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' cannam@85: ;; cannam@85: *) # Darwin 1.3 on cannam@85: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' cannam@85: else cannam@85: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@85: 10.[[012]]) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' cannam@85: ;; cannam@85: 10.*) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: output_verbose_link_cmd='echo' cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' cannam@85: _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@85: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_automatic, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: else cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: AC_MSG_RESULT([$enable_shared]) cannam@85: cannam@85: AC_MSG_CHECKING([whether to build static libraries]) cannam@85: # Make sure either enable_shared or enable_static is yes. cannam@85: test "$enable_shared" = yes || enable_static=yes cannam@85: AC_MSG_RESULT([$enable_static]) cannam@85: cannam@85: AC_LIBTOOL_CONFIG($1) cannam@85: cannam@85: AC_LANG_POP cannam@85: CC="$lt_save_CC" cannam@85: ])# AC_LIBTOOL_LANG_C_CONFIG cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_LANG_CXX_CONFIG cannam@85: # -------------------------- cannam@85: # Ensure that the configuration vars for the C compiler are cannam@85: # suitably defined. Those variables are subsequently used by cannam@85: # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. cannam@85: AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) cannam@85: AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], cannam@85: [AC_LANG_PUSH(C++) cannam@85: AC_REQUIRE([AC_PROG_CXX]) cannam@85: AC_REQUIRE([AC_PROG_CXXCPP]) cannam@85: cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)= cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=no cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)= cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_automatic, $1)=no cannam@85: _LT_AC_TAGVAR(module_cmds, $1)= cannam@85: _LT_AC_TAGVAR(module_expsym_cmds, $1)= cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown cannam@85: _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds cannam@85: _LT_AC_TAGVAR(no_undefined_flag, $1)= cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= cannam@85: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no cannam@85: cannam@85: # Dependencies to place before and after the object being linked: cannam@85: _LT_AC_TAGVAR(predep_objects, $1)= cannam@85: _LT_AC_TAGVAR(postdep_objects, $1)= cannam@85: _LT_AC_TAGVAR(predeps, $1)= cannam@85: _LT_AC_TAGVAR(postdeps, $1)= cannam@85: _LT_AC_TAGVAR(compiler_lib_search_path, $1)= cannam@85: cannam@85: # Source file extension for C++ test sources. cannam@85: ac_ext=cc cannam@85: cannam@85: # Object file extension for compiled C++ test sources. cannam@85: objext=o cannam@85: _LT_AC_TAGVAR(objext, $1)=$objext cannam@85: cannam@85: # Code to be used in simple compile tests cannam@85: lt_simple_compile_test_code="int some_variable = 0;\n" cannam@85: cannam@85: # Code to be used in simple link tests cannam@85: lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' cannam@85: cannam@85: # ltmain only uses $CC for tagged configurations so make sure $CC is set. cannam@85: _LT_AC_SYS_COMPILER cannam@85: cannam@85: # Allow CC to be a program name with arguments. cannam@85: lt_save_CC=$CC cannam@85: lt_save_LD=$LD cannam@85: lt_save_GCC=$GCC cannam@85: GCC=$GXX cannam@85: lt_save_with_gnu_ld=$with_gnu_ld cannam@85: lt_save_path_LD=$lt_cv_path_LD cannam@85: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then cannam@85: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx cannam@85: else cannam@85: unset lt_cv_prog_gnu_ld cannam@85: fi cannam@85: if test -n "${lt_cv_path_LDCXX+set}"; then cannam@85: lt_cv_path_LD=$lt_cv_path_LDCXX cannam@85: else cannam@85: unset lt_cv_path_LD cannam@85: fi cannam@85: test -z "${LDCXX+set}" || LD=$LDCXX cannam@85: CC=${CXX-"c++"} cannam@85: compiler=$CC cannam@85: _LT_AC_TAGVAR(compiler, $1)=$CC cannam@85: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` cannam@85: cannam@85: # We don't want -fno-exception wen compiling C++ code, so set the cannam@85: # no_builtin_flag separately cannam@85: if test "$GXX" = yes; then cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' cannam@85: else cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= cannam@85: fi cannam@85: cannam@85: if test "$GXX" = yes; then cannam@85: # Set up default GNU C++ configuration cannam@85: cannam@85: AC_PROG_LD cannam@85: cannam@85: # Check if GNU C++ uses GNU ld as the underlying linker, since the cannam@85: # archiving commands below assume that GNU ld is being used. cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: _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' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' cannam@85: cannam@85: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@85: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to cannam@85: # investigate it a little bit more. (MM) cannam@85: wlarc='${wl}' cannam@85: cannam@85: # ancient GNU ld didn't support --whole-archive et. al. cannam@85: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ cannam@85: grep 'no-whole-archive' > /dev/null; then cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@85: else cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= cannam@85: fi cannam@85: else cannam@85: with_gnu_ld=no cannam@85: wlarc= cannam@85: cannam@85: # A generic and very simple default shared library creation cannam@85: # command for GNU C++ for the case where it uses the native cannam@85: # linker, instead of GNU ld. If possible, this setting should cannam@85: # overridden to take advantage of the native linker features on cannam@85: # the platform it is being used on. cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' cannam@85: fi cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@85: cannam@85: else cannam@85: GXX=no cannam@85: with_gnu_ld=no cannam@85: wlarc= cannam@85: fi cannam@85: cannam@85: # PORTME: fill in a description of your system's C++ link characteristics cannam@85: AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=yes cannam@85: case $host_os in cannam@85: aix3*) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: aix4* | aix5*) cannam@85: if test "$host_cpu" = ia64; then cannam@85: # On IA64, the linker does run time linking by default, so we don't cannam@85: # have to do anything special. cannam@85: aix_use_runtimelinking=no cannam@85: exp_sym_flag='-Bexport' cannam@85: no_entry_flag="" cannam@85: else cannam@85: aix_use_runtimelinking=no cannam@85: cannam@85: # Test if we are trying to use run time linking or normal cannam@85: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@85: # need to do runtime linking. cannam@85: case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) cannam@85: for ld_flag in $LDFLAGS; do cannam@85: case $ld_flag in cannam@85: *-brtl*) cannam@85: aix_use_runtimelinking=yes cannam@85: break cannam@85: ;; cannam@85: esac cannam@85: done cannam@85: esac cannam@85: cannam@85: exp_sym_flag='-bexport' cannam@85: no_entry_flag='-bnoentry' cannam@85: fi cannam@85: cannam@85: # When large executables or shared objects are built, AIX ld can cannam@85: # have problems creating the table of contents. If linking a library cannam@85: # or program results in "error TOC overflow" add -mminimal-toc to cannam@85: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@85: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@85: cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: cannam@85: if test "$GXX" = yes; then cannam@85: case $host_os in aix4.[012]|aix4.[012].*) cannam@85: # We only want to do this on AIX 4.2 and lower, the check cannam@85: # below for broken collect2 doesn't work under 4.3+ cannam@85: collect2name=`${CC} -print-prog-name=collect2` cannam@85: if test -f "$collect2name" && \ cannam@85: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@85: then cannam@85: # We have reworked collect2 cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: else cannam@85: # We have old collect2 cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported cannam@85: # It fails to find uninstalled libraries when the uninstalled cannam@85: # path is not listed in the libpath. Setting hardcode_minus_L cannam@85: # to unsupported forces relinking cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= cannam@85: fi cannam@85: esac cannam@85: shared_flag='-shared' cannam@85: else cannam@85: # not using gcc cannam@85: if test "$host_cpu" = ia64; then cannam@85: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@85: # chokes on -Wl,-G. The following line is correct: cannam@85: shared_flag='-G' cannam@85: else cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: shared_flag='${wl}-G' cannam@85: else cannam@85: shared_flag='${wl}-bM:SRE' cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: cannam@85: # It seems that -bexpall does not export symbols beginning with cannam@85: # underscore (_), so it is better to generate a list of symbols to export. cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=yes cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # Warning - without using the other runtime loading flags (-brtl), cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: _LT_AC_SYS_LIBPATH_AIX cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: cannam@85: _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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" cannam@85: else cannam@85: if test "$host_cpu" = ia64; then cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" cannam@85: _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" cannam@85: else cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: _LT_AC_SYS_LIBPATH_AIX cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: # Warning - without using the other run time loading flags, cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' cannam@85: # -bexpall does not export symbols beginning with underscore (_) cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=yes cannam@85: # Exported symbols can be pulled into shared objects from archives cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes cannam@85: # This is similar to how AIX traditionally builds it's shared libraries. cannam@85: _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' cannam@85: fi cannam@85: fi cannam@85: ;; cannam@85: chorus*) cannam@85: case $cc_basename in cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, cannam@85: # as there is no search path for DLLs. cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=no cannam@85: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes cannam@85: cannam@85: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: # If the export-symbols file already is a .def file (1st line cannam@85: # is EXPORTS), use it as is; otherwise, prepend... cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@85: cp $export_symbols $output_objdir/$soname.def; cannam@85: else cannam@85: echo EXPORTS > $output_objdir/$soname.def; cannam@85: cat $export_symbols >> $output_objdir/$soname.def; cannam@85: fi~ cannam@85: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: else cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: if test "$GXX" = yes; then cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: case "$host_os" in cannam@85: rhapsody* | darwin1.[[012]]) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' cannam@85: ;; cannam@85: *) # Darwin 1.3 on cannam@85: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' cannam@85: else cannam@85: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@85: 10.[[012]]) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' cannam@85: ;; cannam@85: 10.*) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: lt_int_apple_cc_single_mod=no cannam@85: output_verbose_link_cmd='echo' cannam@85: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then cannam@85: lt_int_apple_cc_single_mod=yes cannam@85: fi cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: fi cannam@85: _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@85: cannam@85: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: fi cannam@85: _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_automatic, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: else cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: case $cc_basename in cannam@85: ec++) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: ghcx) cannam@85: # Green Hills C++ Compiler cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: freebsd[12]*) cannam@85: # C++ shared libraries reported to be fairly broken before switch to ELF cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: freebsd-elf*) cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: ;; cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF cannam@85: # conventions cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=yes cannam@85: ;; cannam@85: gnu*) cannam@85: ;; cannam@85: hpux9*) cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, cannam@85: # but as the default cannam@85: # location of the library. cannam@85: cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: aCC) cannam@85: _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' cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: 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' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes; then cannam@85: _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' cannam@85: else cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: hpux10*|hpux11*) cannam@85: if test $with_gnu_ld = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*) cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: ;; cannam@85: ia64*) cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: case "$host_cpu" in cannam@85: hppa*64*) cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: ia64*) cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, cannam@85: # but as the default cannam@85: # location of the library. cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, cannam@85: # but as the default cannam@85: # location of the library. cannam@85: ;; cannam@85: esac cannam@85: cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: aCC) cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' cannam@85: ;; cannam@85: *) cannam@85: _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' cannam@85: ;; cannam@85: esac cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes; then cannam@85: if test $with_gnu_ld = no; then cannam@85: case "$host_cpu" in cannam@85: ia64*|hppa*64*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' cannam@85: ;; cannam@85: *) cannam@85: _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' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: else cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: irix5* | irix6*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # SGI C++ cannam@85: _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' cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # "CC -ar", where "CC" is the IRIX C++ compiler. This is cannam@85: # necessary to make sure instantiated templates are included cannam@85: # in the archive. cannam@85: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes; then cannam@85: if test "$with_gnu_ld" = no; then cannam@85: _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' cannam@85: else cannam@85: _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` -o $lib' cannam@85: fi cannam@85: fi cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: ;; cannam@85: esac cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: ;; cannam@85: linux*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@85: cannam@85: # KCC will only create a shared library if the output file cannam@85: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@85: # to its proper name (with version) after linking. cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # "CC -Bstatic", where "CC" is the KAI C++ compiler. cannam@85: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' cannam@85: ;; cannam@85: icpc) cannam@85: # Intel C++ cannam@85: with_gnu_ld=yes cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: _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' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' cannam@85: ;; cannam@85: cxx) cannam@85: # Compaq C++ cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: _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' cannam@85: cannam@85: runpath_var=LD_RUN_PATH cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: 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' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: lynxos*) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: m88k*) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: mvs*) cannam@85: case $cc_basename in cannam@85: cxx) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' cannam@85: wlarc= cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: fi cannam@85: # Workaround some broken pre-1.5 toolchains cannam@85: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' cannam@85: ;; cannam@85: osf3*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@85: cannam@85: # KCC will only create a shared library if the output file cannam@85: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@85: # to its proper name (with version) after linking. cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # "CC -Bstatic", where "CC" is the KAI C++ compiler. cannam@85: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' cannam@85: cannam@85: ;; cannam@85: RCC) cannam@85: # Rational C++ 2.4.1 cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: cxx) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' cannam@85: _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' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: 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' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' cannam@85: _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' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@85: cannam@85: else cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: osf4* | osf5*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: # Kuck and Associates, Inc. (KAI) C++ Compiler cannam@85: cannam@85: # KCC will only create a shared library if the output file cannam@85: # ends with ".so" (or ".sl" for HP-UX), so rename the library cannam@85: # to its proper name (with version) after linking. cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # the KAI C++ compiler. cannam@85: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' cannam@85: ;; cannam@85: RCC) cannam@85: # Rational C++ 2.4.1 cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: cxx) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' cannam@85: _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' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ cannam@85: echo "-hidden">> $lib.exp~ cannam@85: $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~ cannam@85: $rm $lib.exp' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: 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' cannam@85: ;; cannam@85: *) cannam@85: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' cannam@85: _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' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' cannam@85: cannam@85: else cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: psos*) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: sco*) cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: sunos4*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # Sun C++ 4.x cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: lcc) cannam@85: # Lucid cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: solaris*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # Sun C++ 4.2, 5.x and Centerline C++ cannam@85: _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $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' cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: case $host_os in cannam@85: solaris2.[0-5] | solaris2.[0-5].*) ;; cannam@85: *) cannam@85: # The C++ compiler is used as linker so we must use $wl cannam@85: # flag to pass the commands to the underlying system cannam@85: # linker. cannam@85: # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' cannam@85: ;; cannam@85: esac cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: # cannam@85: # There doesn't appear to be a way to prevent this compiler from cannam@85: # explicitly linking system object files so we need to strip them cannam@85: # from the output so that they don't get included in the library cannam@85: # dependencies. cannam@85: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' cannam@85: cannam@85: # Archives containing C++ object files must be created using cannam@85: # "CC -xar", where "CC" is the Sun C++ compiler. This is cannam@85: # necessary to make sure instantiated templates are included cannam@85: # in the archive. cannam@85: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' cannam@85: ;; cannam@85: gcx) cannam@85: # Green Hills C++ Compiler cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@85: cannam@85: # The C++ compiler must be used to create the archive. cannam@85: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' cannam@85: ;; cannam@85: *) cannam@85: # GNU C++ compiler with Solaris linker cannam@85: if test "$GXX" = yes && test "$with_gnu_ld" = no; then cannam@85: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' cannam@85: if $CC --version | grep -v '^2\.7' > /dev/null; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" cannam@85: else cannam@85: # g++ 2.7 appears to require `-G' NOT `-shared' on this cannam@85: # platform. cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' cannam@85: cannam@85: # Commands to make compiler produce verbose output that lists cannam@85: # what "hidden" libraries, object files and flags are used when cannam@85: # linking a shared library. cannam@85: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" cannam@85: fi cannam@85: cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: ;; cannam@85: tandem*) cannam@85: case $cc_basename in cannam@85: NCC) cannam@85: # NonStop-UX NCC 3.20 cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: vxworks*) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: *) cannam@85: # FIXME: insert proper C++ library support cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: esac cannam@85: AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) cannam@85: test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no cannam@85: cannam@85: _LT_AC_TAGVAR(GCC, $1)="$GXX" cannam@85: _LT_AC_TAGVAR(LD, $1)="$LD" cannam@85: cannam@85: AC_LIBTOOL_POSTDEP_PREDEP($1) cannam@85: AC_LIBTOOL_PROG_COMPILER_PIC($1) cannam@85: AC_LIBTOOL_PROG_CC_C_O($1) cannam@85: AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) cannam@85: AC_LIBTOOL_PROG_LD_SHLIBS($1) cannam@85: AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) cannam@85: AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) cannam@85: AC_LIBTOOL_SYS_LIB_STRIP cannam@85: AC_LIBTOOL_DLOPEN_SELF($1) cannam@85: cannam@85: AC_LIBTOOL_CONFIG($1) cannam@85: cannam@85: AC_LANG_POP cannam@85: CC=$lt_save_CC cannam@85: LDCXX=$LD cannam@85: LD=$lt_save_LD cannam@85: GCC=$lt_save_GCC cannam@85: with_gnu_ldcxx=$with_gnu_ld cannam@85: with_gnu_ld=$lt_save_with_gnu_ld cannam@85: lt_cv_path_LDCXX=$lt_cv_path_LD cannam@85: lt_cv_path_LD=$lt_save_path_LD cannam@85: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld cannam@85: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld cannam@85: ])# AC_LIBTOOL_LANG_CXX_CONFIG cannam@85: cannam@85: # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) cannam@85: # ------------------------ cannam@85: # Figure out "hidden" library dependencies from verbose cannam@85: # compiler output when linking a shared library. cannam@85: # Parse the compiler output and extract the necessary cannam@85: # objects, libraries and library flags. cannam@85: AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ cannam@85: dnl we can't use the lt_simple_compile_test_code here, cannam@85: dnl because it contains code intended for an executable, cannam@85: dnl not a library. It's possible we should let each cannam@85: dnl tag define a new lt_????_link_test_code variable, cannam@85: dnl but it's only used here... cannam@85: ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" cannam@85: ifelse([$1], [], cannam@85: [#! $SHELL cannam@85: cannam@85: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. cannam@85: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) cannam@85: # NOTE: Changes made to this file will be lost: look at ltmain.sh. cannam@85: # cannam@85: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 cannam@85: # Free Software Foundation, Inc. cannam@85: # cannam@85: # This file is part of GNU Libtool: cannam@85: # Originally by Gordon Matzigkeit , 1996 cannam@85: # cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2 of the License, or cannam@85: # (at your option) any later version. cannam@85: # cannam@85: # This program is distributed in the hope that it will be useful, but cannam@85: # WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU cannam@85: # General Public License for more details. cannam@85: # cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. cannam@85: # cannam@85: # As a special exception to the GNU General Public License, if you cannam@85: # distribute this file as part of a program that contains a cannam@85: # configuration script generated by Autoconf, you may include it under cannam@85: # the same distribution terms that you use for the rest of that program. cannam@85: cannam@85: # A sed program that does not truncate output. cannam@85: SED=$lt_SED cannam@85: cannam@85: # Sed that helps us avoid accidentally triggering echo(1) options like -n. cannam@85: Xsed="$SED -e s/^X//" cannam@85: cannam@85: # The HP-UX ksh and POSIX shell print the target directory to stdout cannam@85: # if CDPATH is set. cannam@85: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi cannam@85: cannam@85: # The names of the tagged configurations supported by this script. cannam@85: available_tags= cannam@85: cannam@85: # ### BEGIN LIBTOOL CONFIG], cannam@85: [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) cannam@85: cannam@85: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: cannam@85: cannam@85: # Shell to use when invoking shell scripts. cannam@85: SHELL=$lt_SHELL cannam@85: cannam@85: # Whether or not to build shared libraries. cannam@85: build_libtool_libs=$enable_shared cannam@85: cannam@85: # Whether or not to build static libraries. cannam@85: build_old_libs=$enable_static cannam@85: cannam@85: # Whether or not to add -lc for building shared libraries. cannam@85: build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) cannam@85: cannam@85: # Whether or not to disallow shared libs when runtime libs are static cannam@85: allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) cannam@85: cannam@85: # Whether or not to optimize for fast installation. cannam@85: fast_install=$enable_fast_install cannam@85: cannam@85: # The host system. cannam@85: host_alias=$host_alias cannam@85: host=$host cannam@85: cannam@85: # An echo program that does not interpret backslashes. cannam@85: echo=$lt_echo cannam@85: cannam@85: # The archiver. cannam@85: AR=$lt_AR cannam@85: AR_FLAGS=$lt_AR_FLAGS cannam@85: cannam@85: # A C compiler. cannam@85: LTCC=$lt_LTCC cannam@85: cannam@85: # A language-specific compiler. cannam@85: CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) cannam@85: cannam@85: # Is the compiler the GNU C compiler? cannam@85: with_gcc=$_LT_AC_TAGVAR(GCC, $1) cannam@85: cannam@85: # An ERE matcher. cannam@85: EGREP=$lt_EGREP cannam@85: cannam@85: # The linker used to build libraries. cannam@85: LD=$lt_[]_LT_AC_TAGVAR(LD, $1) cannam@85: cannam@85: # Whether we need hard or soft links. cannam@85: LN_S=$lt_LN_S cannam@85: cannam@85: # A BSD-compatible nm program. cannam@85: NM=$lt_NM cannam@85: cannam@85: # A symbol stripping program cannam@85: STRIP=$lt_STRIP cannam@85: cannam@85: # Used to examine libraries when file_magic_cmd begins "file" cannam@85: MAGIC_CMD=$MAGIC_CMD cannam@85: cannam@85: # Used on cygwin: DLL creation program. cannam@85: DLLTOOL="$DLLTOOL" cannam@85: cannam@85: # Used on cygwin: object dumper. cannam@85: OBJDUMP="$OBJDUMP" cannam@85: cannam@85: # Used on cygwin: assembler. cannam@85: AS="$AS" cannam@85: cannam@85: # The name of the directory that contains temporary libtool files. cannam@85: objdir=$objdir cannam@85: cannam@85: # How to create reloadable object files. cannam@85: reload_flag=$lt_reload_flag cannam@85: reload_cmds=$lt_reload_cmds cannam@85: cannam@85: # How to pass a linker flag through the compiler. cannam@85: wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) cannam@85: cannam@85: # Object file suffix (normally "o"). cannam@85: objext="$ac_objext" cannam@85: cannam@85: # Old archive suffix (normally "a"). cannam@85: libext="$libext" cannam@85: cannam@85: # Shared library suffix (normally ".so"). cannam@85: shrext='$shrext' cannam@85: cannam@85: # Executable file suffix (normally ""). cannam@85: exeext="$exeext" cannam@85: cannam@85: # Additional compiler flags for building library objects. cannam@85: pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) cannam@85: pic_mode=$pic_mode cannam@85: cannam@85: # What is the maximum length of a command? cannam@85: max_cmd_len=$lt_cv_sys_max_cmd_len cannam@85: cannam@85: # Does compiler simultaneously support -c and -o options? cannam@85: compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) cannam@85: cannam@85: # Must we lock files when doing compilation ? cannam@85: need_locks=$lt_need_locks cannam@85: cannam@85: # Do we need the lib prefix for modules? cannam@85: need_lib_prefix=$need_lib_prefix cannam@85: cannam@85: # Do we need a version for libraries? cannam@85: need_version=$need_version cannam@85: cannam@85: # Whether dlopen is supported. cannam@85: dlopen_support=$enable_dlopen cannam@85: cannam@85: # Whether dlopen of programs is supported. cannam@85: dlopen_self=$enable_dlopen_self cannam@85: cannam@85: # Whether dlopen of statically linked programs is supported. cannam@85: dlopen_self_static=$enable_dlopen_self_static cannam@85: cannam@85: # Compiler flag to prevent dynamic linking. cannam@85: link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) cannam@85: cannam@85: # Compiler flag to turn off builtin functions. cannam@85: no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) cannam@85: cannam@85: # Compiler flag to allow reflexive dlopens. cannam@85: export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) cannam@85: cannam@85: # Compiler flag to generate shared objects directly from archives. cannam@85: whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) cannam@85: cannam@85: # Compiler flag to generate thread-safe objects. cannam@85: thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) cannam@85: cannam@85: # Library versioning type. cannam@85: version_type=$version_type cannam@85: cannam@85: # Format of library name prefix. cannam@85: libname_spec=$lt_libname_spec cannam@85: cannam@85: # List of archive names. First name is the real one, the rest are links. cannam@85: # The last name is the one that the linker finds with -lNAME. cannam@85: library_names_spec=$lt_library_names_spec cannam@85: cannam@85: # The coded name of the library, if different from the real name. cannam@85: soname_spec=$lt_soname_spec cannam@85: cannam@85: # Commands used to build and install an old-style archive. cannam@85: RANLIB=$lt_RANLIB cannam@85: old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) cannam@85: old_postinstall_cmds=$lt_old_postinstall_cmds cannam@85: old_postuninstall_cmds=$lt_old_postuninstall_cmds cannam@85: cannam@85: # Create an old-style archive from a shared archive. cannam@85: old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) cannam@85: cannam@85: # Create a temporary old-style archive to link instead of a shared archive. cannam@85: old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) cannam@85: cannam@85: # Commands used to build and install a shared archive. cannam@85: archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) cannam@85: archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) cannam@85: postinstall_cmds=$lt_postinstall_cmds cannam@85: postuninstall_cmds=$lt_postuninstall_cmds cannam@85: cannam@85: # Commands used to build a loadable module (assumed same as above if empty) cannam@85: module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) cannam@85: module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) cannam@85: cannam@85: # Commands to strip libraries. cannam@85: old_striplib=$lt_old_striplib cannam@85: striplib=$lt_striplib cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) cannam@85: cannam@85: # Dependencies to place before the objects being linked to create a cannam@85: # shared library. cannam@85: predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) cannam@85: cannam@85: # Dependencies to place after the objects being linked to create a cannam@85: # shared library. cannam@85: postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) cannam@85: cannam@85: # The library search path used internally by the compiler when linking cannam@85: # a shared library. cannam@85: compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) cannam@85: cannam@85: # Method to check whether dependent libraries are shared objects. cannam@85: deplibs_check_method=$lt_deplibs_check_method cannam@85: cannam@85: # Command to use when deplibs_check_method == file_magic. cannam@85: file_magic_cmd=$lt_file_magic_cmd cannam@85: cannam@85: # Flag that allows shared libraries with undefined symbols to be built. cannam@85: allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) cannam@85: cannam@85: # Flag that forces no undefined symbols. cannam@85: no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) cannam@85: cannam@85: # Commands used to finish a libtool library installation in a directory. cannam@85: finish_cmds=$lt_finish_cmds cannam@85: cannam@85: # Same as above, but a single script fragment to be evaled but not shown. cannam@85: finish_eval=$lt_finish_eval cannam@85: cannam@85: # Take the output of nm and produce a listing of raw symbols and C names. cannam@85: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe cannam@85: cannam@85: # Transform the output of nm in a proper C declaration cannam@85: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl cannam@85: cannam@85: # Transform the output of nm in a C name address pair cannam@85: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address cannam@85: cannam@85: # This is the shared library runtime path variable. cannam@85: runpath_var=$runpath_var cannam@85: cannam@85: # This is the shared library path variable. cannam@85: shlibpath_var=$shlibpath_var cannam@85: cannam@85: # Is shlibpath searched before the hard-coded library search path? cannam@85: shlibpath_overrides_runpath=$shlibpath_overrides_runpath cannam@85: cannam@85: # How to hardcode a shared library path into an executable. cannam@85: hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) cannam@85: cannam@85: # Whether we should hardcode library paths into libraries. cannam@85: hardcode_into_libs=$hardcode_into_libs cannam@85: cannam@85: # Flag to hardcode \$libdir into a binary during linking. cannam@85: # This must work even if \$libdir does not exist. cannam@85: hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) cannam@85: cannam@85: # If ld is used when linking, flag to hardcode \$libdir into cannam@85: # a binary during linking. This must work even if \$libdir does cannam@85: # not exist. cannam@85: hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) cannam@85: cannam@85: # Whether we need a single -rpath flag with a separated argument. cannam@85: hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) cannam@85: cannam@85: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) cannam@85: cannam@85: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the cannam@85: # resulting binary. cannam@85: hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) cannam@85: cannam@85: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into cannam@85: # the resulting binary. cannam@85: hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) cannam@85: cannam@85: # Set to yes if building a shared library automatically hardcodes DIR into the library cannam@85: # and all subsequent libraries and executables linked against it. cannam@85: hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) cannam@85: cannam@85: # Variables whose values should be saved in libtool wrapper scripts and cannam@85: # restored at relink time. cannam@85: variables_saved_for_relink="$variables_saved_for_relink" cannam@85: cannam@85: # Whether libtool must link a program against all its dependency libraries. cannam@85: link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) cannam@85: cannam@85: # Compile-time system search path for libraries cannam@85: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec cannam@85: cannam@85: # Run-time system search path for libraries cannam@85: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec cannam@85: cannam@85: # Fix the shell variable \$srcfile for the compiler. cannam@85: fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" cannam@85: cannam@85: # Set to yes if exported symbols are required. cannam@85: always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) cannam@85: cannam@85: # The commands to list exported symbols. cannam@85: export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) cannam@85: cannam@85: # The commands to extract the exported symbol list from a shared archive. cannam@85: extract_expsyms_cmds=$lt_extract_expsyms_cmds cannam@85: cannam@85: # Symbols that should not be listed in the preloaded symbols. cannam@85: exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) cannam@85: cannam@85: # Symbols that must always be exported. cannam@85: include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) cannam@85: cannam@85: ifelse([$1],[], cannam@85: [# ### END LIBTOOL CONFIG], cannam@85: [# ### END LIBTOOL TAG CONFIG: $tagname]) cannam@85: cannam@85: __EOF__ cannam@85: cannam@85: ifelse([$1],[], [ cannam@85: case $host_os in cannam@85: aix3*) cannam@85: cat <<\EOF >> "$cfgfile" cannam@85: cannam@85: # AIX sometimes has problems with the GCC collect2 program. For some cannam@85: # reason, if we set the COLLECT_NAMES environment variable, the problems cannam@85: # vanish in a puff of smoke. cannam@85: if test "X${COLLECT_NAMES+set}" != Xset; then cannam@85: COLLECT_NAMES= cannam@85: export COLLECT_NAMES cannam@85: fi cannam@85: EOF cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # We use sed instead of cat because bash on DJGPP gets confused if cannam@85: # if finds mixed CR/LF and LF-only lines. Since sed operates in cannam@85: # text mode, it properly converts lines to CR/LF. This bash problem cannam@85: # is reportedly fixed, but why not run on old versions too? cannam@85: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) cannam@85: cannam@85: mv -f "$cfgfile" "$ofile" || \ cannam@85: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") cannam@85: chmod +x "$ofile" cannam@85: ]) cannam@85: else cannam@85: # If there is no Makefile yet, we rely on a make rule to execute cannam@85: # `config.status --recheck' to rerun these tests and create the cannam@85: # libtool script then. cannam@85: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` cannam@85: if test -f "$ltmain_in"; then cannam@85: test -f Makefile && make "$ltmain" cannam@85: fi cannam@85: fi cannam@85: ])# AC_LIBTOOL_CONFIG cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) cannam@85: # ------------------------------------------- cannam@85: AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], cannam@85: [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl cannam@85: cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' cannam@85: cannam@85: AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], cannam@85: lt_cv_prog_compiler_rtti_exceptions, cannam@85: [-fno-rtti -fno-exceptions], [], cannam@85: [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) cannam@85: fi cannam@85: ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE cannam@85: # --------------------------------- cannam@85: AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], cannam@85: [AC_REQUIRE([AC_CANONICAL_HOST]) cannam@85: AC_REQUIRE([AC_PROG_NM]) cannam@85: AC_REQUIRE([AC_OBJEXT]) cannam@85: # Check for command to grab the raw symbol name followed by C symbol from nm. cannam@85: AC_MSG_CHECKING([command to parse $NM output from $compiler object]) cannam@85: AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], cannam@85: [ cannam@85: # These are sane defaults that work on at least a few old systems. cannam@85: # [They come from Ultrix. What could be older than Ultrix?!! ;)] cannam@85: cannam@85: # Character class describing NM global symbol codes. cannam@85: symcode='[[BCDEGRST]]' cannam@85: cannam@85: # Regexp to match symbols that can be accessed directly from C. cannam@85: sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' cannam@85: cannam@85: # Transform the above into a raw symbol and a C symbol. cannam@85: symxfrm='\1 \2\3 \3' cannam@85: cannam@85: # Transform an extracted symbol line into a proper C declaration cannam@85: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" cannam@85: cannam@85: # Transform an extracted symbol line into symbol name and symbol address cannam@85: 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'" cannam@85: cannam@85: # Define system-specific variables. cannam@85: case $host_os in cannam@85: aix*) cannam@85: symcode='[[BCDT]]' cannam@85: ;; cannam@85: cygwin* | mingw* | pw32*) cannam@85: symcode='[[ABCDGISTW]]' cannam@85: ;; cannam@85: hpux*) # Its linker distinguishes data from code symbols cannam@85: if test "$host_cpu" = ia64; then cannam@85: symcode='[[ABCDEGRST]]' cannam@85: fi cannam@85: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" cannam@85: 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'" cannam@85: ;; cannam@85: irix* | nonstopux*) cannam@85: symcode='[[BCDEGRST]]' cannam@85: ;; cannam@85: osf*) cannam@85: symcode='[[BCDEGQRST]]' cannam@85: ;; cannam@85: solaris* | sysv5*) cannam@85: symcode='[[BDRT]]' cannam@85: ;; cannam@85: sysv4) cannam@85: symcode='[[DFNSTU]]' cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # Handle CRLF in mingw tool chain cannam@85: opt_cr= cannam@85: case $build_os in cannam@85: mingw*) cannam@85: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp cannam@85: ;; cannam@85: esac cannam@85: cannam@85: # If we're using GNU nm, then use its standard symbol codes. cannam@85: case `$NM -V 2>&1` in cannam@85: *GNU* | *'with BFD'*) cannam@85: symcode='[[ABCDGIRSTW]]' ;; cannam@85: esac cannam@85: cannam@85: # Try without a prefix undercore, then with it. cannam@85: for ac_symprfx in "" "_"; do cannam@85: cannam@85: # Write the raw and C identifiers. cannam@85: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" cannam@85: cannam@85: # Check to see that the pipe works correctly. cannam@85: pipe_works=no cannam@85: cannam@85: rm -f conftest* cannam@85: cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then cannam@85: # Try sorting and uniquifying the output. cannam@85: if sort "$nlist" | uniq > "$nlist"T; then cannam@85: mv -f "$nlist"T "$nlist" cannam@85: else cannam@85: rm -f "$nlist"T cannam@85: fi cannam@85: cannam@85: # Make sure that we snagged all the symbols we need. cannam@85: if grep ' nm_test_var$' "$nlist" >/dev/null; then cannam@85: if grep ' nm_test_func$' "$nlist" >/dev/null; then cannam@85: cat < conftest.$ac_ext cannam@85: #ifdef __cplusplus cannam@85: extern "C" { cannam@85: #endif cannam@85: cannam@85: EOF cannam@85: # Now generate the symbol file. cannam@85: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cannam@85: cannam@85: cat <> conftest.$ac_ext cannam@85: #if defined (__STDC__) && __STDC__ cannam@85: # define lt_ptr_t void * cannam@85: #else cannam@85: # define lt_ptr_t char * cannam@85: # define const cannam@85: #endif cannam@85: cannam@85: /* The mapping between symbol names and symbols. */ cannam@85: const struct { cannam@85: const char *name; cannam@85: lt_ptr_t address; cannam@85: } cannam@85: lt_preloaded_symbols[[]] = cannam@85: { cannam@85: EOF cannam@85: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cannam@85: cat <<\EOF >> conftest.$ac_ext cannam@85: {0, (lt_ptr_t) 0} cannam@85: }; cannam@85: cannam@85: #ifdef __cplusplus cannam@85: } cannam@85: #endif cannam@85: EOF cannam@85: # Now try linking the two files. cannam@85: mv conftest.$ac_objext conftstm.$ac_objext cannam@85: lt_save_LIBS="$LIBS" cannam@85: lt_save_CFLAGS="$CFLAGS" cannam@85: LIBS="conftstm.$ac_objext" cannam@85: CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" cannam@85: if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then cannam@85: pipe_works=yes cannam@85: fi cannam@85: LIBS="$lt_save_LIBS" cannam@85: CFLAGS="$lt_save_CFLAGS" cannam@85: else cannam@85: echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD cannam@85: fi cannam@85: else cannam@85: echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD cannam@85: fi cannam@85: else cannam@85: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD cannam@85: fi cannam@85: else cannam@85: echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cannam@85: cat conftest.$ac_ext >&5 cannam@85: fi cannam@85: rm -f conftest* conftst* cannam@85: cannam@85: # Do not use the global_symbol_pipe unless it works. cannam@85: if test "$pipe_works" = yes; then cannam@85: break cannam@85: else cannam@85: lt_cv_sys_global_symbol_pipe= cannam@85: fi cannam@85: done cannam@85: ]) cannam@85: if test -z "$lt_cv_sys_global_symbol_pipe"; then cannam@85: lt_cv_sys_global_symbol_to_cdecl= cannam@85: fi cannam@85: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then cannam@85: AC_MSG_RESULT(failed) cannam@85: else cannam@85: AC_MSG_RESULT(ok) cannam@85: fi cannam@85: ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) cannam@85: # --------------------------------------- cannam@85: AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], cannam@85: [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= cannam@85: cannam@85: AC_MSG_CHECKING([for $compiler option to produce PIC]) cannam@85: ifelse([$1],[CXX],[ cannam@85: # C++ specific cases for pic, static, wl, etc. cannam@85: if test "$GXX" = yes; then cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' cannam@85: cannam@85: case $host_os in cannam@85: aix*) cannam@85: # All AIX code is PIC. cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: amigaos*) cannam@85: # FIXME: we need at least 68020 code to build shared libraries, but cannam@85: # adding the `-m68020' flag to GCC prevents building anything better, cannam@85: # like `-m68040'. cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' cannam@85: ;; cannam@85: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@85: # PIC is the default for these OSes. cannam@85: ;; cannam@85: mingw* | os2* | pw32*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' cannam@85: ;; cannam@85: darwin* | rhapsody*) cannam@85: # PIC is the default on this platform cannam@85: # Common symbols not allowed in MH_DYLIB files cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' cannam@85: ;; cannam@85: *djgpp*) cannam@85: # DJGPP does not support shared libraries at all cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= cannam@85: ;; cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic cannam@85: fi cannam@85: ;; cannam@85: hpux*) cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: case $host_os in cannam@85: aix4* | aix5*) cannam@85: # All AIX code is PIC. cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: else cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' cannam@85: fi cannam@85: ;; cannam@85: chorus*) cannam@85: case $cc_basename in cannam@85: cxch68) cannam@85: # Green Hills C++ Compiler cannam@85: # _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" cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: dgux*) cannam@85: case $cc_basename in cannam@85: ec++) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' cannam@85: ;; cannam@85: ghcx) cannam@85: # Green Hills C++ Compiler cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: # FreeBSD uses GNU C++ cannam@85: ;; cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" cannam@85: if test "$host_cpu" != ia64; then cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' cannam@85: fi cannam@85: ;; cannam@85: aCC) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: irix5* | irix6* | nonstopux*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' cannam@85: # CC pic flag -KPIC is the default. cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: linux*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: # KAI C++ Compiler cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' cannam@85: ;; cannam@85: icpc) cannam@85: # Intel C++ cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' cannam@85: ;; cannam@85: cxx) cannam@85: # Compaq C++ cannam@85: # Make sure the PIC flag is empty. It appears that all Alpha cannam@85: # Linux and Compaq Tru64 Unix objects are PIC. cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: lynxos*) cannam@85: ;; cannam@85: m88k*) cannam@85: ;; cannam@85: mvs*) cannam@85: case $cc_basename in cannam@85: cxx) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: netbsd* | knetbsd*-gnu) cannam@85: ;; cannam@85: osf3* | osf4* | osf5*) cannam@85: case $cc_basename in cannam@85: KCC) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' cannam@85: ;; cannam@85: RCC) cannam@85: # Rational C++ 2.4.1 cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' cannam@85: ;; cannam@85: cxx) cannam@85: # Digital/Compaq C++ cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: # Make sure the PIC flag is empty. It appears that all Alpha cannam@85: # Linux and Compaq Tru64 Unix objects are PIC. cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: psos*) cannam@85: ;; cannam@85: sco*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: solaris*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # Sun C++ 4.2, 5.x and Centerline C++ cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' cannam@85: ;; cannam@85: gcx) cannam@85: # Green Hills C++ Compiler cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: sunos4*) cannam@85: case $cc_basename in cannam@85: CC) cannam@85: # Sun C++ 4.x cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: ;; cannam@85: lcc) cannam@85: # Lucid cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: tandem*) cannam@85: case $cc_basename in cannam@85: NCC) cannam@85: # NonStop-UX NCC 3.20 cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' cannam@85: ;; cannam@85: *) cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: unixware*) cannam@85: ;; cannam@85: vxworks*) cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ], cannam@85: [ cannam@85: if test "$GCC" = yes; then cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' cannam@85: cannam@85: case $host_os in cannam@85: aix*) cannam@85: # All AIX code is PIC. cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: # FIXME: we need at least 68020 code to build shared libraries, but cannam@85: # adding the `-m68020' flag to GCC prevents building anything better, cannam@85: # like `-m68040'. cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' cannam@85: ;; cannam@85: cannam@85: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) cannam@85: # PIC is the default for these OSes. cannam@85: ;; cannam@85: cannam@85: mingw* | pw32* | os2*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: # PIC is the default on this platform cannam@85: # Common symbols not allowed in MH_DYLIB files cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' cannam@85: ;; cannam@85: cannam@85: msdosdjgpp*) cannam@85: # Just because we use GCC doesn't mean we suddenly get shared libraries cannam@85: # on systems that don't support them. cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no cannam@85: enable_shared=no cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic cannam@85: fi cannam@85: ;; cannam@85: cannam@85: hpux*) cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: # PORTME Check for flag to pass linker flags through the system compiler. cannam@85: case $host_os in cannam@85: aix*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: if test "$host_cpu" = ia64; then cannam@85: # AIX 5 now supports IA64 processor cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: else cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: mingw* | pw32* | os2*) cannam@85: # This hack is so that the source file can tell whether it is being cannam@85: # built for inclusion in a dll (and should export symbols for example). cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' cannam@85: ;; cannam@85: cannam@85: hpux9* | hpux10* | hpux11*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but cannam@85: # not for PA HP-UX. cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: # +Z the default cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' cannam@85: ;; cannam@85: esac cannam@85: # Is there a better lt_prog_compiler_static that works with the bundled CC? cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: # PIC (with -KPIC) is the default. cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: ;; cannam@85: cannam@85: linux*) cannam@85: case $CC in cannam@85: icc* | ecc*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' cannam@85: ;; cannam@85: ccc*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: # All Alpha code is PIC. cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' cannam@85: ;; cannam@85: esac cannam@85: ;; cannam@85: cannam@85: osf3* | osf4* | osf5*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: # All OSF/1 code is PIC. cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec ;then cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' cannam@85: ;; cannam@85: cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ]) cannam@85: AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) cannam@85: cannam@85: # cannam@85: # Check to make sure the PIC flag actually works. cannam@85: # cannam@85: if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then cannam@85: AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), cannam@85: [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], cannam@85: [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in cannam@85: "" | " "*) ;; cannam@85: *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; cannam@85: esac], cannam@85: [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) cannam@85: fi cannam@85: case "$host_os" in cannam@85: # For platforms which do not support PIC, -DPIC is meaningless: cannam@85: *djgpp*) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" cannam@85: ;; cannam@85: esac cannam@85: ]) cannam@85: cannam@85: cannam@85: # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) cannam@85: # ------------------------------------ cannam@85: # See if the linker supports building shared libraries. cannam@85: AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], cannam@85: [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) cannam@85: ifelse([$1],[CXX],[ cannam@85: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: case $host_os in cannam@85: aix4* | aix5*) cannam@85: # If we're using GNU nm, then we don't want the "-C" option. cannam@85: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@85: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@85: _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' cannam@85: else cannam@85: _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' cannam@85: fi cannam@85: ;; cannam@85: pw32*) cannam@85: _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" cannam@85: ;; cannam@85: cygwin* | mingw*) cannam@85: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: ;; cannam@85: esac cannam@85: ],[ cannam@85: runpath_var= cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)= cannam@85: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)= cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)= cannam@85: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= cannam@85: _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= cannam@85: _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown cannam@85: _LT_AC_TAGVAR(hardcode_automatic, $1)=no cannam@85: _LT_AC_TAGVAR(module_cmds, $1)= cannam@85: _LT_AC_TAGVAR(module_expsym_cmds, $1)= cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=no cannam@85: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: # include_expsyms should be a list of space-separated symbols to be *always* cannam@85: # included in the symbol list cannam@85: _LT_AC_TAGVAR(include_expsyms, $1)= cannam@85: # exclude_expsyms can be an extended regexp of symbols to exclude cannam@85: # it will be wrapped by ` (' and `)$', so one must not match beginning or cannam@85: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', cannam@85: # as well as any symbol that contains `d'. cannam@85: _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" cannam@85: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out cannam@85: # platforms (ab)use it in PIC code, but their linkers get confused if cannam@85: # the symbol is explicitly referenced. Since portable code cannot cannam@85: # rely on this symbol name, it's probably fine to never include it in cannam@85: # preloaded symbol tables. cannam@85: extract_expsyms_cmds= cannam@85: cannam@85: case $host_os in cannam@85: cygwin* | mingw* | pw32*) cannam@85: # FIXME: the MSVC++ port hasn't been tested in a loooong time cannam@85: # When not using gcc, we currently assume that we are using cannam@85: # Microsoft Visual C++. cannam@85: if test "$GCC" != yes; then cannam@85: with_gnu_ld=no cannam@85: fi cannam@85: ;; cannam@85: openbsd*) cannam@85: with_gnu_ld=no cannam@85: ;; cannam@85: esac cannam@85: cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=yes cannam@85: if test "$with_gnu_ld" = yes; then cannam@85: # If archive_cmds runs LD, not CC, wlarc should be empty cannam@85: wlarc='${wl}' cannam@85: cannam@85: # See if GNU ld supports shared libraries. cannam@85: case $host_os in cannam@85: aix3* | aix4* | aix5*) cannam@85: # On AIX/PPC, the GNU linker is very broken cannam@85: if test "$host_cpu" != ia64; then cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: the GNU linker, at least up to release 2.9.1, is reported cannam@85: *** to be unable to reliably create shared libraries on AIX. cannam@85: *** Therefore, libtool is disabling shared libraries support. If you cannam@85: *** really care for shared libraries, you may want to modify your PATH cannam@85: *** so that a non-GNU linker is found, and then restart. cannam@85: cannam@85: EOF cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: _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)' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: cannam@85: # Samuel A. Falvo II reports cannam@85: # that the semantics of dynamic libraries on AmigaOS, at least up cannam@85: # to version 4, is to share data among multiple programs linked cannam@85: # with the same dynamic library. Since this doesn't match the cannam@85: # behavior of shared libraries on other platforms, we can't use cannam@85: # them. cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: cannam@85: beos*) cannam@85: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported cannam@85: # Joseph Beckenbach says some releases of gcc cannam@85: # support --undefined. This deserves some investigation. FIXME cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: else cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, cannam@85: # as there is no search path for DLLs. cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=no cannam@85: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes cannam@85: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' cannam@85: cannam@85: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: # If the export-symbols file already is a .def file (1st line cannam@85: # is EXPORTS), use it as is; otherwise, prepend... cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cannam@85: cp $export_symbols $output_objdir/$soname.def; cannam@85: else cannam@85: echo EXPORTS > $output_objdir/$soname.def; cannam@85: cat $export_symbols >> $output_objdir/$soname.def; cannam@85: fi~ cannam@85: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' cannam@85: else cannam@85: ld_shlibs=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' cannam@85: wlarc= cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: _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' cannam@85: fi cannam@85: ;; cannam@85: cannam@85: solaris* | sysv5*) cannam@85: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: cat <&2 cannam@85: cannam@85: *** Warning: The releases 2.8.* of the GNU linker cannot reliably cannam@85: *** create shared libraries on Solaris systems. Therefore, libtool cannam@85: *** is disabling shared libraries support. We urge you to upgrade GNU cannam@85: *** binutils to release 2.9.1 or newer. Another option is to modify cannam@85: *** your PATH or compiler configuration so that the native linker is cannam@85: *** used, and then restart. cannam@85: cannam@85: EOF cannam@85: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: _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' cannam@85: else cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: wlarc= cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: linux*) cannam@85: if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then cannam@85: tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" cannam@85: supports_anon_versioning=no cannam@85: case `$LD -v 2>/dev/null` in cannam@85: *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 cannam@85: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... cannam@85: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... cannam@85: *\ 2.11.*) ;; # other 2.11 versions cannam@85: *) supports_anon_versioning=yes ;; cannam@85: esac cannam@85: if test $supports_anon_versioning = yes; then cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ cannam@85: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ cannam@85: $echo "local: *; };" >> $output_objdir/$libname.ver~ cannam@85: $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" cannam@85: fi cannam@85: else cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: *) cannam@85: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' cannam@85: _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' cannam@85: else cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: cannam@85: if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then cannam@85: runpath_var=LD_RUN_PATH cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' cannam@85: # ancient GNU ld didn't support --whole-archive et. al. cannam@85: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' cannam@85: else cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= cannam@85: fi cannam@85: fi cannam@85: else cannam@85: # PORTME fill in a description of your system's linker (not GNU ld) cannam@85: case $host_os in cannam@85: aix3*) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=yes cannam@85: _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' cannam@85: # Note: this linker hardcodes the directories in LIBPATH if there cannam@85: # are no directories specified by -L. cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: if test "$GCC" = yes && test -z "$link_static_flag"; then cannam@85: # Neither direct hardcoding nor static linking is supported with a cannam@85: # broken collect2. cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported cannam@85: fi cannam@85: ;; cannam@85: cannam@85: aix4* | aix5*) cannam@85: if test "$host_cpu" = ia64; then cannam@85: # On IA64, the linker does run time linking by default, so we don't cannam@85: # have to do anything special. cannam@85: aix_use_runtimelinking=no cannam@85: exp_sym_flag='-Bexport' cannam@85: no_entry_flag="" cannam@85: else cannam@85: # If we're using GNU nm, then we don't want the "-C" option. cannam@85: # -C means demangle to AIX nm, but means don't demangle with GNU nm cannam@85: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then cannam@85: _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' cannam@85: else cannam@85: _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' cannam@85: fi cannam@85: aix_use_runtimelinking=no cannam@85: cannam@85: # Test if we are trying to use run time linking or normal cannam@85: # AIX style linking. If -brtl is somewhere in LDFLAGS, we cannam@85: # need to do runtime linking. cannam@85: case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) cannam@85: for ld_flag in $LDFLAGS; do cannam@85: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then cannam@85: aix_use_runtimelinking=yes cannam@85: break cannam@85: fi cannam@85: done cannam@85: esac cannam@85: cannam@85: exp_sym_flag='-bexport' cannam@85: no_entry_flag='-bnoentry' cannam@85: fi cannam@85: cannam@85: # When large executables or shared objects are built, AIX ld can cannam@85: # have problems creating the table of contents. If linking a library cannam@85: # or program results in "error TOC overflow" add -mminimal-toc to cannam@85: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not cannam@85: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. cannam@85: cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: cannam@85: if test "$GCC" = yes; then cannam@85: case $host_os in aix4.[012]|aix4.[012].*) cannam@85: # We only want to do this on AIX 4.2 and lower, the check cannam@85: # below for broken collect2 doesn't work under 4.3+ cannam@85: collect2name=`${CC} -print-prog-name=collect2` cannam@85: if test -f "$collect2name" && \ cannam@85: strings "$collect2name" | grep resolve_lib_name >/dev/null cannam@85: then cannam@85: # We have reworked collect2 cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: else cannam@85: # We have old collect2 cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported cannam@85: # It fails to find uninstalled libraries when the uninstalled cannam@85: # path is not listed in the libpath. Setting hardcode_minus_L cannam@85: # to unsupported forces relinking cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= cannam@85: fi cannam@85: esac cannam@85: shared_flag='-shared' cannam@85: else cannam@85: # not using gcc cannam@85: if test "$host_cpu" = ia64; then cannam@85: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release cannam@85: # chokes on -Wl,-G. The following line is correct: cannam@85: shared_flag='-G' cannam@85: else cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: shared_flag='${wl}-G' cannam@85: else cannam@85: shared_flag='${wl}-bM:SRE' cannam@85: fi cannam@85: fi cannam@85: fi cannam@85: cannam@85: # It seems that -bexpall does not export symbols beginning with cannam@85: # underscore (_), so it is better to generate a list of symbols to export. cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=yes cannam@85: if test "$aix_use_runtimelinking" = yes; then cannam@85: # Warning - without using the other runtime loading flags (-brtl), cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: _LT_AC_SYS_LIBPATH_AIX cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: _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}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" cannam@85: else cannam@85: if test "$host_cpu" = ia64; then cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" cannam@85: _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" cannam@85: else cannam@85: # Determine the default libpath from the value encoded in an empty executable. cannam@85: _LT_AC_SYS_LIBPATH_AIX cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" cannam@85: # Warning - without using the other run time loading flags, cannam@85: # -berok will link without error, but may produce a broken library. cannam@85: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' cannam@85: # -bexpall does not export symbols beginning with underscore (_) cannam@85: _LT_AC_TAGVAR(always_export_symbols, $1)=yes cannam@85: # Exported symbols can be pulled into shared objects from archives cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes cannam@85: # This is similar to how AIX traditionally builds it's shared libraries. cannam@85: _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' cannam@85: fi cannam@85: fi cannam@85: ;; cannam@85: cannam@85: amigaos*) cannam@85: _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)' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: # see comment about different semantics on the GNU ld section cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: cannam@85: bsdi4*) cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic cannam@85: ;; cannam@85: cannam@85: cygwin* | mingw* | pw32*) cannam@85: # When not using gcc, we currently assume that we are using cannam@85: # Microsoft Visual C++. cannam@85: # hardcode_libdir_flag_spec is actually meaningless, as there is cannam@85: # no search path for DLLs. cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported cannam@85: # Tell ltmain to make .lib files, not .a files. cannam@85: libext=lib cannam@85: # Tell ltmain to make .dll files, not .so files. cannam@85: shrext=".dll" cannam@85: # FIXME: Setting linknames here is a bad hack. cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' cannam@85: # The linker will automatically build a .lib file if we build a DLL. cannam@85: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' cannam@85: # FIXME: Should let the user specify the lib program. cannam@85: _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' cannam@85: fix_srcfile_path='`cygpath -w "$srcfile"`' cannam@85: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes cannam@85: ;; cannam@85: cannam@85: darwin* | rhapsody*) cannam@85: if test "$GXX" = yes ; then cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: case "$host_os" in cannam@85: rhapsody* | darwin1.[[012]]) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' cannam@85: ;; cannam@85: *) # Darwin 1.3 on cannam@85: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' cannam@85: else cannam@85: case ${MACOSX_DEPLOYMENT_TARGET} in cannam@85: 10.[[012]]) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' cannam@85: ;; cannam@85: 10.*) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: lt_int_apple_cc_single_mod=no cannam@85: output_verbose_link_cmd='echo' cannam@85: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then cannam@85: lt_int_apple_cc_single_mod=yes cannam@85: fi cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' cannam@85: fi cannam@85: _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' cannam@85: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's cannam@85: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: fi cannam@85: _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_automatic, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: else cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: fi cannam@85: ;; cannam@85: cannam@85: dgux*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: freebsd1*) cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: cannam@85: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor cannam@85: # support. Future versions do this automatically, but an explicit c++rt0.o cannam@85: # does not break anything, and helps significantly (at the cost of a little cannam@85: # extra space). cannam@85: freebsd2.2*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: # Unfortunately, older versions of FreeBSD 2 do not have this feature. cannam@85: freebsd2*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. cannam@85: freebsd* | kfreebsd*-gnu) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: hpux9*) cannam@85: if test "$GCC" = yes; then cannam@85: _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' cannam@85: else cannam@85: _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' cannam@85: fi cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' cannam@85: ;; cannam@85: cannam@85: hpux10* | hpux11*) cannam@85: if test "$GCC" = yes -a "$with_gnu_ld" = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' cannam@85: ;; cannam@85: esac cannam@85: else cannam@85: case "$host_cpu" in cannam@85: hppa*64*|ia64*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: if test "$with_gnu_ld" = no; then cannam@85: case "$host_cpu" in cannam@85: hppa*64*) cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: ia64*) cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' cannam@85: cannam@85: # hardcode_minus_L: Not really in the search PATH, cannam@85: # but as the default location of the library. cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: cannam@85: irix5* | irix6* | nonstopux*) cannam@85: if test "$GCC" = yes; then cannam@85: _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' cannam@85: else cannam@85: _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' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' cannam@85: fi cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: ;; cannam@85: cannam@85: netbsd* | knetbsd*-gnu) cannam@85: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF cannam@85: fi cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: newsos6) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: openbsd*) cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' cannam@85: else cannam@85: case $host_os in cannam@85: openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' cannam@85: ;; cannam@85: *) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: cannam@85: os2*) cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported cannam@85: _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' cannam@85: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' cannam@85: ;; cannam@85: cannam@85: osf3*) cannam@85: if test "$GCC" = yes; then cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' cannam@85: _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' cannam@85: else cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' cannam@85: _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' cannam@85: fi cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: ;; cannam@85: cannam@85: osf4* | osf5*) # as osf3* with the addition of -msym flag cannam@85: if test "$GCC" = yes; then cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' cannam@85: _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' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' cannam@85: else cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' cannam@85: _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' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ cannam@85: $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' cannam@85: cannam@85: # Both c and cxx compiler support -rpath directly cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' cannam@85: fi cannam@85: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: cannam@85: ;; cannam@85: cannam@85: sco3.2v5*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_runpath_var=yes cannam@85: ;; cannam@85: cannam@85: solaris*) cannam@85: _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' cannam@85: if test "$GCC" = yes; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@85: fi cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: case $host_os in cannam@85: solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; cannam@85: *) # Supported since Solaris 2.6 (maybe 2.5.1?) cannam@85: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; cannam@85: esac cannam@85: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes cannam@85: ;; cannam@85: cannam@85: sunos4*) cannam@85: if test "x$host_vendor" = xsequent; then cannam@85: # Use $CC to link under sequent, because it throws in some extra .o cannam@85: # files that make .init and .fini sections work. cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' cannam@85: fi cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: sysv4) cannam@85: case $host_vendor in cannam@85: sni) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? cannam@85: ;; cannam@85: siemens) cannam@85: ## LD is ld it makes a PLAMLIB cannam@85: ## CC just makes a GrossModule. cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no cannam@85: ;; cannam@85: motorola) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie cannam@85: ;; cannam@85: esac cannam@85: runpath_var='LD_RUN_PATH' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: sysv4.3*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' cannam@85: ;; cannam@85: cannam@85: sysv4*MP*) cannam@85: if test -d /usr/nec; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: runpath_var=LD_RUN_PATH cannam@85: hardcode_runpath_var=yes cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=yes cannam@85: fi cannam@85: ;; cannam@85: cannam@85: sysv4.2uw2*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_direct, $1)=yes cannam@85: _LT_AC_TAGVAR(hardcode_minus_L, $1)=no cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: hardcode_runpath_var=yes cannam@85: runpath_var=LD_RUN_PATH cannam@85: ;; cannam@85: cannam@85: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) cannam@85: _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' cannam@85: if test "$GCC" = yes; then cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' cannam@85: fi cannam@85: runpath_var='LD_RUN_PATH' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: sysv5*) cannam@85: _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' cannam@85: # $CC -shared without GNU ld will not create a library from C++ cannam@85: # object files and a static libstdc++, better avoid it by now cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ cannam@85: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: runpath_var='LD_RUN_PATH' cannam@85: ;; cannam@85: cannam@85: uts4*) cannam@85: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' cannam@85: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' cannam@85: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no cannam@85: ;; cannam@85: cannam@85: *) cannam@85: _LT_AC_TAGVAR(ld_shlibs, $1)=no cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ]) cannam@85: AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) cannam@85: test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no cannam@85: cannam@85: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" cannam@85: if test "$GCC" = yes; then cannam@85: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" cannam@85: fi cannam@85: cannam@85: # cannam@85: # Do we need to explicitly link libc? cannam@85: # cannam@85: case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in cannam@85: x|xyes) cannam@85: # Assume -lc should be added cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes cannam@85: cannam@85: if test "$enable_shared" = yes && test "$GCC" = yes; then cannam@85: case $_LT_AC_TAGVAR(archive_cmds, $1) in cannam@85: *'~'*) cannam@85: # FIXME: we may have to deal with multi-command sequences. cannam@85: ;; cannam@85: '$CC '*) cannam@85: # Test whether the compiler implicitly links with -lc since on some cannam@85: # systems, -lgcc has to come before -lc. If gcc already passes -lc cannam@85: # to ld, don't add -lc before -lgcc. cannam@85: AC_MSG_CHECKING([whether -lc should be explicitly linked in]) cannam@85: $rm conftest* cannam@85: printf "$lt_simple_compile_test_code" > conftest.$ac_ext cannam@85: cannam@85: if AC_TRY_EVAL(ac_compile) 2>conftest.err; then cannam@85: soname=conftest cannam@85: lib=conftest cannam@85: libobjs=conftest.$ac_objext cannam@85: deplibs= cannam@85: wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) cannam@85: compiler_flags=-v cannam@85: linker_flags=-v cannam@85: verstring= cannam@85: output_objdir=. cannam@85: libname=conftest cannam@85: lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)= cannam@85: if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) cannam@85: then cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no cannam@85: else cannam@85: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes cannam@85: fi cannam@85: _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag cannam@85: else cannam@85: cat conftest.err 1>&5 cannam@85: fi cannam@85: $rm conftest* cannam@85: AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) cannam@85: ;; cannam@85: esac cannam@85: fi cannam@85: ;; cannam@85: esac cannam@85: ])# AC_LIBTOOL_PROG_LD_SHLIBS cannam@85: cannam@85: cannam@85: # _LT_AC_FILE_LTDLL_C cannam@85: # ------------------- cannam@85: # Be careful that the start marker always follows a newline. cannam@85: AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ cannam@85: # /* ltdll.c starts here */ cannam@85: # #define WIN32_LEAN_AND_MEAN cannam@85: # #include cannam@85: # #undef WIN32_LEAN_AND_MEAN cannam@85: # #include cannam@85: # cannam@85: # #ifndef __CYGWIN__ cannam@85: # # ifdef __CYGWIN32__ cannam@85: # # define __CYGWIN__ __CYGWIN32__ cannam@85: # # endif cannam@85: # #endif cannam@85: # cannam@85: # #ifdef __cplusplus cannam@85: # extern "C" { cannam@85: # #endif cannam@85: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); cannam@85: # #ifdef __cplusplus cannam@85: # } cannam@85: # #endif cannam@85: # cannam@85: # #ifdef __CYGWIN__ cannam@85: # #include cannam@85: # DECLARE_CYGWIN_DLL( DllMain ); cannam@85: # #endif cannam@85: # HINSTANCE __hDllInstance_base; cannam@85: # cannam@85: # BOOL APIENTRY cannam@85: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) cannam@85: # { cannam@85: # __hDllInstance_base = hInst; cannam@85: # return TRUE; cannam@85: # } cannam@85: # /* ltdll.c ends here */ cannam@85: ])# _LT_AC_FILE_LTDLL_C cannam@85: cannam@85: cannam@85: # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) cannam@85: # --------------------------------- cannam@85: AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) cannam@85: cannam@85: cannam@85: # old names cannam@85: AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) cannam@85: AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) cannam@85: AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) cannam@85: AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) cannam@85: AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) cannam@85: AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) cannam@85: AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) cannam@85: cannam@85: # This is just to silence aclocal about the macro not being used cannam@85: ifelse([AC_DISABLE_FAST_INSTALL]) cannam@85: cannam@85: AC_DEFUN([LT_AC_PROG_GCJ], cannam@85: [AC_CHECK_TOOL(GCJ, gcj, no) cannam@85: test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" cannam@85: AC_SUBST(GCJFLAGS) cannam@85: ]) cannam@85: cannam@85: AC_DEFUN([LT_AC_PROG_RC], cannam@85: [AC_CHECK_TOOL(RC, windres, no) cannam@85: ]) cannam@85: cannam@85: # NOTE: This macro has been submitted for inclusion into # cannam@85: # GNU Autoconf as AC_PROG_SED. When it is available in # cannam@85: # a released version of Autoconf we should remove this # cannam@85: # macro and use it instead. # cannam@85: # LT_AC_PROG_SED cannam@85: # -------------- cannam@85: # Check for a fully-functional sed program, that truncates cannam@85: # as few characters as possible. Prefer GNU sed if found. cannam@85: AC_DEFUN([LT_AC_PROG_SED], cannam@85: [AC_MSG_CHECKING([for a sed that does not truncate output]) cannam@85: AC_CACHE_VAL(lt_cv_path_SED, cannam@85: [# Loop through the user's path and test for sed and gsed. cannam@85: # Then use that list of sed's as ones to test for truncation. cannam@85: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR cannam@85: for as_dir in $PATH cannam@85: do cannam@85: IFS=$as_save_IFS cannam@85: test -z "$as_dir" && as_dir=. cannam@85: for lt_ac_prog in sed gsed; do cannam@85: for ac_exec_ext in '' $ac_executable_extensions; do cannam@85: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then cannam@85: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" cannam@85: fi cannam@85: done cannam@85: done cannam@85: done cannam@85: lt_ac_max=0 cannam@85: lt_ac_count=0 cannam@85: # Add /usr/xpg4/bin/sed as it is typically found on Solaris cannam@85: # along with /bin/sed that truncates output. cannam@85: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do cannam@85: test ! -f $lt_ac_sed && break cannam@85: cat /dev/null > conftest.in cannam@85: lt_ac_count=0 cannam@85: echo $ECHO_N "0123456789$ECHO_C" >conftest.in cannam@85: # Check for GNU sed and select it if it is found. cannam@85: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then cannam@85: lt_cv_path_SED=$lt_ac_sed cannam@85: break cannam@85: fi cannam@85: while true; do cannam@85: cat conftest.in conftest.in >conftest.tmp cannam@85: mv conftest.tmp conftest.in cannam@85: cp conftest.in conftest.nl cannam@85: echo >>conftest.nl cannam@85: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cannam@85: cmp -s conftest.out conftest.nl || break cannam@85: # 10000 chars as input seems more than enough cannam@85: test $lt_ac_count -gt 10 && break cannam@85: lt_ac_count=`expr $lt_ac_count + 1` cannam@85: if test $lt_ac_count -gt $lt_ac_max; then cannam@85: lt_ac_max=$lt_ac_count cannam@85: lt_cv_path_SED=$lt_ac_sed cannam@85: fi cannam@85: done cannam@85: done cannam@85: SED=$lt_cv_path_SED cannam@85: ]) cannam@85: AC_MSG_RESULT([$SED]) cannam@85: ]) cannam@85: cannam@85: # -*- Autoconf -*- cannam@85: # Copyright (C) 2002, 2003 Free Software Foundation, Inc. cannam@85: # Generated from amversion.in; do not edit by hand. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: cannam@85: # AM_AUTOMAKE_VERSION(VERSION) cannam@85: # ---------------------------- cannam@85: # Automake X.Y traces this macro to ensure aclocal.m4 has been cannam@85: # generated from the m4 files accompanying Automake X.Y. cannam@85: AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"]) cannam@85: cannam@85: # AM_SET_CURRENT_AUTOMAKE_VERSION cannam@85: # ------------------------------- cannam@85: # Call AM_AUTOMAKE_VERSION so it can be traced. cannam@85: # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. cannam@85: AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], cannam@85: [AM_AUTOMAKE_VERSION([1.8.2])]) cannam@85: cannam@85: # Figure out how to run the assembler. -*- Autoconf -*- cannam@85: cannam@85: # serial 3 cannam@85: cannam@85: # Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # AM_PROG_AS cannam@85: # ---------- cannam@85: AC_DEFUN([AM_PROG_AS], cannam@85: [# By default we simply use the C compiler to build assembly code. cannam@85: AC_REQUIRE([AC_PROG_CC]) cannam@85: test "${CCAS+set}" = set || CCAS=$CC cannam@85: test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS cannam@85: AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) cannam@85: AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) cannam@85: ]) cannam@85: cannam@85: # AM_AUX_DIR_EXPAND cannam@85: cannam@85: # Copyright (C) 2001, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets cannam@85: # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to cannam@85: # `$srcdir', `$srcdir/..', or `$srcdir/../..'. cannam@85: # cannam@85: # Of course, Automake must honor this variable whenever it calls a cannam@85: # tool from the auxiliary directory. The problem is that $srcdir (and cannam@85: # therefore $ac_aux_dir as well) can be either absolute or relative, cannam@85: # depending on how configure is run. This is pretty annoying, since cannam@85: # it makes $ac_aux_dir quite unusable in subdirectories: in the top cannam@85: # source directory, any form will work fine, but in subdirectories a cannam@85: # relative path needs to be adjusted first. cannam@85: # cannam@85: # $ac_aux_dir/missing cannam@85: # fails when called from a subdirectory if $ac_aux_dir is relative cannam@85: # $top_srcdir/$ac_aux_dir/missing cannam@85: # fails if $ac_aux_dir is absolute, cannam@85: # fails when called from a subdirectory in a VPATH build with cannam@85: # a relative $ac_aux_dir cannam@85: # cannam@85: # The reason of the latter failure is that $top_srcdir and $ac_aux_dir cannam@85: # are both prefixed by $srcdir. In an in-source build this is usually cannam@85: # harmless because $srcdir is `.', but things will broke when you cannam@85: # start a VPATH build or use an absolute $srcdir. cannam@85: # cannam@85: # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, cannam@85: # iff we strip the leading $srcdir from $ac_aux_dir. That would be: cannam@85: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` cannam@85: # and then we would define $MISSING as cannam@85: # MISSING="\${SHELL} $am_aux_dir/missing" cannam@85: # This will work as long as MISSING is not called from configure, because cannam@85: # unfortunately $(top_srcdir) has no meaning in configure. cannam@85: # However there are other variables, like CC, which are often used in cannam@85: # configure, and could therefore not use this "fixed" $ac_aux_dir. cannam@85: # cannam@85: # Another solution, used here, is to always expand $ac_aux_dir to an cannam@85: # absolute PATH. The drawback is that using absolute paths prevent a cannam@85: # configured tree to be moved without reconfiguration. cannam@85: cannam@85: AC_DEFUN([AM_AUX_DIR_EXPAND], cannam@85: [dnl Rely on autoconf to set up CDPATH properly. cannam@85: AC_PREREQ([2.50])dnl cannam@85: # expand $ac_aux_dir to an absolute path cannam@85: am_aux_dir=`cd $ac_aux_dir && pwd` cannam@85: ]) cannam@85: cannam@85: # AM_CONDITIONAL -*- Autoconf -*- cannam@85: cannam@85: # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # serial 6 cannam@85: cannam@85: # AM_CONDITIONAL(NAME, SHELL-CONDITION) cannam@85: # ------------------------------------- cannam@85: # Define a conditional. cannam@85: AC_DEFUN([AM_CONDITIONAL], cannam@85: [AC_PREREQ(2.52)dnl cannam@85: ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], cannam@85: [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl cannam@85: AC_SUBST([$1_TRUE]) cannam@85: AC_SUBST([$1_FALSE]) cannam@85: if $2; then cannam@85: $1_TRUE= cannam@85: $1_FALSE='#' cannam@85: else cannam@85: $1_TRUE='#' cannam@85: $1_FALSE= cannam@85: fi cannam@85: AC_CONFIG_COMMANDS_PRE( cannam@85: [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then cannam@85: AC_MSG_ERROR([conditional "$1" was never defined. cannam@85: Usually this means the macro was only invoked conditionally.]) cannam@85: fi])]) cannam@85: cannam@85: # serial 6 -*- Autoconf -*- cannam@85: cannam@85: # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 cannam@85: # Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: cannam@85: # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be cannam@85: # written in clear, in which case automake, when reading aclocal.m4, cannam@85: # will think it sees a *use*, and therefore will trigger all it's cannam@85: # C support machinery. Also note that it means that autoscan, seeing cannam@85: # CC etc. in the Makefile, will ask for an AC_PROG_CC use... cannam@85: cannam@85: cannam@85: cannam@85: # _AM_DEPENDENCIES(NAME) cannam@85: # ---------------------- cannam@85: # See how the compiler implements dependency checking. cannam@85: # NAME is "CC", "CXX", "GCJ", or "OBJC". cannam@85: # We try a few techniques and use that to set a single cache variable. cannam@85: # cannam@85: # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was cannam@85: # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular cannam@85: # dependency, and given that the user is not expected to run this macro, cannam@85: # just rely on AC_PROG_CC. cannam@85: AC_DEFUN([_AM_DEPENDENCIES], cannam@85: [AC_REQUIRE([AM_SET_DEPDIR])dnl cannam@85: AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl cannam@85: AC_REQUIRE([AM_MAKE_INCLUDE])dnl cannam@85: AC_REQUIRE([AM_DEP_TRACK])dnl cannam@85: cannam@85: ifelse([$1], CC, [depcc="$CC" am_compiler_list=], cannam@85: [$1], CXX, [depcc="$CXX" am_compiler_list=], cannam@85: [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], cannam@85: [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], cannam@85: [depcc="$$1" am_compiler_list=]) cannam@85: cannam@85: AC_CACHE_CHECK([dependency style of $depcc], cannam@85: [am_cv_$1_dependencies_compiler_type], cannam@85: [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then cannam@85: # We make a subdir and do the tests there. Otherwise we can end up cannam@85: # making bogus files that we don't know about and never remove. For cannam@85: # instance it was reported that on HP-UX the gcc test will end up cannam@85: # making a dummy file named `D' -- because `-MD' means `put the output cannam@85: # in D'. cannam@85: mkdir conftest.dir cannam@85: # Copy depcomp to subdir because otherwise we won't find it if we're cannam@85: # using a relative directory. cannam@85: cp "$am_depcomp" conftest.dir cannam@85: cd conftest.dir cannam@85: # We will build objects and dependencies in a subdirectory because cannam@85: # it helps to detect inapplicable dependency modes. For instance cannam@85: # both Tru64's cc and ICC support -MD to output dependencies as a cannam@85: # side effect of compilation, but ICC will put the dependencies in cannam@85: # the current directory while Tru64 will put them in the object cannam@85: # directory. cannam@85: mkdir sub cannam@85: cannam@85: am_cv_$1_dependencies_compiler_type=none cannam@85: if test "$am_compiler_list" = ""; then cannam@85: am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` cannam@85: fi cannam@85: for depmode in $am_compiler_list; do cannam@85: # Setup a source with many dependencies, because some compilers cannam@85: # like to wrap large dependency lists on column 80 (with \), and cannam@85: # we should not choose a depcomp mode which is confused by this. cannam@85: # cannam@85: # We need to recreate these files for each test, as the compiler may cannam@85: # overwrite some of them when testing with obscure command lines. cannam@85: # This happens at least with the AIX C compiler. cannam@85: : > sub/conftest.c cannam@85: for i in 1 2 3 4 5 6; do cannam@85: echo '#include "conftst'$i'.h"' >> sub/conftest.c cannam@85: : > sub/conftst$i.h cannam@85: done cannam@85: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf cannam@85: cannam@85: case $depmode in cannam@85: nosideeffect) cannam@85: # after this tag, mechanisms are not by side-effect, so they'll cannam@85: # only be used when explicitly requested cannam@85: if test "x$enable_dependency_tracking" = xyes; then cannam@85: continue cannam@85: else cannam@85: break cannam@85: fi cannam@85: ;; cannam@85: none) break ;; cannam@85: esac cannam@85: # We check with `-c' and `-o' for the sake of the "dashmstdout" cannam@85: # mode. It turns out that the SunPro C++ compiler does not properly cannam@85: # handle `-M -o', and we need to detect this. cannam@85: if depmode=$depmode \ cannam@85: source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ cannam@85: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ cannam@85: $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ cannam@85: >/dev/null 2>conftest.err && cannam@85: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && cannam@85: grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && cannam@85: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then cannam@85: # icc doesn't choke on unknown options, it will just issue warnings cannam@85: # (even with -Werror). So we grep stderr for any message cannam@85: # that says an option was ignored. cannam@85: if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else cannam@85: am_cv_$1_dependencies_compiler_type=$depmode cannam@85: break cannam@85: fi cannam@85: fi cannam@85: done cannam@85: cannam@85: cd .. cannam@85: rm -rf conftest.dir cannam@85: else cannam@85: am_cv_$1_dependencies_compiler_type=none cannam@85: fi cannam@85: ]) cannam@85: AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) cannam@85: AM_CONDITIONAL([am__fastdep$1], [ cannam@85: test "x$enable_dependency_tracking" != xno \ cannam@85: && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) cannam@85: ]) cannam@85: cannam@85: cannam@85: # AM_SET_DEPDIR cannam@85: # ------------- cannam@85: # Choose a directory name for dependency files. cannam@85: # This macro is AC_REQUIREd in _AM_DEPENDENCIES cannam@85: AC_DEFUN([AM_SET_DEPDIR], cannam@85: [AC_REQUIRE([AM_SET_LEADING_DOT])dnl cannam@85: AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl cannam@85: ]) cannam@85: cannam@85: cannam@85: # AM_DEP_TRACK cannam@85: # ------------ cannam@85: AC_DEFUN([AM_DEP_TRACK], cannam@85: [AC_ARG_ENABLE(dependency-tracking, cannam@85: [ --disable-dependency-tracking speeds up one-time build cannam@85: --enable-dependency-tracking do not reject slow dependency extractors]) cannam@85: if test "x$enable_dependency_tracking" != xno; then cannam@85: am_depcomp="$ac_aux_dir/depcomp" cannam@85: AMDEPBACKSLASH='\' cannam@85: fi cannam@85: AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) cannam@85: AC_SUBST([AMDEPBACKSLASH]) cannam@85: ]) cannam@85: cannam@85: # Generate code to set up dependency tracking. -*- Autoconf -*- cannam@85: cannam@85: # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: #serial 2 cannam@85: cannam@85: # _AM_OUTPUT_DEPENDENCY_COMMANDS cannam@85: # ------------------------------ cannam@85: AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], cannam@85: [for mf in $CONFIG_FILES; do cannam@85: # Strip MF so we end up with the name of the file. cannam@85: mf=`echo "$mf" | sed -e 's/:.*$//'` cannam@85: # Check whether this is an Automake generated Makefile or not. cannam@85: # We used to match only the files named `Makefile.in', but cannam@85: # some people rename them; so instead we look at the file content. cannam@85: # Grep'ing the first line is not enough: some people post-process cannam@85: # each Makefile.in and add a new line on top of each file to say so. cannam@85: # So let's grep whole file. cannam@85: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then cannam@85: dirpart=`AS_DIRNAME("$mf")` cannam@85: else cannam@85: continue cannam@85: fi cannam@85: grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue cannam@85: # Extract the definition of DEP_FILES from the Makefile without cannam@85: # running `make'. cannam@85: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` cannam@85: test -z "$DEPDIR" && continue cannam@85: # When using ansi2knr, U may be empty or an underscore; expand it cannam@85: U=`sed -n -e '/^U = / s///p' < "$mf"` cannam@85: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" cannam@85: # We invoke sed twice because it is the simplest approach to cannam@85: # changing $(DEPDIR) to its actual value in the expansion. cannam@85: for file in `sed -n -e ' cannam@85: /^DEP_FILES = .*\\\\$/ { cannam@85: s/^DEP_FILES = // cannam@85: :loop cannam@85: s/\\\\$// cannam@85: p cannam@85: n cannam@85: /\\\\$/ b loop cannam@85: p cannam@85: } cannam@85: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ cannam@85: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do cannam@85: # Make sure the directory exists. cannam@85: test -f "$dirpart/$file" && continue cannam@85: fdir=`AS_DIRNAME(["$file"])` cannam@85: AS_MKDIR_P([$dirpart/$fdir]) cannam@85: # echo "creating $dirpart/$file" cannam@85: echo '# dummy' > "$dirpart/$file" cannam@85: done cannam@85: done cannam@85: ])# _AM_OUTPUT_DEPENDENCY_COMMANDS cannam@85: cannam@85: cannam@85: # AM_OUTPUT_DEPENDENCY_COMMANDS cannam@85: # ----------------------------- cannam@85: # This macro should only be invoked once -- use via AC_REQUIRE. cannam@85: # cannam@85: # This code is only required when automatic dependency tracking cannam@85: # is enabled. FIXME. This creates each `.P' file that we will cannam@85: # need in order to bootstrap the dependency handling code. cannam@85: AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], cannam@85: [AC_CONFIG_COMMANDS([depfiles], cannam@85: [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], cannam@85: [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) cannam@85: ]) cannam@85: cannam@85: # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- cannam@85: cannam@85: # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # serial 7 cannam@85: cannam@85: # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. cannam@85: AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) cannam@85: cannam@85: # Do all the work for Automake. -*- Autoconf -*- cannam@85: cannam@85: # This macro actually does too much some checks are only needed if cannam@85: # your package does certain things. But this isn't really a big deal. cannam@85: cannam@85: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 cannam@85: # Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # serial 11 cannam@85: cannam@85: # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) cannam@85: # AM_INIT_AUTOMAKE([OPTIONS]) cannam@85: # ----------------------------------------------- cannam@85: # The call with PACKAGE and VERSION arguments is the old style cannam@85: # call (pre autoconf-2.50), which is being phased out. PACKAGE cannam@85: # and VERSION should now be passed to AC_INIT and removed from cannam@85: # the call to AM_INIT_AUTOMAKE. cannam@85: # We support both call styles for the transition. After cannam@85: # the next Automake release, Autoconf can make the AC_INIT cannam@85: # arguments mandatory, and then we can depend on a new Autoconf cannam@85: # release and drop the old call support. cannam@85: AC_DEFUN([AM_INIT_AUTOMAKE], cannam@85: [AC_PREREQ([2.58])dnl cannam@85: dnl Autoconf wants to disallow AM_ names. We explicitly allow cannam@85: dnl the ones we care about. cannam@85: m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl cannam@85: AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl cannam@85: AC_REQUIRE([AC_PROG_INSTALL])dnl cannam@85: # test to see if srcdir already configured cannam@85: if test "`cd $srcdir && pwd`" != "`pwd`" && cannam@85: test -f $srcdir/config.status; then cannam@85: AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) cannam@85: fi cannam@85: cannam@85: # test whether we have cygpath cannam@85: if test -z "$CYGPATH_W"; then cannam@85: if (cygpath --version) >/dev/null 2>/dev/null; then cannam@85: CYGPATH_W='cygpath -w' cannam@85: else cannam@85: CYGPATH_W=echo cannam@85: fi cannam@85: fi cannam@85: AC_SUBST([CYGPATH_W]) cannam@85: cannam@85: # Define the identity of the package. cannam@85: dnl Distinguish between old-style and new-style calls. cannam@85: m4_ifval([$2], cannam@85: [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl cannam@85: AC_SUBST([PACKAGE], [$1])dnl cannam@85: AC_SUBST([VERSION], [$2])], cannam@85: [_AM_SET_OPTIONS([$1])dnl cannam@85: AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl cannam@85: AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl cannam@85: cannam@85: _AM_IF_OPTION([no-define],, cannam@85: [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) cannam@85: AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl cannam@85: cannam@85: # Some tools Automake needs. cannam@85: AC_REQUIRE([AM_SANITY_CHECK])dnl cannam@85: AC_REQUIRE([AC_ARG_PROGRAM])dnl cannam@85: AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) cannam@85: AM_MISSING_PROG(AUTOCONF, autoconf) cannam@85: AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) cannam@85: AM_MISSING_PROG(AUTOHEADER, autoheader) cannam@85: AM_MISSING_PROG(MAKEINFO, makeinfo) cannam@85: AM_MISSING_PROG(AMTAR, tar) cannam@85: AM_PROG_INSTALL_SH cannam@85: AM_PROG_INSTALL_STRIP cannam@85: AC_REQUIRE([AM_PROG_MKDIR_P])dnl cannam@85: # We need awk for the "check" target. The system "awk" is bad on cannam@85: # some platforms. cannam@85: AC_REQUIRE([AC_PROG_AWK])dnl cannam@85: AC_REQUIRE([AC_PROG_MAKE_SET])dnl cannam@85: AC_REQUIRE([AM_SET_LEADING_DOT])dnl cannam@85: cannam@85: _AM_IF_OPTION([no-dependencies],, cannam@85: [AC_PROVIDE_IFELSE([AC_PROG_CC], cannam@85: [_AM_DEPENDENCIES(CC)], cannam@85: [define([AC_PROG_CC], cannam@85: defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl cannam@85: AC_PROVIDE_IFELSE([AC_PROG_CXX], cannam@85: [_AM_DEPENDENCIES(CXX)], cannam@85: [define([AC_PROG_CXX], cannam@85: defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl cannam@85: ]) cannam@85: ]) cannam@85: cannam@85: cannam@85: # When config.status generates a header, we must update the stamp-h file. cannam@85: # This file resides in the same directory as the config header cannam@85: # that is generated. The stamp files are numbered to have different names. cannam@85: cannam@85: # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the cannam@85: # loop where config.status creates the headers, so we can generate cannam@85: # our stamp files there. cannam@85: AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], cannam@85: [# Compute $1's index in $config_headers. cannam@85: _am_stamp_count=1 cannam@85: for _am_header in $config_headers :; do cannam@85: case $_am_header in cannam@85: $1 | $1:* ) cannam@85: break ;; cannam@85: * ) cannam@85: _am_stamp_count=`expr $_am_stamp_count + 1` ;; cannam@85: esac cannam@85: done cannam@85: echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) cannam@85: cannam@85: # AM_PROG_INSTALL_SH cannam@85: # ------------------ cannam@85: # Define $install_sh. cannam@85: cannam@85: # Copyright (C) 2001, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: AC_DEFUN([AM_PROG_INSTALL_SH], cannam@85: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl cannam@85: install_sh=${install_sh-"$am_aux_dir/install-sh"} cannam@85: AC_SUBST(install_sh)]) cannam@85: cannam@85: # -*- Autoconf -*- cannam@85: # Copyright (C) 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # serial 1 cannam@85: cannam@85: # Check whether the underlying file-system supports filenames cannam@85: # with a leading dot. For instance MS-DOS doesn't. cannam@85: AC_DEFUN([AM_SET_LEADING_DOT], cannam@85: [rm -rf .tst 2>/dev/null cannam@85: mkdir .tst 2>/dev/null cannam@85: if test -d .tst; then cannam@85: am__leading_dot=. cannam@85: else cannam@85: am__leading_dot=_ cannam@85: fi cannam@85: rmdir .tst 2>/dev/null cannam@85: AC_SUBST([am__leading_dot])]) cannam@85: cannam@85: # Check to see how 'make' treats includes. -*- Autoconf -*- cannam@85: cannam@85: # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # serial 2 cannam@85: cannam@85: # AM_MAKE_INCLUDE() cannam@85: # ----------------- cannam@85: # Check to see how make treats includes. cannam@85: AC_DEFUN([AM_MAKE_INCLUDE], cannam@85: [am_make=${MAKE-make} cannam@85: cat > confinc << 'END' cannam@85: am__doit: cannam@85: @echo done cannam@85: .PHONY: am__doit cannam@85: END cannam@85: # If we don't find an include directive, just comment out the code. cannam@85: AC_MSG_CHECKING([for style of include used by $am_make]) cannam@85: am__include="#" cannam@85: am__quote= cannam@85: _am_result=none cannam@85: # First try GNU make style include. cannam@85: echo "include confinc" > confmf cannam@85: # We grep out `Entering directory' and `Leaving directory' cannam@85: # messages which can occur if `w' ends up in MAKEFLAGS. cannam@85: # In particular we don't look at `^make:' because GNU make might cannam@85: # be invoked under some other name (usually "gmake"), in which cannam@85: # case it prints its new name instead of `make'. cannam@85: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then cannam@85: am__include=include cannam@85: am__quote= cannam@85: _am_result=GNU cannam@85: fi cannam@85: # Now try BSD make style include. cannam@85: if test "$am__include" = "#"; then cannam@85: echo '.include "confinc"' > confmf cannam@85: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then cannam@85: am__include=.include cannam@85: am__quote="\"" cannam@85: _am_result=BSD cannam@85: fi cannam@85: fi cannam@85: AC_SUBST([am__include]) cannam@85: AC_SUBST([am__quote]) cannam@85: AC_MSG_RESULT([$_am_result]) cannam@85: rm -f confinc confmf cannam@85: ]) cannam@85: cannam@85: # -*- Autoconf -*- cannam@85: cannam@85: cannam@85: # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # serial 3 cannam@85: cannam@85: # AM_MISSING_PROG(NAME, PROGRAM) cannam@85: # ------------------------------ cannam@85: AC_DEFUN([AM_MISSING_PROG], cannam@85: [AC_REQUIRE([AM_MISSING_HAS_RUN]) cannam@85: $1=${$1-"${am_missing_run}$2"} cannam@85: AC_SUBST($1)]) cannam@85: cannam@85: cannam@85: # AM_MISSING_HAS_RUN cannam@85: # ------------------ cannam@85: # Define MISSING if not defined so far and test if it supports --run. cannam@85: # If it does, set am_missing_run to use it, otherwise, to nothing. cannam@85: AC_DEFUN([AM_MISSING_HAS_RUN], cannam@85: [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl cannam@85: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" cannam@85: # Use eval to expand $SHELL cannam@85: if eval "$MISSING --run true"; then cannam@85: am_missing_run="$MISSING --run " cannam@85: else cannam@85: am_missing_run= cannam@85: AC_MSG_WARN([`missing' script is too old or missing]) cannam@85: fi cannam@85: ]) cannam@85: cannam@85: # AM_PROG_MKDIR_P cannam@85: # --------------- cannam@85: # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. cannam@85: cannam@85: # Copyright (C) 2003, 2004 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories cannam@85: # created by `make install' are always world readable, even if the cannam@85: # installer happens to have an overly restrictive umask (e.g. 077). cannam@85: # This was a mistake. There are at least two reasons why we must not cannam@85: # use `-m 0755': cannam@85: # - it causes special bits like SGID to be ignored, cannam@85: # - it may be too restrictive (some setups expect 775 directories). cannam@85: # cannam@85: # Do not use -m 0755 and let people choose whatever they expect by cannam@85: # setting umask. cannam@85: AC_DEFUN([AM_PROG_MKDIR_P], cannam@85: [if mkdir -p -- . 2>/dev/null; then cannam@85: # Keeping the `.' argument allows $(mkdir_p) to be used without cannam@85: # argument. Indeed, we sometimes output rules like cannam@85: # $(mkdir_p) $(somedir) cannam@85: # where $(somedir) is conditionally defined. cannam@85: # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more cannam@85: # expensive solution, as it forces Make to start a sub-shell.) cannam@85: mkdir_p='mkdir -p -- .' cannam@85: else cannam@85: # On NextStep and OpenStep, the `mkdir' command does not cannam@85: # recognize any option. It will interpret all options as cannam@85: # directories to create, and then abort because `.' already cannam@85: # exists. cannam@85: for d in ./-p ./--; cannam@85: do cannam@85: test -d $d && rmdir $d cannam@85: done cannam@85: # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. cannam@85: if test -f "$ac_aux_dir/mkinstalldirs"; then cannam@85: mkdir_p='$(mkinstalldirs)' cannam@85: else cannam@85: mkdir_p='$(install_sh) -d' cannam@85: fi cannam@85: fi cannam@85: AC_SUBST([mkdir_p])]) cannam@85: cannam@85: # Helper functions for option handling. -*- Autoconf -*- cannam@85: cannam@85: # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # serial 2 cannam@85: cannam@85: # _AM_MANGLE_OPTION(NAME) cannam@85: # ----------------------- cannam@85: AC_DEFUN([_AM_MANGLE_OPTION], cannam@85: [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) cannam@85: cannam@85: # _AM_SET_OPTION(NAME) cannam@85: # ------------------------------ cannam@85: # Set option NAME. Presently that only means defining a flag for this option. cannam@85: AC_DEFUN([_AM_SET_OPTION], cannam@85: [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) cannam@85: cannam@85: # _AM_SET_OPTIONS(OPTIONS) cannam@85: # ---------------------------------- cannam@85: # OPTIONS is a space-separated list of Automake options. cannam@85: AC_DEFUN([_AM_SET_OPTIONS], cannam@85: [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) cannam@85: cannam@85: # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) cannam@85: # ------------------------------------------- cannam@85: # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. cannam@85: AC_DEFUN([_AM_IF_OPTION], cannam@85: [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) cannam@85: cannam@85: # cannam@85: # Check to make sure that the build environment is sane. cannam@85: # cannam@85: cannam@85: # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # serial 3 cannam@85: cannam@85: # AM_SANITY_CHECK cannam@85: # --------------- cannam@85: AC_DEFUN([AM_SANITY_CHECK], cannam@85: [AC_MSG_CHECKING([whether build environment is sane]) cannam@85: # Just in case cannam@85: sleep 1 cannam@85: echo timestamp > conftest.file cannam@85: # Do `set' in a subshell so we don't clobber the current shell's cannam@85: # arguments. Must try -L first in case configure is actually a cannam@85: # symlink; some systems play weird games with the mod time of symlinks cannam@85: # (eg FreeBSD returns the mod time of the symlink's containing cannam@85: # directory). cannam@85: if ( cannam@85: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` cannam@85: if test "$[*]" = "X"; then cannam@85: # -L didn't work. cannam@85: set X `ls -t $srcdir/configure conftest.file` cannam@85: fi cannam@85: rm -f conftest.file cannam@85: if test "$[*]" != "X $srcdir/configure conftest.file" \ cannam@85: && test "$[*]" != "X conftest.file $srcdir/configure"; then cannam@85: cannam@85: # If neither matched, then we have a broken ls. This can happen cannam@85: # if, for instance, CONFIG_SHELL is bash and it inherits a cannam@85: # broken ls alias from the environment. This has actually cannam@85: # happened. Such a system could not be considered "sane". cannam@85: AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken cannam@85: alias in your environment]) cannam@85: fi cannam@85: cannam@85: test "$[2]" = conftest.file cannam@85: ) cannam@85: then cannam@85: # Ok. cannam@85: : cannam@85: else cannam@85: AC_MSG_ERROR([newly created file is older than distributed files! cannam@85: Check your system clock]) cannam@85: fi cannam@85: AC_MSG_RESULT(yes)]) cannam@85: cannam@85: # AM_PROG_INSTALL_STRIP cannam@85: cannam@85: # Copyright (C) 2001, 2003 Free Software Foundation, Inc. cannam@85: cannam@85: # This program is free software; you can redistribute it and/or modify cannam@85: # it under the terms of the GNU General Public License as published by cannam@85: # the Free Software Foundation; either version 2, or (at your option) cannam@85: # any later version. cannam@85: cannam@85: # This program is distributed in the hope that it will be useful, cannam@85: # but WITHOUT ANY WARRANTY; without even the implied warranty of cannam@85: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the cannam@85: # GNU General Public License for more details. cannam@85: cannam@85: # You should have received a copy of the GNU General Public License cannam@85: # along with this program; if not, write to the Free Software cannam@85: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA cannam@85: # 02111-1307, USA. cannam@85: cannam@85: # One issue with vendor `install' (even GNU) is that you can't cannam@85: # specify the program used to strip binaries. This is especially cannam@85: # annoying in cross-compiling environments, where the build's strip cannam@85: # is unlikely to handle the host's binaries. cannam@85: # Fortunately install-sh will honor a STRIPPROG variable, so we cannam@85: # always use install-sh in `make install-strip', and initialize cannam@85: # STRIPPROG with the value of the STRIP variable (set by the user). cannam@85: AC_DEFUN([AM_PROG_INSTALL_STRIP], cannam@85: [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl cannam@85: # Installed binaries are usually stripped using `strip' when the user cannam@85: # run `make install-strip'. However `strip' might not be the right cannam@85: # tool to use in cross-compilation environments, therefore Automake cannam@85: # will honor the `STRIP' environment variable to overrule this program. cannam@85: dnl Don't test for $cross_compiling = yes, because it might be `maybe'. cannam@85: if test "$cross_compiling" != no; then cannam@85: AC_CHECK_TOOL([STRIP], [strip], :) cannam@85: fi cannam@85: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" cannam@85: AC_SUBST([INSTALL_STRIP_PROGRAM])]) cannam@85: