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