1dnl aclocal.m4t generated automatically by aclocal 1.4-p6 2 3dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. 4dnl This file is free software; the Free Software Foundation 5dnl gives unlimited permission to copy and/or distribute it, 6dnl with or without modifications, as long as this notice is preserved. 7 8dnl This program is distributed in the hope that it will be useful, 9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11dnl PARTICULAR PURPOSE. 12 13# Do all the work for Automake. This macro actually does too much -- 14# some checks are only needed if your package does certain things. 15# But this isn't really a big deal. 16 17# serial 1 18 19dnl Usage: 20dnl AM_INIT_AUTOMAKE(package,version, [no-define]) 21 22AC_DEFUN([AM_INIT_AUTOMAKE], 23[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 24AC_REQUIRE([AC_PROG_INSTALL]) 25PACKAGE=[$1] 26AC_SUBST(PACKAGE) 27VERSION=[$2] 28AC_SUBST(VERSION) 29dnl test to see if srcdir already configured 30if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 31 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 32fi 33ifelse([$3],, 34AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 35AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) 36AC_REQUIRE([AM_SANITY_CHECK]) 37AC_REQUIRE([AC_ARG_PROGRAM]) 38dnl FIXME This is truly gross. 39missing_dir=`cd $ac_aux_dir && pwd` 40AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) 41AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) 42AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) 43AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) 44AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) 45AC_REQUIRE([AC_PROG_MAKE_SET])]) 46 47# Copyright 2002 Free Software Foundation, Inc. 48 49# This program is free software; you can redistribute it and/or modify 50# it under the terms of the GNU General Public License as published by 51# the Free Software Foundation; either version 2, or (at your option) 52# any later version. 53 54# This program is distributed in the hope that it will be useful, 55# but WITHOUT ANY WARRANTY; without even the implied warranty of 56# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 57# GNU General Public License for more details. 58 59# You should have received a copy of the GNU General Public License 60# along with this program; if not, write to the Free Software 61# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 62 63# AM_AUTOMAKE_VERSION(VERSION) 64# ---------------------------- 65# Automake X.Y traces this macro to ensure aclocal.m4 has been 66# generated from the m4 files accompanying Automake X.Y. 67AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) 68 69# AM_SET_CURRENT_AUTOMAKE_VERSION 70# ------------------------------- 71# Call AM_AUTOMAKE_VERSION so it can be traced. 72# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 73AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 74 [AM_AUTOMAKE_VERSION([1.4-p6])]) 75 76# 77# Check to make sure that the build environment is sane. 78# 79 80AC_DEFUN([AM_SANITY_CHECK], 81[AC_MSG_CHECKING([whether build environment is sane]) 82# Just in case 83sleep 1 84echo timestamp > conftestfile 85# Do `set' in a subshell so we don't clobber the current shell's 86# arguments. Must try -L first in case configure is actually a 87# symlink; some systems play weird games with the mod time of symlinks 88# (eg FreeBSD returns the mod time of the symlink's containing 89# directory). 90if ( 91 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 92 if test "[$]*" = "X"; then 93 # -L didn't work. 94 set X `ls -t $srcdir/configure conftestfile` 95 fi 96 if test "[$]*" != "X $srcdir/configure conftestfile" \ 97 && test "[$]*" != "X conftestfile $srcdir/configure"; then 98 99 # If neither matched, then we have a broken ls. This can happen 100 # if, for instance, CONFIG_SHELL is bash and it inherits a 101 # broken ls alias from the environment. This has actually 102 # happened. Such a system could not be considered "sane". 103 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 104alias in your environment]) 105 fi 106 107 test "[$]2" = conftestfile 108 ) 109then 110 # Ok. 111 : 112else 113 AC_MSG_ERROR([newly created file is older than distributed files! 114Check your system clock]) 115fi 116rm -f conftest* 117AC_MSG_RESULT(yes)]) 118 119dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) 120dnl The program must properly implement --version. 121AC_DEFUN([AM_MISSING_PROG], 122[AC_MSG_CHECKING(for working $2) 123# Run test in a subshell; some versions of sh will print an error if 124# an executable is not found, even if stderr is redirected. 125# Redirect stdin to placate older versions of autoconf. Sigh. 126if ($2 --version) < /dev/null > /dev/null 2>&1; then 127 $1=$2 128 AC_MSG_RESULT(found) 129else 130 $1="$3/missing $2" 131 AC_MSG_RESULT(missing) 132fi 133AC_SUBST($1)]) 134 135# Like AC_CONFIG_HEADER, but automatically create stamp file. 136 137AC_DEFUN([AM_CONFIG_HEADER], 138[AC_PREREQ([2.12]) 139AC_CONFIG_HEADER([$1]) 140dnl When config.status generates a header, we must update the stamp-h file. 141dnl This file resides in the same directory as the config header 142dnl that is generated. We must strip everything past the first ":", 143dnl and everything past the last "/". 144AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl 145ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, 146<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, 147<<am_indx=1 148for am_file in <<$1>>; do 149 case " <<$>>CONFIG_HEADERS " in 150 *" <<$>>am_file "*<<)>> 151 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx 152 ;; 153 esac 154 am_indx=`expr "<<$>>am_indx" + 1` 155done<<>>dnl>>) 156changequote([,]))]) 157 158# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 159 160# serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL 161 162 163# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 164# ----------------------------------------------------------- 165# If this macro is not defined by Autoconf, define it here. 166m4_ifdef([AC_PROVIDE_IFELSE], 167 [], 168 [m4_define([AC_PROVIDE_IFELSE], 169 [m4_ifdef([AC_PROVIDE_$1], 170 [$2], [$3])])]) 171 172 173# AC_PROG_LIBTOOL 174# --------------- 175AC_DEFUN([AC_PROG_LIBTOOL], 176[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 177dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 178dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 179 AC_PROVIDE_IFELSE([AC_PROG_CXX], 180 [AC_LIBTOOL_CXX], 181 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 182 ])]) 183dnl And a similar setup for Fortran 77 support 184 AC_PROVIDE_IFELSE([AC_PROG_F77], 185 [AC_LIBTOOL_F77], 186 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 187])]) 188 189dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 190dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 191dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 192 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 193 [AC_LIBTOOL_GCJ], 194 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 195 [AC_LIBTOOL_GCJ], 196 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 197 [AC_LIBTOOL_GCJ], 198 [ifdef([AC_PROG_GCJ], 199 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 200 ifdef([A][M_PROG_GCJ], 201 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 202 ifdef([LT_AC_PROG_GCJ], 203 [define([LT_AC_PROG_GCJ], 204 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 205])])# AC_PROG_LIBTOOL 206 207 208# _AC_PROG_LIBTOOL 209# ---------------- 210AC_DEFUN([_AC_PROG_LIBTOOL], 211[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 212AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 213AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 214AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 215 216# This can be used to rebuild libtool when needed 217LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 218 219# Always use our own libtool. 220LIBTOOL='$(SHELL) $(top_builddir)/libtool' 221AC_SUBST(LIBTOOL)dnl 222 223# Prevent multiple expansion 224define([AC_PROG_LIBTOOL], []) 225])# _AC_PROG_LIBTOOL 226 227 228# AC_LIBTOOL_SETUP 229# ---------------- 230AC_DEFUN([AC_LIBTOOL_SETUP], 231[AC_PREREQ(2.50)dnl 232AC_REQUIRE([AC_ENABLE_SHARED])dnl 233AC_REQUIRE([AC_ENABLE_STATIC])dnl 234AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 235AC_REQUIRE([AC_CANONICAL_HOST])dnl 236AC_REQUIRE([AC_CANONICAL_BUILD])dnl 237AC_REQUIRE([AC_PROG_CC])dnl 238AC_REQUIRE([AC_PROG_LD])dnl 239AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 240AC_REQUIRE([AC_PROG_NM])dnl 241 242AC_REQUIRE([AC_PROG_LN_S])dnl 243AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 244# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 245AC_REQUIRE([AC_OBJEXT])dnl 246AC_REQUIRE([AC_EXEEXT])dnl 247dnl 248 249AC_LIBTOOL_SYS_MAX_CMD_LEN 250AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 251AC_LIBTOOL_OBJDIR 252 253AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 254_LT_AC_PROG_ECHO_BACKSLASH 255 256case $host_os in 257aix3*) 258 # AIX sometimes has problems with the GCC collect2 program. For some 259 # reason, if we set the COLLECT_NAMES environment variable, the problems 260 # vanish in a puff of smoke. 261 if test "X${COLLECT_NAMES+set}" != Xset; then 262 COLLECT_NAMES= 263 export COLLECT_NAMES 264 fi 265 ;; 266esac 267 268# Sed substitution that helps us do robust quoting. It backslashifies 269# metacharacters that are still active within double-quoted strings. 270Xsed='sed -e 1s/^X//' 271[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 272 273# Same as above, but do not quote variable references. 274[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 275 276# Sed substitution to delay expansion of an escaped shell variable in a 277# double_quote_subst'ed string. 278delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 279 280# Sed substitution to avoid accidental globbing in evaled expressions 281no_glob_subst='s/\*/\\\*/g' 282 283# Constants: 284rm="rm -f" 285 286# Global variables: 287default_ofile=libtool 288can_build_shared=yes 289 290# All known linkers require a `.a' archive for static linking (except MSVC, 291# which needs '.lib'). 292libext=a 293ltmain="$ac_aux_dir/ltmain.sh" 294ofile="$default_ofile" 295with_gnu_ld="$lt_cv_prog_gnu_ld" 296 297AC_CHECK_TOOL(AR, ar, false) 298AC_CHECK_TOOL(RANLIB, ranlib, :) 299AC_CHECK_TOOL(STRIP, strip, :) 300 301old_CC="$CC" 302old_CFLAGS="$CFLAGS" 303 304# Set sane defaults for various variables 305test -z "$AR" && AR=ar 306test -z "$AR_FLAGS" && AR_FLAGS=cru 307test -z "$AS" && AS=as 308test -z "$CC" && CC=cc 309test -z "$LTCC" && LTCC=$CC 310test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 311test -z "$DLLTOOL" && DLLTOOL=dlltool 312test -z "$LD" && LD=ld 313test -z "$LN_S" && LN_S="ln -s" 314test -z "$MAGIC_CMD" && MAGIC_CMD=file 315test -z "$NM" && NM=nm 316test -z "$SED" && SED=sed 317test -z "$OBJDUMP" && OBJDUMP=objdump 318test -z "$RANLIB" && RANLIB=: 319test -z "$STRIP" && STRIP=: 320test -z "$ac_objext" && ac_objext=o 321 322# Determine commands to create old-style static archives. 323old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 324old_postinstall_cmds='chmod 644 $oldlib' 325old_postuninstall_cmds= 326 327if test -n "$RANLIB"; then 328 case $host_os in 329 openbsd*) 330 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 331 ;; 332 *) 333 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 334 ;; 335 esac 336 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 337fi 338 339_LT_CC_BASENAME([$compiler]) 340 341# Only perform the check for file, if the check method requires it 342case $deplibs_check_method in 343file_magic*) 344 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 345 AC_PATH_MAGIC 346 fi 347 ;; 348esac 349 350AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 351AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 352enable_win32_dll=yes, enable_win32_dll=no) 353 354AC_ARG_ENABLE([libtool-lock], 355 [AC_HELP_STRING([--disable-libtool-lock], 356 [avoid locking (might break parallel builds)])]) 357test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 358 359AC_ARG_WITH([pic], 360 [AC_HELP_STRING([--with-pic], 361 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 362 [pic_mode="$withval"], 363 [pic_mode=default]) 364test -z "$pic_mode" && pic_mode=default 365 366# Use C for the default configuration in the libtool script 367tagname= 368AC_LIBTOOL_LANG_C_CONFIG 369_LT_AC_TAGCONFIG 370])# AC_LIBTOOL_SETUP 371 372 373# _LT_AC_SYS_COMPILER 374# ------------------- 375AC_DEFUN([_LT_AC_SYS_COMPILER], 376[AC_REQUIRE([AC_PROG_CC])dnl 377 378# If no C compiler was specified, use CC. 379LTCC=${LTCC-"$CC"} 380 381# If no C compiler flags were specified, use CFLAGS. 382LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 383 384# Allow CC to be a program name with arguments. 385compiler=$CC 386])# _LT_AC_SYS_COMPILER 387 388 389# _LT_CC_BASENAME(CC) 390# ------------------- 391# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 392AC_DEFUN([_LT_CC_BASENAME], 393[for cc_temp in $1""; do 394 case $cc_temp in 395 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 396 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 397 \-*) ;; 398 *) break;; 399 esac 400done 401cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 402]) 403 404 405# _LT_COMPILER_BOILERPLATE 406# ------------------------ 407# Check for compiler boilerplate output or warnings with 408# the simple compiler test code. 409AC_DEFUN([_LT_COMPILER_BOILERPLATE], 410[ac_outfile=conftest.$ac_objext 411printf "$lt_simple_compile_test_code" >conftest.$ac_ext 412eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 413_lt_compiler_boilerplate=`cat conftest.err` 414$rm conftest* 415])# _LT_COMPILER_BOILERPLATE 416 417 418# _LT_LINKER_BOILERPLATE 419# ---------------------- 420# Check for linker boilerplate output or warnings with 421# the simple link test code. 422AC_DEFUN([_LT_LINKER_BOILERPLATE], 423[ac_outfile=conftest.$ac_objext 424printf "$lt_simple_link_test_code" >conftest.$ac_ext 425eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 426_lt_linker_boilerplate=`cat conftest.err` 427$rm conftest* 428])# _LT_LINKER_BOILERPLATE 429 430 431# _LT_AC_SYS_LIBPATH_AIX 432# ---------------------- 433# Links a minimal program and checks the executable 434# for the system default hardcoded library path. In most cases, 435# this is /usr/lib:/lib, but when the MPI compilers are used 436# the location of the communication and MPI libs are included too. 437# If we don't find anything, use the default library path according 438# to the aix ld manual. 439AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 440[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 442}'` 443# Check for a 64-bit object if we didn't find anything. 444if 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; } 445}'`; fi],[]) 446if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 447])# _LT_AC_SYS_LIBPATH_AIX 448 449 450# _LT_AC_SHELL_INIT(ARG) 451# ---------------------- 452AC_DEFUN([_LT_AC_SHELL_INIT], 453[ifdef([AC_DIVERSION_NOTICE], 454 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 455 [AC_DIVERT_PUSH(NOTICE)]) 456$1 457AC_DIVERT_POP 458])# _LT_AC_SHELL_INIT 459 460 461# _LT_AC_PROG_ECHO_BACKSLASH 462# -------------------------- 463# Add some code to the start of the generated configure script which 464# will find an echo command which doesn't interpret backslashes. 465AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 466[_LT_AC_SHELL_INIT([ 467# Check that we are running under the correct shell. 468SHELL=${CONFIG_SHELL-/bin/sh} 469 470case X$ECHO in 471X*--fallback-echo) 472 # Remove one level of quotation (which was required for Make). 473 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 474 ;; 475esac 476 477echo=${ECHO-echo} 478if test "X[$]1" = X--no-reexec; then 479 # Discard the --no-reexec flag, and continue. 480 shift 481elif test "X[$]1" = X--fallback-echo; then 482 # Avoid inline document here, it may be left over 483 : 484elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 485 # Yippee, $echo works! 486 : 487else 488 # Restart under the correct shell. 489 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 490fi 491 492if test "X[$]1" = X--fallback-echo; then 493 # used as fallback echo 494 shift 495 cat <<EOF 496[$]* 497EOF 498 exit 0 499fi 500 501# The HP-UX ksh and POSIX shell print the target directory to stdout 502# if CDPATH is set. 503(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 504 505if test -z "$ECHO"; then 506if test "X${echo_test_string+set}" != Xset; then 507# find a string as large as possible, as long as the shell can cope with it 508 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 509 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 510 if (echo_test_string=`eval $cmd`) 2>/dev/null && 511 echo_test_string=`eval $cmd` && 512 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 513 then 514 break 515 fi 516 done 517fi 518 519if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 520 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 521 test "X$echo_testing_string" = "X$echo_test_string"; then 522 : 523else 524 # The Solaris, AIX, and Digital Unix default echo programs unquote 525 # backslashes. This makes it impossible to quote backslashes using 526 # echo "$something" | sed 's/\\/\\\\/g' 527 # 528 # So, first we look for a working echo in the user's PATH. 529 530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 531 for dir in $PATH /usr/ucb; do 532 IFS="$lt_save_ifs" 533 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 534 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 535 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 536 test "X$echo_testing_string" = "X$echo_test_string"; then 537 echo="$dir/echo" 538 break 539 fi 540 done 541 IFS="$lt_save_ifs" 542 543 if test "X$echo" = Xecho; then 544 # We didn't find a better echo, so look for alternatives. 545 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 546 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 547 test "X$echo_testing_string" = "X$echo_test_string"; then 548 # This shell has a builtin print -r that does the trick. 549 echo='print -r' 550 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 551 test "X$CONFIG_SHELL" != X/bin/ksh; then 552 # If we have ksh, try running configure again with it. 553 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 554 export ORIGINAL_CONFIG_SHELL 555 CONFIG_SHELL=/bin/ksh 556 export CONFIG_SHELL 557 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 558 else 559 # Try using printf. 560 echo='printf %s\n' 561 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 562 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 563 test "X$echo_testing_string" = "X$echo_test_string"; then 564 # Cool, printf works 565 : 566 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 567 test "X$echo_testing_string" = 'X\t' && 568 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 569 test "X$echo_testing_string" = "X$echo_test_string"; then 570 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 571 export CONFIG_SHELL 572 SHELL="$CONFIG_SHELL" 573 export SHELL 574 echo="$CONFIG_SHELL [$]0 --fallback-echo" 575 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 576 test "X$echo_testing_string" = 'X\t' && 577 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 578 test "X$echo_testing_string" = "X$echo_test_string"; then 579 echo="$CONFIG_SHELL [$]0 --fallback-echo" 580 else 581 # maybe with a smaller string... 582 prev=: 583 584 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 585 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 586 then 587 break 588 fi 589 prev="$cmd" 590 done 591 592 if test "$prev" != 'sed 50q "[$]0"'; then 593 echo_test_string=`eval $prev` 594 export echo_test_string 595 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 596 else 597 # Oops. We lost completely, so just stick with echo. 598 echo=echo 599 fi 600 fi 601 fi 602 fi 603fi 604fi 605 606# Copy echo and quote the copy suitably for passing to libtool from 607# the Makefile, instead of quoting the original, which is used later. 608ECHO=$echo 609if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 610 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 611fi 612 613AC_SUBST(ECHO) 614])])# _LT_AC_PROG_ECHO_BACKSLASH 615 616 617# _LT_AC_LOCK 618# ----------- 619AC_DEFUN([_LT_AC_LOCK], 620[AC_ARG_ENABLE([libtool-lock], 621 [AC_HELP_STRING([--disable-libtool-lock], 622 [avoid locking (might break parallel builds)])]) 623test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 624 625# Some flags need to be propagated to the compiler or linker for good 626# libtool support. 627case $host in 628ia64-*-hpux*) 629 # Find out which ABI we are using. 630 echo 'int i;' > conftest.$ac_ext 631 if AC_TRY_EVAL(ac_compile); then 632 case `/usr/bin/file conftest.$ac_objext` in 633 *ELF-32*) 634 HPUX_IA64_MODE="32" 635 ;; 636 *ELF-64*) 637 HPUX_IA64_MODE="64" 638 ;; 639 esac 640 fi 641 rm -rf conftest* 642 ;; 643*-*-irix6*) 644 # Find out which ABI we are using. 645 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 646 if AC_TRY_EVAL(ac_compile); then 647 if test "$lt_cv_prog_gnu_ld" = yes; then 648 case `/usr/bin/file conftest.$ac_objext` in 649 *32-bit*) 650 LD="${LD-ld} -melf32bsmip" 651 ;; 652 *N32*) 653 LD="${LD-ld} -melf32bmipn32" 654 ;; 655 *64-bit*) 656 LD="${LD-ld} -melf64bmip" 657 ;; 658 esac 659 else 660 case `/usr/bin/file conftest.$ac_objext` in 661 *32-bit*) 662 LD="${LD-ld} -32" 663 ;; 664 *N32*) 665 LD="${LD-ld} -n32" 666 ;; 667 *64-bit*) 668 LD="${LD-ld} -64" 669 ;; 670 esac 671 fi 672 fi 673 rm -rf conftest* 674 ;; 675 676x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 677 # Find out which ABI we are using. 678 echo 'int i;' > conftest.$ac_ext 679 if AC_TRY_EVAL(ac_compile); then 680 case `/usr/bin/file conftest.o` in 681 *32-bit*) 682 case $host in 683 x86_64-*linux*) 684 LD="${LD-ld} -m elf_i386" 685 ;; 686 ppc64-*linux*|powerpc64-*linux*) 687 LD="${LD-ld} -m elf32ppclinux" 688 ;; 689 s390x-*linux*) 690 LD="${LD-ld} -m elf_s390" 691 ;; 692 sparc64-*linux*) 693 LD="${LD-ld} -m elf32_sparc" 694 ;; 695 esac 696 ;; 697 *64-bit*) 698 case $host in 699 x86_64-*linux*) 700 LD="${LD-ld} -m elf_x86_64" 701 ;; 702 ppc*-*linux*|powerpc*-*linux*) 703 LD="${LD-ld} -m elf64ppc" 704 ;; 705 s390*-*linux*) 706 LD="${LD-ld} -m elf64_s390" 707 ;; 708 sparc*-*linux*) 709 LD="${LD-ld} -m elf64_sparc" 710 ;; 711 esac 712 ;; 713 esac 714 fi 715 rm -rf conftest* 716 ;; 717 718*-*-sco3.2v5*) 719 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 720 SAVE_CFLAGS="$CFLAGS" 721 CFLAGS="$CFLAGS -belf" 722 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 723 [AC_LANG_PUSH(C) 724 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 725 AC_LANG_POP]) 726 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 728 CFLAGS="$SAVE_CFLAGS" 729 fi 730 ;; 731sparc*-*solaris*) 732 # Find out which ABI we are using. 733 echo 'int i;' > conftest.$ac_ext 734 if AC_TRY_EVAL(ac_compile); then 735 case `/usr/bin/file conftest.o` in 736 *64-bit*) 737 case $lt_cv_prog_gnu_ld in 738 yes*) LD="${LD-ld} -m elf64_sparc" ;; 739 *) LD="${LD-ld} -64" ;; 740 esac 741 ;; 742 esac 743 fi 744 rm -rf conftest* 745 ;; 746 747AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 748[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 749 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 750 AC_CHECK_TOOL(AS, as, false) 751 AC_CHECK_TOOL(OBJDUMP, objdump, false) 752 ;; 753 ]) 754esac 755 756need_locks="$enable_libtool_lock" 757 758])# _LT_AC_LOCK 759 760 761# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 762# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 763# ---------------------------------------------------------------- 764# Check whether the given compiler option works 765AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 766[AC_REQUIRE([LT_AC_PROG_SED]) 767AC_CACHE_CHECK([$1], [$2], 768 [$2=no 769 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 771 lt_compiler_flag="$3" 772 # Insert the option either (1) after the last *FLAGS variable, or 773 # (2) before a word containing "conftest.", or (3) at the end. 774 # Note that $ac_compile itself does not contain backslashes and begins 775 # with a dollar sign (not a hyphen), so the echo should work correctly. 776 # The option is referenced via a variable to avoid confusing sed. 777 lt_compile=`echo "$ac_compile" | $SED \ 778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 779 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 780 -e 's:$: $lt_compiler_flag:'` 781 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 782 (eval "$lt_compile" 2>conftest.err) 783 ac_status=$? 784 cat conftest.err >&AS_MESSAGE_LOG_FD 785 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 786 if (exit $ac_status) && test -s "$ac_outfile"; then 787 # The compiler can only warn and ignore the option if not recognized 788 # So say no if there are warnings other than the usual output. 789 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 792 $2=yes 793 fi 794 fi 795 $rm conftest* 796]) 797 798if test x"[$]$2" = xyes; then 799 ifelse([$5], , :, [$5]) 800else 801 ifelse([$6], , :, [$6]) 802fi 803])# AC_LIBTOOL_COMPILER_OPTION 804 805 806# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 807# [ACTION-SUCCESS], [ACTION-FAILURE]) 808# ------------------------------------------------------------ 809# Check whether the given compiler option works 810AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 811[AC_CACHE_CHECK([$1], [$2], 812 [$2=no 813 save_LDFLAGS="$LDFLAGS" 814 LDFLAGS="$LDFLAGS $3" 815 printf "$lt_simple_link_test_code" > conftest.$ac_ext 816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 817 # The linker can only warn and ignore the option if not recognized 818 # So say no if there are warnings 819 if test -s conftest.err; then 820 # Append any errors to the config.log. 821 cat conftest.err 1>&AS_MESSAGE_LOG_FD 822 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 824 if diff conftest.exp conftest.er2 >/dev/null; then 825 $2=yes 826 fi 827 else 828 $2=yes 829 fi 830 fi 831 $rm conftest* 832 LDFLAGS="$save_LDFLAGS" 833]) 834 835if test x"[$]$2" = xyes; then 836 ifelse([$4], , :, [$4]) 837else 838 ifelse([$5], , :, [$5]) 839fi 840])# AC_LIBTOOL_LINKER_OPTION 841 842 843# AC_LIBTOOL_SYS_MAX_CMD_LEN 844# -------------------------- 845AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 846[# find the maximum length of command line arguments 847AC_MSG_CHECKING([the maximum length of command line arguments]) 848AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 849 i=0 850 teststring="ABCD" 851 852 case $build_os in 853 msdosdjgpp*) 854 # On DJGPP, this test can blow up pretty badly due to problems in libc 855 # (any single argument exceeding 2000 bytes causes a buffer overrun 856 # during glob expansion). Even if it were fixed, the result of this 857 # check would be larger than it should be. 858 lt_cv_sys_max_cmd_len=12288; # 12K is about right 859 ;; 860 861 gnu*) 862 # Under GNU Hurd, this test is not required because there is 863 # no limit to the length of command line arguments. 864 # Libtool will interpret -1 as no limit whatsoever 865 lt_cv_sys_max_cmd_len=-1; 866 ;; 867 868 cygwin* | mingw*) 869 # On Win9x/ME, this test blows up -- it succeeds, but takes 870 # about 5 minutes as the teststring grows exponentially. 871 # Worse, since 9x/ME are not pre-emptively multitasking, 872 # you end up with a "frozen" computer, even though with patience 873 # the test eventually succeeds (with a max line length of 256k). 874 # Instead, let's just punt: use the minimum linelength reported by 875 # all of the supported platforms: 8192 (on NT/2K/XP). 876 lt_cv_sys_max_cmd_len=8192; 877 ;; 878 879 amigaos*) 880 # On AmigaOS with pdksh, this test takes hours, literally. 881 # So we just punt and use a minimum line length of 8192. 882 lt_cv_sys_max_cmd_len=8192; 883 ;; 884 885 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 886 # This has been around since 386BSD, at least. Likely further. 887 if test -x /sbin/sysctl; then 888 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 889 elif test -x /usr/sbin/sysctl; then 890 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 891 else 892 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 893 fi 894 # And add a safety zone 895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 897 ;; 898 899 interix*) 900 # We know the value 262144 and hardcode it with a safety zone (like BSD) 901 lt_cv_sys_max_cmd_len=196608 902 ;; 903 904 osf*) 905 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 906 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 907 # nice to cause kernel panics so lets avoid the loop below. 908 # First set a reasonable default. 909 lt_cv_sys_max_cmd_len=16384 910 # 911 if test -x /sbin/sysconfig; then 912 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 913 *1*) lt_cv_sys_max_cmd_len=-1 ;; 914 esac 915 fi 916 ;; 917 sco3.2v5*) 918 lt_cv_sys_max_cmd_len=102400 919 ;; 920 sysv5* | sco5v6* | sysv4.2uw2*) 921 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 922 if test -n "$kargmax"; then 923 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 924 else 925 lt_cv_sys_max_cmd_len=32768 926 fi 927 ;; 928 *) 929 # If test is not a shell built-in, we'll probably end up computing a 930 # maximum length that is only half of the actual maximum length, but 931 # we can't tell. 932 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 933 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 934 = "XX$teststring") >/dev/null 2>&1 && 935 new_result=`expr "X$teststring" : ".*" 2>&1` && 936 lt_cv_sys_max_cmd_len=$new_result && 937 test $i != 17 # 1/2 MB should be enough 938 do 939 i=`expr $i + 1` 940 teststring=$teststring$teststring 941 done 942 teststring= 943 # Add a significant safety factor because C++ compilers can tack on massive 944 # amounts of additional arguments before passing them to the linker. 945 # It appears as though 1/2 is a usable value. 946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 947 ;; 948 esac 949]) 950if test -n $lt_cv_sys_max_cmd_len ; then 951 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 952else 953 AC_MSG_RESULT(none) 954fi 955])# AC_LIBTOOL_SYS_MAX_CMD_LEN 956 957 958# _LT_AC_CHECK_DLFCN 959# ------------------ 960AC_DEFUN([_LT_AC_CHECK_DLFCN], 961[AC_CHECK_HEADERS(dlfcn.h)dnl 962])# _LT_AC_CHECK_DLFCN 963 964 965# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 966# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 967# --------------------------------------------------------------------- 968AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 969[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 970if test "$cross_compiling" = yes; then : 971 [$4] 972else 973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 974 lt_status=$lt_dlunknown 975 cat > conftest.$ac_ext <<EOF 976[#line __oline__ "configure" 977#include "confdefs.h" 978 979#if HAVE_DLFCN_H 980#include <dlfcn.h> 981#endif 982 983#include <stdio.h> 984 985#ifdef RTLD_GLOBAL 986# define LT_DLGLOBAL RTLD_GLOBAL 987#else 988# ifdef DL_GLOBAL 989# define LT_DLGLOBAL DL_GLOBAL 990# else 991# define LT_DLGLOBAL 0 992# endif 993#endif 994 995/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 996 find out it does not work in some platform. */ 997#ifndef LT_DLLAZY_OR_NOW 998# ifdef RTLD_LAZY 999# define LT_DLLAZY_OR_NOW RTLD_LAZY 1000# else 1001# ifdef DL_LAZY 1002# define LT_DLLAZY_OR_NOW DL_LAZY 1003# else 1004# ifdef RTLD_NOW 1005# define LT_DLLAZY_OR_NOW RTLD_NOW 1006# else 1007# ifdef DL_NOW 1008# define LT_DLLAZY_OR_NOW DL_NOW 1009# else 1010# define LT_DLLAZY_OR_NOW 0 1011# endif 1012# endif 1013# endif 1014# endif 1015#endif 1016 1017#ifdef __cplusplus 1018extern "C" void exit (int); 1019#endif 1020 1021void fnord() { int i=42;} 1022int main () 1023{ 1024 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1025 int status = $lt_dlunknown; 1026 1027 if (self) 1028 { 1029 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1030 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1031 /* dlclose (self); */ 1032 } 1033 else 1034 puts (dlerror ()); 1035 1036 exit (status); 1037}] 1038EOF 1039 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1040 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1041 lt_status=$? 1042 case x$lt_status in 1043 x$lt_dlno_uscore) $1 ;; 1044 x$lt_dlneed_uscore) $2 ;; 1045 x$lt_dlunknown|x*) $3 ;; 1046 esac 1047 else : 1048 # compilation failed 1049 $3 1050 fi 1051fi 1052rm -fr conftest* 1053])# _LT_AC_TRY_DLOPEN_SELF 1054 1055 1056# AC_LIBTOOL_DLOPEN_SELF 1057# ---------------------- 1058AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1059[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1060if test "x$enable_dlopen" != xyes; then 1061 enable_dlopen=unknown 1062 enable_dlopen_self=unknown 1063 enable_dlopen_self_static=unknown 1064else 1065 lt_cv_dlopen=no 1066 lt_cv_dlopen_libs= 1067 1068 case $host_os in 1069 beos*) 1070 lt_cv_dlopen="load_add_on" 1071 lt_cv_dlopen_libs= 1072 lt_cv_dlopen_self=yes 1073 ;; 1074 1075 mingw* | pw32*) 1076 lt_cv_dlopen="LoadLibrary" 1077 lt_cv_dlopen_libs= 1078 ;; 1079 1080 cygwin*) 1081 lt_cv_dlopen="dlopen" 1082 lt_cv_dlopen_libs= 1083 ;; 1084 1085 darwin*) 1086 # if libdl is installed we need to link against it 1087 AC_CHECK_LIB([dl], [dlopen], 1088 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1089 lt_cv_dlopen="dyld" 1090 lt_cv_dlopen_libs= 1091 lt_cv_dlopen_self=yes 1092 ]) 1093 ;; 1094 1095 *) 1096 AC_CHECK_FUNC([shl_load], 1097 [lt_cv_dlopen="shl_load"], 1098 [AC_CHECK_LIB([dld], [shl_load], 1099 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 1100 [AC_CHECK_FUNC([dlopen], 1101 [lt_cv_dlopen="dlopen"], 1102 [AC_CHECK_LIB([dl], [dlopen], 1103 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1104 [AC_CHECK_LIB([svld], [dlopen], 1105 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1106 [AC_CHECK_LIB([dld], [dld_link], 1107 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 1108 ]) 1109 ]) 1110 ]) 1111 ]) 1112 ]) 1113 ;; 1114 esac 1115 1116 if test "x$lt_cv_dlopen" != xno; then 1117 enable_dlopen=yes 1118 else 1119 enable_dlopen=no 1120 fi 1121 1122 case $lt_cv_dlopen in 1123 dlopen) 1124 save_CPPFLAGS="$CPPFLAGS" 1125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1126 1127 save_LDFLAGS="$LDFLAGS" 1128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1129 1130 save_LIBS="$LIBS" 1131 LIBS="$lt_cv_dlopen_libs $LIBS" 1132 1133 AC_CACHE_CHECK([whether a program can dlopen itself], 1134 lt_cv_dlopen_self, [dnl 1135 _LT_AC_TRY_DLOPEN_SELF( 1136 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1137 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1138 ]) 1139 1140 if test "x$lt_cv_dlopen_self" = xyes; then 1141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1142 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1143 lt_cv_dlopen_self_static, [dnl 1144 _LT_AC_TRY_DLOPEN_SELF( 1145 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1146 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1147 ]) 1148 fi 1149 1150 CPPFLAGS="$save_CPPFLAGS" 1151 LDFLAGS="$save_LDFLAGS" 1152 LIBS="$save_LIBS" 1153 ;; 1154 esac 1155 1156 case $lt_cv_dlopen_self in 1157 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1158 *) enable_dlopen_self=unknown ;; 1159 esac 1160 1161 case $lt_cv_dlopen_self_static in 1162 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1163 *) enable_dlopen_self_static=unknown ;; 1164 esac 1165fi 1166])# AC_LIBTOOL_DLOPEN_SELF 1167 1168 1169# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 1170# --------------------------------- 1171# Check to see if options -c and -o are simultaneously supported by compiler 1172AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 1173[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1174AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1175 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1176 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1177 $rm -r conftest 2>/dev/null 1178 mkdir conftest 1179 cd conftest 1180 mkdir out 1181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1182 1183 lt_compiler_flag="-o out/conftest2.$ac_objext" 1184 # Insert the option either (1) after the last *FLAGS variable, or 1185 # (2) before a word containing "conftest.", or (3) at the end. 1186 # Note that $ac_compile itself does not contain backslashes and begins 1187 # with a dollar sign (not a hyphen), so the echo should work correctly. 1188 lt_compile=`echo "$ac_compile" | $SED \ 1189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1190 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1191 -e 's:$: $lt_compiler_flag:'` 1192 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1193 (eval "$lt_compile" 2>out/conftest.err) 1194 ac_status=$? 1195 cat out/conftest.err >&AS_MESSAGE_LOG_FD 1196 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1197 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1198 then 1199 # The compiler can only warn and ignore the option if not recognized 1200 # So say no if there are warnings 1201 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1202 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1203 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1204 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1205 fi 1206 fi 1207 chmod u+w . 2>&AS_MESSAGE_LOG_FD 1208 $rm conftest* 1209 # SGI C++ compiler will create directory out/ii_files/ for 1210 # template instantiation 1211 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 1212 $rm out/* && rmdir out 1213 cd .. 1214 rmdir conftest 1215 $rm conftest* 1216]) 1217])# AC_LIBTOOL_PROG_CC_C_O 1218 1219 1220# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 1221# ----------------------------------------- 1222# Check to see if we can do hard links to lock some files if needed 1223AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 1224[AC_REQUIRE([_LT_AC_LOCK])dnl 1225 1226hard_links="nottested" 1227if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 1228 # do not overwrite the value of need_locks provided by the user 1229 AC_MSG_CHECKING([if we can lock with hard links]) 1230 hard_links=yes 1231 $rm conftest* 1232 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1233 touch conftest.a 1234 ln conftest.a conftest.b 2>&5 || hard_links=no 1235 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1236 AC_MSG_RESULT([$hard_links]) 1237 if test "$hard_links" = no; then 1238 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 1239 need_locks=warn 1240 fi 1241else 1242 need_locks=no 1243fi 1244])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 1245 1246 1247# AC_LIBTOOL_OBJDIR 1248# ----------------- 1249AC_DEFUN([AC_LIBTOOL_OBJDIR], 1250[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 1251[rm -f .libs 2>/dev/null 1252mkdir .libs 2>/dev/null 1253if test -d .libs; then 1254 lt_cv_objdir=.libs 1255else 1256 # MS-DOS does not allow filenames that begin with a dot. 1257 lt_cv_objdir=_libs 1258fi 1259rmdir .libs 2>/dev/null]) 1260objdir=$lt_cv_objdir 1261])# AC_LIBTOOL_OBJDIR 1262 1263 1264# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 1265# ---------------------------------------------- 1266# Check hardcoding attributes. 1267AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 1268[AC_MSG_CHECKING([how to hardcode library paths into programs]) 1269_LT_AC_TAGVAR(hardcode_action, $1)= 1270if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1271 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 1272 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1273 1274 # We can hardcode non-existant directories. 1275 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1276 # If the only mechanism to avoid hardcoding is shlibpath_var, we 1277 # have to relink, otherwise we might link with an installed library 1278 # when we should be linking with a yet-to-be-installed one 1279 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 1280 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 1281 # Linking always hardcodes the temporary library directory. 1282 _LT_AC_TAGVAR(hardcode_action, $1)=relink 1283 else 1284 # We can link without hardcoding, and we can hardcode nonexisting dirs. 1285 _LT_AC_TAGVAR(hardcode_action, $1)=immediate 1286 fi 1287else 1288 # We cannot hardcode anything, or else we can only hardcode existing 1289 # directories. 1290 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 1291fi 1292AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 1293 1294if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 1295 # Fast installation is not supported 1296 enable_fast_install=no 1297elif test "$shlibpath_overrides_runpath" = yes || 1298 test "$enable_shared" = no; then 1299 # Fast installation is not necessary 1300 enable_fast_install=needless 1301fi 1302])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 1303 1304 1305# AC_LIBTOOL_SYS_LIB_STRIP 1306# ------------------------ 1307AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 1308[striplib= 1309old_striplib= 1310AC_MSG_CHECKING([whether stripping libraries is possible]) 1311if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 1312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 1313 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 1314 AC_MSG_RESULT([yes]) 1315else 1316# FIXME - insert some real tests, host_os isn't really good enough 1317 case $host_os in 1318 darwin*) 1319 if test -n "$STRIP" ; then 1320 striplib="$STRIP -x" 1321 AC_MSG_RESULT([yes]) 1322 else 1323 AC_MSG_RESULT([no]) 1324fi 1325 ;; 1326 *) 1327 AC_MSG_RESULT([no]) 1328 ;; 1329 esac 1330fi 1331])# AC_LIBTOOL_SYS_LIB_STRIP 1332 1333 1334# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1335# ----------------------------- 1336# PORTME Fill in your ld.so characteristics 1337AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1338[AC_MSG_CHECKING([dynamic linker characteristics]) 1339library_names_spec= 1340libname_spec='lib$name' 1341soname_spec= 1342shrext_cmds=".so" 1343postinstall_cmds= 1344postuninstall_cmds= 1345finish_cmds= 1346finish_eval= 1347shlibpath_var= 1348shlibpath_overrides_runpath=unknown 1349version_type=none 1350dynamic_linker="$host_os ld.so" 1351sys_lib_dlsearch_path_spec="/lib /usr/lib" 1352if test "$GCC" = yes; then 1353 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1354 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 1355 # if the path contains ";" then we assume it to be the separator 1356 # otherwise default to the standard path separator (i.e. ":") - it is 1357 # assumed that no part of a normal pathname contains ";" but that should 1358 # okay in the real world where ";" in dirpaths is itself problematic. 1359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 1360 else 1361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1362 fi 1363else 1364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1365fi 1366need_lib_prefix=unknown 1367hardcode_into_libs=no 1368 1369# when you set need_version to no, make sure it does not cause -set_version 1370# flags to be left without arguments 1371need_version=unknown 1372 1373case $host_os in 1374aix3*) 1375 version_type=linux 1376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 1377 shlibpath_var=LIBPATH 1378 1379 # AIX 3 has no versioning support, so we append a major version to the name. 1380 soname_spec='${libname}${release}${shared_ext}$major' 1381 ;; 1382 1383aix4* | aix5*) 1384 version_type=linux 1385 need_lib_prefix=no 1386 need_version=no 1387 hardcode_into_libs=yes 1388 if test "$host_cpu" = ia64; then 1389 # AIX 5 supports IA64 1390 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 1391 shlibpath_var=LD_LIBRARY_PATH 1392 else 1393 # With GCC up to 2.95.x, collect2 would create an import file 1394 # for dependence libraries. The import file would start with 1395 # the line `#! .'. This would cause the generated library to 1396 # depend on `.', always an invalid library. This was fixed in 1397 # development snapshots of GCC prior to 3.0. 1398 case $host_os in 1399 aix4 | aix4.[[01]] | aix4.[[01]].*) 1400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 1401 echo ' yes ' 1402 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 1403 : 1404 else 1405 can_build_shared=no 1406 fi 1407 ;; 1408 esac 1409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 1410 # soname into executable. Probably we can add versioning support to 1411 # collect2, so additional links can be useful in future. 1412 if test "$aix_use_runtimelinking" = yes; then 1413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 1414 # instead of lib<name>.a to let people know that these are not 1415 # typical AIX shared libraries. 1416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1417 else 1418 # We preserve .a as extension for shared libraries through AIX4.2 1419 # and later when we are not doing run time linking. 1420 library_names_spec='${libname}${release}.a $libname.a' 1421 soname_spec='${libname}${release}${shared_ext}$major' 1422 fi 1423 shlibpath_var=LIBPATH 1424 fi 1425 ;; 1426 1427amigaos*) 1428 library_names_spec='$libname.ixlibrary $libname.a' 1429 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1430 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' 1431 ;; 1432 1433beos*) 1434 library_names_spec='${libname}${shared_ext}' 1435 dynamic_linker="$host_os ld.so" 1436 shlibpath_var=LIBRARY_PATH 1437 ;; 1438 1439bsdi[[45]]*) 1440 version_type=linux 1441 need_version=no 1442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1443 soname_spec='${libname}${release}${shared_ext}$major' 1444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 1445 shlibpath_var=LD_LIBRARY_PATH 1446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 1447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 1448 # the default ld.so.conf also contains /usr/contrib/lib and 1449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 1450 # libtool to hard-code these into programs 1451 ;; 1452 1453cygwin* | mingw* | pw32*) 1454 version_type=windows 1455 shrext_cmds=".dll" 1456 need_version=no 1457 need_lib_prefix=no 1458 1459 case $GCC,$host_os in 1460 yes,cygwin* | yes,mingw* | yes,pw32*) 1461 library_names_spec='$libname.dll.a' 1462 # DLL is installed to $(libdir)/../bin by postinstall_cmds 1463 postinstall_cmds='base_file=`basename \${file}`~ 1464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 1465 dldir=$destdir/`dirname \$dlpath`~ 1466 test -d \$dldir || mkdir -p \$dldir~ 1467 $install_prog $dir/$dlname \$dldir/$dlname~ 1468 chmod a+x \$dldir/$dlname' 1469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1470 dlpath=$dir/\$dldll~ 1471 $rm \$dlpath' 1472 shlibpath_overrides_runpath=yes 1473 1474 case $host_os in 1475 cygwin*) 1476 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 1477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1478 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 1479 ;; 1480 mingw*) 1481 # MinGW DLLs use traditional 'lib' prefix 1482 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1483 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1484 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 1485 # It is most probably a Windows format PATH printed by 1486 # mingw gcc, but we are running on Cygwin. Gcc prints its search 1487 # path with ; separators, and with drive letters. We can handle the 1488 # drive letters (cygwin fileutils understands them), so leave them, 1489 # especially as we might pass files found there to a mingw objdump, 1490 # which wouldn't understand a cygwinified path. Ahh. 1491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 1492 else 1493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1494 fi 1495 ;; 1496 pw32*) 1497 # pw32 DLLs use 'pw' prefix rather than 'lib' 1498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1499 ;; 1500 esac 1501 ;; 1502 1503 *) 1504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 1505 ;; 1506 esac 1507 dynamic_linker='Win32 ld.exe' 1508 # FIXME: first we should search . and the directory the executable is in 1509 shlibpath_var=PATH 1510 ;; 1511 1512darwin* | rhapsody*) 1513 dynamic_linker="$host_os dyld" 1514 version_type=darwin 1515 need_lib_prefix=no 1516 need_version=no 1517 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 1518 soname_spec='${libname}${release}${major}$shared_ext' 1519 shlibpath_overrides_runpath=yes 1520 shlibpath_var=DYLD_LIBRARY_PATH 1521 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1522 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1523 if test "$GCC" = yes; then 1524 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"` 1525 else 1526 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 1527 fi 1528 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1529 ;; 1530 1531dgux*) 1532 version_type=linux 1533 need_lib_prefix=no 1534 need_version=no 1535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 1536 soname_spec='${libname}${release}${shared_ext}$major' 1537 shlibpath_var=LD_LIBRARY_PATH 1538 ;; 1539 1540freebsd1*) 1541 dynamic_linker=no 1542 ;; 1543 1544kfreebsd*-gnu) 1545 version_type=linux 1546 need_lib_prefix=no 1547 need_version=no 1548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1549 soname_spec='${libname}${release}${shared_ext}$major' 1550 shlibpath_var=LD_LIBRARY_PATH 1551 shlibpath_overrides_runpath=no 1552 hardcode_into_libs=yes 1553 dynamic_linker='GNU ld.so' 1554 ;; 1555 1556freebsd* | dragonfly*) 1557 # DragonFly does not have aout. When/if they implement a new 1558 # versioning mechanism, adjust this. 1559 if test -x /usr/bin/objformat; then 1560 objformat=`/usr/bin/objformat` 1561 else 1562 case $host_os in 1563 freebsd[[123]]*) objformat=aout ;; 1564 *) objformat=elf ;; 1565 esac 1566 fi 1567 version_type=freebsd-$objformat 1568 case $version_type in 1569 freebsd-elf*) 1570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1571 need_version=no 1572 need_lib_prefix=no 1573 ;; 1574 freebsd-*) 1575 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 1576 need_version=yes 1577 ;; 1578 esac 1579 shlibpath_var=LD_LIBRARY_PATH 1580 case $host_os in 1581 freebsd2*) 1582 shlibpath_overrides_runpath=yes 1583 ;; 1584 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 1585 shlibpath_overrides_runpath=yes 1586 hardcode_into_libs=yes 1587 ;; 1588 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 1589 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 1590 shlibpath_overrides_runpath=no 1591 hardcode_into_libs=yes 1592 ;; 1593 freebsd*) # from 4.6 on 1594 shlibpath_overrides_runpath=yes 1595 hardcode_into_libs=yes 1596 ;; 1597 esac 1598 ;; 1599 1600gnu*) 1601 version_type=linux 1602 need_lib_prefix=no 1603 need_version=no 1604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 1605 soname_spec='${libname}${release}${shared_ext}$major' 1606 shlibpath_var=LD_LIBRARY_PATH 1607 hardcode_into_libs=yes 1608 ;; 1609 1610hpux9* | hpux10* | hpux11*) 1611 # Give a soname corresponding to the major version so that dld.sl refuses to 1612 # link against other versions. 1613 version_type=sunos 1614 need_lib_prefix=no 1615 need_version=no 1616 case $host_cpu in 1617 ia64*) 1618 shrext_cmds='.so' 1619 hardcode_into_libs=yes 1620 dynamic_linker="$host_os dld.so" 1621 shlibpath_var=LD_LIBRARY_PATH 1622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1624 soname_spec='${libname}${release}${shared_ext}$major' 1625 if test "X$HPUX_IA64_MODE" = X32; then 1626 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 1627 else 1628 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 1629 fi 1630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1631 ;; 1632 hppa*64*) 1633 shrext_cmds='.sl' 1634 hardcode_into_libs=yes 1635 dynamic_linker="$host_os dld.sl" 1636 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 1637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1639 soname_spec='${libname}${release}${shared_ext}$major' 1640 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 1641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1642 ;; 1643 *) 1644 shrext_cmds='.sl' 1645 dynamic_linker="$host_os dld.sl" 1646 shlibpath_var=SHLIB_PATH 1647 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1649 soname_spec='${libname}${release}${shared_ext}$major' 1650 ;; 1651 esac 1652 # HP-UX runs *really* slowly unless shared libraries are mode 555. 1653 postinstall_cmds='chmod 555 $lib' 1654 ;; 1655 1656interix3*) 1657 version_type=linux 1658 need_lib_prefix=no 1659 need_version=no 1660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1661 soname_spec='${libname}${release}${shared_ext}$major' 1662 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 1663 shlibpath_var=LD_LIBRARY_PATH 1664 shlibpath_overrides_runpath=no 1665 hardcode_into_libs=yes 1666 ;; 1667 1668irix5* | irix6* | nonstopux*) 1669 case $host_os in 1670 nonstopux*) version_type=nonstopux ;; 1671 *) 1672 if test "$lt_cv_prog_gnu_ld" = yes; then 1673 version_type=linux 1674 else 1675 version_type=irix 1676 fi ;; 1677 esac 1678 need_lib_prefix=no 1679 need_version=no 1680 soname_spec='${libname}${release}${shared_ext}$major' 1681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 1682 case $host_os in 1683 irix5* | nonstopux*) 1684 libsuff= shlibsuff= 1685 ;; 1686 *) 1687 case $LD in # libtool.m4 will add one of these switches to LD 1688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 1689 libsuff= shlibsuff= libmagic=32-bit;; 1690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 1691 libsuff=32 shlibsuff=N32 libmagic=N32;; 1692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 1693 libsuff=64 shlibsuff=64 libmagic=64-bit;; 1694 *) libsuff= shlibsuff= libmagic=never-match;; 1695 esac 1696 ;; 1697 esac 1698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 1699 shlibpath_overrides_runpath=no 1700 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 1701 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 1702 hardcode_into_libs=yes 1703 ;; 1704 1705# No shared lib support for Linux oldld, aout, or coff. 1706linux*oldld* | linux*aout* | linux*coff*) 1707 dynamic_linker=no 1708 ;; 1709 1710# This must be Linux ELF. 1711linux*) 1712 version_type=linux 1713 need_lib_prefix=no 1714 need_version=no 1715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1716 soname_spec='${libname}${release}${shared_ext}$major' 1717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 1718 shlibpath_var=LD_LIBRARY_PATH 1719 shlibpath_overrides_runpath=no 1720 # This implies no fast_install, which is unacceptable. 1721 # Some rework will be needed to allow for fast_install 1722 # before this can be enabled. 1723 hardcode_into_libs=yes 1724 1725 # Append ld.so.conf contents to the search path 1726 if test -f /etc/ld.so.conf; then 1727 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' ' '` 1728 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1729 fi 1730 1731 # We used to test for /lib/ld.so.1 and disable shared libraries on 1732 # powerpc, because MkLinux only supported shared libraries with the 1733 # GNU dynamic linker. Since this was broken with cross compilers, 1734 # most powerpc-linux boxes support dynamic linking these days and 1735 # people can always --disable-shared, the test was removed, and we 1736 # assume the GNU/Linux dynamic linker is in use. 1737 dynamic_linker='GNU/Linux ld.so' 1738 ;; 1739 1740netbsdelf*-gnu) 1741 version_type=linux 1742 need_lib_prefix=no 1743 need_version=no 1744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1745 soname_spec='${libname}${release}${shared_ext}$major' 1746 shlibpath_var=LD_LIBRARY_PATH 1747 shlibpath_overrides_runpath=no 1748 hardcode_into_libs=yes 1749 dynamic_linker='NetBSD ld.elf_so' 1750 ;; 1751 1752knetbsd*-gnu) 1753 version_type=linux 1754 need_lib_prefix=no 1755 need_version=no 1756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1757 soname_spec='${libname}${release}${shared_ext}$major' 1758 shlibpath_var=LD_LIBRARY_PATH 1759 shlibpath_overrides_runpath=no 1760 hardcode_into_libs=yes 1761 dynamic_linker='GNU ld.so' 1762 ;; 1763 1764netbsd*) 1765 version_type=sunos 1766 need_lib_prefix=no 1767 need_version=no 1768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1771 dynamic_linker='NetBSD (a.out) ld.so' 1772 else 1773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1774 soname_spec='${libname}${release}${shared_ext}$major' 1775 dynamic_linker='NetBSD ld.elf_so' 1776 fi 1777 shlibpath_var=LD_LIBRARY_PATH 1778 shlibpath_overrides_runpath=yes 1779 hardcode_into_libs=yes 1780 ;; 1781 1782newsos6) 1783 version_type=linux 1784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1785 shlibpath_var=LD_LIBRARY_PATH 1786 shlibpath_overrides_runpath=yes 1787 ;; 1788 1789nto-qnx*) 1790 version_type=linux 1791 need_lib_prefix=no 1792 need_version=no 1793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1794 soname_spec='${libname}${release}${shared_ext}$major' 1795 shlibpath_var=LD_LIBRARY_PATH 1796 shlibpath_overrides_runpath=yes 1797 ;; 1798 1799openbsd*) 1800 version_type=sunos 1801 sys_lib_dlsearch_path_spec="/usr/lib" 1802 need_lib_prefix=no 1803 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1804 case $host_os in 1805 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1806 *) need_version=no ;; 1807 esac 1808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1810 shlibpath_var=LD_LIBRARY_PATH 1811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1812 case $host_os in 1813 openbsd2.[[89]] | openbsd2.[[89]].*) 1814 shlibpath_overrides_runpath=no 1815 ;; 1816 *) 1817 shlibpath_overrides_runpath=yes 1818 ;; 1819 esac 1820 else 1821 shlibpath_overrides_runpath=yes 1822 fi 1823 ;; 1824 1825os2*) 1826 libname_spec='$name' 1827 shrext_cmds=".dll" 1828 need_lib_prefix=no 1829 library_names_spec='$libname${shared_ext} $libname.a' 1830 dynamic_linker='OS/2 ld.exe' 1831 shlibpath_var=LIBPATH 1832 ;; 1833 1834osf3* | osf4* | osf5*) 1835 version_type=osf 1836 need_lib_prefix=no 1837 need_version=no 1838 soname_spec='${libname}${release}${shared_ext}$major' 1839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1840 shlibpath_var=LD_LIBRARY_PATH 1841 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 1842 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 1843 ;; 1844 1845solaris*) 1846 version_type=linux 1847 need_lib_prefix=no 1848 need_version=no 1849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1850 soname_spec='${libname}${release}${shared_ext}$major' 1851 shlibpath_var=LD_LIBRARY_PATH 1852 shlibpath_overrides_runpath=yes 1853 hardcode_into_libs=yes 1854 # ldd complains unless libraries are executable 1855 postinstall_cmds='chmod +x $lib' 1856 ;; 1857 1858sunos4*) 1859 version_type=sunos 1860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1861 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 1862 shlibpath_var=LD_LIBRARY_PATH 1863 shlibpath_overrides_runpath=yes 1864 if test "$with_gnu_ld" = yes; then 1865 need_lib_prefix=no 1866 fi 1867 need_version=yes 1868 ;; 1869 1870sysv4 | sysv4.3*) 1871 version_type=linux 1872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1873 soname_spec='${libname}${release}${shared_ext}$major' 1874 shlibpath_var=LD_LIBRARY_PATH 1875 case $host_vendor in 1876 sni) 1877 shlibpath_overrides_runpath=no 1878 need_lib_prefix=no 1879 export_dynamic_flag_spec='${wl}-Blargedynsym' 1880 runpath_var=LD_RUN_PATH 1881 ;; 1882 siemens) 1883 need_lib_prefix=no 1884 ;; 1885 motorola) 1886 need_lib_prefix=no 1887 need_version=no 1888 shlibpath_overrides_runpath=no 1889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 1890 ;; 1891 esac 1892 ;; 1893 1894sysv4*MP*) 1895 if test -d /usr/nec ;then 1896 version_type=linux 1897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 1898 soname_spec='$libname${shared_ext}.$major' 1899 shlibpath_var=LD_LIBRARY_PATH 1900 fi 1901 ;; 1902 1903sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 1904 version_type=freebsd-elf 1905 need_lib_prefix=no 1906 need_version=no 1907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1908 soname_spec='${libname}${release}${shared_ext}$major' 1909 shlibpath_var=LD_LIBRARY_PATH 1910 hardcode_into_libs=yes 1911 if test "$with_gnu_ld" = yes; then 1912 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 1913 shlibpath_overrides_runpath=no 1914 else 1915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 1916 shlibpath_overrides_runpath=yes 1917 case $host_os in 1918 sco3.2v5*) 1919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 1920 ;; 1921 esac 1922 fi 1923 sys_lib_dlsearch_path_spec='/usr/lib' 1924 ;; 1925 1926uts4*) 1927 version_type=linux 1928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1929 soname_spec='${libname}${release}${shared_ext}$major' 1930 shlibpath_var=LD_LIBRARY_PATH 1931 ;; 1932 1933*) 1934 dynamic_linker=no 1935 ;; 1936esac 1937AC_MSG_RESULT([$dynamic_linker]) 1938test "$dynamic_linker" = no && can_build_shared=no 1939 1940variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 1941if test "$GCC" = yes; then 1942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 1943fi 1944])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1945 1946 1947# _LT_AC_TAGCONFIG 1948# ---------------- 1949AC_DEFUN([_LT_AC_TAGCONFIG], 1950[AC_ARG_WITH([tags], 1951 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 1952 [include additional configurations @<:@automatic@:>@])], 1953 [tagnames="$withval"]) 1954 1955if test -f "$ltmain" && test -n "$tagnames"; then 1956 if test ! -f "${ofile}"; then 1957 AC_MSG_WARN([output file `$ofile' does not exist]) 1958 fi 1959 1960 if test -z "$LTCC"; then 1961 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 1962 if test -z "$LTCC"; then 1963 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 1964 else 1965 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 1966 fi 1967 fi 1968 if test -z "$LTCFLAGS"; then 1969 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 1970 fi 1971 1972 # Extract list of available tagged configurations in $ofile. 1973 # Note that this assumes the entire list is on one line. 1974 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 1975 1976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1977 for tagname in $tagnames; do 1978 IFS="$lt_save_ifs" 1979 # Check whether tagname contains only valid characters 1980 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 1981 "") ;; 1982 *) AC_MSG_ERROR([invalid tag name: $tagname]) 1983 ;; 1984 esac 1985 1986 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 1987 then 1988 AC_MSG_ERROR([tag name \"$tagname\" already exists]) 1989 fi 1990 1991 # Update the list of available tags. 1992 if test -n "$tagname"; then 1993 echo appending configuration tag \"$tagname\" to $ofile 1994 1995 case $tagname in 1996 CXX) 1997 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 1998 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 1999 (test "X$CXX" != "Xg++"))) ; then 2000 AC_LIBTOOL_LANG_CXX_CONFIG 2001 else 2002 tagname="" 2003 fi 2004 ;; 2005 2006 F77) 2007 if test -n "$F77" && test "X$F77" != "Xno"; then 2008 AC_LIBTOOL_LANG_F77_CONFIG 2009 else 2010 tagname="" 2011 fi 2012 ;; 2013 2014 GCJ) 2015 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 2016 AC_LIBTOOL_LANG_GCJ_CONFIG 2017 else 2018 tagname="" 2019 fi 2020 ;; 2021 2022 RC) 2023 AC_LIBTOOL_LANG_RC_CONFIG 2024 ;; 2025 2026 *) 2027 AC_MSG_ERROR([Unsupported tag name: $tagname]) 2028 ;; 2029 esac 2030 2031 # Append the new tag name to the list of available tags. 2032 if test -n "$tagname" ; then 2033 available_tags="$available_tags $tagname" 2034 fi 2035 fi 2036 done 2037 IFS="$lt_save_ifs" 2038 2039 # Now substitute the updated list of available tags. 2040 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 2041 mv "${ofile}T" "$ofile" 2042 chmod +x "$ofile" 2043 else 2044 rm -f "${ofile}T" 2045 AC_MSG_ERROR([unable to update list of available tagged configurations.]) 2046 fi 2047fi 2048])# _LT_AC_TAGCONFIG 2049 2050 2051# AC_LIBTOOL_DLOPEN 2052# ----------------- 2053# enable checks for dlopen support 2054AC_DEFUN([AC_LIBTOOL_DLOPEN], 2055 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 2056])# AC_LIBTOOL_DLOPEN 2057 2058 2059# AC_LIBTOOL_WIN32_DLL 2060# -------------------- 2061# declare package support for building win32 DLLs 2062AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2063[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2064])# AC_LIBTOOL_WIN32_DLL 2065 2066 2067# AC_ENABLE_SHARED([DEFAULT]) 2068# --------------------------- 2069# implement the --enable-shared flag 2070# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2071AC_DEFUN([AC_ENABLE_SHARED], 2072[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 2073AC_ARG_ENABLE([shared], 2074 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 2075 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 2076 [p=${PACKAGE-default} 2077 case $enableval in 2078 yes) enable_shared=yes ;; 2079 no) enable_shared=no ;; 2080 *) 2081 enable_shared=no 2082 # Look at the argument we got. We use all the common list separators. 2083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2084 for pkg in $enableval; do 2085 IFS="$lt_save_ifs" 2086 if test "X$pkg" = "X$p"; then 2087 enable_shared=yes 2088 fi 2089 done 2090 IFS="$lt_save_ifs" 2091 ;; 2092 esac], 2093 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 2094])# AC_ENABLE_SHARED 2095 2096 2097# AC_DISABLE_SHARED 2098# ----------------- 2099# set the default shared flag to --disable-shared 2100AC_DEFUN([AC_DISABLE_SHARED], 2101[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2102AC_ENABLE_SHARED(no) 2103])# AC_DISABLE_SHARED 2104 2105 2106# AC_ENABLE_STATIC([DEFAULT]) 2107# --------------------------- 2108# implement the --enable-static flag 2109# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2110AC_DEFUN([AC_ENABLE_STATIC], 2111[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 2112AC_ARG_ENABLE([static], 2113 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 2114 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 2115 [p=${PACKAGE-default} 2116 case $enableval in 2117 yes) enable_static=yes ;; 2118 no) enable_static=no ;; 2119 *) 2120 enable_static=no 2121 # Look at the argument we got. We use all the common list separators. 2122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2123 for pkg in $enableval; do 2124 IFS="$lt_save_ifs" 2125 if test "X$pkg" = "X$p"; then 2126 enable_static=yes 2127 fi 2128 done 2129 IFS="$lt_save_ifs" 2130 ;; 2131 esac], 2132 [enable_static=]AC_ENABLE_STATIC_DEFAULT) 2133])# AC_ENABLE_STATIC 2134 2135 2136# AC_DISABLE_STATIC 2137# ----------------- 2138# set the default static flag to --disable-static 2139AC_DEFUN([AC_DISABLE_STATIC], 2140[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2141AC_ENABLE_STATIC(no) 2142])# AC_DISABLE_STATIC 2143 2144 2145# AC_ENABLE_FAST_INSTALL([DEFAULT]) 2146# --------------------------------- 2147# implement the --enable-fast-install flag 2148# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2149AC_DEFUN([AC_ENABLE_FAST_INSTALL], 2150[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 2151AC_ARG_ENABLE([fast-install], 2152 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 2153 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 2154 [p=${PACKAGE-default} 2155 case $enableval in 2156 yes) enable_fast_install=yes ;; 2157 no) enable_fast_install=no ;; 2158 *) 2159 enable_fast_install=no 2160 # Look at the argument we got. We use all the common list separators. 2161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2162 for pkg in $enableval; do 2163 IFS="$lt_save_ifs" 2164 if test "X$pkg" = "X$p"; then 2165 enable_fast_install=yes 2166 fi 2167 done 2168 IFS="$lt_save_ifs" 2169 ;; 2170 esac], 2171 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 2172])# AC_ENABLE_FAST_INSTALL 2173 2174 2175# AC_DISABLE_FAST_INSTALL 2176# ----------------------- 2177# set the default to --disable-fast-install 2178AC_DEFUN([AC_DISABLE_FAST_INSTALL], 2179[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2180AC_ENABLE_FAST_INSTALL(no) 2181])# AC_DISABLE_FAST_INSTALL 2182 2183 2184# AC_LIBTOOL_PICMODE([MODE]) 2185# -------------------------- 2186# implement the --with-pic flag 2187# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 2188AC_DEFUN([AC_LIBTOOL_PICMODE], 2189[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2190pic_mode=ifelse($#,1,$1,default) 2191])# AC_LIBTOOL_PICMODE 2192 2193 2194# AC_PROG_EGREP 2195# ------------- 2196# This is predefined starting with Autoconf 2.54, so this conditional 2197# definition can be removed once we require Autoconf 2.54 or later. 2198m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 2199[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 2200 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2201 then ac_cv_prog_egrep='grep -E' 2202 else ac_cv_prog_egrep='egrep' 2203 fi]) 2204 EGREP=$ac_cv_prog_egrep 2205 AC_SUBST([EGREP]) 2206])]) 2207 2208 2209# AC_PATH_TOOL_PREFIX 2210# ------------------- 2211# find a file program which can recognise shared library 2212AC_DEFUN([AC_PATH_TOOL_PREFIX], 2213[AC_REQUIRE([AC_PROG_EGREP])dnl 2214AC_MSG_CHECKING([for $1]) 2215AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2216[case $MAGIC_CMD in 2217[[\\/*] | ?:[\\/]*]) 2218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2219 ;; 2220*) 2221 lt_save_MAGIC_CMD="$MAGIC_CMD" 2222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2223dnl $ac_dummy forces splitting on constant user-supplied paths. 2224dnl POSIX.2 word splitting is done only on the output of word expansions, 2225dnl not every word. This closes a longstanding sh security hole. 2226 ac_dummy="ifelse([$2], , $PATH, [$2])" 2227 for ac_dir in $ac_dummy; do 2228 IFS="$lt_save_ifs" 2229 test -z "$ac_dir" && ac_dir=. 2230 if test -f $ac_dir/$1; then 2231 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2232 if test -n "$file_magic_test_file"; then 2233 case $deplibs_check_method in 2234 "file_magic "*) 2235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2238 $EGREP "$file_magic_regex" > /dev/null; then 2239 : 2240 else 2241 cat <<EOF 1>&2 2242 2243*** Warning: the command libtool uses to detect shared libraries, 2244*** $file_magic_cmd, produces output that libtool cannot recognize. 2245*** The result is that libtool may fail to recognize shared libraries 2246*** as such. This will affect the creation of libtool libraries that 2247*** depend on shared libraries, but programs linked with such libtool 2248*** libraries will work regardless of this problem. Nevertheless, you 2249*** may want to report the problem to your system manager and/or to 2250*** bug-libtool@gnu.org 2251 2252EOF 2253 fi ;; 2254 esac 2255 fi 2256 break 2257 fi 2258 done 2259 IFS="$lt_save_ifs" 2260 MAGIC_CMD="$lt_save_MAGIC_CMD" 2261 ;; 2262esac]) 2263MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2264if test -n "$MAGIC_CMD"; then 2265 AC_MSG_RESULT($MAGIC_CMD) 2266else 2267 AC_MSG_RESULT(no) 2268fi 2269])# AC_PATH_TOOL_PREFIX 2270 2271 2272# AC_PATH_MAGIC 2273# ------------- 2274# find a file program which can recognise a shared library 2275AC_DEFUN([AC_PATH_MAGIC], 2276[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 2277if test -z "$lt_cv_path_MAGIC_CMD"; then 2278 if test -n "$ac_tool_prefix"; then 2279 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 2280 else 2281 MAGIC_CMD=: 2282 fi 2283fi 2284])# AC_PATH_MAGIC 2285 2286 2287# AC_PROG_LD 2288# ---------- 2289# find the pathname to the GNU or non-GNU linker 2290AC_DEFUN([AC_PROG_LD], 2291[AC_ARG_WITH([gnu-ld], 2292 [AC_HELP_STRING([--with-gnu-ld], 2293 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 2294 [test "$withval" = no || with_gnu_ld=yes], 2295 [with_gnu_ld=no]) 2296AC_REQUIRE([LT_AC_PROG_SED])dnl 2297AC_REQUIRE([AC_PROG_CC])dnl 2298AC_REQUIRE([AC_CANONICAL_HOST])dnl 2299AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2300ac_prog=ld 2301if test "$GCC" = yes; then 2302 # Check if gcc -print-prog-name=ld gives a path. 2303 AC_MSG_CHECKING([for ld used by $CC]) 2304 case $host in 2305 *-*-mingw*) 2306 # gcc leaves a trailing carriage return which upsets mingw 2307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2308 *) 2309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2310 esac 2311 case $ac_prog in 2312 # Accept absolute paths. 2313 [[\\/]]* | ?:[[\\/]]*) 2314 re_direlt='/[[^/]][[^/]]*/\.\./' 2315 # Canonicalize the pathname of ld 2316 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2317 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2318 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2319 done 2320 test -z "$LD" && LD="$ac_prog" 2321 ;; 2322 "") 2323 # If it fails, then pretend we aren't using GCC. 2324 ac_prog=ld 2325 ;; 2326 *) 2327 # If it is relative, then search for the first ld in PATH. 2328 with_gnu_ld=unknown 2329 ;; 2330 esac 2331elif test "$with_gnu_ld" = yes; then 2332 AC_MSG_CHECKING([for GNU ld]) 2333else 2334 AC_MSG_CHECKING([for non-GNU ld]) 2335fi 2336AC_CACHE_VAL(lt_cv_path_LD, 2337[if test -z "$LD"; then 2338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2339 for ac_dir in $PATH; do 2340 IFS="$lt_save_ifs" 2341 test -z "$ac_dir" && ac_dir=. 2342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2343 lt_cv_path_LD="$ac_dir/$ac_prog" 2344 # Check to see if the program is GNU ld. I'd rather use --version, 2345 # but apparently some variants of GNU ld only accept -v. 2346 # Break only if it was the GNU/non-GNU ld that we prefer. 2347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2348 *GNU* | *'with BFD'*) 2349 test "$with_gnu_ld" != no && break 2350 ;; 2351 *) 2352 test "$with_gnu_ld" != yes && break 2353 ;; 2354 esac 2355 fi 2356 done 2357 IFS="$lt_save_ifs" 2358else 2359 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2360fi]) 2361LD="$lt_cv_path_LD" 2362if test -n "$LD"; then 2363 AC_MSG_RESULT($LD) 2364else 2365 AC_MSG_RESULT(no) 2366fi 2367test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 2368AC_PROG_LD_GNU 2369])# AC_PROG_LD 2370 2371 2372# AC_PROG_LD_GNU 2373# -------------- 2374AC_DEFUN([AC_PROG_LD_GNU], 2375[AC_REQUIRE([AC_PROG_EGREP])dnl 2376AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2377[# I'd rather use --version here, but apparently some GNU lds only accept -v. 2378case `$LD -v 2>&1 </dev/null` in 2379*GNU* | *'with BFD'*) 2380 lt_cv_prog_gnu_ld=yes 2381 ;; 2382*) 2383 lt_cv_prog_gnu_ld=no 2384 ;; 2385esac]) 2386with_gnu_ld=$lt_cv_prog_gnu_ld 2387])# AC_PROG_LD_GNU 2388 2389 2390# AC_PROG_LD_RELOAD_FLAG 2391# ---------------------- 2392# find reload flag for linker 2393# -- PORTME Some linkers may need a different reload flag. 2394AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 2395[AC_CACHE_CHECK([for $LD option to reload object files], 2396 lt_cv_ld_reload_flag, 2397 [lt_cv_ld_reload_flag='-r']) 2398reload_flag=$lt_cv_ld_reload_flag 2399case $reload_flag in 2400"" | " "*) ;; 2401*) reload_flag=" $reload_flag" ;; 2402esac 2403reload_cmds='$LD$reload_flag -o $output$reload_objs' 2404case $host_os in 2405 darwin*) 2406 if test "$GCC" = yes; then 2407 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2408 else 2409 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2410 fi 2411 ;; 2412esac 2413])# AC_PROG_LD_RELOAD_FLAG 2414 2415 2416# AC_DEPLIBS_CHECK_METHOD 2417# ----------------------- 2418# how to check for library dependencies 2419# -- PORTME fill in with the dynamic library characteristics 2420AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2421[AC_CACHE_CHECK([how to recognise dependent libraries], 2422lt_cv_deplibs_check_method, 2423[lt_cv_file_magic_cmd='$MAGIC_CMD' 2424lt_cv_file_magic_test_file= 2425lt_cv_deplibs_check_method='unknown' 2426# Need to set the preceding variable on all platforms that support 2427# interlibrary dependencies. 2428# 'none' -- dependencies not supported. 2429# `unknown' -- same as none, but documents that we really don't know. 2430# 'pass_all' -- all dependencies passed with no checks. 2431# 'test_compile' -- check by making test program. 2432# 'file_magic [[regex]]' -- check by looking for files in library path 2433# which responds to the $file_magic_cmd with a given extended regex. 2434# If you have `file' or equivalent on your system and you're not sure 2435# whether `pass_all' will *always* work, you probably want this one. 2436 2437case $host_os in 2438aix4* | aix5*) 2439 lt_cv_deplibs_check_method=pass_all 2440 ;; 2441 2442beos*) 2443 lt_cv_deplibs_check_method=pass_all 2444 ;; 2445 2446bsdi[[45]]*) 2447 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2448 lt_cv_file_magic_cmd='/usr/bin/file -L' 2449 lt_cv_file_magic_test_file=/shlib/libc.so 2450 ;; 2451 2452cygwin*) 2453 # func_win32_libid is a shell function defined in ltmain.sh 2454 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2455 lt_cv_file_magic_cmd='func_win32_libid' 2456 ;; 2457 2458mingw* | pw32*) 2459 # Base MSYS/MinGW do not provide the 'file' command needed by 2460 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2461 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2462 lt_cv_file_magic_cmd='$OBJDUMP -f' 2463 ;; 2464 2465darwin* | rhapsody*) 2466 lt_cv_deplibs_check_method=pass_all 2467 ;; 2468 2469freebsd* | kfreebsd*-gnu | dragonfly*) 2470 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2471 case $host_cpu in 2472 i*86 ) 2473 # Not sure whether the presence of OpenBSD here was a mistake. 2474 # Let's accept both of them until this is cleared up. 2475 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 2476 lt_cv_file_magic_cmd=/usr/bin/file 2477 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2478 ;; 2479 esac 2480 else 2481 lt_cv_deplibs_check_method=pass_all 2482 fi 2483 ;; 2484 2485gnu*) 2486 lt_cv_deplibs_check_method=pass_all 2487 ;; 2488 2489hpux10.20* | hpux11*) 2490 lt_cv_file_magic_cmd=/usr/bin/file 2491 case $host_cpu in 2492 ia64*) 2493 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 2494 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2495 ;; 2496 hppa*64*) 2497 [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]'] 2498 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 2499 ;; 2500 *) 2501 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 2502 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2503 ;; 2504 esac 2505 ;; 2506 2507interix3*) 2508 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 2509 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 2510 ;; 2511 2512irix5* | irix6* | nonstopux*) 2513 case $LD in 2514 *-32|*"-32 ") libmagic=32-bit;; 2515 *-n32|*"-n32 ") libmagic=N32;; 2516 *-64|*"-64 ") libmagic=64-bit;; 2517 *) libmagic=never-match;; 2518 esac 2519 lt_cv_deplibs_check_method=pass_all 2520 ;; 2521 2522# This must be Linux ELF. 2523linux*) 2524 lt_cv_deplibs_check_method=pass_all 2525 ;; 2526 2527netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 2528 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2529 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2530 else 2531 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 2532 fi 2533 ;; 2534 2535newos6*) 2536 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 2537 lt_cv_file_magic_cmd=/usr/bin/file 2538 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2539 ;; 2540 2541nto-qnx*) 2542 lt_cv_deplibs_check_method=unknown 2543 ;; 2544 2545openbsd*) 2546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2547 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 2548 else 2549 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2550 fi 2551 ;; 2552 2553osf3* | osf4* | osf5*) 2554 lt_cv_deplibs_check_method=pass_all 2555 ;; 2556 2557solaris*) 2558 lt_cv_deplibs_check_method=pass_all 2559 ;; 2560 2561sysv4 | sysv4.3*) 2562 case $host_vendor in 2563 motorola) 2564 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]]' 2565 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2566 ;; 2567 ncr) 2568 lt_cv_deplibs_check_method=pass_all 2569 ;; 2570 sequent) 2571 lt_cv_file_magic_cmd='/bin/file' 2572 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 2573 ;; 2574 sni) 2575 lt_cv_file_magic_cmd='/bin/file' 2576 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 2577 lt_cv_file_magic_test_file=/lib/libc.so 2578 ;; 2579 siemens) 2580 lt_cv_deplibs_check_method=pass_all 2581 ;; 2582 pc) 2583 lt_cv_deplibs_check_method=pass_all 2584 ;; 2585 esac 2586 ;; 2587 2588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2589 lt_cv_deplibs_check_method=pass_all 2590 ;; 2591esac 2592]) 2593file_magic_cmd=$lt_cv_file_magic_cmd 2594deplibs_check_method=$lt_cv_deplibs_check_method 2595test -z "$deplibs_check_method" && deplibs_check_method=unknown 2596])# AC_DEPLIBS_CHECK_METHOD 2597 2598 2599# AC_PROG_NM 2600# ---------- 2601# find the pathname to a BSD-compatible name lister 2602AC_DEFUN([AC_PROG_NM], 2603[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 2604[if test -n "$NM"; then 2605 # Let the user override the test. 2606 lt_cv_path_NM="$NM" 2607else 2608 lt_nm_to_check="${ac_tool_prefix}nm" 2609 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2610 lt_nm_to_check="$lt_nm_to_check nm" 2611 fi 2612 for lt_tmp_nm in $lt_nm_to_check; do 2613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2614 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 2615 IFS="$lt_save_ifs" 2616 test -z "$ac_dir" && ac_dir=. 2617 tmp_nm="$ac_dir/$lt_tmp_nm" 2618 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2619 # Check to see if the nm accepts a BSD-compat flag. 2620 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2621 # nm: unknown option "B" ignored 2622 # Tru64's nm complains that /dev/null is an invalid object file 2623 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2624 */dev/null* | *'Invalid file or object type'*) 2625 lt_cv_path_NM="$tmp_nm -B" 2626 break 2627 ;; 2628 *) 2629 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2630 */dev/null*) 2631 lt_cv_path_NM="$tmp_nm -p" 2632 break 2633 ;; 2634 *) 2635 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2636 continue # so that we can try to find one that supports BSD flags 2637 ;; 2638 esac 2639 ;; 2640 esac 2641 fi 2642 done 2643 IFS="$lt_save_ifs" 2644 done 2645 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2646fi]) 2647NM="$lt_cv_path_NM" 2648])# AC_PROG_NM 2649 2650 2651# AC_CHECK_LIBM 2652# ------------- 2653# check for math library 2654AC_DEFUN([AC_CHECK_LIBM], 2655[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2656LIBM= 2657case $host in 2658*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 2659 # These system don't have libm, or don't need it 2660 ;; 2661*-ncr-sysv4.3*) 2662 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 2663 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 2664 ;; 2665*) 2666 AC_CHECK_LIB(m, cos, LIBM="-lm") 2667 ;; 2668esac 2669])# AC_CHECK_LIBM 2670 2671 2672# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 2673# ----------------------------------- 2674# sets LIBLTDL to the link flags for the libltdl convenience library and 2675# LTDLINCL to the include flags for the libltdl header and adds 2676# --enable-ltdl-convenience to the configure arguments. Note that 2677# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2678# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 2679# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 2680# (note the single quotes!). If your package is not flat and you're not 2681# using automake, define top_builddir and top_srcdir appropriately in 2682# the Makefiles. 2683AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2684[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2685 case $enable_ltdl_convenience in 2686 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 2687 "") enable_ltdl_convenience=yes 2688 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 2689 esac 2690 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 2691 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 2692 # For backwards non-gettext consistent compatibility... 2693 INCLTDL="$LTDLINCL" 2694])# AC_LIBLTDL_CONVENIENCE 2695 2696 2697# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 2698# ----------------------------------- 2699# sets LIBLTDL to the link flags for the libltdl installable library and 2700# LTDLINCL to the include flags for the libltdl header and adds 2701# --enable-ltdl-install to the configure arguments. Note that 2702# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2703# and an installed libltdl is not found, it is assumed to be `libltdl'. 2704# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 2705# '${top_srcdir}/' (note the single quotes!). If your package is not 2706# flat and you're not using automake, define top_builddir and top_srcdir 2707# appropriately in the Makefiles. 2708# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2709AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 2710[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2711 AC_CHECK_LIB(ltdl, lt_dlinit, 2712 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 2713 [if test x"$enable_ltdl_install" = xno; then 2714 AC_MSG_WARN([libltdl not installed, but installation disabled]) 2715 else 2716 enable_ltdl_install=yes 2717 fi 2718 ]) 2719 if test x"$enable_ltdl_install" = x"yes"; then 2720 ac_configure_args="$ac_configure_args --enable-ltdl-install" 2721 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 2722 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 2723 else 2724 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 2725 LIBLTDL="-lltdl" 2726 LTDLINCL= 2727 fi 2728 # For backwards non-gettext consistent compatibility... 2729 INCLTDL="$LTDLINCL" 2730])# AC_LIBLTDL_INSTALLABLE 2731 2732 2733# AC_LIBTOOL_CXX 2734# -------------- 2735# enable support for C++ libraries 2736AC_DEFUN([AC_LIBTOOL_CXX], 2737[AC_REQUIRE([_LT_AC_LANG_CXX]) 2738])# AC_LIBTOOL_CXX 2739 2740 2741# _LT_AC_LANG_CXX 2742# --------------- 2743AC_DEFUN([_LT_AC_LANG_CXX], 2744[AC_REQUIRE([AC_PROG_CXX]) 2745AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2746_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2747])# _LT_AC_LANG_CXX 2748 2749# _LT_AC_PROG_CXXCPP 2750# ------------------ 2751AC_DEFUN([_LT_AC_PROG_CXXCPP], 2752[ 2753AC_REQUIRE([AC_PROG_CXX]) 2754if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2755 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2756 (test "X$CXX" != "Xg++"))) ; then 2757 AC_PROG_CXXCPP 2758fi 2759])# _LT_AC_PROG_CXXCPP 2760 2761# AC_LIBTOOL_F77 2762# -------------- 2763# enable support for Fortran 77 libraries 2764AC_DEFUN([AC_LIBTOOL_F77], 2765[AC_REQUIRE([_LT_AC_LANG_F77]) 2766])# AC_LIBTOOL_F77 2767 2768 2769# _LT_AC_LANG_F77 2770# --------------- 2771AC_DEFUN([_LT_AC_LANG_F77], 2772[AC_REQUIRE([AC_PROG_F77]) 2773_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 2774])# _LT_AC_LANG_F77 2775 2776 2777# AC_LIBTOOL_GCJ 2778# -------------- 2779# enable support for GCJ libraries 2780AC_DEFUN([AC_LIBTOOL_GCJ], 2781[AC_REQUIRE([_LT_AC_LANG_GCJ]) 2782])# AC_LIBTOOL_GCJ 2783 2784 2785# _LT_AC_LANG_GCJ 2786# --------------- 2787AC_DEFUN([_LT_AC_LANG_GCJ], 2788[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 2789 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 2790 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 2791 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 2792 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 2793 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 2794_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 2795])# _LT_AC_LANG_GCJ 2796 2797 2798# AC_LIBTOOL_RC 2799# ------------- 2800# enable support for Windows resource files 2801AC_DEFUN([AC_LIBTOOL_RC], 2802[AC_REQUIRE([LT_AC_PROG_RC]) 2803_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 2804])# AC_LIBTOOL_RC 2805 2806 2807# AC_LIBTOOL_LANG_C_CONFIG 2808# ------------------------ 2809# Ensure that the configuration vars for the C compiler are 2810# suitably defined. Those variables are subsequently used by 2811# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 2812AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 2813AC_DEFUN([_LT_AC_LANG_C_CONFIG], 2814[lt_save_CC="$CC" 2815AC_LANG_PUSH(C) 2816 2817# Source file extension for C test sources. 2818ac_ext=c 2819 2820# Object file extension for compiled C test sources. 2821objext=o 2822_LT_AC_TAGVAR(objext, $1)=$objext 2823 2824# Code to be used in simple compile tests 2825lt_simple_compile_test_code="int some_variable = 0;\n" 2826 2827# Code to be used in simple link tests 2828lt_simple_link_test_code='int main(){return(0);}\n' 2829 2830_LT_AC_SYS_COMPILER 2831 2832# save warnings/boilerplate of simple test code 2833_LT_COMPILER_BOILERPLATE 2834_LT_LINKER_BOILERPLATE 2835 2836AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 2837AC_LIBTOOL_PROG_COMPILER_PIC($1) 2838AC_LIBTOOL_PROG_CC_C_O($1) 2839AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 2840AC_LIBTOOL_PROG_LD_SHLIBS($1) 2841AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2842AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2843AC_LIBTOOL_SYS_LIB_STRIP 2844AC_LIBTOOL_DLOPEN_SELF 2845 2846# Report which library types will actually be built 2847AC_MSG_CHECKING([if libtool supports shared libraries]) 2848AC_MSG_RESULT([$can_build_shared]) 2849 2850AC_MSG_CHECKING([whether to build shared libraries]) 2851test "$can_build_shared" = "no" && enable_shared=no 2852 2853# On AIX, shared libraries and static libraries use the same namespace, and 2854# are all built from PIC. 2855case $host_os in 2856aix3*) 2857 test "$enable_shared" = yes && enable_static=no 2858 if test -n "$RANLIB"; then 2859 archive_cmds="$archive_cmds~\$RANLIB \$lib" 2860 postinstall_cmds='$RANLIB $lib' 2861 fi 2862 ;; 2863 2864aix4* | aix5*) 2865 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2866 test "$enable_shared" = yes && enable_static=no 2867 fi 2868 ;; 2869esac 2870AC_MSG_RESULT([$enable_shared]) 2871 2872AC_MSG_CHECKING([whether to build static libraries]) 2873# Make sure either enable_shared or enable_static is yes. 2874test "$enable_shared" = yes || enable_static=yes 2875AC_MSG_RESULT([$enable_static]) 2876 2877AC_LIBTOOL_CONFIG($1) 2878 2879AC_LANG_POP 2880CC="$lt_save_CC" 2881])# AC_LIBTOOL_LANG_C_CONFIG 2882 2883 2884# AC_LIBTOOL_LANG_CXX_CONFIG 2885# -------------------------- 2886# Ensure that the configuration vars for the C compiler are 2887# suitably defined. Those variables are subsequently used by 2888# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 2889AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 2890AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 2891[AC_LANG_PUSH(C++) 2892AC_REQUIRE([AC_PROG_CXX]) 2893AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2894 2895_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2896_LT_AC_TAGVAR(allow_undefined_flag, $1)= 2897_LT_AC_TAGVAR(always_export_symbols, $1)=no 2898_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 2899_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 2900_LT_AC_TAGVAR(hardcode_direct, $1)=no 2901_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 2902_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 2903_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2904_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2905_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2906_LT_AC_TAGVAR(hardcode_automatic, $1)=no 2907_LT_AC_TAGVAR(module_cmds, $1)= 2908_LT_AC_TAGVAR(module_expsym_cmds, $1)= 2909_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 2910_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 2911_LT_AC_TAGVAR(no_undefined_flag, $1)= 2912_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 2913_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 2914 2915# Dependencies to place before and after the object being linked: 2916_LT_AC_TAGVAR(predep_objects, $1)= 2917_LT_AC_TAGVAR(postdep_objects, $1)= 2918_LT_AC_TAGVAR(predeps, $1)= 2919_LT_AC_TAGVAR(postdeps, $1)= 2920_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 2921 2922# Source file extension for C++ test sources. 2923ac_ext=cpp 2924 2925# Object file extension for compiled C++ test sources. 2926objext=o 2927_LT_AC_TAGVAR(objext, $1)=$objext 2928 2929# Code to be used in simple compile tests 2930lt_simple_compile_test_code="int some_variable = 0;\n" 2931 2932# Code to be used in simple link tests 2933lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' 2934 2935# ltmain only uses $CC for tagged configurations so make sure $CC is set. 2936_LT_AC_SYS_COMPILER 2937 2938# save warnings/boilerplate of simple test code 2939_LT_COMPILER_BOILERPLATE 2940_LT_LINKER_BOILERPLATE 2941 2942# Allow CC to be a program name with arguments. 2943lt_save_CC=$CC 2944lt_save_LD=$LD 2945lt_save_GCC=$GCC 2946GCC=$GXX 2947lt_save_with_gnu_ld=$with_gnu_ld 2948lt_save_path_LD=$lt_cv_path_LD 2949if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 2950 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 2951else 2952 $as_unset lt_cv_prog_gnu_ld 2953fi 2954if test -n "${lt_cv_path_LDCXX+set}"; then 2955 lt_cv_path_LD=$lt_cv_path_LDCXX 2956else 2957 $as_unset lt_cv_path_LD 2958fi 2959test -z "${LDCXX+set}" || LD=$LDCXX 2960CC=${CXX-"c++"} 2961compiler=$CC 2962_LT_AC_TAGVAR(compiler, $1)=$CC 2963_LT_CC_BASENAME([$compiler]) 2964 2965# We don't want -fno-exception wen compiling C++ code, so set the 2966# no_builtin_flag separately 2967if test "$GXX" = yes; then 2968 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 2969else 2970 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 2971fi 2972 2973if test "$GXX" = yes; then 2974 # Set up default GNU C++ configuration 2975 2976 AC_PROG_LD 2977 2978 # Check if GNU C++ uses GNU ld as the underlying linker, since the 2979 # archiving commands below assume that GNU ld is being used. 2980 if test "$with_gnu_ld" = yes; then 2981 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 2982 _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' 2983 2984 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 2985 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 2986 2987 # If archive_cmds runs LD, not CC, wlarc should be empty 2988 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 2989 # investigate it a little bit more. (MM) 2990 wlarc='${wl}' 2991 2992 # ancient GNU ld didn't support --whole-archive et. al. 2993 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 2994 grep 'no-whole-archive' > /dev/null; then 2995 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 2996 else 2997 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 2998 fi 2999 else 3000 with_gnu_ld=no 3001 wlarc= 3002 3003 # A generic and very simple default shared library creation 3004 # command for GNU C++ for the case where it uses the native 3005 # linker, instead of GNU ld. If possible, this setting should 3006 # overridden to take advantage of the native linker features on 3007 # the platform it is being used on. 3008 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3009 fi 3010 3011 # Commands to make compiler produce verbose output that lists 3012 # what "hidden" libraries, object files and flags are used when 3013 # linking a shared library. 3014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3015 3016else 3017 GXX=no 3018 with_gnu_ld=no 3019 wlarc= 3020fi 3021 3022# PORTME: fill in a description of your system's C++ link characteristics 3023AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 3024_LT_AC_TAGVAR(ld_shlibs, $1)=yes 3025case $host_os in 3026 aix3*) 3027 # FIXME: insert proper C++ library support 3028 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3029 ;; 3030 aix4* | aix5*) 3031 if test "$host_cpu" = ia64; then 3032 # On IA64, the linker does run time linking by default, so we don't 3033 # have to do anything special. 3034 aix_use_runtimelinking=no 3035 exp_sym_flag='-Bexport' 3036 no_entry_flag="" 3037 else 3038 aix_use_runtimelinking=no 3039 3040 # Test if we are trying to use run time linking or normal 3041 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 3042 # need to do runtime linking. 3043 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 3044 for ld_flag in $LDFLAGS; do 3045 case $ld_flag in 3046 *-brtl*) 3047 aix_use_runtimelinking=yes 3048 break 3049 ;; 3050 esac 3051 done 3052 ;; 3053 esac 3054 3055 exp_sym_flag='-bexport' 3056 no_entry_flag='-bnoentry' 3057 fi 3058 3059 # When large executables or shared objects are built, AIX ld can 3060 # have problems creating the table of contents. If linking a library 3061 # or program results in "error TOC overflow" add -mminimal-toc to 3062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 3063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 3064 3065 _LT_AC_TAGVAR(archive_cmds, $1)='' 3066 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3067 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3068 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3069 3070 if test "$GXX" = yes; then 3071 case $host_os in aix4.[[012]]|aix4.[[012]].*) 3072 # We only want to do this on AIX 4.2 and lower, the check 3073 # below for broken collect2 doesn't work under 4.3+ 3074 collect2name=`${CC} -print-prog-name=collect2` 3075 if test -f "$collect2name" && \ 3076 strings "$collect2name" | grep resolve_lib_name >/dev/null 3077 then 3078 # We have reworked collect2 3079 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3080 else 3081 # We have old collect2 3082 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 3083 # It fails to find uninstalled libraries when the uninstalled 3084 # path is not listed in the libpath. Setting hardcode_minus_L 3085 # to unsupported forces relinking 3086 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 3087 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3088 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3089 fi 3090 ;; 3091 esac 3092 shared_flag='-shared' 3093 if test "$aix_use_runtimelinking" = yes; then 3094 shared_flag="$shared_flag "'${wl}-G' 3095 fi 3096 else 3097 # not using gcc 3098 if test "$host_cpu" = ia64; then 3099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 3100 # chokes on -Wl,-G. The following line is correct: 3101 shared_flag='-G' 3102 else 3103 if test "$aix_use_runtimelinking" = yes; then 3104 shared_flag='${wl}-G' 3105 else 3106 shared_flag='${wl}-bM:SRE' 3107 fi 3108 fi 3109 fi 3110 3111 # It seems that -bexpall does not export symbols beginning with 3112 # underscore (_), so it is better to generate a list of symbols to export. 3113 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 3114 if test "$aix_use_runtimelinking" = yes; then 3115 # Warning - without using the other runtime loading flags (-brtl), 3116 # -berok will link without error, but may produce a broken library. 3117 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 3118 # Determine the default libpath from the value encoded in an empty executable. 3119 _LT_AC_SYS_LIBPATH_AIX 3120 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3121 3122 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 3123 else 3124 if test "$host_cpu" = ia64; then 3125 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 3126 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 3127 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 3128 else 3129 # Determine the default libpath from the value encoded in an empty executable. 3130 _LT_AC_SYS_LIBPATH_AIX 3131 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3132 # Warning - without using the other run time loading flags, 3133 # -berok will link without error, but may produce a broken library. 3134 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 3135 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 3136 # Exported symbols can be pulled into shared objects from archives 3137 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 3138 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 3139 # This is similar to how AIX traditionally builds its shared libraries. 3140 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 3141 fi 3142 fi 3143 ;; 3144 3145 beos*) 3146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 3147 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 3149 # support --undefined. This deserves some investigation. FIXME 3150 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3151 else 3152 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3153 fi 3154 ;; 3155 3156 chorus*) 3157 case $cc_basename in 3158 *) 3159 # FIXME: insert proper C++ library support 3160 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3161 ;; 3162 esac 3163 ;; 3164 3165 cygwin* | mingw* | pw32*) 3166 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 3167 # as there is no search path for DLLs. 3168 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3169 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3170 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3171 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3172 3173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3174 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 3175 # If the export-symbols file already is a .def file (1st line 3176 # is EXPORTS), use it as is; otherwise, prepend... 3177 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3178 cp $export_symbols $output_objdir/$soname.def; 3179 else 3180 echo EXPORTS > $output_objdir/$soname.def; 3181 cat $export_symbols >> $output_objdir/$soname.def; 3182 fi~ 3183 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 3184 else 3185 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3186 fi 3187 ;; 3188 darwin* | rhapsody*) 3189 case $host_os in 3190 rhapsody* | darwin1.[[012]]) 3191 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 3192 ;; 3193 *) # Darwin 1.3 on 3194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 3195 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3196 else 3197 case ${MACOSX_DEPLOYMENT_TARGET} in 3198 10.[[012]]) 3199 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3200 ;; 3201 10.*) 3202 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 3203 ;; 3204 esac 3205 fi 3206 ;; 3207 esac 3208 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3209 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3210 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3211 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3212 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 3213 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3214 3215 if test "$GXX" = yes ; then 3216 lt_int_apple_cc_single_mod=no 3217 output_verbose_link_cmd='echo' 3218 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 3219 lt_int_apple_cc_single_mod=yes 3220 fi 3221 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3222 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 3223 else 3224 _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' 3225 fi 3226 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3227 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3228 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3229 _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}' 3230 else 3231 _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}' 3232 fi 3233 _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}' 3234 else 3235 case $cc_basename in 3236 xlc*) 3237 output_verbose_link_cmd='echo' 3238 _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' 3239 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3241 _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}' 3242 _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}' 3243 ;; 3244 *) 3245 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3246 ;; 3247 esac 3248 fi 3249 ;; 3250 3251 dgux*) 3252 case $cc_basename in 3253 ec++*) 3254 # FIXME: insert proper C++ library support 3255 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3256 ;; 3257 ghcx*) 3258 # Green Hills C++ Compiler 3259 # FIXME: insert proper C++ library support 3260 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3261 ;; 3262 *) 3263 # FIXME: insert proper C++ library support 3264 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3265 ;; 3266 esac 3267 ;; 3268 freebsd[[12]]*) 3269 # C++ shared libraries reported to be fairly broken before switch to ELF 3270 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3271 ;; 3272 freebsd-elf*) 3273 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3274 ;; 3275 freebsd* | kfreebsd*-gnu | dragonfly*) 3276 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3277 # conventions 3278 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3279 ;; 3280 gnu*) 3281 ;; 3282 hpux9*) 3283 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3284 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3285 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3286 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3287 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3288 # but as the default 3289 # location of the library. 3290 3291 case $cc_basename in 3292 CC*) 3293 # FIXME: insert proper C++ library support 3294 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3295 ;; 3296 aCC*) 3297 _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' 3298 # Commands to make compiler produce verbose output that lists 3299 # what "hidden" libraries, object files and flags are used when 3300 # linking a shared library. 3301 # 3302 # There doesn't appear to be a way to prevent this compiler from 3303 # explicitly linking system object files so we need to strip them 3304 # from the output so that they don't get included in the library 3305 # dependencies. 3306 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' 3307 ;; 3308 *) 3309 if test "$GXX" = yes; then 3310 _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' 3311 else 3312 # FIXME: insert proper C++ library support 3313 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3314 fi 3315 ;; 3316 esac 3317 ;; 3318 hpux10*|hpux11*) 3319 if test $with_gnu_ld = no; then 3320 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3321 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3322 3323 case $host_cpu in 3324 hppa*64*|ia64*) 3325 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3326 ;; 3327 *) 3328 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3329 ;; 3330 esac 3331 fi 3332 case $host_cpu in 3333 hppa*64*|ia64*) 3334 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3335 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3336 ;; 3337 *) 3338 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3339 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3340 # but as the default 3341 # location of the library. 3342 ;; 3343 esac 3344 3345 case $cc_basename in 3346 CC*) 3347 # FIXME: insert proper C++ library support 3348 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3349 ;; 3350 aCC*) 3351 case $host_cpu in 3352 hppa*64*) 3353 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3354 ;; 3355 ia64*) 3356 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3357 ;; 3358 *) 3359 _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' 3360 ;; 3361 esac 3362 # Commands to make compiler produce verbose output that lists 3363 # what "hidden" libraries, object files and flags are used when 3364 # linking a shared library. 3365 # 3366 # There doesn't appear to be a way to prevent this compiler from 3367 # explicitly linking system object files so we need to strip them 3368 # from the output so that they don't get included in the library 3369 # dependencies. 3370 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' 3371 ;; 3372 *) 3373 if test "$GXX" = yes; then 3374 if test $with_gnu_ld = no; then 3375 case $host_cpu in 3376 hppa*64*) 3377 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3378 ;; 3379 ia64*) 3380 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3381 ;; 3382 *) 3383 _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' 3384 ;; 3385 esac 3386 fi 3387 else 3388 # FIXME: insert proper C++ library support 3389 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3390 fi 3391 ;; 3392 esac 3393 ;; 3394 interix3*) 3395 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3396 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3397 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3398 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3399 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 3400 # Instead, shared libraries are loaded at an image base (0x10000000 by 3401 # default) and relocated if they conflict, which is a slow very memory 3402 # consuming and fragmenting process. To avoid this, we pick a random, 3403 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 3404 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 3405 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 3406 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 3407 ;; 3408 irix5* | irix6*) 3409 case $cc_basename in 3410 CC*) 3411 # SGI C++ 3412 _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' 3413 3414 # Archives containing C++ object files must be created using 3415 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 3416 # necessary to make sure instantiated templates are included 3417 # in the archive. 3418 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 3419 ;; 3420 *) 3421 if test "$GXX" = yes; then 3422 if test "$with_gnu_ld" = no; then 3423 _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' 3424 else 3425 _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' 3426 fi 3427 fi 3428 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3429 ;; 3430 esac 3431 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3432 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3433 ;; 3434 linux*) 3435 case $cc_basename in 3436 KCC*) 3437 # Kuck and Associates, Inc. (KAI) C++ Compiler 3438 3439 # KCC will only create a shared library if the output file 3440 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3441 # to its proper name (with version) after linking. 3442 _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' 3443 _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' 3444 # Commands to make compiler produce verbose output that lists 3445 # what "hidden" libraries, object files and flags are used when 3446 # linking a shared library. 3447 # 3448 # There doesn't appear to be a way to prevent this compiler from 3449 # explicitly linking system object files so we need to strip them 3450 # from the output so that they don't get included in the library 3451 # dependencies. 3452 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' 3453 3454 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 3455 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3456 3457 # Archives containing C++ object files must be created using 3458 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3459 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3460 ;; 3461 icpc*) 3462 # Intel C++ 3463 with_gnu_ld=yes 3464 # version 8.0 and above of icpc choke on multiply defined symbols 3465 # if we add $predep_objects and $postdep_objects, however 7.1 and 3466 # earlier do not add the objects themselves. 3467 case `$CC -V 2>&1` in 3468 *"Version 7."*) 3469 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3470 _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' 3471 ;; 3472 *) # Version 8.0 or newer 3473 tmp_idyn= 3474 case $host_cpu in 3475 ia64*) tmp_idyn=' -i_dynamic';; 3476 esac 3477 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3478 _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' 3479 ;; 3480 esac 3481 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3482 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3483 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3484 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3485 ;; 3486 pgCC*) 3487 # Portland Group C++ compiler 3488 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 3489 _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' 3490 3491 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3492 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3493 _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' 3494 ;; 3495 cxx*) 3496 # Compaq C++ 3497 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3498 _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' 3499 3500 runpath_var=LD_RUN_PATH 3501 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3502 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3503 3504 # Commands to make compiler produce verbose output that lists 3505 # what "hidden" libraries, object files and flags are used when 3506 # linking a shared library. 3507 # 3508 # There doesn't appear to be a way to prevent this compiler from 3509 # explicitly linking system object files so we need to strip them 3510 # from the output so that they don't get included in the library 3511 # dependencies. 3512 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' 3513 ;; 3514 esac 3515 ;; 3516 lynxos*) 3517 # FIXME: insert proper C++ library support 3518 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3519 ;; 3520 m88k*) 3521 # FIXME: insert proper C++ library support 3522 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3523 ;; 3524 mvs*) 3525 case $cc_basename in 3526 cxx*) 3527 # FIXME: insert proper C++ library support 3528 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3529 ;; 3530 *) 3531 # FIXME: insert proper C++ library support 3532 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3533 ;; 3534 esac 3535 ;; 3536 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 3537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3538 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 3539 wlarc= 3540 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3541 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3542 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3543 fi 3544 # Workaround some broken pre-1.5 toolchains 3545 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3546 ;; 3547 openbsd2*) 3548 # C++ shared libraries are fairly broken 3549 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3550 ;; 3551 openbsd*) 3552 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3553 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3554 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3555 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3557 _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' 3558 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3559 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3560 fi 3561 output_verbose_link_cmd='echo' 3562 ;; 3563 osf3*) 3564 case $cc_basename in 3565 KCC*) 3566 # Kuck and Associates, Inc. (KAI) C++ Compiler 3567 3568 # KCC will only create a shared library if the output file 3569 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3570 # to its proper name (with version) after linking. 3571 _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' 3572 3573 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3574 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3575 3576 # Archives containing C++ object files must be created using 3577 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3578 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3579 3580 ;; 3581 RCC*) 3582 # Rational C++ 2.4.1 3583 # FIXME: insert proper C++ library support 3584 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3585 ;; 3586 cxx*) 3587 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3588 _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' 3589 3590 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3591 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3592 3593 # Commands to make compiler produce verbose output that lists 3594 # what "hidden" libraries, object files and flags are used when 3595 # linking a shared library. 3596 # 3597 # There doesn't appear to be a way to prevent this compiler from 3598 # explicitly linking system object files so we need to strip them 3599 # from the output so that they don't get included in the library 3600 # dependencies. 3601 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' 3602 ;; 3603 *) 3604 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3605 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3606 _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' 3607 3608 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3609 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3610 3611 # Commands to make compiler produce verbose output that lists 3612 # what "hidden" libraries, object files and flags are used when 3613 # linking a shared library. 3614 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3615 3616 else 3617 # FIXME: insert proper C++ library support 3618 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3619 fi 3620 ;; 3621 esac 3622 ;; 3623 osf4* | osf5*) 3624 case $cc_basename in 3625 KCC*) 3626 # Kuck and Associates, Inc. (KAI) C++ Compiler 3627 3628 # KCC will only create a shared library if the output file 3629 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3630 # to its proper name (with version) after linking. 3631 _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' 3632 3633 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3634 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3635 3636 # Archives containing C++ object files must be created using 3637 # the KAI C++ compiler. 3638 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3639 ;; 3640 RCC*) 3641 # Rational C++ 2.4.1 3642 # FIXME: insert proper C++ library support 3643 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3644 ;; 3645 cxx*) 3646 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3647 _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' 3648 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3649 echo "-hidden">> $lib.exp~ 3650 $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~ 3651 $rm $lib.exp' 3652 3653 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3654 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3655 3656 # Commands to make compiler produce verbose output that lists 3657 # what "hidden" libraries, object files and flags are used when 3658 # linking a shared library. 3659 # 3660 # There doesn't appear to be a way to prevent this compiler from 3661 # explicitly linking system object files so we need to strip them 3662 # from the output so that they don't get included in the library 3663 # dependencies. 3664 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' 3665 ;; 3666 *) 3667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3668 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3669 _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' 3670 3671 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3672 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3673 3674 # Commands to make compiler produce verbose output that lists 3675 # what "hidden" libraries, object files and flags are used when 3676 # linking a shared library. 3677 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3678 3679 else 3680 # FIXME: insert proper C++ library support 3681 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3682 fi 3683 ;; 3684 esac 3685 ;; 3686 psos*) 3687 # FIXME: insert proper C++ library support 3688 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3689 ;; 3690 sunos4*) 3691 case $cc_basename in 3692 CC*) 3693 # Sun C++ 4.x 3694 # FIXME: insert proper C++ library support 3695 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3696 ;; 3697 lcc*) 3698 # Lucid 3699 # FIXME: insert proper C++ library support 3700 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3701 ;; 3702 *) 3703 # FIXME: insert proper C++ library support 3704 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3705 ;; 3706 esac 3707 ;; 3708 solaris*) 3709 case $cc_basename in 3710 CC*) 3711 # Sun C++ 4.2, 5.x and Centerline C++ 3712 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 3713 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3714 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3715 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3716 $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' 3717 3718 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3719 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3720 case $host_os in 3721 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3722 *) 3723 # The C++ compiler is used as linker so we must use $wl 3724 # flag to pass the commands to the underlying system 3725 # linker. We must also pass each convience library through 3726 # to the system linker between allextract/defaultextract. 3727 # The C++ compiler will combine linker options so we 3728 # cannot just pass the convience library names through 3729 # without $wl. 3730 # Supported since Solaris 2.6 (maybe 2.5.1?) 3731 _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' 3732 ;; 3733 esac 3734 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3735 3736 output_verbose_link_cmd='echo' 3737 3738 # Archives containing C++ object files must be created using 3739 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3740 # necessary to make sure instantiated templates are included 3741 # in the archive. 3742 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3743 ;; 3744 gcx*) 3745 # Green Hills C++ Compiler 3746 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3747 3748 # The C++ compiler must be used to create the archive. 3749 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 3750 ;; 3751 *) 3752 # GNU C++ compiler with Solaris linker 3753 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3754 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 3755 if $CC --version | grep -v '^2\.7' > /dev/null; then 3756 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3757 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3758 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3759 3760 # Commands to make compiler produce verbose output that lists 3761 # what "hidden" libraries, object files and flags are used when 3762 # linking a shared library. 3763 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 3764 else 3765 # g++ 2.7 appears to require `-G' NOT `-shared' on this 3766 # platform. 3767 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3768 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3769 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3770 3771 # Commands to make compiler produce verbose output that lists 3772 # what "hidden" libraries, object files and flags are used when 3773 # linking a shared library. 3774 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 3775 fi 3776 3777 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 3778 fi 3779 ;; 3780 esac 3781 ;; 3782 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 3783 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3784 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3785 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3786 runpath_var='LD_RUN_PATH' 3787 3788 case $cc_basename in 3789 CC*) 3790 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3791 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3792 ;; 3793 *) 3794 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3795 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3796 ;; 3797 esac 3798 ;; 3799 sysv5* | sco3.2v5* | sco5v6*) 3800 # Note: We can NOT use -z defs as we might desire, because we do not 3801 # link with -lc, and that would cause any symbols used from libc to 3802 # always be unresolved, which means just about no library would 3803 # ever link correctly. If we're not using GNU ld we use -z text 3804 # though, which does catch some bad symbols but isn't as heavy-handed 3805 # as -z defs. 3806 # For security reasons, it is highly recommended that you always 3807 # use absolute paths for naming shared libraries, and exclude the 3808 # DT_RUNPATH tag from executables and libraries. But doing so 3809 # requires that you compile everything twice, which is a pain. 3810 # So that behaviour is only enabled if SCOABSPATH is set to a 3811 # non-empty value in the environment. Most likely only useful for 3812 # creating official distributions of packages. 3813 # This is a hack until libtool officially supports absolute path 3814 # names for shared libraries. 3815 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3816 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 3817 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3818 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3819 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 3820 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3821 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3822 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 3823 runpath_var='LD_RUN_PATH' 3824 3825 case $cc_basename in 3826 CC*) 3827 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3828 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3829 ;; 3830 *) 3831 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3832 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3833 ;; 3834 esac 3835 ;; 3836 tandem*) 3837 case $cc_basename in 3838 NCC*) 3839 # NonStop-UX NCC 3.20 3840 # FIXME: insert proper C++ library support 3841 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3842 ;; 3843 *) 3844 # FIXME: insert proper C++ library support 3845 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3846 ;; 3847 esac 3848 ;; 3849 vxworks*) 3850 # FIXME: insert proper C++ library support 3851 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3852 ;; 3853 *) 3854 # FIXME: insert proper C++ library support 3855 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3856 ;; 3857esac 3858AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 3859test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 3860 3861_LT_AC_TAGVAR(GCC, $1)="$GXX" 3862_LT_AC_TAGVAR(LD, $1)="$LD" 3863 3864AC_LIBTOOL_POSTDEP_PREDEP($1) 3865AC_LIBTOOL_PROG_COMPILER_PIC($1) 3866AC_LIBTOOL_PROG_CC_C_O($1) 3867AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3868AC_LIBTOOL_PROG_LD_SHLIBS($1) 3869AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3870AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3871 3872AC_LIBTOOL_CONFIG($1) 3873 3874AC_LANG_POP 3875CC=$lt_save_CC 3876LDCXX=$LD 3877LD=$lt_save_LD 3878GCC=$lt_save_GCC 3879with_gnu_ldcxx=$with_gnu_ld 3880with_gnu_ld=$lt_save_with_gnu_ld 3881lt_cv_path_LDCXX=$lt_cv_path_LD 3882lt_cv_path_LD=$lt_save_path_LD 3883lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 3884lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 3885])# AC_LIBTOOL_LANG_CXX_CONFIG 3886 3887# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3888# ------------------------------------ 3889# Figure out "hidden" library dependencies from verbose 3890# compiler output when linking a shared library. 3891# Parse the compiler output and extract the necessary 3892# objects, libraries and library flags. 3893AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 3894dnl we can't use the lt_simple_compile_test_code here, 3895dnl because it contains code intended for an executable, 3896dnl not a library. It's possible we should let each 3897dnl tag define a new lt_????_link_test_code variable, 3898dnl but it's only used here... 3899ifelse([$1],[],[cat > conftest.$ac_ext <<EOF 3900int a; 3901void foo (void) { a = 0; } 3902EOF 3903],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 3904class Foo 3905{ 3906public: 3907 Foo (void) { a = 0; } 3908private: 3909 int a; 3910}; 3911EOF 3912],[$1],[F77],[cat > conftest.$ac_ext <<EOF 3913 subroutine foo 3914 implicit none 3915 integer*4 a 3916 a=0 3917 return 3918 end 3919EOF 3920],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 3921public class foo { 3922 private int a; 3923 public void bar (void) { 3924 a = 0; 3925 } 3926}; 3927EOF 3928]) 3929dnl Parse the compiler output and extract the necessary 3930dnl objects, libraries and library flags. 3931if AC_TRY_EVAL(ac_compile); then 3932 # Parse the compiler output and extract the necessary 3933 # objects, libraries and library flags. 3934 3935 # Sentinel used to keep track of whether or not we are before 3936 # the conftest object file. 3937 pre_test_object_deps_done=no 3938 3939 # The `*' in the case matches for architectures that use `case' in 3940 # $output_verbose_cmd can trigger glob expansion during the loop 3941 # eval without this substitution. 3942 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 3943 3944 for p in `eval $output_verbose_link_cmd`; do 3945 case $p in 3946 3947 -L* | -R* | -l*) 3948 # Some compilers place space between "-{L,R}" and the path. 3949 # Remove the space. 3950 if test $p = "-L" \ 3951 || test $p = "-R"; then 3952 prev=$p 3953 continue 3954 else 3955 prev= 3956 fi 3957 3958 if test "$pre_test_object_deps_done" = no; then 3959 case $p in 3960 -L* | -R*) 3961 # Internal compiler library paths should come after those 3962 # provided the user. The postdeps already come after the 3963 # user supplied libs so there is no need to process them. 3964 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 3965 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 3966 else 3967 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 3968 fi 3969 ;; 3970 # The "-l" case would never come before the object being 3971 # linked, so don't bother handling this case. 3972 esac 3973 else 3974 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 3975 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 3976 else 3977 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 3978 fi 3979 fi 3980 ;; 3981 3982 *.$objext) 3983 # This assumes that the test object file only shows up 3984 # once in the compiler output. 3985 if test "$p" = "conftest.$objext"; then 3986 pre_test_object_deps_done=yes 3987 continue 3988 fi 3989 3990 if test "$pre_test_object_deps_done" = no; then 3991 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 3992 _LT_AC_TAGVAR(predep_objects, $1)="$p" 3993 else 3994 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 3995 fi 3996 else 3997 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 3998 _LT_AC_TAGVAR(postdep_objects, $1)="$p" 3999 else 4000 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 4001 fi 4002 fi 4003 ;; 4004 4005 *) ;; # Ignore the rest. 4006 4007 esac 4008 done 4009 4010 # Clean up. 4011 rm -f a.out a.exe 4012else 4013 echo "libtool.m4: error: problem compiling $1 test program" 4014fi 4015 4016$rm -f confest.$objext 4017 4018# PORTME: override above test on systems where it is broken 4019ifelse([$1],[CXX], 4020[case $host_os in 4021interix3*) 4022 # Interix 3.5 installs completely hosed .la files for C++, so rather than 4023 # hack all around it, let's just trust "g++" to DTRT. 4024 _LT_AC_TAGVAR(predep_objects,$1)= 4025 _LT_AC_TAGVAR(postdep_objects,$1)= 4026 _LT_AC_TAGVAR(postdeps,$1)= 4027 ;; 4028 4029solaris*) 4030 case $cc_basename in 4031 CC*) 4032 # Adding this requires a known-good setup of shared libraries for 4033 # Sun compiler versions before 5.6, else PIC objects from an old 4034 # archive will be linked into the output, leading to subtle bugs. 4035 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 4036 ;; 4037 esac 4038 ;; 4039esac 4040]) 4041 4042case " $_LT_AC_TAGVAR(postdeps, $1) " in 4043*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 4044esac 4045])# AC_LIBTOOL_POSTDEP_PREDEP 4046 4047# AC_LIBTOOL_LANG_F77_CONFIG 4048# -------------------------- 4049# Ensure that the configuration vars for the C compiler are 4050# suitably defined. Those variables are subsequently used by 4051# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4052AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 4053AC_DEFUN([_LT_AC_LANG_F77_CONFIG], 4054[AC_REQUIRE([AC_PROG_F77]) 4055AC_LANG_PUSH(Fortran 77) 4056 4057_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4058_LT_AC_TAGVAR(allow_undefined_flag, $1)= 4059_LT_AC_TAGVAR(always_export_symbols, $1)=no 4060_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 4061_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 4062_LT_AC_TAGVAR(hardcode_direct, $1)=no 4063_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 4064_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4065_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 4066_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 4067_LT_AC_TAGVAR(hardcode_automatic, $1)=no 4068_LT_AC_TAGVAR(module_cmds, $1)= 4069_LT_AC_TAGVAR(module_expsym_cmds, $1)= 4070_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 4071_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4072_LT_AC_TAGVAR(no_undefined_flag, $1)= 4073_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 4074_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4075 4076# Source file extension for f77 test sources. 4077ac_ext=f 4078 4079# Object file extension for compiled f77 test sources. 4080objext=o 4081_LT_AC_TAGVAR(objext, $1)=$objext 4082 4083# Code to be used in simple compile tests 4084lt_simple_compile_test_code=" subroutine t\n return\n end\n" 4085 4086# Code to be used in simple link tests 4087lt_simple_link_test_code=" program t\n end\n" 4088 4089# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4090_LT_AC_SYS_COMPILER 4091 4092# save warnings/boilerplate of simple test code 4093_LT_COMPILER_BOILERPLATE 4094_LT_LINKER_BOILERPLATE 4095 4096# Allow CC to be a program name with arguments. 4097lt_save_CC="$CC" 4098CC=${F77-"f77"} 4099compiler=$CC 4100_LT_AC_TAGVAR(compiler, $1)=$CC 4101_LT_CC_BASENAME([$compiler]) 4102 4103AC_MSG_CHECKING([if libtool supports shared libraries]) 4104AC_MSG_RESULT([$can_build_shared]) 4105 4106AC_MSG_CHECKING([whether to build shared libraries]) 4107test "$can_build_shared" = "no" && enable_shared=no 4108 4109# On AIX, shared libraries and static libraries use the same namespace, and 4110# are all built from PIC. 4111case $host_os in 4112aix3*) 4113 test "$enable_shared" = yes && enable_static=no 4114 if test -n "$RANLIB"; then 4115 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4116 postinstall_cmds='$RANLIB $lib' 4117 fi 4118 ;; 4119aix4* | aix5*) 4120 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 4121 test "$enable_shared" = yes && enable_static=no 4122 fi 4123 ;; 4124esac 4125AC_MSG_RESULT([$enable_shared]) 4126 4127AC_MSG_CHECKING([whether to build static libraries]) 4128# Make sure either enable_shared or enable_static is yes. 4129test "$enable_shared" = yes || enable_static=yes 4130AC_MSG_RESULT([$enable_static]) 4131 4132_LT_AC_TAGVAR(GCC, $1)="$G77" 4133_LT_AC_TAGVAR(LD, $1)="$LD" 4134 4135AC_LIBTOOL_PROG_COMPILER_PIC($1) 4136AC_LIBTOOL_PROG_CC_C_O($1) 4137AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4138AC_LIBTOOL_PROG_LD_SHLIBS($1) 4139AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4140AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4141 4142AC_LIBTOOL_CONFIG($1) 4143 4144AC_LANG_POP 4145CC="$lt_save_CC" 4146])# AC_LIBTOOL_LANG_F77_CONFIG 4147 4148 4149# AC_LIBTOOL_LANG_GCJ_CONFIG 4150# -------------------------- 4151# Ensure that the configuration vars for the C compiler are 4152# suitably defined. Those variables are subsequently used by 4153# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4154AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 4155AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 4156[AC_LANG_SAVE 4157 4158# Source file extension for Java test sources. 4159ac_ext=java 4160 4161# Object file extension for compiled Java test sources. 4162objext=o 4163_LT_AC_TAGVAR(objext, $1)=$objext 4164 4165# Code to be used in simple compile tests 4166lt_simple_compile_test_code="class foo {}\n" 4167 4168# Code to be used in simple link tests 4169lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' 4170 4171# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4172_LT_AC_SYS_COMPILER 4173 4174# save warnings/boilerplate of simple test code 4175_LT_COMPILER_BOILERPLATE 4176_LT_LINKER_BOILERPLATE 4177 4178# Allow CC to be a program name with arguments. 4179lt_save_CC="$CC" 4180CC=${GCJ-"gcj"} 4181compiler=$CC 4182_LT_AC_TAGVAR(compiler, $1)=$CC 4183_LT_CC_BASENAME([$compiler]) 4184 4185# GCJ did not exist at the time GCC didn't implicitly link libc in. 4186_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4187 4188_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4189 4190AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 4191AC_LIBTOOL_PROG_COMPILER_PIC($1) 4192AC_LIBTOOL_PROG_CC_C_O($1) 4193AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4194AC_LIBTOOL_PROG_LD_SHLIBS($1) 4195AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4196AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4197 4198AC_LIBTOOL_CONFIG($1) 4199 4200AC_LANG_RESTORE 4201CC="$lt_save_CC" 4202])# AC_LIBTOOL_LANG_GCJ_CONFIG 4203 4204 4205# AC_LIBTOOL_LANG_RC_CONFIG 4206# ------------------------- 4207# Ensure that the configuration vars for the Windows resource compiler are 4208# suitably defined. Those variables are subsequently used by 4209# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4210AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 4211AC_DEFUN([_LT_AC_LANG_RC_CONFIG], 4212[AC_LANG_SAVE 4213 4214# Source file extension for RC test sources. 4215ac_ext=rc 4216 4217# Object file extension for compiled RC test sources. 4218objext=o 4219_LT_AC_TAGVAR(objext, $1)=$objext 4220 4221# Code to be used in simple compile tests 4222lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 4223 4224# Code to be used in simple link tests 4225lt_simple_link_test_code="$lt_simple_compile_test_code" 4226 4227# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4228_LT_AC_SYS_COMPILER 4229 4230# save warnings/boilerplate of simple test code 4231_LT_COMPILER_BOILERPLATE 4232_LT_LINKER_BOILERPLATE 4233 4234# Allow CC to be a program name with arguments. 4235lt_save_CC="$CC" 4236CC=${RC-"windres"} 4237compiler=$CC 4238_LT_AC_TAGVAR(compiler, $1)=$CC 4239_LT_CC_BASENAME([$compiler]) 4240_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4241 4242AC_LIBTOOL_CONFIG($1) 4243 4244AC_LANG_RESTORE 4245CC="$lt_save_CC" 4246])# AC_LIBTOOL_LANG_RC_CONFIG 4247 4248 4249# AC_LIBTOOL_CONFIG([TAGNAME]) 4250# ---------------------------- 4251# If TAGNAME is not passed, then create an initial libtool script 4252# with a default configuration from the untagged config vars. Otherwise 4253# add code to config.status for appending the configuration named by 4254# TAGNAME from the matching tagged config vars. 4255AC_DEFUN([AC_LIBTOOL_CONFIG], 4256[# The else clause should only fire when bootstrapping the 4257# libtool distribution, otherwise you forgot to ship ltmain.sh 4258# with your package, and you will get complaints that there are 4259# no rules to generate ltmain.sh. 4260if test -f "$ltmain"; then 4261 # See if we are running on zsh, and set the options which allow our commands through 4262 # without removal of \ escapes. 4263 if test -n "${ZSH_VERSION+set}" ; then 4264 setopt NO_GLOB_SUBST 4265 fi 4266 # Now quote all the things that may contain metacharacters while being 4267 # careful not to overquote the AC_SUBSTed values. We take copies of the 4268 # variables and quote the copies for generation of the libtool script. 4269 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 4270 SED SHELL STRIP \ 4271 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4272 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 4273 deplibs_check_method reload_flag reload_cmds need_locks \ 4274 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 4275 lt_cv_sys_global_symbol_to_c_name_address \ 4276 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 4277 old_postinstall_cmds old_postuninstall_cmds \ 4278 _LT_AC_TAGVAR(compiler, $1) \ 4279 _LT_AC_TAGVAR(CC, $1) \ 4280 _LT_AC_TAGVAR(LD, $1) \ 4281 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 4282 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 4283 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 4284 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 4285 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 4286 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 4287 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 4288 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 4289 _LT_AC_TAGVAR(old_archive_cmds, $1) \ 4290 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 4291 _LT_AC_TAGVAR(predep_objects, $1) \ 4292 _LT_AC_TAGVAR(postdep_objects, $1) \ 4293 _LT_AC_TAGVAR(predeps, $1) \ 4294 _LT_AC_TAGVAR(postdeps, $1) \ 4295 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 4296 _LT_AC_TAGVAR(archive_cmds, $1) \ 4297 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 4298 _LT_AC_TAGVAR(postinstall_cmds, $1) \ 4299 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 4300 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 4301 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 4302 _LT_AC_TAGVAR(no_undefined_flag, $1) \ 4303 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 4304 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 4305 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 4306 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 4307 _LT_AC_TAGVAR(hardcode_automatic, $1) \ 4308 _LT_AC_TAGVAR(module_cmds, $1) \ 4309 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 4310 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 4311 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 4312 _LT_AC_TAGVAR(include_expsyms, $1); do 4313 4314 case $var in 4315 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 4316 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 4317 _LT_AC_TAGVAR(archive_cmds, $1) | \ 4318 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 4319 _LT_AC_TAGVAR(module_cmds, $1) | \ 4320 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4321 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 4322 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 4323 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 4324 postinstall_cmds | postuninstall_cmds | \ 4325 old_postinstall_cmds | old_postuninstall_cmds | \ 4326 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 4327 # Double-quote double-evaled strings. 4328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 4329 ;; 4330 *) 4331 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 4332 ;; 4333 esac 4334 done 4335 4336 case $lt_echo in 4337 *'\[$]0 --fallback-echo"') 4338 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 4339 ;; 4340 esac 4341 4342ifelse([$1], [], 4343 [cfgfile="${ofile}T" 4344 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 4345 $rm -f "$cfgfile" 4346 AC_MSG_NOTICE([creating $ofile])], 4347 [cfgfile="$ofile"]) 4348 4349 cat <<__EOF__ >> "$cfgfile" 4350ifelse([$1], [], 4351[#! $SHELL 4352 4353# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 4354# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 4355# NOTE: Changes made to this file will be lost: look at ltmain.sh. 4356# 4357# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 4358# Free Software Foundation, Inc. 4359# 4360# This file is part of GNU Libtool: 4361# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 4362# 4363# This program is free software; you can redistribute it and/or modify 4364# it under the terms of the GNU General Public License as published by 4365# the Free Software Foundation; either version 2 of the License, or 4366# (at your option) any later version. 4367# 4368# This program is distributed in the hope that it will be useful, but 4369# WITHOUT ANY WARRANTY; without even the implied warranty of 4370# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 4371# General Public License for more details. 4372# 4373# You should have received a copy of the GNU General Public License 4374# along with this program; if not, write to the Free Software 4375# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 4376# 4377# As a special exception to the GNU General Public License, if you 4378# distribute this file as part of a program that contains a 4379# configuration script generated by Autoconf, you may include it under 4380# the same distribution terms that you use for the rest of that program. 4381 4382# A sed program that does not truncate output. 4383SED=$lt_SED 4384 4385# Sed that helps us avoid accidentally triggering echo(1) options like -n. 4386Xsed="$SED -e 1s/^X//" 4387 4388# The HP-UX ksh and POSIX shell print the target directory to stdout 4389# if CDPATH is set. 4390(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4391 4392# The names of the tagged configurations supported by this script. 4393available_tags= 4394 4395# ### BEGIN LIBTOOL CONFIG], 4396[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 4397 4398# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4399 4400# Shell to use when invoking shell scripts. 4401SHELL=$lt_SHELL 4402 4403# Whether or not to build shared libraries. 4404build_libtool_libs=$enable_shared 4405 4406# Whether or not to build static libraries. 4407build_old_libs=$enable_static 4408 4409# Whether or not to add -lc for building shared libraries. 4410build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 4411 4412# Whether or not to disallow shared libs when runtime libs are static 4413allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 4414 4415# Whether or not to optimize for fast installation. 4416fast_install=$enable_fast_install 4417 4418# The host system. 4419host_alias=$host_alias 4420host=$host 4421host_os=$host_os 4422 4423# The build system. 4424build_alias=$build_alias 4425build=$build 4426build_os=$build_os 4427 4428# An echo program that does not interpret backslashes. 4429echo=$lt_echo 4430 4431# The archiver. 4432AR=$lt_AR 4433AR_FLAGS=$lt_AR_FLAGS 4434 4435# A C compiler. 4436LTCC=$lt_LTCC 4437 4438# LTCC compiler flags. 4439LTCFLAGS=$lt_LTCFLAGS 4440 4441# A language-specific compiler. 4442CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4443 4444# Is the compiler the GNU C compiler? 4445with_gcc=$_LT_AC_TAGVAR(GCC, $1) 4446 4447# An ERE matcher. 4448EGREP=$lt_EGREP 4449 4450# The linker used to build libraries. 4451LD=$lt_[]_LT_AC_TAGVAR(LD, $1) 4452 4453# Whether we need hard or soft links. 4454LN_S=$lt_LN_S 4455 4456# A BSD-compatible nm program. 4457NM=$lt_NM 4458 4459# A symbol stripping program 4460STRIP=$lt_STRIP 4461 4462# Used to examine libraries when file_magic_cmd begins "file" 4463MAGIC_CMD=$MAGIC_CMD 4464 4465# Used on cygwin: DLL creation program. 4466DLLTOOL="$DLLTOOL" 4467 4468# Used on cygwin: object dumper. 4469OBJDUMP="$OBJDUMP" 4470 4471# Used on cygwin: assembler. 4472AS="$AS" 4473 4474# The name of the directory that contains temporary libtool files. 4475objdir=$objdir 4476 4477# How to create reloadable object files. 4478reload_flag=$lt_reload_flag 4479reload_cmds=$lt_reload_cmds 4480 4481# How to pass a linker flag through the compiler. 4482wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 4483 4484# Object file suffix (normally "o"). 4485objext="$ac_objext" 4486 4487# Old archive suffix (normally "a"). 4488libext="$libext" 4489 4490# Shared library suffix (normally ".so"). 4491shrext_cmds='$shrext_cmds' 4492 4493# Executable file suffix (normally ""). 4494exeext="$exeext" 4495 4496# Additional compiler flags for building library objects. 4497pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 4498pic_mode=$pic_mode 4499 4500# What is the maximum length of a command? 4501max_cmd_len=$lt_cv_sys_max_cmd_len 4502 4503# Does compiler simultaneously support -c and -o options? 4504compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4505 4506# Must we lock files when doing compilation? 4507need_locks=$lt_need_locks 4508 4509# Do we need the lib prefix for modules? 4510need_lib_prefix=$need_lib_prefix 4511 4512# Do we need a version for libraries? 4513need_version=$need_version 4514 4515# Whether dlopen is supported. 4516dlopen_support=$enable_dlopen 4517 4518# Whether dlopen of programs is supported. 4519dlopen_self=$enable_dlopen_self 4520 4521# Whether dlopen of statically linked programs is supported. 4522dlopen_self_static=$enable_dlopen_self_static 4523 4524# Compiler flag to prevent dynamic linking. 4525link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 4526 4527# Compiler flag to turn off builtin functions. 4528no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 4529 4530# Compiler flag to allow reflexive dlopens. 4531export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 4532 4533# Compiler flag to generate shared objects directly from archives. 4534whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 4535 4536# Compiler flag to generate thread-safe objects. 4537thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 4538 4539# Library versioning type. 4540version_type=$version_type 4541 4542# Format of library name prefix. 4543libname_spec=$lt_libname_spec 4544 4545# List of archive names. First name is the real one, the rest are links. 4546# The last name is the one that the linker finds with -lNAME. 4547library_names_spec=$lt_library_names_spec 4548 4549# The coded name of the library, if different from the real name. 4550soname_spec=$lt_soname_spec 4551 4552# Commands used to build and install an old-style archive. 4553RANLIB=$lt_RANLIB 4554old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 4555old_postinstall_cmds=$lt_old_postinstall_cmds 4556old_postuninstall_cmds=$lt_old_postuninstall_cmds 4557 4558# Create an old-style archive from a shared archive. 4559old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 4560 4561# Create a temporary old-style archive to link instead of a shared archive. 4562old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 4563 4564# Commands used to build and install a shared archive. 4565archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 4566archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 4567postinstall_cmds=$lt_postinstall_cmds 4568postuninstall_cmds=$lt_postuninstall_cmds 4569 4570# Commands used to build a loadable module (assumed same as above if empty) 4571module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 4572module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 4573 4574# Commands to strip libraries. 4575old_striplib=$lt_old_striplib 4576striplib=$lt_striplib 4577 4578# Dependencies to place before the objects being linked to create a 4579# shared library. 4580predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 4581 4582# Dependencies to place after the objects being linked to create a 4583# shared library. 4584postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 4585 4586# Dependencies to place before the objects being linked to create a 4587# shared library. 4588predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 4589 4590# Dependencies to place after the objects being linked to create a 4591# shared library. 4592postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 4593 4594# The library search path used internally by the compiler when linking 4595# a shared library. 4596compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 4597 4598# Method to check whether dependent libraries are shared objects. 4599deplibs_check_method=$lt_deplibs_check_method 4600 4601# Command to use when deplibs_check_method == file_magic. 4602file_magic_cmd=$lt_file_magic_cmd 4603 4604# Flag that allows shared libraries with undefined symbols to be built. 4605allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 4606 4607# Flag that forces no undefined symbols. 4608no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 4609 4610# Commands used to finish a libtool library installation in a directory. 4611finish_cmds=$lt_finish_cmds 4612 4613# Same as above, but a single script fragment to be evaled but not shown. 4614finish_eval=$lt_finish_eval 4615 4616# Take the output of nm and produce a listing of raw symbols and C names. 4617global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 4618 4619# Transform the output of nm in a proper C declaration 4620global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 4621 4622# Transform the output of nm in a C name address pair 4623global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 4624 4625# This is the shared library runtime path variable. 4626runpath_var=$runpath_var 4627 4628# This is the shared library path variable. 4629shlibpath_var=$shlibpath_var 4630 4631# Is shlibpath searched before the hard-coded library search path? 4632shlibpath_overrides_runpath=$shlibpath_overrides_runpath 4633 4634# How to hardcode a shared library path into an executable. 4635hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 4636 4637# Whether we should hardcode library paths into libraries. 4638hardcode_into_libs=$hardcode_into_libs 4639 4640# Flag to hardcode \$libdir into a binary during linking. 4641# This must work even if \$libdir does not exist. 4642hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 4643 4644# If ld is used when linking, flag to hardcode \$libdir into 4645# a binary during linking. This must work even if \$libdir does 4646# not exist. 4647hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 4648 4649# Whether we need a single -rpath flag with a separated argument. 4650hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 4651 4652# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 4653# resulting binary. 4654hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 4655 4656# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 4657# resulting binary. 4658hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 4659 4660# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 4661# the resulting binary. 4662hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 4663 4664# Set to yes if building a shared library automatically hardcodes DIR into the library 4665# and all subsequent libraries and executables linked against it. 4666hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 4667 4668# Variables whose values should be saved in libtool wrapper scripts and 4669# restored at relink time. 4670variables_saved_for_relink="$variables_saved_for_relink" 4671 4672# Whether libtool must link a program against all its dependency libraries. 4673link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 4674 4675# Compile-time system search path for libraries 4676sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 4677 4678# Run-time system search path for libraries 4679sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 4680 4681# Fix the shell variable \$srcfile for the compiler. 4682fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" 4683 4684# Set to yes if exported symbols are required. 4685always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 4686 4687# The commands to list exported symbols. 4688export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 4689 4690# The commands to extract the exported symbol list from a shared archive. 4691extract_expsyms_cmds=$lt_extract_expsyms_cmds 4692 4693# Symbols that should not be listed in the preloaded symbols. 4694exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 4695 4696# Symbols that must always be exported. 4697include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 4698 4699ifelse([$1],[], 4700[# ### END LIBTOOL CONFIG], 4701[# ### END LIBTOOL TAG CONFIG: $tagname]) 4702 4703__EOF__ 4704 4705ifelse([$1],[], [ 4706 case $host_os in 4707 aix3*) 4708 cat <<\EOF >> "$cfgfile" 4709 4710# AIX sometimes has problems with the GCC collect2 program. For some 4711# reason, if we set the COLLECT_NAMES environment variable, the problems 4712# vanish in a puff of smoke. 4713if test "X${COLLECT_NAMES+set}" != Xset; then 4714 COLLECT_NAMES= 4715 export COLLECT_NAMES 4716fi 4717EOF 4718 ;; 4719 esac 4720 4721 # We use sed instead of cat because bash on DJGPP gets confused if 4722 # if finds mixed CR/LF and LF-only lines. Since sed operates in 4723 # text mode, it properly converts lines to CR/LF. This bash problem 4724 # is reportedly fixed, but why not run on old versions too? 4725 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 4726 4727 mv -f "$cfgfile" "$ofile" || \ 4728 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 4729 chmod +x "$ofile" 4730]) 4731else 4732 # If there is no Makefile yet, we rely on a make rule to execute 4733 # `config.status --recheck' to rerun these tests and create the 4734 # libtool script then. 4735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 4736 if test -f "$ltmain_in"; then 4737 test -f Makefile && make "$ltmain" 4738 fi 4739fi 4740])# AC_LIBTOOL_CONFIG 4741 4742 4743# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 4744# ------------------------------------------- 4745AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 4746[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 4747 4748_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 4749 4750if test "$GCC" = yes; then 4751 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 4752 4753 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 4754 lt_cv_prog_compiler_rtti_exceptions, 4755 [-fno-rtti -fno-exceptions], [], 4756 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 4757fi 4758])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 4759 4760 4761# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 4762# --------------------------------- 4763AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 4764[AC_REQUIRE([AC_CANONICAL_HOST]) 4765AC_REQUIRE([AC_PROG_NM]) 4766AC_REQUIRE([AC_OBJEXT]) 4767# Check for command to grab the raw symbol name followed by C symbol from nm. 4768AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 4769AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 4770[ 4771# These are sane defaults that work on at least a few old systems. 4772# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4773 4774# Character class describing NM global symbol codes. 4775symcode='[[BCDEGRST]]' 4776 4777# Regexp to match symbols that can be accessed directly from C. 4778sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4779 4780# Transform an extracted symbol line into a proper C declaration 4781lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4782 4783# Transform an extracted symbol line into symbol name and symbol address 4784lt_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'" 4785 4786# Define system-specific variables. 4787case $host_os in 4788aix*) 4789 symcode='[[BCDT]]' 4790 ;; 4791cygwin* | mingw* | pw32*) 4792 symcode='[[ABCDGISTW]]' 4793 ;; 4794hpux*) # Its linker distinguishes data from code symbols 4795 if test "$host_cpu" = ia64; then 4796 symcode='[[ABCDEGRST]]' 4797 fi 4798 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4799 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'" 4800 ;; 4801linux*) 4802 if test "$host_cpu" = ia64; then 4803 symcode='[[ABCDGIRSTW]]' 4804 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4805 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'" 4806 fi 4807 ;; 4808irix* | nonstopux*) 4809 symcode='[[BCDEGRST]]' 4810 ;; 4811osf*) 4812 symcode='[[BCDEGQRST]]' 4813 ;; 4814solaris*) 4815 symcode='[[BDRT]]' 4816 ;; 4817sco3.2v5*) 4818 symcode='[[DT]]' 4819 ;; 4820sysv4.2uw2*) 4821 symcode='[[DT]]' 4822 ;; 4823sysv5* | sco5v6* | unixware* | OpenUNIX*) 4824 symcode='[[ABDT]]' 4825 ;; 4826sysv4) 4827 symcode='[[DFNSTU]]' 4828 ;; 4829esac 4830 4831# Handle CRLF in mingw tool chain 4832opt_cr= 4833case $build_os in 4834mingw*) 4835 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4836 ;; 4837esac 4838 4839# If we're using GNU nm, then use its standard symbol codes. 4840case `$NM -V 2>&1` in 4841*GNU* | *'with BFD'*) 4842 symcode='[[ABCDGIRSTW]]' ;; 4843esac 4844 4845# Try without a prefix undercore, then with it. 4846for ac_symprfx in "" "_"; do 4847 4848 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4849 symxfrm="\\1 $ac_symprfx\\2 \\2" 4850 4851 # Write the raw and C identifiers. 4852 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4853 4854 # Check to see that the pipe works correctly. 4855 pipe_works=no 4856 4857 rm -f conftest* 4858 cat > conftest.$ac_ext <<EOF 4859#ifdef __cplusplus 4860extern "C" { 4861#endif 4862char nm_test_var; 4863void nm_test_func(){} 4864#ifdef __cplusplus 4865} 4866#endif 4867int main(){nm_test_var='a';nm_test_func();return(0);} 4868EOF 4869 4870 if AC_TRY_EVAL(ac_compile); then 4871 # Now try to grab the symbols. 4872 nlist=conftest.nm 4873 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 4874 # Try sorting and uniquifying the output. 4875 if sort "$nlist" | uniq > "$nlist"T; then 4876 mv -f "$nlist"T "$nlist" 4877 else 4878 rm -f "$nlist"T 4879 fi 4880 4881 # Make sure that we snagged all the symbols we need. 4882 if grep ' nm_test_var$' "$nlist" >/dev/null; then 4883 if grep ' nm_test_func$' "$nlist" >/dev/null; then 4884 cat <<EOF > conftest.$ac_ext 4885#ifdef __cplusplus 4886extern "C" { 4887#endif 4888 4889EOF 4890 # Now generate the symbol file. 4891 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 4892 4893 cat <<EOF >> conftest.$ac_ext 4894#if defined (__STDC__) && __STDC__ 4895# define lt_ptr_t void * 4896#else 4897# define lt_ptr_t char * 4898# define const 4899#endif 4900 4901/* The mapping between symbol names and symbols. */ 4902const struct { 4903 const char *name; 4904 lt_ptr_t address; 4905} 4906lt_preloaded_symbols[[]] = 4907{ 4908EOF 4909 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 4910 cat <<\EOF >> conftest.$ac_ext 4911 {0, (lt_ptr_t) 0} 4912}; 4913 4914#ifdef __cplusplus 4915} 4916#endif 4917EOF 4918 # Now try linking the two files. 4919 mv conftest.$ac_objext conftstm.$ac_objext 4920 lt_save_LIBS="$LIBS" 4921 lt_save_CFLAGS="$CFLAGS" 4922 LIBS="conftstm.$ac_objext" 4923 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4924 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 4925 pipe_works=yes 4926 fi 4927 LIBS="$lt_save_LIBS" 4928 CFLAGS="$lt_save_CFLAGS" 4929 else 4930 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4931 fi 4932 else 4933 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 4934 fi 4935 else 4936 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 4937 fi 4938 else 4939 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4940 cat conftest.$ac_ext >&5 4941 fi 4942 rm -f conftest* conftst* 4943 4944 # Do not use the global_symbol_pipe unless it works. 4945 if test "$pipe_works" = yes; then 4946 break 4947 else 4948 lt_cv_sys_global_symbol_pipe= 4949 fi 4950done 4951]) 4952if test -z "$lt_cv_sys_global_symbol_pipe"; then 4953 lt_cv_sys_global_symbol_to_cdecl= 4954fi 4955if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4956 AC_MSG_RESULT(failed) 4957else 4958 AC_MSG_RESULT(ok) 4959fi 4960]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 4961 4962 4963# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 4964# --------------------------------------- 4965AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 4966[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 4967_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4968_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 4969 4970AC_MSG_CHECKING([for $compiler option to produce PIC]) 4971 ifelse([$1],[CXX],[ 4972 # C++ specific cases for pic, static, wl, etc. 4973 if test "$GXX" = yes; then 4974 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4975 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4976 4977 case $host_os in 4978 aix*) 4979 # All AIX code is PIC. 4980 if test "$host_cpu" = ia64; then 4981 # AIX 5 now supports IA64 processor 4982 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4983 fi 4984 ;; 4985 amigaos*) 4986 # FIXME: we need at least 68020 code to build shared libraries, but 4987 # adding the `-m68020' flag to GCC prevents building anything better, 4988 # like `-m68040'. 4989 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4990 ;; 4991 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4992 # PIC is the default for these OSes. 4993 ;; 4994 mingw* | os2* | pw32*) 4995 # This hack is so that the source file can tell whether it is being 4996 # built for inclusion in a dll (and should export symbols for example). 4997 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4998 ;; 4999 darwin* | rhapsody*) 5000 # PIC is the default on this platform 5001 # Common symbols not allowed in MH_DYLIB files 5002 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5003 ;; 5004 *djgpp*) 5005 # DJGPP does not support shared libraries at all 5006 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5007 ;; 5008 interix3*) 5009 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5010 # Instead, we relocate shared libraries at runtime. 5011 ;; 5012 sysv4*MP*) 5013 if test -d /usr/nec; then 5014 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5015 fi 5016 ;; 5017 hpux*) 5018 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5019 # not for PA HP-UX. 5020 case $host_cpu in 5021 hppa*64*|ia64*) 5022 ;; 5023 *) 5024 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5025 ;; 5026 esac 5027 ;; 5028 *) 5029 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5030 ;; 5031 esac 5032 else 5033 case $host_os in 5034 aix4* | aix5*) 5035 # All AIX code is PIC. 5036 if test "$host_cpu" = ia64; then 5037 # AIX 5 now supports IA64 processor 5038 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5039 else 5040 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5041 fi 5042 ;; 5043 chorus*) 5044 case $cc_basename in 5045 cxch68*) 5046 # Green Hills C++ Compiler 5047 # _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" 5048 ;; 5049 esac 5050 ;; 5051 darwin*) 5052 # PIC is the default on this platform 5053 # Common symbols not allowed in MH_DYLIB files 5054 case $cc_basename in 5055 xlc*) 5056 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5057 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5058 ;; 5059 esac 5060 ;; 5061 dgux*) 5062 case $cc_basename in 5063 ec++*) 5064 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5065 ;; 5066 ghcx*) 5067 # Green Hills C++ Compiler 5068 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5069 ;; 5070 *) 5071 ;; 5072 esac 5073 ;; 5074 freebsd* | kfreebsd*-gnu | dragonfly*) 5075 # FreeBSD uses GNU C++ 5076 ;; 5077 hpux9* | hpux10* | hpux11*) 5078 case $cc_basename in 5079 CC*) 5080 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5081 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5082 if test "$host_cpu" != ia64; then 5083 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5084 fi 5085 ;; 5086 aCC*) 5087 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5088 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5089 case $host_cpu in 5090 hppa*64*|ia64*) 5091 # +Z the default 5092 ;; 5093 *) 5094 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5095 ;; 5096 esac 5097 ;; 5098 *) 5099 ;; 5100 esac 5101 ;; 5102 interix*) 5103 # This is c89, which is MS Visual C++ (no shared libs) 5104 # Anyone wants to do a port? 5105 ;; 5106 irix5* | irix6* | nonstopux*) 5107 case $cc_basename in 5108 CC*) 5109 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5110 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5111 # CC pic flag -KPIC is the default. 5112 ;; 5113 *) 5114 ;; 5115 esac 5116 ;; 5117 linux*) 5118 case $cc_basename in 5119 KCC*) 5120 # KAI C++ Compiler 5121 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5122 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5123 ;; 5124 icpc* | ecpc*) 5125 # Intel C++ 5126 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5127 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5128 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5129 ;; 5130 pgCC*) 5131 # Portland Group C++ compiler. 5132 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5133 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5134 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5135 ;; 5136 cxx*) 5137 # Compaq C++ 5138 # Make sure the PIC flag is empty. It appears that all Alpha 5139 # Linux and Compaq Tru64 Unix objects are PIC. 5140 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5141 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5142 ;; 5143 *) 5144 ;; 5145 esac 5146 ;; 5147 lynxos*) 5148 ;; 5149 m88k*) 5150 ;; 5151 mvs*) 5152 case $cc_basename in 5153 cxx*) 5154 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5155 ;; 5156 *) 5157 ;; 5158 esac 5159 ;; 5160 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5161 ;; 5162 osf3* | osf4* | osf5*) 5163 case $cc_basename in 5164 KCC*) 5165 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5166 ;; 5167 RCC*) 5168 # Rational C++ 2.4.1 5169 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5170 ;; 5171 cxx*) 5172 # Digital/Compaq C++ 5173 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5174 # Make sure the PIC flag is empty. It appears that all Alpha 5175 # Linux and Compaq Tru64 Unix objects are PIC. 5176 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5177 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5178 ;; 5179 *) 5180 ;; 5181 esac 5182 ;; 5183 psos*) 5184 ;; 5185 solaris*) 5186 case $cc_basename in 5187 CC*) 5188 # Sun C++ 4.2, 5.x and Centerline C++ 5189 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5190 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5191 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5192 ;; 5193 gcx*) 5194 # Green Hills C++ Compiler 5195 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5196 ;; 5197 *) 5198 ;; 5199 esac 5200 ;; 5201 sunos4*) 5202 case $cc_basename in 5203 CC*) 5204 # Sun C++ 4.x 5205 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5206 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5207 ;; 5208 lcc*) 5209 # Lucid 5210 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5211 ;; 5212 *) 5213 ;; 5214 esac 5215 ;; 5216 tandem*) 5217 case $cc_basename in 5218 NCC*) 5219 # NonStop-UX NCC 3.20 5220 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5221 ;; 5222 *) 5223 ;; 5224 esac 5225 ;; 5226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5227 case $cc_basename in 5228 CC*) 5229 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5230 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5231 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5232 ;; 5233 esac 5234 ;; 5235 vxworks*) 5236 ;; 5237 *) 5238 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5239 ;; 5240 esac 5241 fi 5242], 5243[ 5244 if test "$GCC" = yes; then 5245 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5246 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5247 5248 case $host_os in 5249 aix*) 5250 # All AIX code is PIC. 5251 if test "$host_cpu" = ia64; then 5252 # AIX 5 now supports IA64 processor 5253 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5254 fi 5255 ;; 5256 5257 amigaos*) 5258 # FIXME: we need at least 68020 code to build shared libraries, but 5259 # adding the `-m68020' flag to GCC prevents building anything better, 5260 # like `-m68040'. 5261 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5262 ;; 5263 5264 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5265 # PIC is the default for these OSes. 5266 ;; 5267 5268 mingw* | pw32* | os2*) 5269 # This hack is so that the source file can tell whether it is being 5270 # built for inclusion in a dll (and should export symbols for example). 5271 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5272 ;; 5273 5274 darwin* | rhapsody*) 5275 # PIC is the default on this platform 5276 # Common symbols not allowed in MH_DYLIB files 5277 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5278 ;; 5279 5280 interix3*) 5281 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5282 # Instead, we relocate shared libraries at runtime. 5283 ;; 5284 5285 msdosdjgpp*) 5286 # Just because we use GCC doesn't mean we suddenly get shared libraries 5287 # on systems that don't support them. 5288 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5289 enable_shared=no 5290 ;; 5291 5292 sysv4*MP*) 5293 if test -d /usr/nec; then 5294 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5295 fi 5296 ;; 5297 5298 hpux*) 5299 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5300 # not for PA HP-UX. 5301 case $host_cpu in 5302 hppa*64*|ia64*) 5303 # +Z the default 5304 ;; 5305 *) 5306 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5307 ;; 5308 esac 5309 ;; 5310 5311 *) 5312 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5313 ;; 5314 esac 5315 else 5316 # PORTME Check for flag to pass linker flags through the system compiler. 5317 case $host_os in 5318 aix*) 5319 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5320 if test "$host_cpu" = ia64; then 5321 # AIX 5 now supports IA64 processor 5322 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5323 else 5324 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5325 fi 5326 ;; 5327 darwin*) 5328 # PIC is the default on this platform 5329 # Common symbols not allowed in MH_DYLIB files 5330 case $cc_basename in 5331 xlc*) 5332 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5333 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5334 ;; 5335 esac 5336 ;; 5337 5338 mingw* | pw32* | os2*) 5339 # This hack is so that the source file can tell whether it is being 5340 # built for inclusion in a dll (and should export symbols for example). 5341 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5342 ;; 5343 5344 hpux9* | hpux10* | hpux11*) 5345 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5346 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5347 # not for PA HP-UX. 5348 case $host_cpu in 5349 hppa*64*|ia64*) 5350 # +Z the default 5351 ;; 5352 *) 5353 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5354 ;; 5355 esac 5356 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5357 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5358 ;; 5359 5360 irix5* | irix6* | nonstopux*) 5361 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5362 # PIC (with -KPIC) is the default. 5363 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5364 ;; 5365 5366 newsos6) 5367 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5368 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5369 ;; 5370 5371 linux*) 5372 case $cc_basename in 5373 icc* | ecc*) 5374 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5375 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5376 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5377 ;; 5378 pgcc* | pgf77* | pgf90* | pgf95*) 5379 # Portland Group compilers (*not* the Pentium gcc compiler, 5380 # which looks to be a dead project) 5381 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5382 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5383 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5384 ;; 5385 ccc*) 5386 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5387 # All Alpha code is PIC. 5388 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5389 ;; 5390 esac 5391 ;; 5392 5393 osf3* | osf4* | osf5*) 5394 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5395 # All OSF/1 code is PIC. 5396 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5397 ;; 5398 5399 solaris*) 5400 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5401 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5402 case $cc_basename in 5403 f77* | f90* | f95*) 5404 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5405 *) 5406 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5407 esac 5408 ;; 5409 5410 sunos4*) 5411 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5412 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5413 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5414 ;; 5415 5416 sysv4 | sysv4.2uw2* | sysv4.3*) 5417 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5418 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5419 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5420 ;; 5421 5422 sysv4*MP*) 5423 if test -d /usr/nec ;then 5424 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5425 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5426 fi 5427 ;; 5428 5429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5430 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5431 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5432 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5433 ;; 5434 5435 unicos*) 5436 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5437 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5438 ;; 5439 5440 uts4*) 5441 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5442 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5443 ;; 5444 5445 *) 5446 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5447 ;; 5448 esac 5449 fi 5450]) 5451AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 5452 5453# 5454# Check to make sure the PIC flag actually works. 5455# 5456if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 5457 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 5458 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), 5459 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 5460 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 5461 "" | " "*) ;; 5462 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5463 esac], 5464 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5465 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5466fi 5467case $host_os in 5468 # For platforms which do not support PIC, -DPIC is meaningless: 5469 *djgpp*) 5470 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5471 ;; 5472 *) 5473 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 5474 ;; 5475esac 5476 5477# 5478# Check to make sure the static flag actually works. 5479# 5480wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 5481AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5482 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 5483 $lt_tmp_static_flag, 5484 [], 5485 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 5486]) 5487 5488 5489# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 5490# ------------------------------------ 5491# See if the linker supports building shared libraries. 5492AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 5493[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5494ifelse([$1],[CXX],[ 5495 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5496 case $host_os in 5497 aix4* | aix5*) 5498 # If we're using GNU nm, then we don't want the "-C" option. 5499 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5500 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 5501 _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' 5502 else 5503 _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' 5504 fi 5505 ;; 5506 pw32*) 5507 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5508 ;; 5509 cygwin* | mingw*) 5510 _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' 5511 ;; 5512 kfreebsd*-gnu) 5513 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 5514 ;; 5515 linux*) 5516 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 5517 ;; 5518 *) 5519 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5520 ;; 5521 esac 5522],[ 5523 runpath_var= 5524 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 5525 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5526 _LT_AC_TAGVAR(archive_cmds, $1)= 5527 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 5528 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 5529 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5530 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5531 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5532 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 5533 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5534 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5535 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5536 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5537 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 5538 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5539 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 5540 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5541 _LT_AC_TAGVAR(module_cmds, $1)= 5542 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5543 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5544 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5545 # include_expsyms should be a list of space-separated symbols to be *always* 5546 # included in the symbol list 5547 _LT_AC_TAGVAR(include_expsyms, $1)= 5548 # exclude_expsyms can be an extended regexp of symbols to exclude 5549 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5550 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5551 # as well as any symbol that contains `d'. 5552 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" 5553 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5554 # platforms (ab)use it in PIC code, but their linkers get confused if 5555 # the symbol is explicitly referenced. Since portable code cannot 5556 # rely on this symbol name, it's probably fine to never include it in 5557 # preloaded symbol tables. 5558 extract_expsyms_cmds= 5559 # Just being paranoid about ensuring that cc_basename is set. 5560 _LT_CC_BASENAME([$compiler]) 5561 case $host_os in 5562 cygwin* | mingw* | pw32*) 5563 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5564 # When not using gcc, we currently assume that we are using 5565 # Microsoft Visual C++. 5566 if test "$GCC" != yes; then 5567 with_gnu_ld=no 5568 fi 5569 ;; 5570 interix*) 5571 # we just hope/assume this is gcc and not c89 (= MSVC++) 5572 with_gnu_ld=yes 5573 ;; 5574 openbsd*) 5575 with_gnu_ld=no 5576 ;; 5577 esac 5578 5579 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 5580 if test "$with_gnu_ld" = yes; then 5581 # If archive_cmds runs LD, not CC, wlarc should be empty 5582 wlarc='${wl}' 5583 5584 # Set some defaults for GNU ld with shared library support. These 5585 # are reset later if shared libraries are not supported. Putting them 5586 # here allows them to be overridden if necessary. 5587 runpath_var=LD_RUN_PATH 5588 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5589 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5590 # ancient GNU ld didn't support --whole-archive et. al. 5591 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5592 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5593 else 5594 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5595 fi 5596 supports_anon_versioning=no 5597 case `$LD -v 2>/dev/null` in 5598 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5599 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5600 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5601 *\ 2.11.*) ;; # other 2.11 versions 5602 *) supports_anon_versioning=yes ;; 5603 esac 5604 5605 # See if GNU ld supports shared libraries. 5606 case $host_os in 5607 aix3* | aix4* | aix5*) 5608 # On AIX/PPC, the GNU linker is very broken 5609 if test "$host_cpu" != ia64; then 5610 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5611 cat <<EOF 1>&2 5612 5613*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5614*** to be unable to reliably create shared libraries on AIX. 5615*** Therefore, libtool is disabling shared libraries support. If you 5616*** really care for shared libraries, you may want to modify your PATH 5617*** so that a non-GNU linker is found, and then restart. 5618 5619EOF 5620 fi 5621 ;; 5622 5623 amigaos*) 5624 _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)' 5625 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5626 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5627 5628 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5629 # that the semantics of dynamic libraries on AmigaOS, at least up 5630 # to version 4, is to share data among multiple programs linked 5631 # with the same dynamic library. Since this doesn't match the 5632 # behavior of shared libraries on other platforms, we can't use 5633 # them. 5634 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5635 ;; 5636 5637 beos*) 5638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5639 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5641 # support --undefined. This deserves some investigation. FIXME 5642 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5643 else 5644 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5645 fi 5646 ;; 5647 5648 cygwin* | mingw* | pw32*) 5649 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5650 # as there is no search path for DLLs. 5651 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5652 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5653 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5654 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5655 _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' 5656 5657 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5658 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5659 # If the export-symbols file already is a .def file (1st line 5660 # is EXPORTS), use it as is; otherwise, prepend... 5661 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5662 cp $export_symbols $output_objdir/$soname.def; 5663 else 5664 echo EXPORTS > $output_objdir/$soname.def; 5665 cat $export_symbols >> $output_objdir/$soname.def; 5666 fi~ 5667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5668 else 5669 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5670 fi 5671 ;; 5672 5673 interix3*) 5674 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5675 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5676 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5677 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5679 # Instead, shared libraries are loaded at an image base (0x10000000 by 5680 # default) and relocated if they conflict, which is a slow very memory 5681 # consuming and fragmenting process. To avoid this, we pick a random, 5682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5683 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5684 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5685 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5686 ;; 5687 5688 linux*) 5689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5690 tmp_addflag= 5691 case $cc_basename,$host_cpu in 5692 pgcc*) # Portland Group C compiler 5693 _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' 5694 tmp_addflag=' $pic_flag' 5695 ;; 5696 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 5697 _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' 5698 tmp_addflag=' $pic_flag -Mnomain' ;; 5699 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5700 tmp_addflag=' -i_dynamic' ;; 5701 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5702 tmp_addflag=' -i_dynamic -nofor_main' ;; 5703 ifc* | ifort*) # Intel Fortran compiler 5704 tmp_addflag=' -nofor_main' ;; 5705 esac 5706 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5707 5708 if test $supports_anon_versioning = yes; then 5709 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 5710 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5711 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5712 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5713 fi 5714 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 5715 else 5716 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5717 fi 5718 ;; 5719 5720 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5722 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5723 wlarc= 5724 else 5725 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5726 _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' 5727 fi 5728 ;; 5729 5730 solaris*) 5731 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5732 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5733 cat <<EOF 1>&2 5734 5735*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5736*** create shared libraries on Solaris systems. Therefore, libtool 5737*** is disabling shared libraries support. We urge you to upgrade GNU 5738*** binutils to release 2.9.1 or newer. Another option is to modify 5739*** your PATH or compiler configuration so that the native linker is 5740*** used, and then restart. 5741 5742EOF 5743 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5744 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5745 _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' 5746 else 5747 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5748 fi 5749 ;; 5750 5751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5752 case `$LD -v 2>&1` in 5753 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5754 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5755 cat <<_LT_EOF 1>&2 5756 5757*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 5758*** reliably create shared libraries on SCO systems. Therefore, libtool 5759*** is disabling shared libraries support. We urge you to upgrade GNU 5760*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5761*** your PATH or compiler configuration so that the native linker is 5762*** used, and then restart. 5763 5764_LT_EOF 5765 ;; 5766 *) 5767 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5768 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 5769 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 5770 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 5771 else 5772 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5773 fi 5774 ;; 5775 esac 5776 ;; 5777 5778 sunos4*) 5779 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5780 wlarc= 5781 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5782 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5783 ;; 5784 5785 *) 5786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5787 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5788 _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' 5789 else 5790 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5791 fi 5792 ;; 5793 esac 5794 5795 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 5796 runpath_var= 5797 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5798 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5799 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5800 fi 5801 else 5802 # PORTME fill in a description of your system's linker (not GNU ld) 5803 case $host_os in 5804 aix3*) 5805 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5806 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5807 _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' 5808 # Note: this linker hardcodes the directories in LIBPATH if there 5809 # are no directories specified by -L. 5810 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5811 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 5812 # Neither direct hardcoding nor static linking is supported with a 5813 # broken collect2. 5814 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5815 fi 5816 ;; 5817 5818 aix4* | aix5*) 5819 if test "$host_cpu" = ia64; then 5820 # On IA64, the linker does run time linking by default, so we don't 5821 # have to do anything special. 5822 aix_use_runtimelinking=no 5823 exp_sym_flag='-Bexport' 5824 no_entry_flag="" 5825 else 5826 # If we're using GNU nm, then we don't want the "-C" option. 5827 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5828 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 5829 _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' 5830 else 5831 _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' 5832 fi 5833 aix_use_runtimelinking=no 5834 5835 # Test if we are trying to use run time linking or normal 5836 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5837 # need to do runtime linking. 5838 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 5839 for ld_flag in $LDFLAGS; do 5840 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5841 aix_use_runtimelinking=yes 5842 break 5843 fi 5844 done 5845 ;; 5846 esac 5847 5848 exp_sym_flag='-bexport' 5849 no_entry_flag='-bnoentry' 5850 fi 5851 5852 # When large executables or shared objects are built, AIX ld can 5853 # have problems creating the table of contents. If linking a library 5854 # or program results in "error TOC overflow" add -mminimal-toc to 5855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5857 5858 _LT_AC_TAGVAR(archive_cmds, $1)='' 5859 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5860 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 5861 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5862 5863 if test "$GCC" = yes; then 5864 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5865 # We only want to do this on AIX 4.2 and lower, the check 5866 # below for broken collect2 doesn't work under 4.3+ 5867 collect2name=`${CC} -print-prog-name=collect2` 5868 if test -f "$collect2name" && \ 5869 strings "$collect2name" | grep resolve_lib_name >/dev/null 5870 then 5871 # We have reworked collect2 5872 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5873 else 5874 # We have old collect2 5875 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5876 # It fails to find uninstalled libraries when the uninstalled 5877 # path is not listed in the libpath. Setting hardcode_minus_L 5878 # to unsupported forces relinking 5879 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5880 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5881 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5882 fi 5883 ;; 5884 esac 5885 shared_flag='-shared' 5886 if test "$aix_use_runtimelinking" = yes; then 5887 shared_flag="$shared_flag "'${wl}-G' 5888 fi 5889 else 5890 # not using gcc 5891 if test "$host_cpu" = ia64; then 5892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5893 # chokes on -Wl,-G. The following line is correct: 5894 shared_flag='-G' 5895 else 5896 if test "$aix_use_runtimelinking" = yes; then 5897 shared_flag='${wl}-G' 5898 else 5899 shared_flag='${wl}-bM:SRE' 5900 fi 5901 fi 5902 fi 5903 5904 # It seems that -bexpall does not export symbols beginning with 5905 # underscore (_), so it is better to generate a list of symbols to export. 5906 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5907 if test "$aix_use_runtimelinking" = yes; then 5908 # Warning - without using the other runtime loading flags (-brtl), 5909 # -berok will link without error, but may produce a broken library. 5910 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 5911 # Determine the default libpath from the value encoded in an empty executable. 5912 _LT_AC_SYS_LIBPATH_AIX 5913 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5914 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5915 else 5916 if test "$host_cpu" = ia64; then 5917 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5918 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5919 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 5920 else 5921 # Determine the default libpath from the value encoded in an empty executable. 5922 _LT_AC_SYS_LIBPATH_AIX 5923 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5924 # Warning - without using the other run time loading flags, 5925 # -berok will link without error, but may produce a broken library. 5926 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5927 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5928 # Exported symbols can be pulled into shared objects from archives 5929 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5930 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5931 # This is similar to how AIX traditionally builds its shared libraries. 5932 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5933 fi 5934 fi 5935 ;; 5936 5937 amigaos*) 5938 _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)' 5939 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5940 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5941 # see comment about different semantics on the GNU ld section 5942 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5943 ;; 5944 5945 bsdi[[45]]*) 5946 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5947 ;; 5948 5949 cygwin* | mingw* | pw32*) 5950 # When not using gcc, we currently assume that we are using 5951 # Microsoft Visual C++. 5952 # hardcode_libdir_flag_spec is actually meaningless, as there is 5953 # no search path for DLLs. 5954 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5955 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5956 # Tell ltmain to make .lib files, not .a files. 5957 libext=lib 5958 # Tell ltmain to make .dll files, not .so files. 5959 shrext_cmds=".dll" 5960 # FIXME: Setting linknames here is a bad hack. 5961 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5962 # The linker will automatically build a .lib file if we build a DLL. 5963 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 5964 # FIXME: Should let the user specify the lib program. 5965 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 5966 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5967 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5968 ;; 5969 5970 darwin* | rhapsody*) 5971 case $host_os in 5972 rhapsody* | darwin1.[[012]]) 5973 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 5974 ;; 5975 *) # Darwin 1.3 on 5976 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5977 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5978 else 5979 case ${MACOSX_DEPLOYMENT_TARGET} in 5980 10.[[012]]) 5981 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5982 ;; 5983 10.*) 5984 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 5985 ;; 5986 esac 5987 fi 5988 ;; 5989 esac 5990 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5991 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5992 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5993 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5994 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 5995 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5996 if test "$GCC" = yes ; then 5997 output_verbose_link_cmd='echo' 5998 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 5999 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6000 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6001 _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}' 6002 _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}' 6003 else 6004 case $cc_basename in 6005 xlc*) 6006 output_verbose_link_cmd='echo' 6007 _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' 6008 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6009 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6010 _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}' 6011 _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}' 6012 ;; 6013 *) 6014 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6015 ;; 6016 esac 6017 fi 6018 ;; 6019 6020 dgux*) 6021 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6022 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6023 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6024 ;; 6025 6026 freebsd1*) 6027 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6028 ;; 6029 6030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6031 # support. Future versions do this automatically, but an explicit c++rt0.o 6032 # does not break anything, and helps significantly (at the cost of a little 6033 # extra space). 6034 freebsd2.2*) 6035 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6036 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6037 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6038 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6039 ;; 6040 6041 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6042 freebsd2*) 6043 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6044 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6045 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6046 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6047 ;; 6048 6049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6050 freebsd* | dragonfly*) 6051 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6052 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6053 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6054 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6055 ;; 6056 6057 # GNU/kFreeBSD uses gcc -shared to do shared libraries. 6058 kfreebsd*-gnu) 6059 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6060 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6061 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6062 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6063 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 6064 ;; 6065 6066 hpux9*) 6067 if test "$GCC" = yes; then 6068 _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' 6069 else 6070 _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' 6071 fi 6072 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6073 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6074 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6075 6076 # hardcode_minus_L: Not really in the search PATH, 6077 # but as the default location of the library. 6078 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6079 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6080 ;; 6081 6082 hpux10*) 6083 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6084 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6085 else 6086 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6087 fi 6088 if test "$with_gnu_ld" = no; then 6089 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6090 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6091 6092 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6093 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6094 6095 # hardcode_minus_L: Not really in the search PATH, 6096 # but as the default location of the library. 6097 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6098 fi 6099 ;; 6100 6101 hpux11*) 6102 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6103 case $host_cpu in 6104 hppa*64*) 6105 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6106 ;; 6107 ia64*) 6108 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6109 ;; 6110 *) 6111 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6112 ;; 6113 esac 6114 else 6115 case $host_cpu in 6116 hppa*64*) 6117 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6118 ;; 6119 ia64*) 6120 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6121 ;; 6122 *) 6123 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6124 ;; 6125 esac 6126 fi 6127 if test "$with_gnu_ld" = no; then 6128 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6129 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6130 6131 case $host_cpu in 6132 hppa*64*|ia64*) 6133 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6134 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6135 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6136 ;; 6137 *) 6138 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6139 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6140 6141 # hardcode_minus_L: Not really in the search PATH, 6142 # but as the default location of the library. 6143 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6144 ;; 6145 esac 6146 fi 6147 ;; 6148 6149 irix5* | irix6* | nonstopux*) 6150 if test "$GCC" = yes; then 6151 _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' 6152 else 6153 _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' 6154 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6155 fi 6156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6157 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6158 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6159 ;; 6160 6161 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6163 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6164 else 6165 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6166 fi 6167 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6168 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6169 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6170 ;; 6171 6172 newsos6) 6173 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6174 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6175 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6176 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6177 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6178 ;; 6179 6180 openbsd*) 6181 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6182 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6183 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6184 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6185 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6186 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6187 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6188 else 6189 case $host_os in 6190 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6191 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6192 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6193 ;; 6194 *) 6195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6197 ;; 6198 esac 6199 fi 6200 ;; 6201 6202 os2*) 6203 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6204 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6205 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6206 _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' 6207 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6208 ;; 6209 6210 osf3*) 6211 if test "$GCC" = yes; then 6212 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6213 _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' 6214 else 6215 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6216 _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' 6217 fi 6218 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6219 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6220 ;; 6221 6222 osf4* | osf5*) # as osf3* with the addition of -msym flag 6223 if test "$GCC" = yes; then 6224 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6225 _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' 6226 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6227 else 6228 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6229 _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' 6230 _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~ 6231 $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' 6232 6233 # Both c and cxx compiler support -rpath directly 6234 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6235 fi 6236 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6237 ;; 6238 6239 solaris*) 6240 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6241 if test "$GCC" = yes; then 6242 wlarc='${wl}' 6243 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6244 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6245 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6246 else 6247 wlarc='' 6248 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6249 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6250 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6251 fi 6252 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6253 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6254 case $host_os in 6255 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6256 *) 6257 # The compiler driver will combine linker options so we 6258 # cannot just pass the convience library names through 6259 # without $wl, iff we do not link with $LD. 6260 # Luckily, gcc supports the same syntax we need for Sun Studio. 6261 # Supported since Solaris 2.6 (maybe 2.5.1?) 6262 case $wlarc in 6263 '') 6264 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6265 *) 6266 _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' ;; 6267 esac ;; 6268 esac 6269 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6270 ;; 6271 6272 sunos4*) 6273 if test "x$host_vendor" = xsequent; then 6274 # Use $CC to link under sequent, because it throws in some extra .o 6275 # files that make .init and .fini sections work. 6276 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6277 else 6278 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6279 fi 6280 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6281 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6282 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6283 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6284 ;; 6285 6286 sysv4) 6287 case $host_vendor in 6288 sni) 6289 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6290 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6291 ;; 6292 siemens) 6293 ## LD is ld it makes a PLAMLIB 6294 ## CC just makes a GrossModule. 6295 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6296 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6297 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6298 ;; 6299 motorola) 6300 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6301 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6302 ;; 6303 esac 6304 runpath_var='LD_RUN_PATH' 6305 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6306 ;; 6307 6308 sysv4.3*) 6309 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6310 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6311 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6312 ;; 6313 6314 sysv4*MP*) 6315 if test -d /usr/nec; then 6316 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6317 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6318 runpath_var=LD_RUN_PATH 6319 hardcode_runpath_var=yes 6320 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 6321 fi 6322 ;; 6323 6324 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) 6325 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6326 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6327 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6328 runpath_var='LD_RUN_PATH' 6329 6330 if test "$GCC" = yes; then 6331 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6332 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6333 else 6334 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6335 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6336 fi 6337 ;; 6338 6339 sysv5* | sco3.2v5* | sco5v6*) 6340 # Note: We can NOT use -z defs as we might desire, because we do not 6341 # link with -lc, and that would cause any symbols used from libc to 6342 # always be unresolved, which means just about no library would 6343 # ever link correctly. If we're not using GNU ld we use -z text 6344 # though, which does catch some bad symbols but isn't as heavy-handed 6345 # as -z defs. 6346 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6347 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6348 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6349 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6350 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 6351 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6352 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6353 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6354 runpath_var='LD_RUN_PATH' 6355 6356 if test "$GCC" = yes; then 6357 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6358 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6359 else 6360 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6361 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6362 fi 6363 ;; 6364 6365 uts4*) 6366 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6367 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6368 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6369 ;; 6370 6371 *) 6372 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6373 ;; 6374 esac 6375 fi 6376]) 6377AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 6378test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6379 6380# 6381# Do we need to explicitly link libc? 6382# 6383case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 6384x|xyes) 6385 # Assume -lc should be added 6386 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6387 6388 if test "$enable_shared" = yes && test "$GCC" = yes; then 6389 case $_LT_AC_TAGVAR(archive_cmds, $1) in 6390 *'~'*) 6391 # FIXME: we may have to deal with multi-command sequences. 6392 ;; 6393 '$CC '*) 6394 # Test whether the compiler implicitly links with -lc since on some 6395 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6396 # to ld, don't add -lc before -lgcc. 6397 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 6398 $rm conftest* 6399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6400 6401 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6402 soname=conftest 6403 lib=conftest 6404 libobjs=conftest.$ac_objext 6405 deplibs= 6406 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 6407 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 6408 compiler_flags=-v 6409 linker_flags=-v 6410 verstring= 6411 output_objdir=. 6412 libname=conftest 6413 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 6414 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 6415 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 6416 then 6417 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6418 else 6419 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6420 fi 6421 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6422 else 6423 cat conftest.err 1>&5 6424 fi 6425 $rm conftest* 6426 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 6427 ;; 6428 esac 6429 fi 6430 ;; 6431esac 6432])# AC_LIBTOOL_PROG_LD_SHLIBS 6433 6434 6435# _LT_AC_FILE_LTDLL_C 6436# ------------------- 6437# Be careful that the start marker always follows a newline. 6438AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 6439# /* ltdll.c starts here */ 6440# #define WIN32_LEAN_AND_MEAN 6441# #include <windows.h> 6442# #undef WIN32_LEAN_AND_MEAN 6443# #include <stdio.h> 6444# 6445# #ifndef __CYGWIN__ 6446# # ifdef __CYGWIN32__ 6447# # define __CYGWIN__ __CYGWIN32__ 6448# # endif 6449# #endif 6450# 6451# #ifdef __cplusplus 6452# extern "C" { 6453# #endif 6454# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 6455# #ifdef __cplusplus 6456# } 6457# #endif 6458# 6459# #ifdef __CYGWIN__ 6460# #include <cygwin/cygwin_dll.h> 6461# DECLARE_CYGWIN_DLL( DllMain ); 6462# #endif 6463# HINSTANCE __hDllInstance_base; 6464# 6465# BOOL APIENTRY 6466# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 6467# { 6468# __hDllInstance_base = hInst; 6469# return TRUE; 6470# } 6471# /* ltdll.c ends here */ 6472])# _LT_AC_FILE_LTDLL_C 6473 6474 6475# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 6476# --------------------------------- 6477AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 6478 6479 6480# old names 6481AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 6482AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 6483AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 6484AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 6485AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 6486AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 6487AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 6488 6489# This is just to silence aclocal about the macro not being used 6490ifelse([AC_DISABLE_FAST_INSTALL]) 6491 6492AC_DEFUN([LT_AC_PROG_GCJ], 6493[AC_CHECK_TOOL(GCJ, gcj, no) 6494 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 6495 AC_SUBST(GCJFLAGS) 6496]) 6497 6498AC_DEFUN([LT_AC_PROG_RC], 6499[AC_CHECK_TOOL(RC, windres, no) 6500]) 6501 6502# NOTE: This macro has been submitted for inclusion into # 6503# GNU Autoconf as AC_PROG_SED. When it is available in # 6504# a released version of Autoconf we should remove this # 6505# macro and use it instead. # 6506# LT_AC_PROG_SED 6507# -------------- 6508# Check for a fully-functional sed program, that truncates 6509# as few characters as possible. Prefer GNU sed if found. 6510AC_DEFUN([LT_AC_PROG_SED], 6511[AC_MSG_CHECKING([for a sed that does not truncate output]) 6512AC_CACHE_VAL(lt_cv_path_SED, 6513[# Loop through the user's path and test for sed and gsed. 6514# Then use that list of sed's as ones to test for truncation. 6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516for as_dir in $PATH 6517do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for lt_ac_prog in sed gsed; do 6521 for ac_exec_ext in '' $ac_executable_extensions; do 6522 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 6523 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6524 fi 6525 done 6526 done 6527done 6528lt_ac_max=0 6529lt_ac_count=0 6530# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6531# along with /bin/sed that truncates output. 6532for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6533 test ! -f $lt_ac_sed && continue 6534 cat /dev/null > conftest.in 6535 lt_ac_count=0 6536 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6537 # Check for GNU sed and select it if it is found. 6538 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6539 lt_cv_path_SED=$lt_ac_sed 6540 break 6541 fi 6542 while true; do 6543 cat conftest.in conftest.in >conftest.tmp 6544 mv conftest.tmp conftest.in 6545 cp conftest.in conftest.nl 6546 echo >>conftest.nl 6547 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 6548 cmp -s conftest.out conftest.nl || break 6549 # 10000 chars as input seems more than enough 6550 test $lt_ac_count -gt 10 && break 6551 lt_ac_count=`expr $lt_ac_count + 1` 6552 if test $lt_ac_count -gt $lt_ac_max; then 6553 lt_ac_max=$lt_ac_count 6554 lt_cv_path_SED=$lt_ac_sed 6555 fi 6556 done 6557done 6558]) 6559SED=$lt_cv_path_SED 6560AC_MSG_RESULT([$SED]) 6561]) 6562 6563