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