Changeset 5463 in orxonox.OLD for trunk/aclocal.m4
- Timestamp:
- Nov 1, 2005, 11:09:15 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r5450 r5463 11 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12 12 # PARTICULAR PURPOSE. 13 14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-15 16 # serial 47 AC_PROG_LIBTOOL17 18 19 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)20 # -----------------------------------------------------------21 # If this macro is not defined by Autoconf, define it here.22 m4_ifdef([AC_PROVIDE_IFELSE],23 [],24 [m4_define([AC_PROVIDE_IFELSE],25 [m4_ifdef([AC_PROVIDE_$1],26 [$2], [$3])])])27 28 29 # AC_PROG_LIBTOOL30 # ---------------31 AC_DEFUN([AC_PROG_LIBTOOL],32 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl33 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX34 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.35 AC_PROVIDE_IFELSE([AC_PROG_CXX],36 [AC_LIBTOOL_CXX],37 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX38 ])])39 dnl And a similar setup for Fortran 77 support40 AC_PROVIDE_IFELSE([AC_PROG_F77],41 [AC_LIBTOOL_F77],42 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F7743 ])])44 45 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.46 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run47 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.48 AC_PROVIDE_IFELSE([AC_PROG_GCJ],49 [AC_LIBTOOL_GCJ],50 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],51 [AC_LIBTOOL_GCJ],52 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],53 [AC_LIBTOOL_GCJ],54 [ifdef([AC_PROG_GCJ],55 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])56 ifdef([A][M_PROG_GCJ],57 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])58 ifdef([LT_AC_PROG_GCJ],59 [define([LT_AC_PROG_GCJ],60 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])61 ])])# AC_PROG_LIBTOOL62 63 64 # _AC_PROG_LIBTOOL65 # ----------------66 AC_DEFUN([_AC_PROG_LIBTOOL],67 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl68 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl69 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl70 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl71 72 # This can be used to rebuild libtool when needed73 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"74 75 # Always use our own libtool.76 LIBTOOL='$(SHELL) $(top_builddir)/libtool'77 AC_SUBST(LIBTOOL)dnl78 79 # Prevent multiple expansion80 define([AC_PROG_LIBTOOL], [])81 ])# _AC_PROG_LIBTOOL82 83 84 # AC_LIBTOOL_SETUP85 # ----------------86 AC_DEFUN([AC_LIBTOOL_SETUP],87 [AC_PREREQ(2.50)dnl88 AC_REQUIRE([AC_ENABLE_SHARED])dnl89 AC_REQUIRE([AC_ENABLE_STATIC])dnl90 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl91 AC_REQUIRE([AC_CANONICAL_HOST])dnl92 AC_REQUIRE([AC_CANONICAL_BUILD])dnl93 AC_REQUIRE([AC_PROG_CC])dnl94 AC_REQUIRE([AC_PROG_LD])dnl95 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl96 AC_REQUIRE([AC_PROG_NM])dnl97 98 AC_REQUIRE([AC_PROG_LN_S])dnl99 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!101 AC_REQUIRE([AC_OBJEXT])dnl102 AC_REQUIRE([AC_EXEEXT])dnl103 dnl104 105 AC_LIBTOOL_SYS_MAX_CMD_LEN106 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE107 AC_LIBTOOL_OBJDIR108 109 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl110 _LT_AC_PROG_ECHO_BACKSLASH111 112 case $host_os in113 aix3*)114 # AIX sometimes has problems with the GCC collect2 program. For some115 # reason, if we set the COLLECT_NAMES environment variable, the problems116 # vanish in a puff of smoke.117 if test "X${COLLECT_NAMES+set}" != Xset; then118 COLLECT_NAMES=119 export COLLECT_NAMES120 fi121 ;;122 esac123 124 # Sed substitution that helps us do robust quoting. It backslashifies125 # metacharacters that are still active within double-quoted strings.126 Xsed='sed -e 1s/^X//'127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']128 129 # Same as above, but do not quote variable references.130 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']131 132 # Sed substitution to delay expansion of an escaped shell variable in a133 # double_quote_subst'ed string.134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'135 136 # Sed substitution to avoid accidental globbing in evaled expressions137 no_glob_subst='s/\*/\\\*/g'138 139 # Constants:140 rm="rm -f"141 142 # Global variables:143 default_ofile=libtool144 can_build_shared=yes145 146 # All known linkers require a `.a' archive for static linking (except MSVC,147 # which needs '.lib').148 libext=a149 ltmain="$ac_aux_dir/ltmain.sh"150 ofile="$default_ofile"151 with_gnu_ld="$lt_cv_prog_gnu_ld"152 153 AC_CHECK_TOOL(AR, ar, false)154 AC_CHECK_TOOL(RANLIB, ranlib, :)155 AC_CHECK_TOOL(STRIP, strip, :)156 157 old_CC="$CC"158 old_CFLAGS="$CFLAGS"159 160 # Set sane defaults for various variables161 test -z "$AR" && AR=ar162 test -z "$AR_FLAGS" && AR_FLAGS=cru163 test -z "$AS" && AS=as164 test -z "$CC" && CC=cc165 test -z "$LTCC" && LTCC=$CC166 test -z "$DLLTOOL" && DLLTOOL=dlltool167 test -z "$LD" && LD=ld168 test -z "$LN_S" && LN_S="ln -s"169 test -z "$MAGIC_CMD" && MAGIC_CMD=file170 test -z "$NM" && NM=nm171 test -z "$SED" && SED=sed172 test -z "$OBJDUMP" && OBJDUMP=objdump173 test -z "$RANLIB" && RANLIB=:174 test -z "$STRIP" && STRIP=:175 test -z "$ac_objext" && ac_objext=o176 177 # Determine commands to create old-style static archives.178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'179 old_postinstall_cmds='chmod 644 $oldlib'180 old_postuninstall_cmds=181 182 if test -n "$RANLIB"; then183 case $host_os in184 openbsd*)185 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"186 ;;187 *)188 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"189 ;;190 esac191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"192 fi193 194 _LT_CC_BASENAME([$compiler])195 196 # Only perform the check for file, if the check method requires it197 case $deplibs_check_method in198 file_magic*)199 if test "$file_magic_cmd" = '$MAGIC_CMD'; then200 AC_PATH_MAGIC201 fi202 ;;203 esac204 205 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)206 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],207 enable_win32_dll=yes, enable_win32_dll=no)208 209 AC_ARG_ENABLE([libtool-lock],210 [AC_HELP_STRING([--disable-libtool-lock],211 [avoid locking (might break parallel builds)])])212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes213 214 AC_ARG_WITH([pic],215 [AC_HELP_STRING([--with-pic],216 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],217 [pic_mode="$withval"],218 [pic_mode=default])219 test -z "$pic_mode" && pic_mode=default220 221 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.222 #223 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.224 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually225 # calls AC_LIBTOOL_CONFIG and creates libtool.226 #227 _LT_VERSION_CHECK228 229 # Use C for the default configuration in the libtool script230 tagname=231 AC_LIBTOOL_LANG_C_CONFIG232 _LT_AC_TAGCONFIG233 ])# AC_LIBTOOL_SETUP234 235 236 # _LT_VERSION_CHECK237 # -----------------238 AC_DEFUN([_LT_VERSION_CHECK],239 [AC_MSG_CHECKING([for correct ltmain.sh version])240 if test -z "$ltmain"; then241 AC_MSG_RESULT(no)242 echo243 echo "*** @<:@Gentoo@:>@ sanity check failed! ***"244 echo "*** \$ltmain is not defined, please check the patch for consistency! ***"245 echo246 exit 1247 fi248 gentoo_lt_version="1.5.20"249 gentoo_ltmain_version=`grep '^@<:@@<:@:space:@:>@@:>@*VERSION=' $ltmain | sed -e 's|^@<:@@<:@:space:@:>@@:>@*VERSION=||'`250 if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then251 AC_MSG_RESULT(no)252 echo253 echo "*** @<:@Gentoo@:>@ sanity check failed! ***"254 echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"255 echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"256 echo257 echo "Please run:"258 echo259 echo " libtoolize --copy --force"260 echo261 echo "if appropriate, please contact the maintainer of this"262 echo "package (or your distribution) for help."263 echo264 exit 1265 else266 AC_MSG_RESULT(yes)267 fi268 ])# _LT_VERSION_CHECK269 270 271 # _LT_AC_SYS_COMPILER272 # -------------------273 AC_DEFUN([_LT_AC_SYS_COMPILER],274 [AC_REQUIRE([AC_PROG_CC])dnl275 276 # If no C compiler was specified, use CC.277 LTCC=${LTCC-"$CC"}278 279 # Allow CC to be a program name with arguments.280 compiler=$CC281 ])# _LT_AC_SYS_COMPILER282 283 284 # _LT_CC_BASENAME(CC)285 # -------------------286 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.287 AC_DEFUN([_LT_CC_BASENAME],288 [for cc_temp in $1""; do289 case $cc_temp in290 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;291 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;292 \-*) ;;293 *) break;;294 esac295 done296 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`297 ])298 299 300 # _LT_COMPILER_BOILERPLATE301 # ------------------------302 # Check for compiler boilerplate output or warnings with303 # the simple compiler test code.304 AC_DEFUN([_LT_COMPILER_BOILERPLATE],305 [ac_outfile=conftest.$ac_objext306 printf "$lt_simple_compile_test_code" >conftest.$ac_ext307 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err308 _lt_compiler_boilerplate=`cat conftest.err`309 $rm conftest*310 ])# _LT_COMPILER_BOILERPLATE311 312 313 # _LT_LINKER_BOILERPLATE314 # ----------------------315 # Check for linker boilerplate output or warnings with316 # the simple link test code.317 AC_DEFUN([_LT_LINKER_BOILERPLATE],318 [ac_outfile=conftest.$ac_objext319 printf "$lt_simple_link_test_code" >conftest.$ac_ext320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err321 _lt_linker_boilerplate=`cat conftest.err`322 $rm conftest*323 ])# _LT_LINKER_BOILERPLATE324 325 326 # _LT_AC_SYS_LIBPATH_AIX327 # ----------------------328 # Links a minimal program and checks the executable329 # for the system default hardcoded library path. In most cases,330 # this is /usr/lib:/lib, but when the MPI compilers are used331 # the location of the communication and MPI libs are included too.332 # If we don't find anything, use the default library path according333 # to the aix ld manual.334 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],335 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }337 }'`338 # Check for a 64-bit object if we didn't find anything.339 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; }340 }'`; fi],[])341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi342 ])# _LT_AC_SYS_LIBPATH_AIX343 344 345 # _LT_AC_SHELL_INIT(ARG)346 # ----------------------347 AC_DEFUN([_LT_AC_SHELL_INIT],348 [ifdef([AC_DIVERSION_NOTICE],349 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],350 [AC_DIVERT_PUSH(NOTICE)])351 $1352 AC_DIVERT_POP353 ])# _LT_AC_SHELL_INIT354 355 356 # _LT_AC_PROG_ECHO_BACKSLASH357 # --------------------------358 # Add some code to the start of the generated configure script which359 # will find an echo command which doesn't interpret backslashes.360 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],361 [_LT_AC_SHELL_INIT([362 # Check that we are running under the correct shell.363 SHELL=${CONFIG_SHELL-/bin/sh}364 365 case X$ECHO in366 X*--fallback-echo)367 # Remove one level of quotation (which was required for Make).368 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`369 ;;370 esac371 372 echo=${ECHO-echo}373 if test "X[$]1" = X--no-reexec; then374 # Discard the --no-reexec flag, and continue.375 shift376 elif test "X[$]1" = X--fallback-echo; then377 # Avoid inline document here, it may be left over378 :379 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then380 # Yippee, $echo works!381 :382 else383 # Restart under the correct shell.384 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}385 fi386 387 if test "X[$]1" = X--fallback-echo; then388 # used as fallback echo389 shift390 cat <<EOF391 [$]*392 EOF393 exit 0394 fi395 396 # The HP-UX ksh and POSIX shell print the target directory to stdout397 # if CDPATH is set.398 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH399 400 if test -z "$ECHO"; then401 if test "X${echo_test_string+set}" != Xset; then402 # find a string as large as possible, as long as the shell can cope with it403 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do404 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...405 if (echo_test_string=`eval $cmd`) 2>/dev/null &&406 echo_test_string=`eval $cmd` &&407 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null408 then409 break410 fi411 done412 fi413 414 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&415 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&416 test "X$echo_testing_string" = "X$echo_test_string"; then417 :418 else419 # The Solaris, AIX, and Digital Unix default echo programs unquote420 # backslashes. This makes it impossible to quote backslashes using421 # echo "$something" | sed 's/\\/\\\\/g'422 #423 # So, first we look for a working echo in the user's PATH.424 425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR426 for dir in $PATH /usr/ucb; do427 IFS="$lt_save_ifs"428 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&429 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&430 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&431 test "X$echo_testing_string" = "X$echo_test_string"; then432 echo="$dir/echo"433 break434 fi435 done436 IFS="$lt_save_ifs"437 438 if test "X$echo" = Xecho; then439 # We didn't find a better echo, so look for alternatives.440 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&441 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&442 test "X$echo_testing_string" = "X$echo_test_string"; then443 # This shell has a builtin print -r that does the trick.444 echo='print -r'445 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&446 test "X$CONFIG_SHELL" != X/bin/ksh; then447 # If we have ksh, try running configure again with it.448 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}449 export ORIGINAL_CONFIG_SHELL450 CONFIG_SHELL=/bin/ksh451 export CONFIG_SHELL452 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}453 else454 # Try using printf.455 echo='printf %s\n'456 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&457 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&458 test "X$echo_testing_string" = "X$echo_test_string"; then459 # Cool, printf works460 :461 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&462 test "X$echo_testing_string" = 'X\t' &&463 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&464 test "X$echo_testing_string" = "X$echo_test_string"; then465 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL466 export CONFIG_SHELL467 SHELL="$CONFIG_SHELL"468 export SHELL469 echo="$CONFIG_SHELL [$]0 --fallback-echo"470 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&471 test "X$echo_testing_string" = 'X\t' &&472 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&473 test "X$echo_testing_string" = "X$echo_test_string"; then474 echo="$CONFIG_SHELL [$]0 --fallback-echo"475 else476 # maybe with a smaller string...477 prev=:478 479 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do480 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null481 then482 break483 fi484 prev="$cmd"485 done486 487 if test "$prev" != 'sed 50q "[$]0"'; then488 echo_test_string=`eval $prev`489 export echo_test_string490 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}491 else492 # Oops. We lost completely, so just stick with echo.493 echo=echo494 fi495 fi496 fi497 fi498 fi499 fi500 501 # Copy echo and quote the copy suitably for passing to libtool from502 # the Makefile, instead of quoting the original, which is used later.503 ECHO=$echo504 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then505 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"506 fi507 508 AC_SUBST(ECHO)509 ])])# _LT_AC_PROG_ECHO_BACKSLASH510 511 512 # _LT_AC_LOCK513 # -----------514 AC_DEFUN([_LT_AC_LOCK],515 [AC_ARG_ENABLE([libtool-lock],516 [AC_HELP_STRING([--disable-libtool-lock],517 [avoid locking (might break parallel builds)])])518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes519 520 # Some flags need to be propagated to the compiler or linker for good521 # libtool support.522 case $host in523 ia64-*-hpux*)524 # Find out which ABI we are using.525 echo 'int i;' > conftest.$ac_ext526 if AC_TRY_EVAL(ac_compile); then527 case `/usr/bin/file conftest.$ac_objext` in528 *ELF-32*)529 HPUX_IA64_MODE="32"530 ;;531 *ELF-64*)532 HPUX_IA64_MODE="64"533 ;;534 esac535 fi536 rm -rf conftest*537 ;;538 *-*-irix6*)539 # Find out which ABI we are using.540 echo '[#]line __oline__ "configure"' > conftest.$ac_ext541 if AC_TRY_EVAL(ac_compile); then542 if test "$lt_cv_prog_gnu_ld" = yes; then543 case `/usr/bin/file conftest.$ac_objext` in544 *32-bit*)545 LD="${LD-ld} -melf32bsmip"546 ;;547 *N32*)548 LD="${LD-ld} -melf32bmipn32"549 ;;550 *64-bit*)551 LD="${LD-ld} -melf64bmip"552 ;;553 esac554 else555 case `/usr/bin/file conftest.$ac_objext` in556 *32-bit*)557 LD="${LD-ld} -32"558 ;;559 *N32*)560 LD="${LD-ld} -n32"561 ;;562 *64-bit*)563 LD="${LD-ld} -64"564 ;;565 esac566 fi567 fi568 rm -rf conftest*569 ;;570 571 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)572 # Find out which ABI we are using.573 echo 'int i;' > conftest.$ac_ext574 if AC_TRY_EVAL(ac_compile); then575 case `/usr/bin/file conftest.o` in576 *32-bit*)577 case $host in578 x86_64-*linux*)579 LD="${LD-ld} -m elf_i386"580 ;;581 ppc64-*linux*|powerpc64-*linux*)582 LD="${LD-ld} -m elf32ppclinux"583 ;;584 s390x-*linux*)585 LD="${LD-ld} -m elf_s390"586 ;;587 sparc64-*linux*)588 LD="${LD-ld} -m elf32_sparc"589 ;;590 esac591 ;;592 *64-bit*)593 case $host in594 x86_64-*linux*)595 LD="${LD-ld} -m elf_x86_64"596 ;;597 ppc*-*linux*|powerpc*-*linux*)598 LD="${LD-ld} -m elf64ppc"599 ;;600 s390*-*linux*)601 LD="${LD-ld} -m elf64_s390"602 ;;603 sparc*-*linux*)604 LD="${LD-ld} -m elf64_sparc"605 ;;606 esac607 ;;608 esac609 fi610 rm -rf conftest*611 ;;612 613 *-*-linux*)614 # Test if the compiler is 64bit615 echo 'int i;' > conftest.$ac_ext616 lt_cv_cc_64bit_output=no617 if AC_TRY_EVAL(ac_compile); then618 case `/usr/bin/file conftest.$ac_objext` in619 *"ELF 64"*)620 lt_cv_cc_64bit_output=yes621 ;;622 esac623 fi624 rm -rf conftest*625 ;;626 627 *-*-sco3.2v5*)628 # On SCO OpenServer 5, we need -belf to get full-featured binaries.629 SAVE_CFLAGS="$CFLAGS"630 CFLAGS="$CFLAGS -belf"631 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,632 [AC_LANG_PUSH(C)633 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])634 AC_LANG_POP])635 if test x"$lt_cv_cc_needs_belf" != x"yes"; then636 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf637 CFLAGS="$SAVE_CFLAGS"638 fi639 ;;640 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],641 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)642 AC_CHECK_TOOL(DLLTOOL, dlltool, false)643 AC_CHECK_TOOL(AS, as, false)644 AC_CHECK_TOOL(OBJDUMP, objdump, false)645 ;;646 ])647 esac648 649 need_locks="$enable_libtool_lock"650 651 ])# _LT_AC_LOCK652 653 654 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,655 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])656 # ----------------------------------------------------------------657 # Check whether the given compiler option works658 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],659 [AC_REQUIRE([LT_AC_PROG_SED])660 AC_CACHE_CHECK([$1], [$2],661 [$2=no662 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])663 printf "$lt_simple_compile_test_code" > conftest.$ac_ext664 lt_compiler_flag="$3"665 # Insert the option either (1) after the last *FLAGS variable, or666 # (2) before a word containing "conftest.", or (3) at the end.667 # Note that $ac_compile itself does not contain backslashes and begins668 # with a dollar sign (not a hyphen), so the echo should work correctly.669 # The option is referenced via a variable to avoid confusing sed.670 lt_compile=`echo "$ac_compile" | $SED \671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \672 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \673 -e 's:$: $lt_compiler_flag:'`674 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)675 (eval "$lt_compile" 2>conftest.err)676 ac_status=$?677 cat conftest.err >&AS_MESSAGE_LOG_FD678 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD679 if (exit $ac_status) && test -s "$ac_outfile"; then680 # The compiler can only warn and ignore the option if not recognized681 # So say no if there are warnings other than the usual output.682 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp683 $SED '/^$/d' conftest.err >conftest.er2684 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then685 $2=yes686 fi687 fi688 $rm conftest*689 ])690 691 if test x"[$]$2" = xyes; then692 ifelse([$5], , :, [$5])693 else694 ifelse([$6], , :, [$6])695 fi696 ])# AC_LIBTOOL_COMPILER_OPTION697 698 699 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,700 # [ACTION-SUCCESS], [ACTION-FAILURE])701 # ------------------------------------------------------------702 # Check whether the given compiler option works703 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],704 [AC_CACHE_CHECK([$1], [$2],705 [$2=no706 save_LDFLAGS="$LDFLAGS"707 LDFLAGS="$LDFLAGS $3"708 printf "$lt_simple_link_test_code" > conftest.$ac_ext709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then710 # The linker can only warn and ignore the option if not recognized711 # So say no if there are warnings712 if test -s conftest.err; then713 # Append any errors to the config.log.714 cat conftest.err 1>&AS_MESSAGE_LOG_FD715 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp716 $SED '/^$/d' conftest.err >conftest.er2717 if diff conftest.exp conftest.er2 >/dev/null; then718 $2=yes719 fi720 else721 $2=yes722 fi723 fi724 $rm conftest*725 LDFLAGS="$save_LDFLAGS"726 ])727 728 if test x"[$]$2" = xyes; then729 ifelse([$4], , :, [$4])730 else731 ifelse([$5], , :, [$5])732 fi733 ])# AC_LIBTOOL_LINKER_OPTION734 735 736 # AC_LIBTOOL_SYS_MAX_CMD_LEN737 # --------------------------738 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],739 [# find the maximum length of command line arguments740 AC_MSG_CHECKING([the maximum length of command line arguments])741 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl742 i=0743 teststring="ABCD"744 745 case $build_os in746 msdosdjgpp*)747 # On DJGPP, this test can blow up pretty badly due to problems in libc748 # (any single argument exceeding 2000 bytes causes a buffer overrun749 # during glob expansion). Even if it were fixed, the result of this750 # check would be larger than it should be.751 lt_cv_sys_max_cmd_len=12288; # 12K is about right752 ;;753 754 gnu*)755 # Under GNU Hurd, this test is not required because there is756 # no limit to the length of command line arguments.757 # Libtool will interpret -1 as no limit whatsoever758 lt_cv_sys_max_cmd_len=-1;759 ;;760 761 cygwin* | mingw*)762 # On Win9x/ME, this test blows up -- it succeeds, but takes763 # about 5 minutes as the teststring grows exponentially.764 # Worse, since 9x/ME are not pre-emptively multitasking,765 # you end up with a "frozen" computer, even though with patience766 # the test eventually succeeds (with a max line length of 256k).767 # Instead, let's just punt: use the minimum linelength reported by768 # all of the supported platforms: 8192 (on NT/2K/XP).769 lt_cv_sys_max_cmd_len=8192;770 ;;771 772 amigaos*)773 # On AmigaOS with pdksh, this test takes hours, literally.774 # So we just punt and use a minimum line length of 8192.775 lt_cv_sys_max_cmd_len=8192;776 ;;777 778 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)779 # This has been around since 386BSD, at least. Likely further.780 if test -x /sbin/sysctl; then781 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`782 elif test -x /usr/sbin/sysctl; then783 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`784 else785 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs786 fi787 # And add a safety zone788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`790 ;;791 osf*)792 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure793 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not794 # nice to cause kernel panics so lets avoid the loop below.795 # First set a reasonable default.796 lt_cv_sys_max_cmd_len=16384797 #798 if test -x /sbin/sysconfig; then799 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in800 *1*) lt_cv_sys_max_cmd_len=-1 ;;801 esac802 fi803 ;;804 *)805 # If test is not a shell built-in, we'll probably end up computing a806 # maximum length that is only half of the actual maximum length, but807 # we can't tell.808 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}809 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \810 = "XX$teststring") >/dev/null 2>&1 &&811 new_result=`expr "X$teststring" : ".*" 2>&1` &&812 lt_cv_sys_max_cmd_len=$new_result &&813 test $i != 17 # 1/2 MB should be enough814 do815 i=`expr $i + 1`816 teststring=$teststring$teststring817 done818 teststring=819 # Add a significant safety factor because C++ compilers can tack on massive820 # amounts of additional arguments before passing them to the linker.821 # It appears as though 1/2 is a usable value.822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`823 ;;824 esac825 ])826 if test -n $lt_cv_sys_max_cmd_len ; then827 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)828 else829 AC_MSG_RESULT(none)830 fi831 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN832 833 834 # _LT_AC_CHECK_DLFCN835 # --------------------836 AC_DEFUN([_LT_AC_CHECK_DLFCN],837 [AC_CHECK_HEADERS(dlfcn.h)dnl838 ])# _LT_AC_CHECK_DLFCN839 840 841 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,842 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)843 # ------------------------------------------------------------------844 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],845 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl846 if test "$cross_compiling" = yes; then :847 [$4]848 else849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2850 lt_status=$lt_dlunknown851 cat > conftest.$ac_ext <<EOF852 [#line __oline__ "configure"853 #include "confdefs.h"854 855 #if HAVE_DLFCN_H856 #include <dlfcn.h>857 #endif858 859 #include <stdio.h>860 861 #ifdef RTLD_GLOBAL862 # define LT_DLGLOBAL RTLD_GLOBAL863 #else864 # ifdef DL_GLOBAL865 # define LT_DLGLOBAL DL_GLOBAL866 # else867 # define LT_DLGLOBAL 0868 # endif869 #endif870 871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we872 find out it does not work in some platform. */873 #ifndef LT_DLLAZY_OR_NOW874 # ifdef RTLD_LAZY875 # define LT_DLLAZY_OR_NOW RTLD_LAZY876 # else877 # ifdef DL_LAZY878 # define LT_DLLAZY_OR_NOW DL_LAZY879 # else880 # ifdef RTLD_NOW881 # define LT_DLLAZY_OR_NOW RTLD_NOW882 # else883 # ifdef DL_NOW884 # define LT_DLLAZY_OR_NOW DL_NOW885 # else886 # define LT_DLLAZY_OR_NOW 0887 # endif888 # endif889 # endif890 # endif891 #endif892 893 #ifdef __cplusplus894 extern "C" void exit (int);895 #endif896 897 void fnord() { int i=42;}898 int main ()899 {900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);901 int status = $lt_dlunknown;902 903 if (self)904 {905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;907 /* dlclose (self); */908 }909 910 exit (status);911 }]912 EOF913 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then914 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null915 lt_status=$?916 case x$lt_status in917 x$lt_dlno_uscore) $1 ;;918 x$lt_dlneed_uscore) $2 ;;919 x$lt_unknown|x*) $3 ;;920 esac921 else :922 # compilation failed923 $3924 fi925 fi926 rm -fr conftest*927 ])# _LT_AC_TRY_DLOPEN_SELF928 929 930 # AC_LIBTOOL_DLOPEN_SELF931 # -------------------932 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],933 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl934 if test "x$enable_dlopen" != xyes; then935 enable_dlopen=unknown936 enable_dlopen_self=unknown937 enable_dlopen_self_static=unknown938 else939 lt_cv_dlopen=no940 lt_cv_dlopen_libs=941 942 case $host_os in943 beos*)944 lt_cv_dlopen="load_add_on"945 lt_cv_dlopen_libs=946 lt_cv_dlopen_self=yes947 ;;948 949 mingw* | pw32*)950 lt_cv_dlopen="LoadLibrary"951 lt_cv_dlopen_libs=952 ;;953 954 cygwin*)955 lt_cv_dlopen="dlopen"956 lt_cv_dlopen_libs=957 ;;958 959 darwin*)960 # if libdl is installed we need to link against it961 AC_CHECK_LIB([dl], [dlopen],962 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[963 lt_cv_dlopen="dyld"964 lt_cv_dlopen_libs=965 lt_cv_dlopen_self=yes966 ])967 ;;968 969 *)970 AC_CHECK_FUNC([shl_load],971 [lt_cv_dlopen="shl_load"],972 [AC_CHECK_LIB([dld], [shl_load],973 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],974 [AC_CHECK_FUNC([dlopen],975 [lt_cv_dlopen="dlopen"],976 [AC_CHECK_LIB([dl], [dlopen],977 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],978 [AC_CHECK_LIB([svld], [dlopen],979 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],980 [AC_CHECK_LIB([dld], [dld_link],981 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])982 ])983 ])984 ])985 ])986 ])987 ;;988 esac989 990 if test "x$lt_cv_dlopen" != xno; then991 enable_dlopen=yes992 else993 enable_dlopen=no994 fi995 996 case $lt_cv_dlopen in997 dlopen)998 save_CPPFLAGS="$CPPFLAGS"999 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"1000 1001 save_LDFLAGS="$LDFLAGS"1002 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"1003 1004 save_LIBS="$LIBS"1005 LIBS="$lt_cv_dlopen_libs $LIBS"1006 1007 AC_CACHE_CHECK([whether a program can dlopen itself],1008 lt_cv_dlopen_self, [dnl1009 _LT_AC_TRY_DLOPEN_SELF(1010 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,1011 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)1012 ])1013 1014 if test "x$lt_cv_dlopen_self" = xyes; then1015 LDFLAGS="$LDFLAGS $link_static_flag"1016 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],1017 lt_cv_dlopen_self_static, [dnl1018 _LT_AC_TRY_DLOPEN_SELF(1019 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,1020 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)1021 ])1022 fi1023 1024 CPPFLAGS="$save_CPPFLAGS"1025 LDFLAGS="$save_LDFLAGS"1026 LIBS="$save_LIBS"1027 ;;1028 esac1029 1030 case $lt_cv_dlopen_self in1031 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;1032 *) enable_dlopen_self=unknown ;;1033 esac1034 1035 case $lt_cv_dlopen_self_static in1036 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;1037 *) enable_dlopen_self_static=unknown ;;1038 esac1039 fi1040 ])# AC_LIBTOOL_DLOPEN_SELF1041 1042 1043 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])1044 # ---------------------------------1045 # Check to see if options -c and -o are simultaneously supported by compiler1046 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],1047 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl1048 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],1049 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],1050 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no1051 $rm -r conftest 2>/dev/null1052 mkdir conftest1053 cd conftest1054 mkdir out1055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext1056 1057 lt_compiler_flag="-o out/conftest2.$ac_objext"1058 # Insert the option either (1) after the last *FLAGS variable, or1059 # (2) before a word containing "conftest.", or (3) at the end.1060 # Note that $ac_compile itself does not contain backslashes and begins1061 # with a dollar sign (not a hyphen), so the echo should work correctly.1062 lt_compile=`echo "$ac_compile" | $SED \1063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \1064 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \1065 -e 's:$: $lt_compiler_flag:'`1066 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)1067 (eval "$lt_compile" 2>out/conftest.err)1068 ac_status=$?1069 cat out/conftest.err >&AS_MESSAGE_LOG_FD1070 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD1071 if (exit $ac_status) && test -s out/conftest2.$ac_objext1072 then1073 # The compiler can only warn and ignore the option if not recognized1074 # So say no if there are warnings1075 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp1076 $SED '/^$/d' out/conftest.err >out/conftest.er21077 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then1078 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes1079 fi1080 fi1081 chmod u+w . 2>&AS_MESSAGE_LOG_FD1082 $rm conftest*1083 # SGI C++ compiler will create directory out/ii_files/ for1084 # template instantiation1085 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files1086 $rm out/* && rmdir out1087 cd ..1088 rmdir conftest1089 $rm conftest*1090 ])1091 ])# AC_LIBTOOL_PROG_CC_C_O1092 1093 1094 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])1095 # -----------------------------------------1096 # Check to see if we can do hard links to lock some files if needed1097 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],1098 [AC_REQUIRE([_LT_AC_LOCK])dnl1099 1100 hard_links="nottested"1101 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then1102 # do not overwrite the value of need_locks provided by the user1103 AC_MSG_CHECKING([if we can lock with hard links])1104 hard_links=yes1105 $rm conftest*1106 ln conftest.a conftest.b 2>/dev/null && hard_links=no1107 touch conftest.a1108 ln conftest.a conftest.b 2>&5 || hard_links=no1109 ln conftest.a conftest.b 2>/dev/null && hard_links=no1110 AC_MSG_RESULT([$hard_links])1111 if test "$hard_links" = no; then1112 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])1113 need_locks=warn1114 fi1115 else1116 need_locks=no1117 fi1118 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS1119 1120 1121 # AC_LIBTOOL_OBJDIR1122 # -----------------1123 AC_DEFUN([AC_LIBTOOL_OBJDIR],1124 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],1125 [rm -f .libs 2>/dev/null1126 mkdir .libs 2>/dev/null1127 if test -d .libs; then1128 lt_cv_objdir=.libs1129 else1130 # MS-DOS does not allow filenames that begin with a dot.1131 lt_cv_objdir=_libs1132 fi1133 rmdir .libs 2>/dev/null])1134 objdir=$lt_cv_objdir1135 ])# AC_LIBTOOL_OBJDIR1136 1137 1138 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])1139 # ----------------------------------------------1140 # Check hardcoding attributes.1141 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],1142 [AC_MSG_CHECKING([how to hardcode library paths into programs])1143 _LT_AC_TAGVAR(hardcode_action, $1)=1144 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \1145 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \1146 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then1147 1148 # We can hardcode non-existant directories.1149 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&1150 # If the only mechanism to avoid hardcoding is shlibpath_var, we1151 # have to relink, otherwise we might link with an installed library1152 # when we should be linking with a yet-to-be-installed one1153 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&1154 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then1155 # Linking always hardcodes the temporary library directory.1156 _LT_AC_TAGVAR(hardcode_action, $1)=relink1157 else1158 # We can link without hardcoding, and we can hardcode nonexisting dirs.1159 _LT_AC_TAGVAR(hardcode_action, $1)=immediate1160 fi1161 else1162 # We cannot hardcode anything, or else we can only hardcode existing1163 # directories.1164 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported1165 fi1166 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])1167 1168 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then1169 # Fast installation is not supported1170 enable_fast_install=no1171 elif test "$shlibpath_overrides_runpath" = yes ||1172 test "$enable_shared" = no; then1173 # Fast installation is not necessary1174 enable_fast_install=needless1175 fi1176 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH1177 1178 1179 # AC_LIBTOOL_SYS_LIB_STRIP1180 # ------------------------1181 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],1182 [striplib=1183 old_striplib=1184 AC_MSG_CHECKING([whether stripping libraries is possible])1185 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then1186 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"1187 test -z "$striplib" && striplib="$STRIP --strip-unneeded"1188 AC_MSG_RESULT([yes])1189 else1190 # FIXME - insert some real tests, host_os isn't really good enough1191 case $host_os in1192 darwin*)1193 if test -n "$STRIP" ; then1194 striplib="$STRIP -x"1195 AC_MSG_RESULT([yes])1196 else1197 AC_MSG_RESULT([no])1198 fi1199 ;;1200 *)1201 AC_MSG_RESULT([no])1202 ;;1203 esac1204 fi1205 ])# AC_LIBTOOL_SYS_LIB_STRIP1206 1207 1208 # AC_LIBTOOL_SYS_DYNAMIC_LINKER1209 # -----------------------------1210 # PORTME Fill in your ld.so characteristics1211 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],1212 [AC_MSG_CHECKING([dynamic linker characteristics])1213 library_names_spec=1214 libname_spec='lib$name'1215 soname_spec=1216 shrext_cmds=".so"1217 postinstall_cmds=1218 postuninstall_cmds=1219 finish_cmds=1220 finish_eval=1221 shlibpath_var=1222 shlibpath_overrides_runpath=unknown1223 version_type=none1224 dynamic_linker="$host_os ld.so"1225 sys_lib_dlsearch_path_spec="/lib /usr/lib"1226 if test "$GCC" = yes; then1227 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`1228 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then1229 # if the path contains ";" then we assume it to be the separator1230 # otherwise default to the standard path separator (i.e. ":") - it is1231 # assumed that no part of a normal pathname contains ";" but that should1232 # okay in the real world where ";" in dirpaths is itself problematic.1233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`1234 else1235 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`1236 fi1237 else1238 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"1239 fi1240 need_lib_prefix=unknown1241 hardcode_into_libs=no1242 1243 # when you set need_version to no, make sure it does not cause -set_version1244 # flags to be left without arguments1245 need_version=unknown1246 1247 case $host_os in1248 aix3*)1249 version_type=linux1250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'1251 shlibpath_var=LIBPATH1252 1253 # AIX 3 has no versioning support, so we append a major version to the name.1254 soname_spec='${libname}${release}${shared_ext}$major'1255 ;;1256 1257 aix4* | aix5*)1258 version_type=linux1259 need_lib_prefix=no1260 need_version=no1261 hardcode_into_libs=yes1262 if test "$host_cpu" = ia64; then1263 # AIX 5 supports IA641264 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'1265 shlibpath_var=LD_LIBRARY_PATH1266 else1267 # With GCC up to 2.95.x, collect2 would create an import file1268 # for dependence libraries. The import file would start with1269 # the line `#! .'. This would cause the generated library to1270 # depend on `.', always an invalid library. This was fixed in1271 # development snapshots of GCC prior to 3.0.1272 case $host_os in1273 aix4 | aix4.[[01]] | aix4.[[01]].*)1274 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'1275 echo ' yes '1276 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then1277 :1278 else1279 can_build_shared=no1280 fi1281 ;;1282 esac1283 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct1284 # soname into executable. Probably we can add versioning support to1285 # collect2, so additional links can be useful in future.1286 if test "$aix_use_runtimelinking" = yes; then1287 # If using run time linking (on AIX 4.2 or later) use lib<name>.so1288 # instead of lib<name>.a to let people know that these are not1289 # typical AIX shared libraries.1290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1291 else1292 # We preserve .a as extension for shared libraries through AIX4.21293 # and later when we are not doing run time linking.1294 library_names_spec='${libname}${release}.a $libname.a'1295 soname_spec='${libname}${release}${shared_ext}$major'1296 fi1297 shlibpath_var=LIBPATH1298 fi1299 ;;1300 1301 amigaos*)1302 library_names_spec='$libname.ixlibrary $libname.a'1303 # Create ${libname}_ixlibrary.a entries in /sys/libs.1304 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'1305 ;;1306 1307 beos*)1308 library_names_spec='${libname}${shared_ext}'1309 dynamic_linker="$host_os ld.so"1310 shlibpath_var=LIBRARY_PATH1311 ;;1312 1313 bsdi[[45]]*)1314 version_type=linux1315 need_version=no1316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1317 soname_spec='${libname}${release}${shared_ext}$major'1318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'1319 shlibpath_var=LD_LIBRARY_PATH1320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"1321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"1322 # the default ld.so.conf also contains /usr/contrib/lib and1323 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow1324 # libtool to hard-code these into programs1325 ;;1326 1327 cygwin* | mingw* | pw32*)1328 version_type=windows1329 shrext_cmds=".dll"1330 need_version=no1331 need_lib_prefix=no1332 1333 case $GCC,$host_os in1334 yes,cygwin* | yes,mingw* | yes,pw32*)1335 library_names_spec='$libname.dll.a'1336 # DLL is installed to $(libdir)/../bin by postinstall_cmds1337 postinstall_cmds='base_file=`basename \${file}`~1338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~1339 dldir=$destdir/`dirname \$dlpath`~1340 test -d \$dldir || mkdir -p \$dldir~1341 $install_prog $dir/$dlname \$dldir/$dlname~1342 chmod a+x \$dldir/$dlname'1343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~1344 dlpath=$dir/\$dldll~1345 $rm \$dlpath'1346 shlibpath_overrides_runpath=yes1347 1348 case $host_os in1349 cygwin*)1350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'1351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'1352 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"1353 ;;1354 mingw*)1355 # MinGW DLLs use traditional 'lib' prefix1356 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'1357 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`1358 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then1359 # It is most probably a Windows format PATH printed by1360 # mingw gcc, but we are running on Cygwin. Gcc prints its search1361 # path with ; separators, and with drive letters. We can handle the1362 # drive letters (cygwin fileutils understands them), so leave them,1363 # especially as we might pass files found there to a mingw objdump,1364 # which wouldn't understand a cygwinified path. Ahh.1365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`1366 else1367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`1368 fi1369 ;;1370 pw32*)1371 # pw32 DLLs use 'pw' prefix rather than 'lib'1372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'1373 ;;1374 esac1375 ;;1376 1377 linux*)1378 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then1379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'1380 supports_anon_versioning=no1381 case `$LD -v 2>/dev/null` in1382 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.111383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...1384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...1385 *\ 2.11.*) ;; # other 2.11 versions1386 *) supports_anon_versioning=yes ;;1387 esac1388 if test $supports_anon_versioning = yes; then1389 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~1390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~1391 $echo "local: *; };" >> $output_objdir/$libname.ver~1392 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'1393 else1394 $archive_expsym_cmds="$archive_cmds"1395 fi1396 else1397 ld_shlibs=no1398 fi1399 ;;1400 1401 *)1402 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'1403 ;;1404 esac1405 dynamic_linker='Win32 ld.exe'1406 # FIXME: first we should search . and the directory the executable is in1407 shlibpath_var=PATH1408 ;;1409 1410 darwin* | rhapsody*)1411 dynamic_linker="$host_os dyld"1412 version_type=darwin1413 need_lib_prefix=no1414 need_version=no1415 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'1416 soname_spec='${libname}${release}${major}$shared_ext'1417 shlibpath_overrides_runpath=yes1418 shlibpath_var=DYLD_LIBRARY_PATH1419 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'1420 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.1421 if test "$GCC" = yes; then1422 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"`1423 else1424 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'1425 fi1426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'1427 ;;1428 1429 dgux*)1430 version_type=linux1431 need_lib_prefix=no1432 need_version=no1433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'1434 soname_spec='${libname}${release}${shared_ext}$major'1435 shlibpath_var=LD_LIBRARY_PATH1436 ;;1437 1438 freebsd1*)1439 dynamic_linker=no1440 ;;1441 1442 kfreebsd*-gnu)1443 version_type=linux1444 need_lib_prefix=no1445 need_version=no1446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1447 soname_spec='${libname}${release}${shared_ext}$major'1448 shlibpath_var=LD_LIBRARY_PATH1449 shlibpath_overrides_runpath=no1450 hardcode_into_libs=yes1451 dynamic_linker='GNU ld.so'1452 ;;1453 1454 freebsd* | dragonfly*)1455 # DragonFly does not have aout. When/if they implement a new1456 # versioning mechanism, adjust this.1457 if test -x /usr/bin/objformat; then1458 objformat=`/usr/bin/objformat`1459 else1460 case $host_os in1461 freebsd[[123]]*) objformat=aout ;;1462 *) objformat=elf ;;1463 esac1464 fi1465 version_type=freebsd-$objformat1466 case $version_type in1467 freebsd-elf*)1468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'1469 need_version=no1470 need_lib_prefix=no1471 ;;1472 freebsd-*)1473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'1474 need_version=yes1475 ;;1476 esac1477 shlibpath_var=LD_LIBRARY_PATH1478 case $host_os in1479 freebsd2*)1480 shlibpath_overrides_runpath=yes1481 ;;1482 freebsd3.[[01]]* | freebsdelf3.[[01]]*)1483 shlibpath_overrides_runpath=yes1484 hardcode_into_libs=yes1485 ;;1486 *) # from 3.2 on1487 shlibpath_overrides_runpath=no1488 hardcode_into_libs=yes1489 ;;1490 esac1491 ;;1492 1493 gnu*)1494 version_type=linux1495 need_lib_prefix=no1496 need_version=no1497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'1498 soname_spec='${libname}${release}${shared_ext}$major'1499 shlibpath_var=LD_LIBRARY_PATH1500 hardcode_into_libs=yes1501 ;;1502 1503 hpux9* | hpux10* | hpux11*)1504 # Give a soname corresponding to the major version so that dld.sl refuses to1505 # link against other versions.1506 version_type=sunos1507 need_lib_prefix=no1508 need_version=no1509 case $host_cpu in1510 ia64*)1511 shrext_cmds='.so'1512 hardcode_into_libs=yes1513 dynamic_linker="$host_os dld.so"1514 shlibpath_var=LD_LIBRARY_PATH1515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.1516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1517 soname_spec='${libname}${release}${shared_ext}$major'1518 if test "X$HPUX_IA64_MODE" = X32; then1519 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"1520 else1521 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"1522 fi1523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec1524 ;;1525 hppa*64*)1526 shrext_cmds='.sl'1527 hardcode_into_libs=yes1528 dynamic_linker="$host_os dld.sl"1529 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH1530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.1531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1532 soname_spec='${libname}${release}${shared_ext}$major'1533 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"1534 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec1535 ;;1536 *)1537 shrext_cmds='.sl'1538 dynamic_linker="$host_os dld.sl"1539 shlibpath_var=SHLIB_PATH1540 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH1541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1542 soname_spec='${libname}${release}${shared_ext}$major'1543 ;;1544 esac1545 # HP-UX runs *really* slowly unless shared libraries are mode 555.1546 postinstall_cmds='chmod 555 $lib'1547 ;;1548 1549 irix5* | irix6* | nonstopux*)1550 case $host_os in1551 nonstopux*) version_type=nonstopux ;;1552 *)1553 if test "$lt_cv_prog_gnu_ld" = yes; then1554 version_type=linux1555 else1556 version_type=irix1557 fi ;;1558 esac1559 need_lib_prefix=no1560 need_version=no1561 soname_spec='${libname}${release}${shared_ext}$major'1562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'1563 case $host_os in1564 irix5* | nonstopux*)1565 libsuff= shlibsuff=1566 ;;1567 *)1568 case $LD in # libtool.m4 will add one of these switches to LD1569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")1570 libsuff= shlibsuff= libmagic=32-bit;;1571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")1572 libsuff=32 shlibsuff=N32 libmagic=N32;;1573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")1574 libsuff=64 shlibsuff=64 libmagic=64-bit;;1575 *) libsuff= shlibsuff= libmagic=never-match;;1576 esac1577 ;;1578 esac1579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH1580 shlibpath_overrides_runpath=no1581 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"1582 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"1583 hardcode_into_libs=yes1584 ;;1585 1586 # No shared lib support for Linux oldld, aout, or coff.1587 linux*oldld* | linux*aout* | linux*coff*)1588 dynamic_linker=no1589 ;;1590 1591 # This must be Linux ELF.1592 linux*)1593 version_type=linux1594 need_lib_prefix=no1595 need_version=no1596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1597 soname_spec='${libname}${release}${shared_ext}$major'1598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'1599 shlibpath_var=LD_LIBRARY_PATH1600 shlibpath_overrides_runpath=no1601 # This implies no fast_install, which is unacceptable.1602 # Some rework will be needed to allow for fast_install1603 # before this can be enabled.1604 hardcode_into_libs=yes1605 1606 # Append ld.so.conf contents to the search path1607 if test -f /etc/ld.so.conf; then1608 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' ' '`1609 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"1610 fi1611 1612 case $host_cpu:$lt_cv_cc_64bit_output in1613 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)1614 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"1615 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"1616 ;;1617 esac1618 1619 # We used to test for /lib/ld.so.1 and disable shared libraries on1620 # powerpc, because MkLinux only supported shared libraries with the1621 # GNU dynamic linker. Since this was broken with cross compilers,1622 # most powerpc-linux boxes support dynamic linking these days and1623 # people can always --disable-shared, the test was removed, and we1624 # assume the GNU/Linux dynamic linker is in use.1625 dynamic_linker='GNU/Linux ld.so'1626 1627 # Find out which ABI we are using (multilib Linux x86_64 hack).1628 libsuff=1629 case "$host_cpu" in1630 x86_64*)1631 echo '[#]line __oline__ "configure"' > conftest.$ac_ext1632 if AC_TRY_EVAL(ac_compile); then1633 case `/usr/bin/file conftest.$ac_objext` in1634 *64-bit*)1635 libsuff=641636 ;;1637 esac1638 fi1639 rm -rf conftest*1640 ;;1641 *)1642 ;;1643 esac1644 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"1645 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"1646 ;;1647 1648 knetbsd*-gnu)1649 version_type=linux1650 need_lib_prefix=no1651 need_version=no1652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1653 soname_spec='${libname}${release}${shared_ext}$major'1654 shlibpath_var=LD_LIBRARY_PATH1655 shlibpath_overrides_runpath=no1656 hardcode_into_libs=yes1657 dynamic_linker='GNU ld.so'1658 ;;1659 1660 netbsd*)1661 version_type=sunos1662 need_lib_prefix=no1663 need_version=no1664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then1665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'1666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'1667 dynamic_linker='NetBSD (a.out) ld.so'1668 else1669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1670 soname_spec='${libname}${release}${shared_ext}$major'1671 dynamic_linker='NetBSD ld.elf_so'1672 fi1673 shlibpath_var=LD_LIBRARY_PATH1674 shlibpath_overrides_runpath=yes1675 hardcode_into_libs=yes1676 ;;1677 1678 newsos6)1679 version_type=linux1680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1681 shlibpath_var=LD_LIBRARY_PATH1682 shlibpath_overrides_runpath=yes1683 ;;1684 1685 nto-qnx*)1686 version_type=linux1687 need_lib_prefix=no1688 need_version=no1689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1690 soname_spec='${libname}${release}${shared_ext}$major'1691 shlibpath_var=LD_LIBRARY_PATH1692 shlibpath_overrides_runpath=yes1693 ;;1694 1695 openbsd*)1696 version_type=sunos1697 need_lib_prefix=no1698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.1699 case $host_os in1700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;1701 *) need_version=no ;;1702 esac1703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'1704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'1705 shlibpath_var=LD_LIBRARY_PATH1706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then1707 case $host_os in1708 openbsd2.[[89]] | openbsd2.[[89]].*)1709 shlibpath_overrides_runpath=no1710 ;;1711 *)1712 shlibpath_overrides_runpath=yes1713 ;;1714 esac1715 else1716 shlibpath_overrides_runpath=yes1717 fi1718 ;;1719 1720 os2*)1721 libname_spec='$name'1722 shrext_cmds=".dll"1723 need_lib_prefix=no1724 library_names_spec='$libname${shared_ext} $libname.a'1725 dynamic_linker='OS/2 ld.exe'1726 shlibpath_var=LIBPATH1727 ;;1728 1729 osf3* | osf4* | osf5*)1730 version_type=osf1731 need_lib_prefix=no1732 need_version=no1733 soname_spec='${libname}${release}${shared_ext}$major'1734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1735 shlibpath_var=LD_LIBRARY_PATH1736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"1737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"1738 ;;1739 1740 sco3.2v5*)1741 version_type=osf1742 soname_spec='${libname}${release}${shared_ext}$major'1743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1744 shlibpath_var=LD_LIBRARY_PATH1745 ;;1746 1747 solaris*)1748 version_type=linux1749 need_lib_prefix=no1750 need_version=no1751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1752 soname_spec='${libname}${release}${shared_ext}$major'1753 shlibpath_var=LD_LIBRARY_PATH1754 shlibpath_overrides_runpath=yes1755 hardcode_into_libs=yes1756 # ldd complains unless libraries are executable1757 postinstall_cmds='chmod +x $lib'1758 ;;1759 1760 sunos4*)1761 version_type=sunos1762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'1763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'1764 shlibpath_var=LD_LIBRARY_PATH1765 shlibpath_overrides_runpath=yes1766 if test "$with_gnu_ld" = yes; then1767 need_lib_prefix=no1768 fi1769 need_version=yes1770 ;;1771 1772 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)1773 version_type=linux1774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1775 soname_spec='${libname}${release}${shared_ext}$major'1776 shlibpath_var=LD_LIBRARY_PATH1777 case $host_vendor in1778 sni)1779 shlibpath_overrides_runpath=no1780 need_lib_prefix=no1781 export_dynamic_flag_spec='${wl}-Blargedynsym'1782 runpath_var=LD_RUN_PATH1783 ;;1784 siemens)1785 need_lib_prefix=no1786 ;;1787 motorola)1788 need_lib_prefix=no1789 need_version=no1790 shlibpath_overrides_runpath=no1791 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'1792 ;;1793 esac1794 ;;1795 1796 sysv4*MP*)1797 if test -d /usr/nec ;then1798 version_type=linux1799 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'1800 soname_spec='$libname${shared_ext}.$major'1801 shlibpath_var=LD_LIBRARY_PATH1802 fi1803 ;;1804 1805 uts4*)1806 version_type=linux1807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1808 soname_spec='${libname}${release}${shared_ext}$major'1809 shlibpath_var=LD_LIBRARY_PATH1810 ;;1811 1812 *)1813 dynamic_linker=no1814 ;;1815 esac1816 AC_MSG_RESULT([$dynamic_linker])1817 test "$dynamic_linker" = no && can_build_shared=no1818 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER1819 1820 1821 # _LT_AC_TAGCONFIG1822 # ----------------1823 AC_DEFUN([_LT_AC_TAGCONFIG],1824 [AC_ARG_WITH([tags],1825 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],1826 [include additional configurations @<:@automatic@:>@])],1827 [tagnames="$withval"])1828 1829 if test -f "$ltmain" && test -n "$tagnames"; then1830 if test ! -f "${ofile}"; then1831 AC_MSG_WARN([output file `$ofile' does not exist])1832 fi1833 1834 if test -z "$LTCC"; then1835 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"1836 if test -z "$LTCC"; then1837 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])1838 else1839 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])1840 fi1841 fi1842 1843 # Extract list of available tagged configurations in $ofile.1844 # Note that this assumes the entire list is on one line.1845 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`1846 1847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"1848 for tagname in $tagnames; do1849 IFS="$lt_save_ifs"1850 # Check whether tagname contains only valid characters1851 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in1852 "") ;;1853 *) AC_MSG_ERROR([invalid tag name: $tagname])1854 ;;1855 esac1856 1857 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null1858 then1859 AC_MSG_ERROR([tag name \"$tagname\" already exists])1860 fi1861 1862 # Update the list of available tags.1863 if test -n "$tagname"; then1864 echo appending configuration tag \"$tagname\" to $ofile1865 1866 case $tagname in1867 CXX)1868 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&1869 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||1870 (test "X$CXX" != "Xg++"))) ; then1871 AC_LIBTOOL_LANG_CXX_CONFIG1872 else1873 tagname=""1874 fi1875 ;;1876 1877 F77)1878 if test -n "$F77" && test "X$F77" != "Xno"; then1879 AC_LIBTOOL_LANG_F77_CONFIG1880 else1881 tagname=""1882 fi1883 ;;1884 1885 GCJ)1886 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then1887 AC_LIBTOOL_LANG_GCJ_CONFIG1888 else1889 tagname=""1890 fi1891 ;;1892 1893 RC)1894 AC_LIBTOOL_LANG_RC_CONFIG1895 ;;1896 1897 *)1898 AC_MSG_ERROR([Unsupported tag name: $tagname])1899 ;;1900 esac1901 1902 # Append the new tag name to the list of available tags.1903 if test -n "$tagname" ; then1904 available_tags="$available_tags $tagname"1905 fi1906 fi1907 done1908 IFS="$lt_save_ifs"1909 1910 # Now substitute the updated list of available tags.1911 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then1912 mv "${ofile}T" "$ofile"1913 chmod +x "$ofile"1914 else1915 rm -f "${ofile}T"1916 AC_MSG_ERROR([unable to update list of available tagged configurations.])1917 fi1918 fi1919 ])# _LT_AC_TAGCONFIG1920 1921 1922 # AC_LIBTOOL_DLOPEN1923 # -----------------1924 # enable checks for dlopen support1925 AC_DEFUN([AC_LIBTOOL_DLOPEN],1926 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])1927 ])# AC_LIBTOOL_DLOPEN1928 1929 1930 # AC_LIBTOOL_WIN32_DLL1931 # --------------------1932 # declare package support for building win32 DLLs1933 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],1934 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])1935 ])# AC_LIBTOOL_WIN32_DLL1936 1937 1938 # AC_ENABLE_SHARED([DEFAULT])1939 # ---------------------------1940 # implement the --enable-shared flag1941 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.1942 AC_DEFUN([AC_ENABLE_SHARED],1943 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl1944 AC_ARG_ENABLE([shared],1945 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],1946 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],1947 [p=${PACKAGE-default}1948 case $enableval in1949 yes) enable_shared=yes ;;1950 no) enable_shared=no ;;1951 *)1952 enable_shared=no1953 # Look at the argument we got. We use all the common list separators.1954 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"1955 for pkg in $enableval; do1956 IFS="$lt_save_ifs"1957 if test "X$pkg" = "X$p"; then1958 enable_shared=yes1959 fi1960 done1961 IFS="$lt_save_ifs"1962 ;;1963 esac],1964 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)1965 ])# AC_ENABLE_SHARED1966 1967 1968 # AC_DISABLE_SHARED1969 # -----------------1970 #- set the default shared flag to --disable-shared1971 AC_DEFUN([AC_DISABLE_SHARED],1972 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl1973 AC_ENABLE_SHARED(no)1974 ])# AC_DISABLE_SHARED1975 1976 1977 # AC_ENABLE_STATIC([DEFAULT])1978 # ---------------------------1979 # implement the --enable-static flag1980 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.1981 AC_DEFUN([AC_ENABLE_STATIC],1982 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl1983 AC_ARG_ENABLE([static],1984 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],1985 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],1986 [p=${PACKAGE-default}1987 case $enableval in1988 yes) enable_static=yes ;;1989 no) enable_static=no ;;1990 *)1991 enable_static=no1992 # Look at the argument we got. We use all the common list separators.1993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"1994 for pkg in $enableval; do1995 IFS="$lt_save_ifs"1996 if test "X$pkg" = "X$p"; then1997 enable_static=yes1998 fi1999 done2000 IFS="$lt_save_ifs"2001 ;;2002 esac],2003 [enable_static=]AC_ENABLE_STATIC_DEFAULT)2004 ])# AC_ENABLE_STATIC2005 2006 2007 # AC_DISABLE_STATIC2008 # -----------------2009 # set the default static flag to --disable-static2010 AC_DEFUN([AC_DISABLE_STATIC],2011 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl2012 AC_ENABLE_STATIC(no)2013 ])# AC_DISABLE_STATIC2014 2015 2016 # AC_ENABLE_FAST_INSTALL([DEFAULT])2017 # ---------------------------------2018 # implement the --enable-fast-install flag2019 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.2020 AC_DEFUN([AC_ENABLE_FAST_INSTALL],2021 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl2022 AC_ARG_ENABLE([fast-install],2023 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],2024 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],2025 [p=${PACKAGE-default}2026 case $enableval in2027 yes) enable_fast_install=yes ;;2028 no) enable_fast_install=no ;;2029 *)2030 enable_fast_install=no2031 # Look at the argument we got. We use all the common list separators.2032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"2033 for pkg in $enableval; do2034 IFS="$lt_save_ifs"2035 if test "X$pkg" = "X$p"; then2036 enable_fast_install=yes2037 fi2038 done2039 IFS="$lt_save_ifs"2040 ;;2041 esac],2042 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)2043 ])# AC_ENABLE_FAST_INSTALL2044 2045 2046 # AC_DISABLE_FAST_INSTALL2047 # -----------------------2048 # set the default to --disable-fast-install2049 AC_DEFUN([AC_DISABLE_FAST_INSTALL],2050 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl2051 AC_ENABLE_FAST_INSTALL(no)2052 ])# AC_DISABLE_FAST_INSTALL2053 2054 2055 # AC_LIBTOOL_PICMODE([MODE])2056 # --------------------------2057 # implement the --with-pic flag2058 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.2059 AC_DEFUN([AC_LIBTOOL_PICMODE],2060 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl2061 pic_mode=ifelse($#,1,$1,default)2062 ])# AC_LIBTOOL_PICMODE2063 2064 2065 # AC_PROG_EGREP2066 # -------------2067 # This is predefined starting with Autoconf 2.54, so this conditional2068 # definition can be removed once we require Autoconf 2.54 or later.2069 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],2070 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],2071 [if echo a | (grep -E '(a|b)') >/dev/null 2>&12072 then ac_cv_prog_egrep='grep -E'2073 else ac_cv_prog_egrep='egrep'2074 fi])2075 EGREP=$ac_cv_prog_egrep2076 AC_SUBST([EGREP])2077 ])])2078 2079 2080 # AC_PATH_TOOL_PREFIX2081 # -------------------2082 # find a file program which can recognise shared library2083 AC_DEFUN([AC_PATH_TOOL_PREFIX],2084 [AC_REQUIRE([AC_PROG_EGREP])dnl2085 AC_MSG_CHECKING([for $1])2086 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,2087 [case $MAGIC_CMD in2088 [[\\/*] | ?:[\\/]*])2089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.2090 ;;2091 *)2092 lt_save_MAGIC_CMD="$MAGIC_CMD"2093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR2094 dnl $ac_dummy forces splitting on constant user-supplied paths.2095 dnl POSIX.2 word splitting is done only on the output of word expansions,2096 dnl not every word. This closes a longstanding sh security hole.2097 ac_dummy="ifelse([$2], , $PATH, [$2])"2098 for ac_dir in $ac_dummy; do2099 IFS="$lt_save_ifs"2100 test -z "$ac_dir" && ac_dir=.2101 if test -f $ac_dir/$1; then2102 lt_cv_path_MAGIC_CMD="$ac_dir/$1"2103 if test -n "$file_magic_test_file"; then2104 case $deplibs_check_method in2105 "file_magic "*)2106 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`2107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"2108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |2109 $EGREP "$file_magic_regex" > /dev/null; then2110 :2111 else2112 cat <<EOF 1>&22113 2114 *** Warning: the command libtool uses to detect shared libraries,2115 *** $file_magic_cmd, produces output that libtool cannot recognize.2116 *** The result is that libtool may fail to recognize shared libraries2117 *** as such. This will affect the creation of libtool libraries that2118 *** depend on shared libraries, but programs linked with such libtool2119 *** libraries will work regardless of this problem. Nevertheless, you2120 *** may want to report the problem to your system manager and/or to2121 *** bug-libtool@gnu.org2122 2123 EOF2124 fi ;;2125 esac2126 fi2127 break2128 fi2129 done2130 IFS="$lt_save_ifs"2131 MAGIC_CMD="$lt_save_MAGIC_CMD"2132 ;;2133 esac])2134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"2135 if test -n "$MAGIC_CMD"; then2136 AC_MSG_RESULT($MAGIC_CMD)2137 else2138 AC_MSG_RESULT(no)2139 fi2140 ])# AC_PATH_TOOL_PREFIX2141 2142 2143 # AC_PATH_MAGIC2144 # -------------2145 # find a file program which can recognise a shared library2146 AC_DEFUN([AC_PATH_MAGIC],2147 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)2148 if test -z "$lt_cv_path_MAGIC_CMD"; then2149 if test -n "$ac_tool_prefix"; then2150 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)2151 else2152 MAGIC_CMD=:2153 fi2154 fi2155 ])# AC_PATH_MAGIC2156 2157 2158 # AC_PROG_LD2159 # ----------2160 # find the pathname to the GNU or non-GNU linker2161 AC_DEFUN([AC_PROG_LD],2162 [AC_ARG_WITH([gnu-ld],2163 [AC_HELP_STRING([--with-gnu-ld],2164 [assume the C compiler uses GNU ld @<:@default=no@:>@])],2165 [test "$withval" = no || with_gnu_ld=yes],2166 [with_gnu_ld=no])2167 AC_REQUIRE([LT_AC_PROG_SED])dnl2168 AC_REQUIRE([AC_PROG_CC])dnl2169 AC_REQUIRE([AC_CANONICAL_HOST])dnl2170 AC_REQUIRE([AC_CANONICAL_BUILD])dnl2171 ac_prog=ld2172 if test "$GCC" = yes; then2173 # Check if gcc -print-prog-name=ld gives a path.2174 AC_MSG_CHECKING([for ld used by $CC])2175 case $host in2176 *-*-mingw*)2177 # gcc leaves a trailing carriage return which upsets mingw2178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;2179 *)2180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;2181 esac2182 case $ac_prog in2183 # Accept absolute paths.2184 [[\\/]]* | ?:[[\\/]]*)2185 re_direlt='/[[^/]][[^/]]*/\.\./'2186 # Canonicalize the pathname of ld2187 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`2188 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do2189 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`2190 done2191 test -z "$LD" && LD="$ac_prog"2192 ;;2193 "")2194 # If it fails, then pretend we aren't using GCC.2195 ac_prog=ld2196 ;;2197 *)2198 # If it is relative, then search for the first ld in PATH.2199 with_gnu_ld=unknown2200 ;;2201 esac2202 elif test "$with_gnu_ld" = yes; then2203 AC_MSG_CHECKING([for GNU ld])2204 else2205 AC_MSG_CHECKING([for non-GNU ld])2206 fi2207 AC_CACHE_VAL(lt_cv_path_LD,2208 [if test -z "$LD"; then2209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR2210 for ac_dir in $PATH; do2211 IFS="$lt_save_ifs"2212 test -z "$ac_dir" && ac_dir=.2213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then2214 lt_cv_path_LD="$ac_dir/$ac_prog"2215 # Check to see if the program is GNU ld. I'd rather use --version,2216 # but apparently some variants of GNU ld only accept -v.2217 # Break only if it was the GNU/non-GNU ld that we prefer.2218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in2219 *GNU* | *'with BFD'*)2220 test "$with_gnu_ld" != no && break2221 ;;2222 *)2223 test "$with_gnu_ld" != yes && break2224 ;;2225 esac2226 fi2227 done2228 IFS="$lt_save_ifs"2229 else2230 lt_cv_path_LD="$LD" # Let the user override the test with a path.2231 fi])2232 LD="$lt_cv_path_LD"2233 if test -n "$LD"; then2234 AC_MSG_RESULT($LD)2235 else2236 AC_MSG_RESULT(no)2237 fi2238 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])2239 AC_PROG_LD_GNU2240 ])# AC_PROG_LD2241 2242 2243 # AC_PROG_LD_GNU2244 # --------------2245 AC_DEFUN([AC_PROG_LD_GNU],2246 [AC_REQUIRE([AC_PROG_EGREP])dnl2247 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,2248 [# I'd rather use --version here, but apparently some GNU lds only accept -v.2249 case `$LD -v 2>&1 </dev/null` in2250 *GNU* | *'with BFD'*)2251 lt_cv_prog_gnu_ld=yes2252 ;;2253 *)2254 lt_cv_prog_gnu_ld=no2255 ;;2256 esac])2257 with_gnu_ld=$lt_cv_prog_gnu_ld2258 ])# AC_PROG_LD_GNU2259 2260 2261 # AC_PROG_LD_RELOAD_FLAG2262 # ----------------------2263 # find reload flag for linker2264 # -- PORTME Some linkers may need a different reload flag.2265 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],2266 [AC_CACHE_CHECK([for $LD option to reload object files],2267 lt_cv_ld_reload_flag,2268 [lt_cv_ld_reload_flag='-r'])2269 reload_flag=$lt_cv_ld_reload_flag2270 case $reload_flag in2271 "" | " "*) ;;2272 *) reload_flag=" $reload_flag" ;;2273 esac2274 reload_cmds='$LD$reload_flag -o $output$reload_objs'2275 case $host_os in2276 darwin*)2277 if test "$GCC" = yes; then2278 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'2279 else2280 reload_cmds='$LD$reload_flag -o $output$reload_objs'2281 fi2282 ;;2283 esac2284 ])# AC_PROG_LD_RELOAD_FLAG2285 2286 2287 # AC_DEPLIBS_CHECK_METHOD2288 # -----------------------2289 # how to check for library dependencies2290 # -- PORTME fill in with the dynamic library characteristics2291 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],2292 [AC_CACHE_CHECK([how to recognise dependent libraries],2293 lt_cv_deplibs_check_method,2294 [lt_cv_file_magic_cmd='$MAGIC_CMD'2295 lt_cv_file_magic_test_file=2296 lt_cv_deplibs_check_method='unknown'2297 # Need to set the preceding variable on all platforms that support2298 # interlibrary dependencies.2299 # 'none' -- dependencies not supported.2300 # `unknown' -- same as none, but documents that we really don't know.2301 # 'pass_all' -- all dependencies passed with no checks.2302 # 'test_compile' -- check by making test program.2303 # 'file_magic [[regex]]' -- check by looking for files in library path2304 # which responds to the $file_magic_cmd with a given extended regex.2305 # If you have `file' or equivalent on your system and you're not sure2306 # whether `pass_all' will *always* work, you probably want this one.2307 2308 case $host_os in2309 aix4* | aix5*)2310 lt_cv_deplibs_check_method=pass_all2311 ;;2312 2313 beos*)2314 lt_cv_deplibs_check_method=pass_all2315 ;;2316 2317 bsdi[[45]]*)2318 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'2319 lt_cv_file_magic_cmd='/usr/bin/file -L'2320 lt_cv_file_magic_test_file=/shlib/libc.so2321 ;;2322 2323 cygwin*)2324 # func_win32_libid is a shell function defined in ltmain.sh2325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'2326 lt_cv_file_magic_cmd='func_win32_libid'2327 ;;2328 2329 mingw* | pw32*)2330 # Base MSYS/MinGW do not provide the 'file' command needed by2331 # func_win32_libid shell function, so use a weaker test based on 'objdump'.2332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'2333 lt_cv_file_magic_cmd='$OBJDUMP -f'2334 ;;2335 2336 darwin* | rhapsody*)2337 lt_cv_deplibs_check_method=pass_all2338 ;;2339 2340 freebsd* | kfreebsd*-gnu | dragonfly*)2341 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then2342 case $host_cpu in2343 i*86 )2344 # Not sure whether the presence of OpenBSD here was a mistake.2345 # Let's accept both of them until this is cleared up.2346 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'2347 lt_cv_file_magic_cmd=/usr/bin/file2348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`2349 ;;2350 esac2351 else2352 lt_cv_deplibs_check_method=pass_all2353 fi2354 ;;2355 2356 gnu*)2357 lt_cv_deplibs_check_method=pass_all2358 ;;2359 2360 hpux10.20* | hpux11*)2361 lt_cv_file_magic_cmd=/usr/bin/file2362 case $host_cpu in2363 ia64*)2364 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'2365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so2366 ;;2367 hppa*64*)2368 [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]']2369 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl2370 ;;2371 *)2372 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'2373 lt_cv_file_magic_test_file=/usr/lib/libc.sl2374 ;;2375 esac2376 ;;2377 2378 irix5* | irix6* | nonstopux*)2379 case $LD in2380 *-32|*"-32 ") libmagic=32-bit;;2381 *-n32|*"-n32 ") libmagic=N32;;2382 *-64|*"-64 ") libmagic=64-bit;;2383 *) libmagic=never-match;;2384 esac2385 lt_cv_deplibs_check_method=pass_all2386 ;;2387 2388 # This must be Linux ELF.2389 linux*)2390 lt_cv_deplibs_check_method=pass_all2391 ;;2392 2393 netbsd*)2394 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then2395 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'2396 else2397 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'2398 fi2399 ;;2400 2401 newos6*)2402 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'2403 lt_cv_file_magic_cmd=/usr/bin/file2404 lt_cv_file_magic_test_file=/usr/lib/libnls.so2405 ;;2406 2407 nto-qnx*)2408 lt_cv_deplibs_check_method=unknown2409 ;;2410 2411 openbsd*)2412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then2413 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'2414 else2415 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'2416 fi2417 ;;2418 2419 osf3* | osf4* | osf5*)2420 lt_cv_deplibs_check_method=pass_all2421 ;;2422 2423 sco3.2v5*)2424 lt_cv_deplibs_check_method=pass_all2425 ;;2426 2427 solaris*)2428 lt_cv_deplibs_check_method=pass_all2429 ;;2430 2431 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)2432 case $host_vendor in2433 motorola)2434 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]]'2435 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`2436 ;;2437 ncr)2438 lt_cv_deplibs_check_method=pass_all2439 ;;2440 sequent)2441 lt_cv_file_magic_cmd='/bin/file'2442 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'2443 ;;2444 sni)2445 lt_cv_file_magic_cmd='/bin/file'2446 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"2447 lt_cv_file_magic_test_file=/lib/libc.so2448 ;;2449 siemens)2450 lt_cv_deplibs_check_method=pass_all2451 ;;2452 esac2453 ;;2454 2455 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)2456 lt_cv_deplibs_check_method=pass_all2457 ;;2458 esac2459 ])2460 file_magic_cmd=$lt_cv_file_magic_cmd2461 deplibs_check_method=$lt_cv_deplibs_check_method2462 test -z "$deplibs_check_method" && deplibs_check_method=unknown2463 ])# AC_DEPLIBS_CHECK_METHOD2464 2465 2466 # AC_PROG_NM2467 # ----------2468 # find the pathname to a BSD-compatible name lister2469 AC_DEFUN([AC_PROG_NM],2470 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,2471 [if test -n "$NM"; then2472 # Let the user override the test.2473 lt_cv_path_NM="$NM"2474 else2475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR2476 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do2477 IFS="$lt_save_ifs"2478 test -z "$ac_dir" && ac_dir=.2479 tmp_nm="$ac_dir/${ac_tool_prefix}nm"2480 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then2481 # Check to see if the nm accepts a BSD-compat flag.2482 # Adding the `sed 1q' prevents false positives on HP-UX, which says:2483 # nm: unknown option "B" ignored2484 # Tru64's nm complains that /dev/null is an invalid object file2485 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in2486 */dev/null* | *'Invalid file or object type'*)2487 lt_cv_path_NM="$tmp_nm -B"2488 break2489 ;;2490 *)2491 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in2492 */dev/null*)2493 lt_cv_path_NM="$tmp_nm -p"2494 break2495 ;;2496 *)2497 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but2498 continue # so that we can try to find one that supports BSD flags2499 ;;2500 esac2501 esac2502 fi2503 done2504 IFS="$lt_save_ifs"2505 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm2506 fi])2507 NM="$lt_cv_path_NM"2508 ])# AC_PROG_NM2509 2510 2511 # AC_CHECK_LIBM2512 # -------------2513 # check for math library2514 AC_DEFUN([AC_CHECK_LIBM],2515 [AC_REQUIRE([AC_CANONICAL_HOST])dnl2516 LIBM=2517 case $host in2518 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)2519 # These system don't have libm, or don't need it2520 ;;2521 *-ncr-sysv4.3*)2522 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")2523 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")2524 ;;2525 *)2526 AC_CHECK_LIB(m, cos, LIBM="-lm")2527 ;;2528 esac2529 ])# AC_CHECK_LIBM2530 2531 2532 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])2533 # -----------------------------------2534 # sets LIBLTDL to the link flags for the libltdl convenience library and2535 # LTDLINCL to the include flags for the libltdl header and adds2536 # --enable-ltdl-convenience to the configure arguments. Note that2537 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,2538 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with2539 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'2540 # (note the single quotes!). If your package is not flat and you're not2541 # using automake, define top_builddir and top_srcdir appropriately in2542 # the Makefiles.2543 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],2544 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl2545 case $enable_ltdl_convenience in2546 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;2547 "") enable_ltdl_convenience=yes2548 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;2549 esac2550 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la2551 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])2552 # For backwards non-gettext consistent compatibility...2553 INCLTDL="$LTDLINCL"2554 ])# AC_LIBLTDL_CONVENIENCE2555 2556 2557 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])2558 # -----------------------------------2559 # sets LIBLTDL to the link flags for the libltdl installable library and2560 # LTDLINCL to the include flags for the libltdl header and adds2561 # --enable-ltdl-install to the configure arguments. Note that2562 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,2563 # and an installed libltdl is not found, it is assumed to be `libltdl'.2564 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with2565 # '${top_srcdir}/' (note the single quotes!). If your package is not2566 # flat and you're not using automake, define top_builddir and top_srcdir2567 # appropriately in the Makefiles.2568 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.2569 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],2570 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl2571 AC_CHECK_LIB(ltdl, lt_dlinit,2572 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],2573 [if test x"$enable_ltdl_install" = xno; then2574 AC_MSG_WARN([libltdl not installed, but installation disabled])2575 else2576 enable_ltdl_install=yes2577 fi2578 ])2579 if test x"$enable_ltdl_install" = x"yes"; then2580 ac_configure_args="$ac_configure_args --enable-ltdl-install"2581 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la2582 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])2583 else2584 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"2585 LIBLTDL="-lltdl"2586 LTDLINCL=2587 fi2588 # For backwards non-gettext consistent compatibility...2589 INCLTDL="$LTDLINCL"2590 ])# AC_LIBLTDL_INSTALLABLE2591 2592 2593 # AC_LIBTOOL_CXX2594 # --------------2595 # enable support for C++ libraries2596 AC_DEFUN([AC_LIBTOOL_CXX],2597 [AC_REQUIRE([_LT_AC_LANG_CXX])2598 ])# AC_LIBTOOL_CXX2599 2600 2601 # _LT_AC_LANG_CXX2602 # ---------------2603 AC_DEFUN([_LT_AC_LANG_CXX],2604 [AC_REQUIRE([AC_PROG_CXX])2605 AC_REQUIRE([_LT_AC_PROG_CXXCPP])2606 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])2607 ])# _LT_AC_LANG_CXX2608 2609 # _LT_AC_PROG_CXXCPP2610 # ---------------2611 AC_DEFUN([_LT_AC_PROG_CXXCPP],2612 [2613 AC_REQUIRE([AC_PROG_CXX])2614 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&2615 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||2616 (test "X$CXX" != "Xg++"))) ; then2617 AC_PROG_CXXCPP2618 fi2619 ])# _LT_AC_PROG_CXXCPP2620 2621 # AC_LIBTOOL_F772622 # --------------2623 # enable support for Fortran 77 libraries2624 AC_DEFUN([AC_LIBTOOL_F77],2625 [AC_REQUIRE([_LT_AC_LANG_F77])2626 ])# AC_LIBTOOL_F772627 2628 2629 # _LT_AC_LANG_F772630 # ---------------2631 AC_DEFUN([_LT_AC_LANG_F77],2632 [AC_REQUIRE([AC_PROG_F77])2633 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])2634 ])# _LT_AC_LANG_F772635 2636 2637 # AC_LIBTOOL_GCJ2638 # --------------2639 # enable support for GCJ libraries2640 AC_DEFUN([AC_LIBTOOL_GCJ],2641 [AC_REQUIRE([_LT_AC_LANG_GCJ])2642 ])# AC_LIBTOOL_GCJ2643 2644 2645 # _LT_AC_LANG_GCJ2646 # ---------------2647 AC_DEFUN([_LT_AC_LANG_GCJ],2648 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],2649 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],2650 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],2651 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],2652 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],2653 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])2654 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])2655 ])# _LT_AC_LANG_GCJ2656 2657 2658 # AC_LIBTOOL_RC2659 # --------------2660 # enable support for Windows resource files2661 AC_DEFUN([AC_LIBTOOL_RC],2662 [AC_REQUIRE([LT_AC_PROG_RC])2663 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])2664 ])# AC_LIBTOOL_RC2665 2666 2667 # AC_LIBTOOL_LANG_C_CONFIG2668 # ------------------------2669 # Ensure that the configuration vars for the C compiler are2670 # suitably defined. Those variables are subsequently used by2671 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.2672 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])2673 AC_DEFUN([_LT_AC_LANG_C_CONFIG],2674 [lt_save_CC="$CC"2675 AC_LANG_PUSH(C)2676 2677 # Source file extension for C test sources.2678 ac_ext=c2679 2680 # Object file extension for compiled C test sources.2681 objext=o2682 _LT_AC_TAGVAR(objext, $1)=$objext2683 2684 # Code to be used in simple compile tests2685 lt_simple_compile_test_code="int some_variable = 0;\n"2686 2687 # Code to be used in simple link tests2688 lt_simple_link_test_code='int main(){return(0);}\n'2689 2690 _LT_AC_SYS_COMPILER2691 2692 # save warnings/boilerplate of simple test code2693 _LT_COMPILER_BOILERPLATE2694 _LT_LINKER_BOILERPLATE2695 2696 #2697 # Check for any special shared library compilation flags.2698 #2699 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=2700 if test "$GCC" = no; then2701 case $host_os in2702 sco3.2v5*)2703 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'2704 ;;2705 esac2706 fi2707 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then2708 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])2709 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :2710 else2711 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])2712 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no2713 fi2714 fi2715 2716 2717 #2718 # Check to make sure the static flag actually works.2719 #2720 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],2721 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),2722 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),2723 [],2724 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])2725 2726 2727 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)2728 AC_LIBTOOL_PROG_COMPILER_PIC($1)2729 AC_LIBTOOL_PROG_CC_C_O($1)2730 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)2731 AC_LIBTOOL_PROG_LD_SHLIBS($1)2732 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)2733 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)2734 AC_LIBTOOL_SYS_LIB_STRIP2735 AC_LIBTOOL_DLOPEN_SELF($1)2736 2737 # Report which librarie types wil actually be built2738 AC_MSG_CHECKING([if libtool supports shared libraries])2739 AC_MSG_RESULT([$can_build_shared])2740 2741 AC_MSG_CHECKING([whether to build shared libraries])2742 test "$can_build_shared" = "no" && enable_shared=no2743 2744 # On AIX, shared libraries and static libraries use the same namespace, and2745 # are all built from PIC.2746 case $host_os in2747 aix3*)2748 test "$enable_shared" = yes && enable_static=no2749 if test -n "$RANLIB"; then2750 archive_cmds="$archive_cmds~\$RANLIB \$lib"2751 postinstall_cmds='$RANLIB $lib'2752 fi2753 ;;2754 2755 aix4* | aix5*)2756 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then2757 test "$enable_shared" = yes && enable_static=no2758 fi2759 ;;2760 esac2761 AC_MSG_RESULT([$enable_shared])2762 2763 AC_MSG_CHECKING([whether to build static libraries])2764 # Make sure either enable_shared or enable_static is yes.2765 test "$enable_shared" = yes || enable_static=yes2766 AC_MSG_RESULT([$enable_static])2767 2768 AC_LIBTOOL_CONFIG($1)2769 2770 AC_LANG_POP2771 CC="$lt_save_CC"2772 ])# AC_LIBTOOL_LANG_C_CONFIG2773 2774 2775 # AC_LIBTOOL_LANG_CXX_CONFIG2776 # --------------------------2777 # Ensure that the configuration vars for the C compiler are2778 # suitably defined. Those variables are subsequently used by2779 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.2780 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])2781 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],2782 [AC_LANG_PUSH(C++)2783 AC_REQUIRE([AC_PROG_CXX])2784 AC_REQUIRE([_LT_AC_PROG_CXXCPP])2785 2786 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no2787 _LT_AC_TAGVAR(allow_undefined_flag, $1)=2788 _LT_AC_TAGVAR(always_export_symbols, $1)=no2789 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=2790 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=2791 _LT_AC_TAGVAR(hardcode_direct, $1)=no2792 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=2793 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=2794 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=2795 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no2796 _LT_AC_TAGVAR(hardcode_automatic, $1)=no2797 _LT_AC_TAGVAR(module_cmds, $1)=2798 _LT_AC_TAGVAR(module_expsym_cmds, $1)=2799 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown2800 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds2801 _LT_AC_TAGVAR(no_undefined_flag, $1)=2802 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=2803 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no2804 2805 # Dependencies to place before and after the object being linked:2806 _LT_AC_TAGVAR(predep_objects, $1)=2807 _LT_AC_TAGVAR(postdep_objects, $1)=2808 _LT_AC_TAGVAR(predeps, $1)=2809 _LT_AC_TAGVAR(postdeps, $1)=2810 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=2811 2812 # Source file extension for C++ test sources.2813 ac_ext=cpp2814 2815 # Object file extension for compiled C++ test sources.2816 objext=o2817 _LT_AC_TAGVAR(objext, $1)=$objext2818 2819 # Code to be used in simple compile tests2820 lt_simple_compile_test_code="int some_variable = 0;\n"2821 2822 # Code to be used in simple link tests2823 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'2824 2825 # ltmain only uses $CC for tagged configurations so make sure $CC is set.2826 _LT_AC_SYS_COMPILER2827 2828 # save warnings/boilerplate of simple test code2829 _LT_COMPILER_BOILERPLATE2830 _LT_LINKER_BOILERPLATE2831 2832 # Allow CC to be a program name with arguments.2833 lt_save_CC=$CC2834 lt_save_LD=$LD2835 lt_save_GCC=$GCC2836 GCC=$GXX2837 lt_save_with_gnu_ld=$with_gnu_ld2838 lt_save_path_LD=$lt_cv_path_LD2839 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then2840 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx2841 else2842 unset lt_cv_prog_gnu_ld2843 fi2844 if test -n "${lt_cv_path_LDCXX+set}"; then2845 lt_cv_path_LD=$lt_cv_path_LDCXX2846 else2847 unset lt_cv_path_LD2848 fi2849 test -z "${LDCXX+set}" || LD=$LDCXX2850 CC=${CXX-"c++"}2851 compiler=$CC2852 _LT_AC_TAGVAR(compiler, $1)=$CC2853 _LT_CC_BASENAME([$compiler])2854 2855 # We don't want -fno-exception wen compiling C++ code, so set the2856 # no_builtin_flag separately2857 if test "$GXX" = yes; then2858 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'2859 else2860 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=2861 fi2862 2863 if test "$GXX" = yes; then2864 # Set up default GNU C++ configuration2865 2866 AC_PROG_LD2867 2868 # Check if GNU C++ uses GNU ld as the underlying linker, since the2869 # archiving commands below assume that GNU ld is being used.2870 if test "$with_gnu_ld" = yes; then2871 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'2872 _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'2873 2874 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'2875 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'2876 2877 # If archive_cmds runs LD, not CC, wlarc should be empty2878 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to2879 # investigate it a little bit more. (MM)2880 wlarc='${wl}'2881 2882 # ancient GNU ld didn't support --whole-archive et. al.2883 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \2884 grep 'no-whole-archive' > /dev/null; then2885 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'2886 else2887 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=2888 fi2889 else2890 with_gnu_ld=no2891 wlarc=2892 2893 # A generic and very simple default shared library creation2894 # command for GNU C++ for the case where it uses the native2895 # linker, instead of GNU ld. If possible, this setting should2896 # overridden to take advantage of the native linker features on2897 # the platform it is being used on.2898 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'2899 fi2900 2901 # Commands to make compiler produce verbose output that lists2902 # what "hidden" libraries, object files and flags are used when2903 # linking a shared library.2904 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'2905 2906 else2907 GXX=no2908 with_gnu_ld=no2909 wlarc=2910 fi2911 2912 # PORTME: fill in a description of your system's C++ link characteristics2913 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])2914 _LT_AC_TAGVAR(ld_shlibs, $1)=yes2915 case $host_os in2916 aix3*)2917 # FIXME: insert proper C++ library support2918 _LT_AC_TAGVAR(ld_shlibs, $1)=no2919 ;;2920 aix4* | aix5*)2921 if test "$host_cpu" = ia64; then2922 # On IA64, the linker does run time linking by default, so we don't2923 # have to do anything special.2924 aix_use_runtimelinking=no2925 exp_sym_flag='-Bexport'2926 no_entry_flag=""2927 else2928 aix_use_runtimelinking=no2929 2930 # Test if we are trying to use run time linking or normal2931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we2932 # need to do runtime linking.2933 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)2934 for ld_flag in $LDFLAGS; do2935 case $ld_flag in2936 *-brtl*)2937 aix_use_runtimelinking=yes2938 break2939 ;;2940 esac2941 done2942 esac2943 2944 exp_sym_flag='-bexport'2945 no_entry_flag='-bnoentry'2946 fi2947 2948 # When large executables or shared objects are built, AIX ld can2949 # have problems creating the table of contents. If linking a library2950 # or program results in "error TOC overflow" add -mminimal-toc to2951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not2952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.2953 2954 _LT_AC_TAGVAR(archive_cmds, $1)=''2955 _LT_AC_TAGVAR(hardcode_direct, $1)=yes2956 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'2957 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes2958 2959 if test "$GXX" = yes; then2960 case $host_os in aix4.[[012]]|aix4.[[012]].*)2961 # We only want to do this on AIX 4.2 and lower, the check2962 # below for broken collect2 doesn't work under 4.3+2963 collect2name=`${CC} -print-prog-name=collect2`2964 if test -f "$collect2name" && \2965 strings "$collect2name" | grep resolve_lib_name >/dev/null2966 then2967 # We have reworked collect22968 _LT_AC_TAGVAR(hardcode_direct, $1)=yes2969 else2970 # We have old collect22971 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported2972 # It fails to find uninstalled libraries when the uninstalled2973 # path is not listed in the libpath. Setting hardcode_minus_L2974 # to unsupported forces relinking2975 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes2976 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'2977 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=2978 fi2979 esac2980 shared_flag='-shared'2981 if test "$aix_use_runtimelinking" = yes; then2982 shared_flag="$shared_flag "'${wl}-G'2983 fi2984 else2985 # not using gcc2986 if test "$host_cpu" = ia64; then2987 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release2988 # chokes on -Wl,-G. The following line is correct:2989 shared_flag='-G'2990 else2991 if test "$aix_use_runtimelinking" = yes; then2992 shared_flag='${wl}-G'2993 else2994 shared_flag='${wl}-bM:SRE'2995 fi2996 fi2997 fi2998 2999 # It seems that -bexpall does not export symbols beginning with3000 # underscore (_), so it is better to generate a list of symbols to export.3001 _LT_AC_TAGVAR(always_export_symbols, $1)=yes3002 if test "$aix_use_runtimelinking" = yes; then3003 # Warning - without using the other runtime loading flags (-brtl),3004 # -berok will link without error, but may produce a broken library.3005 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'3006 # Determine the default libpath from the value encoded in an empty executable.3007 _LT_AC_SYS_LIBPATH_AIX3008 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"3009 3010 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"3011 else3012 if test "$host_cpu" = ia64; then3013 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'3014 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"3015 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"3016 else3017 # Determine the default libpath from the value encoded in an empty executable.3018 _LT_AC_SYS_LIBPATH_AIX3019 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"3020 # Warning - without using the other run time loading flags,3021 # -berok will link without error, but may produce a broken library.3022 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'3023 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'3024 # -bexpall does not export symbols beginning with underscore (_)3025 _LT_AC_TAGVAR(always_export_symbols, $1)=yes3026 # Exported symbols can be pulled into shared objects from archives3027 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '3028 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes3029 # This is similar to how AIX traditionally builds its shared libraries.3030 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'3031 fi3032 fi3033 ;;3034 chorus*)3035 case $cc_basename in3036 *)3037 # FIXME: insert proper C++ library support3038 _LT_AC_TAGVAR(ld_shlibs, $1)=no3039 ;;3040 esac3041 ;;3042 3043 3044 cygwin* | mingw* | pw32*)3045 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,3046 # as there is no search path for DLLs.3047 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'3048 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported3049 _LT_AC_TAGVAR(always_export_symbols, $1)=no3050 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes3051 3052 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then3053 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'3054 # If the export-symbols file already is a .def file (1st line3055 # is EXPORTS), use it as is; otherwise, prepend...3056 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then3057 cp $export_symbols $output_objdir/$soname.def;3058 else3059 echo EXPORTS > $output_objdir/$soname.def;3060 cat $export_symbols >> $output_objdir/$soname.def;3061 fi~3062 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'3063 else3064 _LT_AC_TAGVAR(ld_shlibs, $1)=no3065 fi3066 ;;3067 darwin* | rhapsody*)3068 case $host_os in3069 rhapsody* | darwin1.[[012]])3070 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'3071 ;;3072 *) # Darwin 1.3 on3073 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then3074 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'3075 else3076 case ${MACOSX_DEPLOYMENT_TARGET} in3077 10.[[012]])3078 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'3079 ;;3080 10.*)3081 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'3082 ;;3083 esac3084 fi3085 ;;3086 esac3087 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no3088 _LT_AC_TAGVAR(hardcode_direct, $1)=no3089 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes3090 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported3091 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''3092 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes3093 3094 if test "$GXX" = yes ; then3095 lt_int_apple_cc_single_mod=no3096 output_verbose_link_cmd='echo'3097 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then3098 lt_int_apple_cc_single_mod=yes3099 fi3100 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then3101 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'3102 else3103 _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'3104 fi3105 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'3106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds3107 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then3108 _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}'3109 else3110 _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}'3111 fi3112 _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}'3113 else3114 case $cc_basename in3115 xlc*)3116 output_verbose_link_cmd='echo'3117 _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'3118 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'3119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds3120 _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}'3121 _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}'3122 ;;3123 *)3124 _LT_AC_TAGVAR(ld_shlibs, $1)=no3125 ;;3126 esac3127 fi3128 ;;3129 3130 dgux*)3131 case $cc_basename in3132 ec++*)3133 # FIXME: insert proper C++ library support3134 _LT_AC_TAGVAR(ld_shlibs, $1)=no3135 ;;3136 ghcx*)3137 # Green Hills C++ Compiler3138 # FIXME: insert proper C++ library support3139 _LT_AC_TAGVAR(ld_shlibs, $1)=no3140 ;;3141 *)3142 # FIXME: insert proper C++ library support3143 _LT_AC_TAGVAR(ld_shlibs, $1)=no3144 ;;3145 esac3146 ;;3147 freebsd[[12]]*)3148 # C++ shared libraries reported to be fairly broken before switch to ELF3149 _LT_AC_TAGVAR(ld_shlibs, $1)=no3150 ;;3151 freebsd-elf*)3152 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no3153 ;;3154 freebsd* | kfreebsd*-gnu | dragonfly*)3155 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF3156 # conventions3157 _LT_AC_TAGVAR(ld_shlibs, $1)=yes3158 ;;3159 gnu*)3160 ;;3161 hpux9*)3162 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'3163 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3164 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'3165 _LT_AC_TAGVAR(hardcode_direct, $1)=yes3166 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,3167 # but as the default3168 # location of the library.3169 3170 case $cc_basename in3171 CC*)3172 # FIXME: insert proper C++ library support3173 _LT_AC_TAGVAR(ld_shlibs, $1)=no3174 ;;3175 aCC*)3176 _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'3177 # Commands to make compiler produce verbose output that lists3178 # what "hidden" libraries, object files and flags are used when3179 # linking a shared library.3180 #3181 # There doesn't appear to be a way to prevent this compiler from3182 # explicitly linking system object files so we need to strip them3183 # from the output so that they don't get included in the library3184 # dependencies.3185 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'3186 ;;3187 *)3188 if test "$GXX" = yes; then3189 _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'3190 else3191 # FIXME: insert proper C++ library support3192 _LT_AC_TAGVAR(ld_shlibs, $1)=no3193 fi3194 ;;3195 esac3196 ;;3197 hpux10*|hpux11*)3198 if test $with_gnu_ld = no; then3199 case $host_cpu in3200 hppa*64*)3201 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'3202 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'3203 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3204 ;;3205 ia64*)3206 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'3207 ;;3208 *)3209 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'3210 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3211 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'3212 ;;3213 esac3214 fi3215 case $host_cpu in3216 hppa*64*)3217 _LT_AC_TAGVAR(hardcode_direct, $1)=no3218 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no3219 ;;3220 ia64*)3221 _LT_AC_TAGVAR(hardcode_direct, $1)=no3222 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no3223 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,3224 # but as the default3225 # location of the library.3226 ;;3227 *)3228 _LT_AC_TAGVAR(hardcode_direct, $1)=yes3229 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,3230 # but as the default3231 # location of the library.3232 ;;3233 esac3234 3235 case $cc_basename in3236 CC*)3237 # FIXME: insert proper C++ library support3238 _LT_AC_TAGVAR(ld_shlibs, $1)=no3239 ;;3240 aCC*)3241 case $host_cpu in3242 hppa*64*|ia64*)3243 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'3244 ;;3245 *)3246 _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'3247 ;;3248 esac3249 # Commands to make compiler produce verbose output that lists3250 # what "hidden" libraries, object files and flags are used when3251 # linking a shared library.3252 #3253 # There doesn't appear to be a way to prevent this compiler from3254 # explicitly linking system object files so we need to strip them3255 # from the output so that they don't get included in the library3256 # dependencies.3257 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'3258 ;;3259 *)3260 if test "$GXX" = yes; then3261 if test $with_gnu_ld = no; then3262 case $host_cpu in3263 ia64*|hppa*64*)3264 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'3265 ;;3266 *)3267 _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'3268 ;;3269 esac3270 fi3271 else3272 # FIXME: insert proper C++ library support3273 _LT_AC_TAGVAR(ld_shlibs, $1)=no3274 fi3275 ;;3276 esac3277 ;;3278 irix5* | irix6*)3279 case $cc_basename in3280 CC*)3281 # SGI C++3282 _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'3283 3284 # Archives containing C++ object files must be created using3285 # "CC -ar", where "CC" is the IRIX C++ compiler. This is3286 # necessary to make sure instantiated templates are included3287 # in the archive.3288 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'3289 ;;3290 *)3291 if test "$GXX" = yes; then3292 if test "$with_gnu_ld" = no; then3293 _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'3294 else3295 _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'3296 fi3297 fi3298 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes3299 ;;3300 esac3301 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'3302 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3303 ;;3304 linux*)3305 case $cc_basename in3306 KCC*)3307 # Kuck and Associates, Inc. (KAI) C++ Compiler3308 3309 # KCC will only create a shared library if the output file3310 # ends with ".so" (or ".sl" for HP-UX), so rename the library3311 # to its proper name (with version) after linking.3312 _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'3313 _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'3314 # Commands to make compiler produce verbose output that lists3315 # what "hidden" libraries, object files and flags are used when3316 # linking a shared library.3317 #3318 # There doesn't appear to be a way to prevent this compiler from3319 # explicitly linking system object files so we need to strip them3320 # from the output so that they don't get included in the library3321 # dependencies.3322 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'3323 3324 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'3325 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'3326 3327 # Archives containing C++ object files must be created using3328 # "CC -Bstatic", where "CC" is the KAI C++ compiler.3329 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'3330 ;;3331 icpc*)3332 # Intel C++3333 with_gnu_ld=yes3334 # version 8.0 and above of icpc choke on multiply defined symbols3335 # if we add $predep_objects and $postdep_objects, however 7.1 and3336 # earlier do not add the objects themselves.3337 case `$CC -V 2>&1` in3338 *"Version 7."*)3339 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'3340 _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'3341 ;;3342 *) # Version 8.0 or newer3343 tmp_idyn=3344 case $host_cpu in3345 ia64*) tmp_idyn=' -i_dynamic';;3346 esac3347 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'3348 _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'3349 ;;3350 esac3351 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no3352 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'3353 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'3354 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'3355 ;;3356 pgCC*)3357 # Portland Group C++ compiler3358 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'3359 _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'3360 3361 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'3362 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'3363 _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'3364 ;;3365 cxx*)3366 # Compaq C++3367 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'3368 _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'3369 3370 runpath_var=LD_RUN_PATH3371 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'3372 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3373 3374 # Commands to make compiler produce verbose output that lists3375 # what "hidden" libraries, object files and flags are used when3376 # linking a shared library.3377 #3378 # There doesn't appear to be a way to prevent this compiler from3379 # explicitly linking system object files so we need to strip them3380 # from the output so that they don't get included in the library3381 # dependencies.3382 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'3383 ;;3384 esac3385 ;;3386 lynxos*)3387 # FIXME: insert proper C++ library support3388 _LT_AC_TAGVAR(ld_shlibs, $1)=no3389 ;;3390 m88k*)3391 # FIXME: insert proper C++ library support3392 _LT_AC_TAGVAR(ld_shlibs, $1)=no3393 ;;3394 mvs*)3395 case $cc_basename in3396 cxx*)3397 # FIXME: insert proper C++ library support3398 _LT_AC_TAGVAR(ld_shlibs, $1)=no3399 ;;3400 *)3401 # FIXME: insert proper C++ library support3402 _LT_AC_TAGVAR(ld_shlibs, $1)=no3403 ;;3404 esac3405 ;;3406 netbsd*)3407 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then3408 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'3409 wlarc=3410 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'3411 _LT_AC_TAGVAR(hardcode_direct, $1)=yes3412 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no3413 fi3414 # Workaround some broken pre-1.5 toolchains3415 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'3416 ;;3417 openbsd2*)3418 # C++ shared libraries are fairly broken3419 _LT_AC_TAGVAR(ld_shlibs, $1)=no3420 ;;3421 openbsd*)3422 _LT_AC_TAGVAR(hardcode_direct, $1)=yes3423 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no3424 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'3425 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'3426 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then3427 _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'3428 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'3429 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'3430 fi3431 output_verbose_link_cmd='echo'3432 ;;3433 osf3*)3434 case $cc_basename in3435 KCC*)3436 # Kuck and Associates, Inc. (KAI) C++ Compiler3437 3438 # KCC will only create a shared library if the output file3439 # ends with ".so" (or ".sl" for HP-UX), so rename the library3440 # to its proper name (with version) after linking.3441 _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'3442 3443 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'3444 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3445 3446 # Archives containing C++ object files must be created using3447 # "CC -Bstatic", where "CC" is the KAI C++ compiler.3448 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'3449 3450 ;;3451 RCC*)3452 # Rational C++ 2.4.13453 # FIXME: insert proper C++ library support3454 _LT_AC_TAGVAR(ld_shlibs, $1)=no3455 ;;3456 cxx*)3457 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'3458 _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'3459 3460 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'3461 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3462 3463 # Commands to make compiler produce verbose output that lists3464 # what "hidden" libraries, object files and flags are used when3465 # linking a shared library.3466 #3467 # There doesn't appear to be a way to prevent this compiler from3468 # explicitly linking system object files so we need to strip them3469 # from the output so that they don't get included in the library3470 # dependencies.3471 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'3472 ;;3473 *)3474 if test "$GXX" = yes && test "$with_gnu_ld" = no; then3475 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'3476 _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'3477 3478 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'3479 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3480 3481 # Commands to make compiler produce verbose output that lists3482 # what "hidden" libraries, object files and flags are used when3483 # linking a shared library.3484 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'3485 3486 else3487 # FIXME: insert proper C++ library support3488 _LT_AC_TAGVAR(ld_shlibs, $1)=no3489 fi3490 ;;3491 esac3492 ;;3493 osf4* | osf5*)3494 case $cc_basename in3495 KCC*)3496 # Kuck and Associates, Inc. (KAI) C++ Compiler3497 3498 # KCC will only create a shared library if the output file3499 # ends with ".so" (or ".sl" for HP-UX), so rename the library3500 # to its proper name (with version) after linking.3501 _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'3502 3503 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'3504 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3505 3506 # Archives containing C++ object files must be created using3507 # the KAI C++ compiler.3508 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'3509 ;;3510 RCC*)3511 # Rational C++ 2.4.13512 # FIXME: insert proper C++ library support3513 _LT_AC_TAGVAR(ld_shlibs, $1)=no3514 ;;3515 cxx*)3516 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'3517 _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'3518 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~3519 echo "-hidden">> $lib.exp~3520 $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~3521 $rm $lib.exp'3522 3523 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'3524 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3525 3526 # Commands to make compiler produce verbose output that lists3527 # what "hidden" libraries, object files and flags are used when3528 # linking a shared library.3529 #3530 # There doesn't appear to be a way to prevent this compiler from3531 # explicitly linking system object files so we need to strip them3532 # from the output so that they don't get included in the library3533 # dependencies.3534 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'3535 ;;3536 *)3537 if test "$GXX" = yes && test "$with_gnu_ld" = no; then3538 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'3539 _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'3540 3541 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'3542 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3543 3544 # Commands to make compiler produce verbose output that lists3545 # what "hidden" libraries, object files and flags are used when3546 # linking a shared library.3547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'3548 3549 else3550 # FIXME: insert proper C++ library support3551 _LT_AC_TAGVAR(ld_shlibs, $1)=no3552 fi3553 ;;3554 esac3555 ;;3556 psos*)3557 # FIXME: insert proper C++ library support3558 _LT_AC_TAGVAR(ld_shlibs, $1)=no3559 ;;3560 sco*)3561 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no3562 case $cc_basename in3563 CC*)3564 # FIXME: insert proper C++ library support3565 _LT_AC_TAGVAR(ld_shlibs, $1)=no3566 ;;3567 *)3568 # FIXME: insert proper C++ library support3569 _LT_AC_TAGVAR(ld_shlibs, $1)=no3570 ;;3571 esac3572 ;;3573 sunos4*)3574 case $cc_basename in3575 CC*)3576 # Sun C++ 4.x3577 # FIXME: insert proper C++ library support3578 _LT_AC_TAGVAR(ld_shlibs, $1)=no3579 ;;3580 lcc*)3581 # Lucid3582 # FIXME: insert proper C++ library support3583 _LT_AC_TAGVAR(ld_shlibs, $1)=no3584 ;;3585 *)3586 # FIXME: insert proper C++ library support3587 _LT_AC_TAGVAR(ld_shlibs, $1)=no3588 ;;3589 esac3590 ;;3591 solaris*)3592 case $cc_basename in3593 CC*)3594 # Sun C++ 4.2, 5.x and Centerline C++3595 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes3596 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'3597 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'3598 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3599 $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'3600 3601 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'3602 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no3603 case $host_os in3604 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;3605 *)3606 # The C++ compiler is used as linker so we must use $wl3607 # flag to pass the commands to the underlying system3608 # linker. We must also pass each convience library through3609 # to the system linker between allextract/defaultextract.3610 # The C++ compiler will combine linker options so we3611 # cannot just pass the convience library names through3612 # without $wl.3613 # Supported since Solaris 2.6 (maybe 2.5.1?)3614 _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'3615 ;;3616 esac3617 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes3618 3619 output_verbose_link_cmd='echo'3620 3621 # Archives containing C++ object files must be created using3622 # "CC -xar", where "CC" is the Sun C++ compiler. This is3623 # necessary to make sure instantiated templates are included3624 # in the archive.3625 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'3626 ;;3627 gcx*)3628 # Green Hills C++ Compiler3629 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'3630 3631 # The C++ compiler must be used to create the archive.3632 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'3633 ;;3634 *)3635 # GNU C++ compiler with Solaris linker3636 if test "$GXX" = yes && test "$with_gnu_ld" = no; then3637 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'3638 if $CC --version | grep -v '^2\.7' > /dev/null; then3639 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'3640 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3641 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'3642 3643 # Commands to make compiler produce verbose output that lists3644 # what "hidden" libraries, object files and flags are used when3645 # linking a shared library.3646 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""3647 else3648 # g++ 2.7 appears to require `-G' NOT `-shared' on this3649 # platform.3650 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'3651 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3652 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'3653 3654 # Commands to make compiler produce verbose output that lists3655 # what "hidden" libraries, object files and flags are used when3656 # linking a shared library.3657 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""3658 fi3659 3660 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'3661 fi3662 ;;3663 esac3664 ;;3665 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)3666 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no3667 ;;3668 tandem*)3669 case $cc_basename in3670 NCC*)3671 # NonStop-UX NCC 3.203672 # FIXME: insert proper C++ library support3673 _LT_AC_TAGVAR(ld_shlibs, $1)=no3674 ;;3675 *)3676 # FIXME: insert proper C++ library support3677 _LT_AC_TAGVAR(ld_shlibs, $1)=no3678 ;;3679 esac3680 ;;3681 vxworks*)3682 # FIXME: insert proper C++ library support3683 _LT_AC_TAGVAR(ld_shlibs, $1)=no3684 ;;3685 *)3686 # FIXME: insert proper C++ library support3687 _LT_AC_TAGVAR(ld_shlibs, $1)=no3688 ;;3689 esac3690 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])3691 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no3692 3693 _LT_AC_TAGVAR(GCC, $1)="$GXX"3694 _LT_AC_TAGVAR(LD, $1)="$LD"3695 3696 AC_LIBTOOL_POSTDEP_PREDEP($1)3697 AC_LIBTOOL_PROG_COMPILER_PIC($1)3698 AC_LIBTOOL_PROG_CC_C_O($1)3699 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)3700 AC_LIBTOOL_PROG_LD_SHLIBS($1)3701 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3702 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)3703 AC_LIBTOOL_SYS_LIB_STRIP3704 AC_LIBTOOL_DLOPEN_SELF($1)3705 3706 AC_LIBTOOL_CONFIG($1)3707 3708 AC_LANG_POP3709 CC=$lt_save_CC3710 LDCXX=$LD3711 LD=$lt_save_LD3712 GCC=$lt_save_GCC3713 with_gnu_ldcxx=$with_gnu_ld3714 with_gnu_ld=$lt_save_with_gnu_ld3715 lt_cv_path_LDCXX=$lt_cv_path_LD3716 lt_cv_path_LD=$lt_save_path_LD3717 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld3718 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld3719 ])# AC_LIBTOOL_LANG_CXX_CONFIG3720 3721 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])3722 # ------------------------3723 # Figure out "hidden" library dependencies from verbose3724 # compiler output when linking a shared library.3725 # Parse the compiler output and extract the necessary3726 # objects, libraries and library flags.3727 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[3728 dnl we can't use the lt_simple_compile_test_code here,3729 dnl because it contains code intended for an executable,3730 dnl not a library. It's possible we should let each3731 dnl tag define a new lt_????_link_test_code variable,3732 dnl but it's only used here...3733 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF3734 int a;3735 void foo (void) { a = 0; }3736 EOF3737 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF3738 class Foo3739 {3740 public:3741 Foo (void) { a = 0; }3742 private:3743 int a;3744 };3745 EOF3746 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF3747 subroutine foo3748 implicit none3749 integer*4 a3750 a=03751 return3752 end3753 EOF3754 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF3755 public class foo {3756 private int a;3757 public void bar (void) {3758 a = 0;3759 }3760 };3761 EOF3762 ])3763 dnl Parse the compiler output and extract the necessary3764 dnl objects, libraries and library flags.3765 if AC_TRY_EVAL(ac_compile); then3766 # Parse the compiler output and extract the necessary3767 # objects, libraries and library flags.3768 3769 # Sentinel used to keep track of whether or not we are before3770 # the conftest object file.3771 pre_test_object_deps_done=no3772 3773 # The `*' in the case matches for architectures that use `case' in3774 # $output_verbose_cmd can trigger glob expansion during the loop3775 # eval without this substitution.3776 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`3777 3778 for p in `eval $output_verbose_link_cmd`; do3779 case $p in3780 3781 -L* | -R* | -l*)3782 # Some compilers place space between "-{L,R}" and the path.3783 # Remove the space.3784 if test $p = "-L" \3785 || test $p = "-R"; then3786 prev=$p3787 continue3788 else3789 prev=3790 fi3791 3792 if test "$pre_test_object_deps_done" = no; then3793 case $p in3794 -L* | -R*)3795 # Internal compiler library paths should come after those3796 # provided the user. The postdeps already come after the3797 # user supplied libs so there is no need to process them.3798 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then3799 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"3800 else3801 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"3802 fi3803 ;;3804 # The "-l" case would never come before the object being3805 # linked, so don't bother handling this case.3806 esac3807 else3808 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then3809 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"3810 else3811 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"3812 fi3813 fi3814 ;;3815 3816 *.$objext)3817 # This assumes that the test object file only shows up3818 # once in the compiler output.3819 if test "$p" = "conftest.$objext"; then3820 pre_test_object_deps_done=yes3821 continue3822 fi3823 3824 if test "$pre_test_object_deps_done" = no; then3825 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then3826 _LT_AC_TAGVAR(predep_objects, $1)="$p"3827 else3828 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"3829 fi3830 else3831 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then3832 _LT_AC_TAGVAR(postdep_objects, $1)="$p"3833 else3834 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"3835 fi3836 fi3837 ;;3838 3839 *) ;; # Ignore the rest.3840 3841 esac3842 done3843 3844 # Clean up.3845 rm -f a.out a.exe3846 else3847 echo "libtool.m4: error: problem compiling $1 test program"3848 fi3849 3850 $rm -f confest.$objext3851 3852 # PORTME: override above test on systems where it is broken3853 ifelse([$1],[CXX],3854 [case $host_os in3855 solaris*)3856 case $cc_basename in3857 CC*)3858 # Adding this requires a known-good setup of shared libraries for3859 # Sun compiler versions before 5.6, else PIC objects from an old3860 # archive will be linked into the output, leading to subtle bugs.3861 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'3862 ;;3863 esac3864 esac3865 ])3866 3867 case " $_LT_AC_TAGVAR(postdeps, $1) " in3868 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;3869 esac3870 ])# AC_LIBTOOL_POSTDEP_PREDEP3871 3872 # AC_LIBTOOL_LANG_F77_CONFIG3873 # ------------------------3874 # Ensure that the configuration vars for the C compiler are3875 # suitably defined. Those variables are subsequently used by3876 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.3877 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])3878 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],3879 [AC_REQUIRE([AC_PROG_F77])3880 AC_LANG_PUSH(Fortran 77)3881 3882 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no3883 _LT_AC_TAGVAR(allow_undefined_flag, $1)=3884 _LT_AC_TAGVAR(always_export_symbols, $1)=no3885 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=3886 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=3887 _LT_AC_TAGVAR(hardcode_direct, $1)=no3888 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=3889 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=3890 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=3891 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no3892 _LT_AC_TAGVAR(hardcode_automatic, $1)=no3893 _LT_AC_TAGVAR(module_cmds, $1)=3894 _LT_AC_TAGVAR(module_expsym_cmds, $1)=3895 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown3896 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds3897 _LT_AC_TAGVAR(no_undefined_flag, $1)=3898 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=3899 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no3900 3901 # Source file extension for f77 test sources.3902 ac_ext=f3903 3904 # Object file extension for compiled f77 test sources.3905 objext=o3906 _LT_AC_TAGVAR(objext, $1)=$objext3907 3908 # Code to be used in simple compile tests3909 lt_simple_compile_test_code=" subroutine t\n return\n end\n"3910 3911 # Code to be used in simple link tests3912 lt_simple_link_test_code=" program t\n end\n"3913 3914 # ltmain only uses $CC for tagged configurations so make sure $CC is set.3915 _LT_AC_SYS_COMPILER3916 3917 # save warnings/boilerplate of simple test code3918 _LT_COMPILER_BOILERPLATE3919 _LT_LINKER_BOILERPLATE3920 3921 # Allow CC to be a program name with arguments.3922 lt_save_CC="$CC"3923 CC=${F77-"f77"}3924 compiler=$CC3925 _LT_AC_TAGVAR(compiler, $1)=$CC3926 _LT_CC_BASENAME([$compiler])3927 3928 AC_MSG_CHECKING([if libtool supports shared libraries])3929 AC_MSG_RESULT([$can_build_shared])3930 3931 AC_MSG_CHECKING([whether to build shared libraries])3932 test "$can_build_shared" = "no" && enable_shared=no3933 3934 # On AIX, shared libraries and static libraries use the same namespace, and3935 # are all built from PIC.3936 case $host_os in3937 aix3*)3938 test "$enable_shared" = yes && enable_static=no3939 if test -n "$RANLIB"; then3940 archive_cmds="$archive_cmds~\$RANLIB \$lib"3941 postinstall_cmds='$RANLIB $lib'3942 fi3943 ;;3944 aix4* | aix5*)3945 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then3946 test "$enable_shared" = yes && enable_static=no3947 fi3948 ;;3949 esac3950 AC_MSG_RESULT([$enable_shared])3951 3952 AC_MSG_CHECKING([whether to build static libraries])3953 # Make sure either enable_shared or enable_static is yes.3954 test "$enable_shared" = yes || enable_static=yes3955 AC_MSG_RESULT([$enable_static])3956 3957 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no3958 3959 _LT_AC_TAGVAR(GCC, $1)="$G77"3960 _LT_AC_TAGVAR(LD, $1)="$LD"3961 3962 AC_LIBTOOL_PROG_COMPILER_PIC($1)3963 AC_LIBTOOL_PROG_CC_C_O($1)3964 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)3965 AC_LIBTOOL_PROG_LD_SHLIBS($1)3966 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3967 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)3968 AC_LIBTOOL_SYS_LIB_STRIP3969 3970 3971 AC_LIBTOOL_CONFIG($1)3972 3973 AC_LANG_POP3974 CC="$lt_save_CC"3975 ])# AC_LIBTOOL_LANG_F77_CONFIG3976 3977 3978 # AC_LIBTOOL_LANG_GCJ_CONFIG3979 # --------------------------3980 # Ensure that the configuration vars for the C compiler are3981 # suitably defined. Those variables are subsequently used by3982 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.3983 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])3984 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],3985 [AC_LANG_SAVE3986 3987 # Source file extension for Java test sources.3988 ac_ext=java3989 3990 # Object file extension for compiled Java test sources.3991 objext=o3992 _LT_AC_TAGVAR(objext, $1)=$objext3993 3994 # Code to be used in simple compile tests3995 lt_simple_compile_test_code="class foo {}\n"3996 3997 # Code to be used in simple link tests3998 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'3999 4000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.4001 _LT_AC_SYS_COMPILER4002 4003 # save warnings/boilerplate of simple test code4004 _LT_COMPILER_BOILERPLATE4005 _LT_LINKER_BOILERPLATE4006 4007 # Allow CC to be a program name with arguments.4008 lt_save_CC="$CC"4009 CC=${GCJ-"gcj"}4010 compiler=$CC4011 _LT_AC_TAGVAR(compiler, $1)=$CC4012 _LT_CC_BASENAME([$compiler])4013 4014 # GCJ did not exist at the time GCC didn't implicitly link libc in.4015 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no4016 4017 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds4018 4019 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)4020 AC_LIBTOOL_PROG_COMPILER_PIC($1)4021 AC_LIBTOOL_PROG_CC_C_O($1)4022 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)4023 AC_LIBTOOL_PROG_LD_SHLIBS($1)4024 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)4025 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)4026 AC_LIBTOOL_SYS_LIB_STRIP4027 AC_LIBTOOL_DLOPEN_SELF($1)4028 4029 AC_LIBTOOL_CONFIG($1)4030 4031 AC_LANG_RESTORE4032 CC="$lt_save_CC"4033 ])# AC_LIBTOOL_LANG_GCJ_CONFIG4034 4035 4036 # AC_LIBTOOL_LANG_RC_CONFIG4037 # --------------------------4038 # Ensure that the configuration vars for the Windows resource compiler are4039 # suitably defined. Those variables are subsequently used by4040 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.4041 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])4042 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],4043 [AC_LANG_SAVE4044 4045 # Source file extension for RC test sources.4046 ac_ext=rc4047 4048 # Object file extension for compiled RC test sources.4049 objext=o4050 _LT_AC_TAGVAR(objext, $1)=$objext4051 4052 # Code to be used in simple compile tests4053 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'4054 4055 # Code to be used in simple link tests4056 lt_simple_link_test_code="$lt_simple_compile_test_code"4057 4058 # ltmain only uses $CC for tagged configurations so make sure $CC is set.4059 _LT_AC_SYS_COMPILER4060 4061 # save warnings/boilerplate of simple test code4062 _LT_COMPILER_BOILERPLATE4063 _LT_LINKER_BOILERPLATE4064 4065 # Allow CC to be a program name with arguments.4066 lt_save_CC="$CC"4067 CC=${RC-"windres"}4068 compiler=$CC4069 _LT_AC_TAGVAR(compiler, $1)=$CC4070 _LT_CC_BASENAME([$compiler])4071 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes4072 4073 AC_LIBTOOL_CONFIG($1)4074 4075 AC_LANG_RESTORE4076 CC="$lt_save_CC"4077 ])# AC_LIBTOOL_LANG_RC_CONFIG4078 4079 4080 # AC_LIBTOOL_CONFIG([TAGNAME])4081 # ----------------------------4082 # If TAGNAME is not passed, then create an initial libtool script4083 # with a default configuration from the untagged config vars. Otherwise4084 # add code to config.status for appending the configuration named by4085 # TAGNAME from the matching tagged config vars.4086 AC_DEFUN([AC_LIBTOOL_CONFIG],4087 [# The else clause should only fire when bootstrapping the4088 # libtool distribution, otherwise you forgot to ship ltmain.sh4089 # with your package, and you will get complaints that there are4090 # no rules to generate ltmain.sh.4091 if test -f "$ltmain"; then4092 # See if we are running on zsh, and set the options which allow our commands through4093 # without removal of \ escapes.4094 if test -n "${ZSH_VERSION+set}" ; then4095 setopt NO_GLOB_SUBST4096 fi4097 # Now quote all the things that may contain metacharacters while being4098 # careful not to overquote the AC_SUBSTed values. We take copies of the4099 # variables and quote the copies for generation of the libtool script.4100 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \4101 SED SHELL STRIP \4102 libname_spec library_names_spec soname_spec extract_expsyms_cmds \4103 old_striplib striplib file_magic_cmd finish_cmds finish_eval \4104 deplibs_check_method reload_flag reload_cmds need_locks \4105 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \4106 lt_cv_sys_global_symbol_to_c_name_address \4107 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \4108 old_postinstall_cmds old_postuninstall_cmds \4109 _LT_AC_TAGVAR(compiler, $1) \4110 _LT_AC_TAGVAR(CC, $1) \4111 _LT_AC_TAGVAR(LD, $1) \4112 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \4113 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \4114 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \4115 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \4116 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \4117 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \4118 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \4119 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \4120 _LT_AC_TAGVAR(old_archive_cmds, $1) \4121 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \4122 _LT_AC_TAGVAR(predep_objects, $1) \4123 _LT_AC_TAGVAR(postdep_objects, $1) \4124 _LT_AC_TAGVAR(predeps, $1) \4125 _LT_AC_TAGVAR(postdeps, $1) \4126 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \4127 _LT_AC_TAGVAR(archive_cmds, $1) \4128 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \4129 _LT_AC_TAGVAR(postinstall_cmds, $1) \4130 _LT_AC_TAGVAR(postuninstall_cmds, $1) \4131 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \4132 _LT_AC_TAGVAR(allow_undefined_flag, $1) \4133 _LT_AC_TAGVAR(no_undefined_flag, $1) \4134 _LT_AC_TAGVAR(export_symbols_cmds, $1) \4135 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \4136 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \4137 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \4138 _LT_AC_TAGVAR(hardcode_automatic, $1) \4139 _LT_AC_TAGVAR(module_cmds, $1) \4140 _LT_AC_TAGVAR(module_expsym_cmds, $1) \4141 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \4142 _LT_AC_TAGVAR(exclude_expsyms, $1) \4143 _LT_AC_TAGVAR(include_expsyms, $1); do4144 4145 case $var in4146 _LT_AC_TAGVAR(old_archive_cmds, $1) | \4147 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \4148 _LT_AC_TAGVAR(archive_cmds, $1) | \4149 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \4150 _LT_AC_TAGVAR(module_cmds, $1) | \4151 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \4152 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \4153 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \4154 extract_expsyms_cmds | reload_cmds | finish_cmds | \4155 postinstall_cmds | postuninstall_cmds | \4156 old_postinstall_cmds | old_postuninstall_cmds | \4157 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)4158 # Double-quote double-evaled strings.4159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""4160 ;;4161 *)4162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""4163 ;;4164 esac4165 done4166 4167 case $lt_echo in4168 *'\[$]0 --fallback-echo"')4169 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`4170 ;;4171 esac4172 4173 ifelse([$1], [],4174 [cfgfile="${ofile}T"4175 trap "$rm \"$cfgfile\"; exit 1" 1 2 154176 $rm -f "$cfgfile"4177 AC_MSG_NOTICE([creating $ofile])],4178 [cfgfile="$ofile"])4179 4180 cat <<__EOF__ >> "$cfgfile"4181 ifelse([$1], [],4182 [#! $SHELL4183 4184 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.4185 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)4186 # NOTE: Changes made to this file will be lost: look at ltmain.sh.4187 #4188 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 20014189 # Free Software Foundation, Inc.4190 #4191 # This file is part of GNU Libtool:4192 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 19964193 #4194 # This program is free software; you can redistribute it and/or modify4195 # it under the terms of the GNU General Public License as published by4196 # the Free Software Foundation; either version 2 of the License, or4197 # (at your option) any later version.4198 #4199 # This program is distributed in the hope that it will be useful, but4200 # WITHOUT ANY WARRANTY; without even the implied warranty of4201 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU4202 # General Public License for more details.4203 #4204 # You should have received a copy of the GNU General Public License4205 # along with this program; if not, write to the Free Software4206 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.4207 #4208 # As a special exception to the GNU General Public License, if you4209 # distribute this file as part of a program that contains a4210 # configuration script generated by Autoconf, you may include it under4211 # the same distribution terms that you use for the rest of that program.4212 4213 # A sed program that does not truncate output.4214 SED=$lt_SED4215 4216 # Sed that helps us avoid accidentally triggering echo(1) options like -n.4217 Xsed="$SED -e 1s/^X//"4218 4219 # The HP-UX ksh and POSIX shell print the target directory to stdout4220 # if CDPATH is set.4221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH4222 4223 # The names of the tagged configurations supported by this script.4224 available_tags=4225 4226 # ### BEGIN LIBTOOL CONFIG],4227 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])4228 4229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:4230 4231 # Shell to use when invoking shell scripts.4232 SHELL=$lt_SHELL4233 4234 # Whether or not to build shared libraries.4235 build_libtool_libs=$enable_shared4236 4237 # Whether or not to build static libraries.4238 build_old_libs=$enable_static4239 4240 # Whether or not to add -lc for building shared libraries.4241 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)4242 4243 # Whether or not to disallow shared libs when runtime libs are static4244 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)4245 4246 # Whether or not to optimize for fast installation.4247 fast_install=$enable_fast_install4248 4249 # The host system.4250 host_alias=$host_alias4251 host=$host4252 host_os=$host_os4253 4254 # The build system.4255 build_alias=$build_alias4256 build=$build4257 build_os=$build_os4258 4259 # An echo program that does not interpret backslashes.4260 echo=$lt_echo4261 4262 # The archiver.4263 AR=$lt_AR4264 AR_FLAGS=$lt_AR_FLAGS4265 4266 # A C compiler.4267 LTCC=$lt_LTCC4268 4269 # A language-specific compiler.4270 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)4271 4272 # Is the compiler the GNU C compiler?4273 with_gcc=$_LT_AC_TAGVAR(GCC, $1)4274 4275 # An ERE matcher.4276 EGREP=$lt_EGREP4277 4278 # The linker used to build libraries.4279 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)4280 4281 # Whether we need hard or soft links.4282 LN_S=$lt_LN_S4283 4284 # A BSD-compatible nm program.4285 NM=$lt_NM4286 4287 # A symbol stripping program4288 STRIP=$lt_STRIP4289 4290 # Used to examine libraries when file_magic_cmd begins "file"4291 MAGIC_CMD=$MAGIC_CMD4292 4293 # Used on cygwin: DLL creation program.4294 DLLTOOL="$DLLTOOL"4295 4296 # Used on cygwin: object dumper.4297 OBJDUMP="$OBJDUMP"4298 4299 # Used on cygwin: assembler.4300 AS="$AS"4301 4302 # The name of the directory that contains temporary libtool files.4303 objdir=$objdir4304 4305 # How to create reloadable object files.4306 reload_flag=$lt_reload_flag4307 reload_cmds=$lt_reload_cmds4308 4309 # How to pass a linker flag through the compiler.4310 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)4311 4312 # Object file suffix (normally "o").4313 objext="$ac_objext"4314 4315 # Old archive suffix (normally "a").4316 libext="$libext"4317 4318 # Shared library suffix (normally ".so").4319 shrext_cmds='$shrext_cmds'4320 4321 # Executable file suffix (normally "").4322 exeext="$exeext"4323 4324 # Additional compiler flags for building library objects.4325 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)4326 pic_mode=$pic_mode4327 4328 # What is the maximum length of a command?4329 max_cmd_len=$lt_cv_sys_max_cmd_len4330 4331 # Does compiler simultaneously support -c and -o options?4332 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)4333 4334 # Must we lock files when doing compilation?4335 need_locks=$lt_need_locks4336 4337 # Do we need the lib prefix for modules?4338 need_lib_prefix=$need_lib_prefix4339 4340 # Do we need a version for libraries?4341 need_version=$need_version4342 4343 # Whether dlopen is supported.4344 dlopen_support=$enable_dlopen4345 4346 # Whether dlopen of programs is supported.4347 dlopen_self=$enable_dlopen_self4348 4349 # Whether dlopen of statically linked programs is supported.4350 dlopen_self_static=$enable_dlopen_self_static4351 4352 # Compiler flag to prevent dynamic linking.4353 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)4354 4355 # Compiler flag to turn off builtin functions.4356 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)4357 4358 # Compiler flag to allow reflexive dlopens.4359 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)4360 4361 # Compiler flag to generate shared objects directly from archives.4362 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)4363 4364 # Compiler flag to generate thread-safe objects.4365 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)4366 4367 # Library versioning type.4368 version_type=$version_type4369 4370 # Format of library name prefix.4371 libname_spec=$lt_libname_spec4372 4373 # List of archive names. First name is the real one, the rest are links.4374 # The last name is the one that the linker finds with -lNAME.4375 library_names_spec=$lt_library_names_spec4376 4377 # The coded name of the library, if different from the real name.4378 soname_spec=$lt_soname_spec4379 4380 # Commands used to build and install an old-style archive.4381 RANLIB=$lt_RANLIB4382 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)4383 old_postinstall_cmds=$lt_old_postinstall_cmds4384 old_postuninstall_cmds=$lt_old_postuninstall_cmds4385 4386 # Create an old-style archive from a shared archive.4387 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)4388 4389 # Create a temporary old-style archive to link instead of a shared archive.4390 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)4391 4392 # Commands used to build and install a shared archive.4393 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)4394 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)4395 postinstall_cmds=$lt_postinstall_cmds4396 postuninstall_cmds=$lt_postuninstall_cmds4397 4398 # Commands used to build a loadable module (assumed same as above if empty)4399 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)4400 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)4401 4402 # Commands to strip libraries.4403 old_striplib=$lt_old_striplib4404 striplib=$lt_striplib4405 4406 # Dependencies to place before the objects being linked to create a4407 # shared library.4408 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)4409 4410 # Dependencies to place after the objects being linked to create a4411 # shared library.4412 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)4413 4414 # Dependencies to place before the objects being linked to create a4415 # shared library.4416 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)4417 4418 # Dependencies to place after the objects being linked to create a4419 # shared library.4420 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)4421 4422 # The library search path used internally by the compiler when linking4423 # a shared library.4424 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)4425 4426 # Method to check whether dependent libraries are shared objects.4427 deplibs_check_method=$lt_deplibs_check_method4428 4429 # Command to use when deplibs_check_method == file_magic.4430 file_magic_cmd=$lt_file_magic_cmd4431 4432 # Flag that allows shared libraries with undefined symbols to be built.4433 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)4434 4435 # Flag that forces no undefined symbols.4436 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)4437 4438 # Commands used to finish a libtool library installation in a directory.4439 finish_cmds=$lt_finish_cmds4440 4441 # Same as above, but a single script fragment to be evaled but not shown.4442 finish_eval=$lt_finish_eval4443 4444 # Take the output of nm and produce a listing of raw symbols and C names.4445 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe4446 4447 # Transform the output of nm in a proper C declaration4448 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl4449 4450 # Transform the output of nm in a C name address pair4451 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address4452 4453 # This is the shared library runtime path variable.4454 runpath_var=$runpath_var4455 4456 # This is the shared library path variable.4457 shlibpath_var=$shlibpath_var4458 4459 # Is shlibpath searched before the hard-coded library search path?4460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath4461 4462 # How to hardcode a shared library path into an executable.4463 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)4464 4465 # Whether we should hardcode library paths into libraries.4466 hardcode_into_libs=$hardcode_into_libs4467 4468 # Flag to hardcode \$libdir into a binary during linking.4469 # This must work even if \$libdir does not exist.4470 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)4471 4472 # If ld is used when linking, flag to hardcode \$libdir into4473 # a binary during linking. This must work even if \$libdir does4474 # not exist.4475 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)4476 4477 # Whether we need a single -rpath flag with a separated argument.4478 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)4479 4480 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the4481 # resulting binary.4482 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)4483 4484 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the4485 # resulting binary.4486 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)4487 4488 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into4489 # the resulting binary.4490 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)4491 4492 # Set to yes if building a shared library automatically hardcodes DIR into the library4493 # and all subsequent libraries and executables linked against it.4494 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)4495 4496 # Variables whose values should be saved in libtool wrapper scripts and4497 # restored at relink time.4498 variables_saved_for_relink="$variables_saved_for_relink"4499 4500 # Whether libtool must link a program against all its dependency libraries.4501 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)4502 4503 # Compile-time system search path for libraries4504 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec4505 4506 # Run-time system search path for libraries4507 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec4508 4509 # Fix the shell variable \$srcfile for the compiler.4510 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"4511 4512 # Set to yes if exported symbols are required.4513 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)4514 4515 # The commands to list exported symbols.4516 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)4517 4518 # The commands to extract the exported symbol list from a shared archive.4519 extract_expsyms_cmds=$lt_extract_expsyms_cmds4520 4521 # Symbols that should not be listed in the preloaded symbols.4522 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)4523 4524 # Symbols that must always be exported.4525 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)4526 4527 ifelse([$1],[],4528 [# ### END LIBTOOL CONFIG],4529 [# ### END LIBTOOL TAG CONFIG: $tagname])4530 4531 __EOF__4532 4533 ifelse([$1],[], [4534 case $host_os in4535 aix3*)4536 cat <<\EOF >> "$cfgfile"4537 4538 # AIX sometimes has problems with the GCC collect2 program. For some4539 # reason, if we set the COLLECT_NAMES environment variable, the problems4540 # vanish in a puff of smoke.4541 if test "X${COLLECT_NAMES+set}" != Xset; then4542 COLLECT_NAMES=4543 export COLLECT_NAMES4544 fi4545 EOF4546 ;;4547 esac4548 4549 # We use sed instead of cat because bash on DJGPP gets confused if4550 # if finds mixed CR/LF and LF-only lines. Since sed operates in4551 # text mode, it properly converts lines to CR/LF. This bash problem4552 # is reportedly fixed, but why not run on old versions too?4553 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)4554 4555 mv -f "$cfgfile" "$ofile" || \4556 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")4557 chmod +x "$ofile"4558 ])4559 else4560 # If there is no Makefile yet, we rely on a make rule to execute4561 # `config.status --recheck' to rerun these tests and create the4562 # libtool script then.4563 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`4564 if test -f "$ltmain_in"; then4565 test -f Makefile && make "$ltmain"4566 fi4567 fi4568 ])# AC_LIBTOOL_CONFIG4569 4570 4571 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])4572 # -------------------------------------------4573 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],4574 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl4575 4576 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=4577 4578 if test "$GCC" = yes; then4579 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'4580 4581 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],4582 lt_cv_prog_compiler_rtti_exceptions,4583 [-fno-rtti -fno-exceptions], [],4584 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])4585 fi4586 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI4587 4588 4589 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE4590 # ---------------------------------4591 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],4592 [AC_REQUIRE([AC_CANONICAL_HOST])4593 AC_REQUIRE([AC_PROG_NM])4594 AC_REQUIRE([AC_OBJEXT])4595 # Check for command to grab the raw symbol name followed by C symbol from nm.4596 AC_MSG_CHECKING([command to parse $NM output from $compiler object])4597 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],4598 [4599 # These are sane defaults that work on at least a few old systems.4600 # [They come from Ultrix. What could be older than Ultrix?!! ;)]4601 4602 # Character class describing NM global symbol codes.4603 symcode='[[BCDEGRST]]'4604 4605 # Regexp to match symbols that can be accessed directly from C.4606 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'4607 4608 # Transform an extracted symbol line into a proper C declaration4609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"4610 4611 # Transform an extracted symbol line into symbol name and symbol address4612 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'"4613 4614 # Define system-specific variables.4615 case $host_os in4616 aix*)4617 symcode='[[BCDT]]'4618 ;;4619 cygwin* | mingw* | pw32*)4620 symcode='[[ABCDGISTW]]'4621 ;;4622 hpux*) # Its linker distinguishes data from code symbols4623 if test "$host_cpu" = ia64; then4624 symcode='[[ABCDEGRST]]'4625 fi4626 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"4627 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'"4628 ;;4629 linux*)4630 if test "$host_cpu" = ia64; then4631 symcode='[[ABCDGIRSTW]]'4632 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"4633 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'"4634 fi4635 ;;4636 irix* | nonstopux*)4637 symcode='[[BCDEGRST]]'4638 ;;4639 osf*)4640 symcode='[[BCDEGQRST]]'4641 ;;4642 solaris* | sysv5*)4643 symcode='[[BDRT]]'4644 ;;4645 sysv4)4646 symcode='[[DFNSTU]]'4647 ;;4648 esac4649 4650 # Handle CRLF in mingw tool chain4651 opt_cr=4652 case $build_os in4653 mingw*)4654 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp4655 ;;4656 esac4657 4658 # If we're using GNU nm, then use its standard symbol codes.4659 case `$NM -V 2>&1` in4660 *GNU* | *'with BFD'*)4661 symcode='[[ABCDGIRSTW]]' ;;4662 esac4663 4664 # Try without a prefix undercore, then with it.4665 for ac_symprfx in "" "_"; do4666 4667 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.4668 symxfrm="\\1 $ac_symprfx\\2 \\2"4669 4670 # Write the raw and C identifiers.4671 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"4672 4673 # Check to see that the pipe works correctly.4674 pipe_works=no4675 4676 rm -f conftest*4677 cat > conftest.$ac_ext <<EOF4678 #ifdef __cplusplus4679 extern "C" {4680 #endif4681 char nm_test_var;4682 void nm_test_func(){}4683 #ifdef __cplusplus4684 }4685 #endif4686 int main(){nm_test_var='a';nm_test_func();return(0);}4687 EOF4688 4689 if AC_TRY_EVAL(ac_compile); then4690 # Now try to grab the symbols.4691 nlist=conftest.nm4692 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then4693 # Try sorting and uniquifying the output.4694 if sort "$nlist" | uniq > "$nlist"T; then4695 mv -f "$nlist"T "$nlist"4696 else4697 rm -f "$nlist"T4698 fi4699 4700 # Make sure that we snagged all the symbols we need.4701 if grep ' nm_test_var$' "$nlist" >/dev/null; then4702 if grep ' nm_test_func$' "$nlist" >/dev/null; then4703 cat <<EOF > conftest.$ac_ext4704 #ifdef __cplusplus4705 extern "C" {4706 #endif4707 4708 EOF4709 # Now generate the symbol file.4710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'4711 4712 cat <<EOF >> conftest.$ac_ext4713 #if defined (__STDC__) && __STDC__4714 # define lt_ptr_t void *4715 #else4716 # define lt_ptr_t char *4717 # define const4718 #endif4719 4720 /* The mapping between symbol names and symbols. */4721 const struct {4722 const char *name;4723 lt_ptr_t address;4724 }4725 lt_preloaded_symbols[[]] =4726 {4727 EOF4728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext4729 cat <<\EOF >> conftest.$ac_ext4730 {0, (lt_ptr_t) 0}4731 };4732 4733 #ifdef __cplusplus4734 }4735 #endif4736 EOF4737 # Now try linking the two files.4738 mv conftest.$ac_objext conftstm.$ac_objext4739 lt_save_LIBS="$LIBS"4740 lt_save_CFLAGS="$CFLAGS"4741 LIBS="conftstm.$ac_objext"4742 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"4743 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then4744 pipe_works=yes4745 fi4746 LIBS="$lt_save_LIBS"4747 CFLAGS="$lt_save_CFLAGS"4748 else4749 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD4750 fi4751 else4752 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD4753 fi4754 else4755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD4756 fi4757 else4758 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD4759 cat conftest.$ac_ext >&54760 fi4761 rm -f conftest* conftst*4762 4763 # Do not use the global_symbol_pipe unless it works.4764 if test "$pipe_works" = yes; then4765 break4766 else4767 lt_cv_sys_global_symbol_pipe=4768 fi4769 done4770 ])4771 if test -z "$lt_cv_sys_global_symbol_pipe"; then4772 lt_cv_sys_global_symbol_to_cdecl=4773 fi4774 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then4775 AC_MSG_RESULT(failed)4776 else4777 AC_MSG_RESULT(ok)4778 fi4779 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE4780 4781 4782 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])4783 # ---------------------------------------4784 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],4785 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=4786 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=4787 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=4788 4789 AC_MSG_CHECKING([for $compiler option to produce PIC])4790 ifelse([$1],[CXX],[4791 # C++ specific cases for pic, static, wl, etc.4792 if test "$GXX" = yes; then4793 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4794 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'4795 4796 case $host_os in4797 aix*)4798 # All AIX code is PIC.4799 if test "$host_cpu" = ia64; then4800 # AIX 5 now supports IA64 processor4801 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4802 fi4803 ;;4804 amigaos*)4805 # FIXME: we need at least 68020 code to build shared libraries, but4806 # adding the `-m68020' flag to GCC prevents building anything better,4807 # like `-m68040'.4808 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'4809 ;;4810 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)4811 # PIC is the default for these OSes.4812 ;;4813 mingw* | os2* | pw32*)4814 # This hack is so that the source file can tell whether it is being4815 # built for inclusion in a dll (and should export symbols for example).4816 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'4817 ;;4818 darwin* | rhapsody*)4819 # PIC is the default on this platform4820 # Common symbols not allowed in MH_DYLIB files4821 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'4822 ;;4823 *djgpp*)4824 # DJGPP does not support shared libraries at all4825 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=4826 ;;4827 sysv4*MP*)4828 if test -d /usr/nec; then4829 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic4830 fi4831 ;;4832 hpux*)4833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but4834 # not for PA HP-UX.4835 case $host_cpu in4836 hppa*64*|ia64*)4837 ;;4838 *)4839 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'4840 ;;4841 esac4842 ;;4843 *)4844 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'4845 ;;4846 esac4847 else4848 case $host_os in4849 aix4* | aix5*)4850 # All AIX code is PIC.4851 if test "$host_cpu" = ia64; then4852 # AIX 5 now supports IA64 processor4853 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4854 else4855 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'4856 fi4857 ;;4858 chorus*)4859 case $cc_basename in4860 cxch68*)4861 # Green Hills C++ Compiler4862 # _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"4863 ;;4864 esac4865 ;;4866 darwin*)4867 # PIC is the default on this platform4868 # Common symbols not allowed in MH_DYLIB files4869 case $cc_basename in4870 xlc*)4871 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'4872 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4873 ;;4874 esac4875 ;;4876 dgux*)4877 case $cc_basename in4878 ec++*)4879 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4880 ;;4881 ghcx*)4882 # Green Hills C++ Compiler4883 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'4884 ;;4885 *)4886 ;;4887 esac4888 ;;4889 freebsd* | kfreebsd*-gnu | dragonfly*)4890 # FreeBSD uses GNU C++4891 ;;4892 hpux9* | hpux10* | hpux11*)4893 case $cc_basename in4894 CC*)4895 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4896 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"4897 if test "$host_cpu" != ia64; then4898 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'4899 fi4900 ;;4901 aCC*)4902 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4903 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"4904 case $host_cpu in4905 hppa*64*|ia64*)4906 # +Z the default4907 ;;4908 *)4909 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'4910 ;;4911 esac4912 ;;4913 *)4914 ;;4915 esac4916 ;;4917 irix5* | irix6* | nonstopux*)4918 case $cc_basename in4919 CC*)4920 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4921 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4922 # CC pic flag -KPIC is the default.4923 ;;4924 *)4925 ;;4926 esac4927 ;;4928 linux*)4929 case $cc_basename in4930 KCC*)4931 # KAI C++ Compiler4932 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'4933 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'4934 ;;4935 icpc* | ecpc*)4936 # Intel C++4937 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4938 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4939 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'4940 ;;4941 pgCC*)4942 # Portland Group C++ compiler.4943 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4944 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'4945 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4946 ;;4947 cxx*)4948 # Compaq C++4949 # Make sure the PIC flag is empty. It appears that all Alpha4950 # Linux and Compaq Tru64 Unix objects are PIC.4951 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=4952 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4953 ;;4954 *)4955 ;;4956 esac4957 ;;4958 lynxos*)4959 ;;4960 m88k*)4961 ;;4962 mvs*)4963 case $cc_basename in4964 cxx*)4965 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'4966 ;;4967 *)4968 ;;4969 esac4970 ;;4971 netbsd*)4972 ;;4973 osf3* | osf4* | osf5*)4974 case $cc_basename in4975 KCC*)4976 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'4977 ;;4978 RCC*)4979 # Rational C++ 2.4.14980 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'4981 ;;4982 cxx*)4983 # Digital/Compaq C++4984 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4985 # Make sure the PIC flag is empty. It appears that all Alpha4986 # Linux and Compaq Tru64 Unix objects are PIC.4987 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=4988 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4989 ;;4990 *)4991 ;;4992 esac4993 ;;4994 psos*)4995 ;;4996 sco*)4997 case $cc_basename in4998 CC*)4999 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'5000 ;;5001 *)5002 ;;5003 esac5004 ;;5005 solaris*)5006 case $cc_basename in5007 CC*)5008 # Sun C++ 4.2, 5.x and Centerline C++5009 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5010 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5011 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '5012 ;;5013 gcx*)5014 # Green Hills C++ Compiler5015 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'5016 ;;5017 *)5018 ;;5019 esac5020 ;;5021 sunos4*)5022 case $cc_basename in5023 CC*)5024 # Sun C++ 4.x5025 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'5026 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5027 ;;5028 lcc*)5029 # Lucid5030 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'5031 ;;5032 *)5033 ;;5034 esac5035 ;;5036 tandem*)5037 case $cc_basename in5038 NCC*)5039 # NonStop-UX NCC 3.205040 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5041 ;;5042 *)5043 ;;5044 esac5045 ;;5046 unixware*)5047 ;;5048 vxworks*)5049 ;;5050 *)5051 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no5052 ;;5053 esac5054 fi5055 ],5056 [5057 if test "$GCC" = yes; then5058 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5059 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'5060 5061 case $host_os in5062 aix*)5063 # All AIX code is PIC.5064 if test "$host_cpu" = ia64; then5065 # AIX 5 now supports IA64 processor5066 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5067 fi5068 ;;5069 5070 amigaos*)5071 # FIXME: we need at least 68020 code to build shared libraries, but5072 # adding the `-m68020' flag to GCC prevents building anything better,5073 # like `-m68040'.5074 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'5075 ;;5076 5077 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)5078 # PIC is the default for these OSes.5079 ;;5080 5081 mingw* | pw32* | os2*)5082 # This hack is so that the source file can tell whether it is being5083 # built for inclusion in a dll (and should export symbols for example).5084 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'5085 ;;5086 5087 darwin* | rhapsody*)5088 # PIC is the default on this platform5089 # Common symbols not allowed in MH_DYLIB files5090 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'5091 ;;5092 5093 msdosdjgpp*)5094 # Just because we use GCC doesn't mean we suddenly get shared libraries5095 # on systems that don't support them.5096 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no5097 enable_shared=no5098 ;;5099 5100 sysv4*MP*)5101 if test -d /usr/nec; then5102 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic5103 fi5104 ;;5105 5106 hpux*)5107 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but5108 # not for PA HP-UX.5109 case $host_cpu in5110 hppa*64*|ia64*)5111 # +Z the default5112 ;;5113 *)5114 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'5115 ;;5116 esac5117 ;;5118 5119 *)5120 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'5121 ;;5122 esac5123 else5124 # PORTME Check for flag to pass linker flags through the system compiler.5125 case $host_os in5126 aix*)5127 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5128 if test "$host_cpu" = ia64; then5129 # AIX 5 now supports IA64 processor5130 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5131 else5132 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'5133 fi5134 ;;5135 darwin*)5136 # PIC is the default on this platform5137 # Common symbols not allowed in MH_DYLIB files5138 case $cc_basename in5139 xlc*)5140 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'5141 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5142 ;;5143 esac5144 ;;5145 5146 mingw* | pw32* | os2*)5147 # This hack is so that the source file can tell whether it is being5148 # built for inclusion in a dll (and should export symbols for example).5149 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'5150 ;;5151 5152 hpux9* | hpux10* | hpux11*)5153 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but5155 # not for PA HP-UX.5156 case $host_cpu in5157 hppa*64*|ia64*)5158 # +Z the default5159 ;;5160 *)5161 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'5162 ;;5163 esac5164 # Is there a better lt_prog_compiler_static that works with the bundled CC?5165 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'5166 ;;5167 5168 irix5* | irix6* | nonstopux*)5169 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5170 # PIC (with -KPIC) is the default.5171 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'5172 ;;5173 5174 newsos6)5175 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5176 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5177 ;;5178 5179 linux*)5180 case $cc_basename in5181 icc* | ecc*)5182 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5183 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5184 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'5185 ;;5186 pgcc* | pgf77* | pgf90* | pgf95*)5187 # Portland Group compilers (*not* the Pentium gcc compiler,5188 # which looks to be a dead project)5189 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5190 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'5191 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5192 ;;5193 ccc*)5194 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5195 # All Alpha code is PIC.5196 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'5197 ;;5198 esac5199 ;;5200 5201 osf3* | osf4* | osf5*)5202 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5203 # All OSF/1 code is PIC.5204 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'5205 ;;5206 5207 sco3.2v5*)5208 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'5209 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'5210 ;;5211 5212 solaris*)5213 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5214 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5215 case $cc_basename in5216 f77* | f90* | f95*)5217 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;5218 *)5219 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;5220 esac5221 ;;5222 5223 sunos4*)5224 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '5225 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'5226 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5227 ;;5228 5229 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)5230 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5231 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5232 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5233 ;;5234 5235 sysv4*MP*)5236 if test -d /usr/nec ;then5237 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'5238 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5239 fi5240 ;;5241 5242 unicos*)5243 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5244 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no5245 ;;5246 5247 uts4*)5248 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'5249 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5250 ;;5251 5252 *)5253 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no5254 ;;5255 esac5256 fi5257 ])5258 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])5259 5260 #5261 # Check to make sure the PIC flag actually works.5262 #5263 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then5264 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],5265 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),5266 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],5267 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in5268 "" | " "*) ;;5269 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;5270 esac],5271 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=5272 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])5273 fi5274 case $host_os in5275 # For platforms which do not support PIC, -DPIC is meaningless:5276 *djgpp*)5277 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=5278 ;;5279 *)5280 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"5281 ;;5282 esac5283 ])5284 5285 5286 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])5287 # ------------------------------------5288 # See if the linker supports building shared libraries.5289 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],5290 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])5291 ifelse([$1],[CXX],[5292 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'5293 case $host_os in5294 aix4* | aix5*)5295 # If we're using GNU nm, then we don't want the "-C" option.5296 # -C means demangle to AIX nm, but means don't demangle with GNU nm5297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then5298 _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'5299 else5300 _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'5301 fi5302 ;;5303 pw32*)5304 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"5305 ;;5306 cygwin* | mingw*)5307 _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'5308 ;;5309 *)5310 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'5311 ;;5312 esac5313 ],[5314 runpath_var=5315 _LT_AC_TAGVAR(allow_undefined_flag, $1)=5316 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no5317 _LT_AC_TAGVAR(archive_cmds, $1)=5318 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=5319 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=5320 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=5321 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=5322 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=5323 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=5324 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=5325 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=5326 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=5327 _LT_AC_TAGVAR(hardcode_direct, $1)=no5328 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no5329 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported5330 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown5331 _LT_AC_TAGVAR(hardcode_automatic, $1)=no5332 _LT_AC_TAGVAR(module_cmds, $1)=5333 _LT_AC_TAGVAR(module_expsym_cmds, $1)=5334 _LT_AC_TAGVAR(always_export_symbols, $1)=no5335 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'5336 # include_expsyms should be a list of space-separated symbols to be *always*5337 # included in the symbol list5338 _LT_AC_TAGVAR(include_expsyms, $1)=5339 # exclude_expsyms can be an extended regexp of symbols to exclude5340 # it will be wrapped by ` (' and `)$', so one must not match beginning or5341 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',5342 # as well as any symbol that contains `d'.5343 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"5344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out5345 # platforms (ab)use it in PIC code, but their linkers get confused if5346 # the symbol is explicitly referenced. Since portable code cannot5347 # rely on this symbol name, it's probably fine to never include it in5348 # preloaded symbol tables.5349 extract_expsyms_cmds=5350 # Just being paranoid about ensuring that cc_basename is set.5351 _LT_CC_BASENAME([$compiler])5352 case $host_os in5353 cygwin* | mingw* | pw32*)5354 # FIXME: the MSVC++ port hasn't been tested in a loooong time5355 # When not using gcc, we currently assume that we are using5356 # Microsoft Visual C++.5357 if test "$GCC" != yes; then5358 with_gnu_ld=no5359 fi5360 ;;5361 openbsd*)5362 with_gnu_ld=no5363 ;;5364 esac5365 5366 _LT_AC_TAGVAR(ld_shlibs, $1)=yes5367 if test "$with_gnu_ld" = yes; then5368 # If archive_cmds runs LD, not CC, wlarc should be empty5369 wlarc='${wl}'5370 5371 # Set some defaults for GNU ld with shared library support. These5372 # are reset later if shared libraries are not supported. Putting them5373 # here allows them to be overridden if necessary.5374 runpath_var=LD_RUN_PATH5375 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'5376 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'5377 # ancient GNU ld didn't support --whole-archive et. al.5378 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then5379 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'5380 else5381 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=5382 fi5383 supports_anon_versioning=no5384 case `$LD -v 2>/dev/null` in5385 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.115386 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...5387 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...5388 *\ 2.11.*) ;; # other 2.11 versions5389 *) supports_anon_versioning=yes ;;5390 esac5391 5392 # See if GNU ld supports shared libraries.5393 case $host_os in5394 aix3* | aix4* | aix5*)5395 # On AIX/PPC, the GNU linker is very broken5396 if test "$host_cpu" != ia64; then5397 _LT_AC_TAGVAR(ld_shlibs, $1)=no5398 cat <<EOF 1>&25399 5400 *** Warning: the GNU linker, at least up to release 2.9.1, is reported5401 *** to be unable to reliably create shared libraries on AIX.5402 *** Therefore, libtool is disabling shared libraries support. If you5403 *** really care for shared libraries, you may want to modify your PATH5404 *** so that a non-GNU linker is found, and then restart.5405 5406 EOF5407 fi5408 ;;5409 5410 amigaos*)5411 _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)'5412 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5413 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5414 5415 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports5416 # that the semantics of dynamic libraries on AmigaOS, at least up5417 # to version 4, is to share data among multiple programs linked5418 # with the same dynamic library. Since this doesn't match the5419 # behavior of shared libraries on other platforms, we can't use5420 # them.5421 _LT_AC_TAGVAR(ld_shlibs, $1)=no5422 ;;5423 5424 beos*)5425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5426 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported5427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc5428 # support --undefined. This deserves some investigation. FIXME5429 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5430 else5431 _LT_AC_TAGVAR(ld_shlibs, $1)=no5432 fi5433 ;;5434 5435 cygwin* | mingw* | pw32*)5436 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,5437 # as there is no search path for DLLs.5438 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5439 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported5440 _LT_AC_TAGVAR(always_export_symbols, $1)=no5441 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes5442 _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'5443 5444 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then5445 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'5446 # If the export-symbols file already is a .def file (1st line5447 # is EXPORTS), use it as is; otherwise, prepend...5448 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then5449 cp $export_symbols $output_objdir/$soname.def;5450 else5451 echo EXPORTS > $output_objdir/$soname.def;5452 cat $export_symbols >> $output_objdir/$soname.def;5453 fi~5454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'5455 else5456 _LT_AC_TAGVAR(ld_shlibs, $1)=no5457 fi5458 ;;5459 5460 linux*)5461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5462 tmp_addflag=5463 case $cc_basename,$host_cpu in5464 pgcc*) # Portland Group C compiler5465 _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'5466 tmp_addflag=' $pic_flag'5467 ;;5468 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers5469 _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'5470 tmp_addflag=' $pic_flag -Mnomain' ;;5471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia645472 tmp_addflag=' -i_dynamic' ;;5473 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia645474 tmp_addflag=' -i_dynamic -nofor_main' ;;5475 ifc* | ifort*) # Intel Fortran compiler5476 tmp_addflag=' -nofor_main' ;;5477 esac5478 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5479 5480 if test $supports_anon_versioning = yes; then5481 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~5482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~5483 $echo "local: *; };" >> $output_objdir/$libname.ver~5484 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5485 fi5486 else5487 _LT_AC_TAGVAR(ld_shlibs, $1)=no5488 fi5489 ;;5490 5491 netbsd*)5492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then5493 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'5494 wlarc=5495 else5496 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5497 _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'5498 fi5499 ;;5500 5501 solaris* | sysv5*)5502 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then5503 _LT_AC_TAGVAR(ld_shlibs, $1)=no5504 cat <<EOF 1>&25505 5506 *** Warning: The releases 2.8.* of the GNU linker cannot reliably5507 *** create shared libraries on Solaris systems. Therefore, libtool5508 *** is disabling shared libraries support. We urge you to upgrade GNU5509 *** binutils to release 2.9.1 or newer. Another option is to modify5510 *** your PATH or compiler configuration so that the native linker is5511 *** used, and then restart.5512 5513 EOF5514 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5515 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5516 _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'5517 else5518 _LT_AC_TAGVAR(ld_shlibs, $1)=no5519 fi5520 ;;5521 5522 sunos4*)5523 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'5524 wlarc=5525 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5526 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5527 ;;5528 5529 *)5530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5531 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5532 _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'5533 else5534 _LT_AC_TAGVAR(ld_shlibs, $1)=no5535 fi5536 ;;5537 esac5538 5539 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then5540 runpath_var=5541 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=5542 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=5543 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=5544 fi5545 else5546 # PORTME fill in a description of your system's linker (not GNU ld)5547 case $host_os in5548 aix3*)5549 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported5550 _LT_AC_TAGVAR(always_export_symbols, $1)=yes5551 _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'5552 # Note: this linker hardcodes the directories in LIBPATH if there5553 # are no directories specified by -L.5554 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5555 if test "$GCC" = yes && test -z "$link_static_flag"; then5556 # Neither direct hardcoding nor static linking is supported with a5557 # broken collect2.5558 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported5559 fi5560 ;;5561 5562 aix4* | aix5*)5563 if test "$host_cpu" = ia64; then5564 # On IA64, the linker does run time linking by default, so we don't5565 # have to do anything special.5566 aix_use_runtimelinking=no5567 exp_sym_flag='-Bexport'5568 no_entry_flag=""5569 else5570 # If we're using GNU nm, then we don't want the "-C" option.5571 # -C means demangle to AIX nm, but means don't demangle with GNU nm5572 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then5573 _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'5574 else5575 _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'5576 fi5577 aix_use_runtimelinking=no5578 5579 # Test if we are trying to use run time linking or normal5580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we5581 # need to do runtime linking.5582 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)5583 for ld_flag in $LDFLAGS; do5584 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then5585 aix_use_runtimelinking=yes5586 break5587 fi5588 done5589 esac5590 5591 exp_sym_flag='-bexport'5592 no_entry_flag='-bnoentry'5593 fi5594 5595 # When large executables or shared objects are built, AIX ld can5596 # have problems creating the table of contents. If linking a library5597 # or program results in "error TOC overflow" add -mminimal-toc to5598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not5599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.5600 5601 _LT_AC_TAGVAR(archive_cmds, $1)=''5602 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5603 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'5604 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes5605 5606 if test "$GCC" = yes; then5607 case $host_os in aix4.[[012]]|aix4.[[012]].*)5608 # We only want to do this on AIX 4.2 and lower, the check5609 # below for broken collect2 doesn't work under 4.3+5610 collect2name=`${CC} -print-prog-name=collect2`5611 if test -f "$collect2name" && \5612 strings "$collect2name" | grep resolve_lib_name >/dev/null5613 then5614 # We have reworked collect25615 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5616 else5617 # We have old collect25618 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported5619 # It fails to find uninstalled libraries when the uninstalled5620 # path is not listed in the libpath. Setting hardcode_minus_L5621 # to unsupported forces relinking5622 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5623 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5624 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=5625 fi5626 esac5627 shared_flag='-shared'5628 if test "$aix_use_runtimelinking" = yes; then5629 shared_flag="$shared_flag "'${wl}-G'5630 fi5631 else5632 # not using gcc5633 if test "$host_cpu" = ia64; then5634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release5635 # chokes on -Wl,-G. The following line is correct:5636 shared_flag='-G'5637 else5638 if test "$aix_use_runtimelinking" = yes; then5639 shared_flag='${wl}-G'5640 else5641 shared_flag='${wl}-bM:SRE'5642 fi5643 fi5644 fi5645 5646 # It seems that -bexpall does not export symbols beginning with5647 # underscore (_), so it is better to generate a list of symbols to export.5648 _LT_AC_TAGVAR(always_export_symbols, $1)=yes5649 if test "$aix_use_runtimelinking" = yes; then5650 # Warning - without using the other runtime loading flags (-brtl),5651 # -berok will link without error, but may produce a broken library.5652 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'5653 # Determine the default libpath from the value encoded in an empty executable.5654 _LT_AC_SYS_LIBPATH_AIX5655 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"5656 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"5657 else5658 if test "$host_cpu" = ia64; then5659 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'5660 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"5661 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"5662 else5663 # Determine the default libpath from the value encoded in an empty executable.5664 _LT_AC_SYS_LIBPATH_AIX5665 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"5666 # Warning - without using the other run time loading flags,5667 # -berok will link without error, but may produce a broken library.5668 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'5669 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'5670 # -bexpall does not export symbols beginning with underscore (_)5671 _LT_AC_TAGVAR(always_export_symbols, $1)=yes5672 # Exported symbols can be pulled into shared objects from archives5673 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '5674 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes5675 # This is similar to how AIX traditionally builds its shared libraries.5676 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'5677 fi5678 fi5679 ;;5680 5681 amigaos*)5682 _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)'5683 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5684 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5685 # see comment about different semantics on the GNU ld section5686 _LT_AC_TAGVAR(ld_shlibs, $1)=no5687 ;;5688 5689 bsdi[[45]]*)5690 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic5691 ;;5692 5693 cygwin* | mingw* | pw32*)5694 # When not using gcc, we currently assume that we are using5695 # Microsoft Visual C++.5696 # hardcode_libdir_flag_spec is actually meaningless, as there is5697 # no search path for DLLs.5698 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '5699 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported5700 # Tell ltmain to make .lib files, not .a files.5701 libext=lib5702 # Tell ltmain to make .dll files, not .so files.5703 shrext_cmds=".dll"5704 # FIXME: Setting linknames here is a bad hack.5705 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='5706 # The linker will automatically build a .lib file if we build a DLL.5707 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'5708 # FIXME: Should let the user specify the lib program.5709 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'5710 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'5711 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes5712 ;;5713 5714 darwin* | rhapsody*)5715 case $host_os in5716 rhapsody* | darwin1.[[012]])5717 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'5718 ;;5719 *) # Darwin 1.3 on5720 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then5721 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'5722 else5723 case ${MACOSX_DEPLOYMENT_TARGET} in5724 10.[[012]])5725 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'5726 ;;5727 10.*)5728 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'5729 ;;5730 esac5731 fi5732 ;;5733 esac5734 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no5735 _LT_AC_TAGVAR(hardcode_direct, $1)=no5736 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes5737 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported5738 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''5739 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes5740 if test "$GCC" = yes ; then5741 output_verbose_link_cmd='echo'5742 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'5743 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'5744 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds5745 _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}'5746 _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}'5747 else5748 case $cc_basename in5749 xlc*)5750 output_verbose_link_cmd='echo'5751 _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'5752 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'5753 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds5754 _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}'5755 _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}'5756 ;;5757 *)5758 _LT_AC_TAGVAR(ld_shlibs, $1)=no5759 ;;5760 esac5761 fi5762 ;;5763 5764 dgux*)5765 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'5766 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5767 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5768 ;;5769 5770 freebsd1*)5771 _LT_AC_TAGVAR(ld_shlibs, $1)=no5772 ;;5773 5774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor5775 # support. Future versions do this automatically, but an explicit c++rt0.o5776 # does not break anything, and helps significantly (at the cost of a little5777 # extra space).5778 freebsd2.2*)5779 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'5780 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'5781 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5782 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5783 ;;5784 5785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.5786 freebsd2*)5787 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'5788 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5789 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5790 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5791 ;;5792 5793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.5794 freebsd* | kfreebsd*-gnu | dragonfly*)5795 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'5796 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'5797 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5798 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5799 ;;5800 5801 hpux9*)5802 if test "$GCC" = yes; then5803 _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'5804 else5805 _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'5806 fi5807 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'5808 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5809 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5810 5811 # hardcode_minus_L: Not really in the search PATH,5812 # but as the default location of the library.5813 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5814 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'5815 ;;5816 5817 hpux10* | hpux11*)5818 if test "$GCC" = yes -a "$with_gnu_ld" = no; then5819 case $host_cpu in5820 hppa*64*|ia64*)5821 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5822 ;;5823 *)5824 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5825 ;;5826 esac5827 else5828 case $host_cpu in5829 hppa*64*|ia64*)5830 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'5831 ;;5832 *)5833 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'5834 ;;5835 esac5836 fi5837 if test "$with_gnu_ld" = no; then5838 case $host_cpu in5839 hppa*64*)5840 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'5841 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'5842 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5843 _LT_AC_TAGVAR(hardcode_direct, $1)=no5844 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5845 ;;5846 ia64*)5847 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5848 _LT_AC_TAGVAR(hardcode_direct, $1)=no5849 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5850 5851 # hardcode_minus_L: Not really in the search PATH,5852 # but as the default location of the library.5853 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5854 ;;5855 *)5856 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'5857 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5858 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5859 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'5860 5861 # hardcode_minus_L: Not really in the search PATH,5862 # but as the default location of the library.5863 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5864 ;;5865 esac5866 fi5867 ;;5868 5869 irix5* | irix6* | nonstopux*)5870 if test "$GCC" = yes; then5871 _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'5872 else5873 _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'5874 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'5875 fi5876 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5877 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5878 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes5879 ;;5880 5881 netbsd*)5882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then5883 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out5884 else5885 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF5886 fi5887 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'5888 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5889 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5890 ;;5891 5892 newsos6)5893 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'5894 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5895 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5896 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5897 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5898 ;;5899 5900 openbsd*)5901 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5902 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then5904 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'5905 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'5906 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'5907 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'5908 else5909 case $host_os in5910 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)5911 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'5912 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'5913 ;;5914 *)5915 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'5916 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'5917 ;;5918 esac5919 fi5920 ;;5921 5922 os2*)5923 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5924 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5925 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported5926 _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'5927 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'5928 ;;5929 5930 osf3*)5931 if test "$GCC" = yes; then5932 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'5933 _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'5934 else5935 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'5936 _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'5937 fi5938 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5939 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5940 ;;5941 5942 osf4* | osf5*) # as osf3* with the addition of -msym flag5943 if test "$GCC" = yes; then5944 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'5945 _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'5946 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5947 else5948 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'5949 _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'5950 _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~5951 $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'5952 5953 # Both c and cxx compiler support -rpath directly5954 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'5955 fi5956 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5957 ;;5958 5959 sco3.2v5*)5960 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'5961 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5962 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'5963 runpath_var=LD_RUN_PATH5964 hardcode_runpath_var=yes5965 ;;5966 5967 solaris*)5968 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'5969 if test "$GCC" = yes; then5970 wlarc='${wl}'5971 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5972 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~5973 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'5974 else5975 wlarc=''5976 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'5977 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~5978 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'5979 fi5980 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'5981 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5982 case $host_os in5983 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;5984 *)5985 # The compiler driver will combine linker options so we5986 # cannot just pass the convience library names through5987 # without $wl, iff we do not link with $LD.5988 # Luckily, gcc supports the same syntax we need for Sun Studio.5989 # Supported since Solaris 2.6 (maybe 2.5.1?)5990 case $wlarc in5991 '')5992 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;5993 *)5994 _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' ;;5995 esac ;;5996 esac5997 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes5998 ;;5999 6000 sunos4*)6001 if test "x$host_vendor" = xsequent; then6002 # Use $CC to link under sequent, because it throws in some extra .o6003 # files that make .init and .fini sections work.6004 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'6005 else6006 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'6007 fi6008 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'6009 _LT_AC_TAGVAR(hardcode_direct, $1)=yes6010 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes6011 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6012 ;;6013 6014 sysv4)6015 case $host_vendor in6016 sni)6017 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6018 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???6019 ;;6020 siemens)6021 ## LD is ld it makes a PLAMLIB6022 ## CC just makes a GrossModule.6023 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'6024 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'6025 _LT_AC_TAGVAR(hardcode_direct, $1)=no6026 ;;6027 motorola)6028 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6029 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie6030 ;;6031 esac6032 runpath_var='LD_RUN_PATH'6033 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6034 ;;6035 6036 sysv4.3*)6037 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6038 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6039 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'6040 ;;6041 6042 sysv4*MP*)6043 if test -d /usr/nec; then6044 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6045 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6046 runpath_var=LD_RUN_PATH6047 hardcode_runpath_var=yes6048 _LT_AC_TAGVAR(ld_shlibs, $1)=yes6049 fi6050 ;;6051 6052 sysv4.2uw2*)6053 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'6054 _LT_AC_TAGVAR(hardcode_direct, $1)=yes6055 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no6056 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6057 hardcode_runpath_var=yes6058 runpath_var=LD_RUN_PATH6059 ;;6060 6061 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)6062 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'6063 if test "$GCC" = yes; then6064 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'6065 else6066 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'6067 fi6068 runpath_var='LD_RUN_PATH'6069 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6070 ;;6071 6072 sysv5*)6073 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'6074 # $CC -shared without GNU ld will not create a library from C++6075 # object files and a static libstdc++, better avoid it by now6076 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'6077 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~6078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'6079 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=6080 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6081 runpath_var='LD_RUN_PATH'6082 ;;6083 6084 uts4*)6085 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6086 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'6087 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no6088 ;;6089 6090 *)6091 _LT_AC_TAGVAR(ld_shlibs, $1)=no6092 ;;6093 esac6094 fi6095 ])6096 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])6097 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no6098 6099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"6100 if test "$GCC" = yes; then6101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"6102 fi6103 6104 #6105 # Do we need to explicitly link libc?6106 #6107 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in6108 x|xyes)6109 # Assume -lc should be added6110 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes6111 6112 if test "$enable_shared" = yes && test "$GCC" = yes; then6113 case $_LT_AC_TAGVAR(archive_cmds, $1) in6114 *'~'*)6115 # FIXME: we may have to deal with multi-command sequences.6116 ;;6117 '$CC '*)6118 # Test whether the compiler implicitly links with -lc since on some6119 # systems, -lgcc has to come before -lc. If gcc already passes -lc6120 # to ld, don't add -lc before -lgcc.6121 AC_MSG_CHECKING([whether -lc should be explicitly linked in])6122 $rm conftest*6123 printf "$lt_simple_compile_test_code" > conftest.$ac_ext6124 6125 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then6126 soname=conftest6127 lib=conftest6128 libobjs=conftest.$ac_objext6129 deplibs=6130 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)6131 compiler_flags=-v6132 linker_flags=-v6133 verstring=6134 output_objdir=.6135 libname=conftest6136 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)6137 _LT_AC_TAGVAR(allow_undefined_flag, $1)=6138 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)6139 then6140 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no6141 else6142 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes6143 fi6144 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag6145 else6146 cat conftest.err 1>&56147 fi6148 $rm conftest*6149 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])6150 ;;6151 esac6152 fi6153 ;;6154 esac6155 ])# AC_LIBTOOL_PROG_LD_SHLIBS6156 6157 6158 # _LT_AC_FILE_LTDLL_C6159 # -------------------6160 # Be careful that the start marker always follows a newline.6161 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [6162 # /* ltdll.c starts here */6163 # #define WIN32_LEAN_AND_MEAN6164 # #include <windows.h>6165 # #undef WIN32_LEAN_AND_MEAN6166 # #include <stdio.h>6167 #6168 # #ifndef __CYGWIN__6169 # # ifdef __CYGWIN32__6170 # # define __CYGWIN__ __CYGWIN32__6171 # # endif6172 # #endif6173 #6174 # #ifdef __cplusplus6175 # extern "C" {6176 # #endif6177 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);6178 # #ifdef __cplusplus6179 # }6180 # #endif6181 #6182 # #ifdef __CYGWIN__6183 # #include <cygwin/cygwin_dll.h>6184 # DECLARE_CYGWIN_DLL( DllMain );6185 # #endif6186 # HINSTANCE __hDllInstance_base;6187 #6188 # BOOL APIENTRY6189 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)6190 # {6191 # __hDllInstance_base = hInst;6192 # return TRUE;6193 # }6194 # /* ltdll.c ends here */6195 ])# _LT_AC_FILE_LTDLL_C6196 6197 6198 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])6199 # ---------------------------------6200 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])6201 6202 6203 # old names6204 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])6205 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])6206 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])6207 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])6208 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])6209 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])6210 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])6211 6212 # This is just to silence aclocal about the macro not being used6213 ifelse([AC_DISABLE_FAST_INSTALL])6214 6215 AC_DEFUN([LT_AC_PROG_GCJ],6216 [AC_CHECK_TOOL(GCJ, gcj, no)6217 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"6218 AC_SUBST(GCJFLAGS)6219 ])6220 6221 AC_DEFUN([LT_AC_PROG_RC],6222 [AC_CHECK_TOOL(RC, windres, no)6223 ])6224 6225 # NOTE: This macro has been submitted for inclusion into #6226 # GNU Autoconf as AC_PROG_SED. When it is available in #6227 # a released version of Autoconf we should remove this #6228 # macro and use it instead. #6229 # LT_AC_PROG_SED6230 # --------------6231 # Check for a fully-functional sed program, that truncates6232 # as few characters as possible. Prefer GNU sed if found.6233 AC_DEFUN([LT_AC_PROG_SED],6234 [AC_MSG_CHECKING([for a sed that does not truncate output])6235 AC_CACHE_VAL(lt_cv_path_SED,6236 [# Loop through the user's path and test for sed and gsed.6237 # Then use that list of sed's as ones to test for truncation.6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6239 for as_dir in $PATH6240 do6241 IFS=$as_save_IFS6242 test -z "$as_dir" && as_dir=.6243 for lt_ac_prog in sed gsed; do6244 for ac_exec_ext in '' $ac_executable_extensions; do6245 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then6246 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"6247 fi6248 done6249 done6250 done6251 lt_ac_max=06252 lt_ac_count=06253 # Add /usr/xpg4/bin/sed as it is typically found on Solaris6254 # along with /bin/sed that truncates output.6255 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do6256 test ! -f $lt_ac_sed && continue6257 cat /dev/null > conftest.in6258 lt_ac_count=06259 echo $ECHO_N "0123456789$ECHO_C" >conftest.in6260 # Check for GNU sed and select it if it is found.6261 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then6262 lt_cv_path_SED=$lt_ac_sed6263 break6264 fi6265 while true; do6266 cat conftest.in conftest.in >conftest.tmp6267 mv conftest.tmp conftest.in6268 cp conftest.in conftest.nl6269 echo >>conftest.nl6270 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break6271 cmp -s conftest.out conftest.nl || break6272 # 10000 chars as input seems more than enough6273 test $lt_ac_count -gt 10 && break6274 lt_ac_count=`expr $lt_ac_count + 1`6275 if test $lt_ac_count -gt $lt_ac_max; then6276 lt_ac_max=$lt_ac_count6277 lt_cv_path_SED=$lt_ac_sed6278 fi6279 done6280 done6281 ])6282 SED=$lt_cv_path_SED6283 AC_MSG_RESULT([$SED])6284 ])6285 13 6286 14 # -*- Autoconf -*-
Note: See TracChangeset
for help on using the changeset viewer.