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