1# generated automatically by aclocal 1.16.5 -*- Autoconf -*- 2 3# Copyright (C) 1996-2021 Free Software Foundation, Inc. 4 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_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, 18[m4_warning([this file was generated for autoconf 2.71. 19You have another version of autoconf. It may work, but is not guaranteed to. 20If you have problems, you may need to regenerate the build system entirely. 21To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23# Copyright (C) 2002-2021 Free Software Foundation, Inc. 24# 25# This file is free software; the Free Software Foundation 26# gives unlimited permission to copy and/or distribute it, 27# with or without modifications, as long as this notice is preserved. 28 29# AM_AUTOMAKE_VERSION(VERSION) 30# ---------------------------- 31# Automake X.Y traces this macro to ensure aclocal.m4 has been 32# generated from the m4 files accompanying Automake X.Y. 33# (This private macro should not be called outside this file.) 34AC_DEFUN([AM_AUTOMAKE_VERSION], 35[am__api_version='1.16' 36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37dnl require some minimum version. Point them to the right macro. 38m4_if([$1], [1.16.5], [], 39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40]) 41 42# _AM_AUTOCONF_VERSION(VERSION) 43# ----------------------------- 44# aclocal traces this macro to find the Autoconf version. 45# This is a private macro too. Using m4_define simplifies 46# the logic in aclocal, which can simply ignore this definition. 47m4_define([_AM_AUTOCONF_VERSION], []) 48 49# AM_SET_CURRENT_AUTOMAKE_VERSION 50# ------------------------------- 51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54[AM_AUTOMAKE_VERSION([1.16.5])dnl 55m4_ifndef([AC_AUTOCONF_VERSION], 56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 58 59# AM_AUX_DIR_EXPAND -*- Autoconf -*- 60 61# Copyright (C) 2001-2021 Free Software Foundation, Inc. 62# 63# This file is free software; the Free Software Foundation 64# gives unlimited permission to copy and/or distribute it, 65# with or without modifications, as long as this notice is preserved. 66 67# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 68# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 69# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 70# 71# Of course, Automake must honor this variable whenever it calls a 72# tool from the auxiliary directory. The problem is that $srcdir (and 73# therefore $ac_aux_dir as well) can be either absolute or relative, 74# depending on how configure is run. This is pretty annoying, since 75# it makes $ac_aux_dir quite unusable in subdirectories: in the top 76# source directory, any form will work fine, but in subdirectories a 77# relative path needs to be adjusted first. 78# 79# $ac_aux_dir/missing 80# fails when called from a subdirectory if $ac_aux_dir is relative 81# $top_srcdir/$ac_aux_dir/missing 82# fails if $ac_aux_dir is absolute, 83# fails when called from a subdirectory in a VPATH build with 84# a relative $ac_aux_dir 85# 86# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 87# are both prefixed by $srcdir. In an in-source build this is usually 88# harmless because $srcdir is '.', but things will broke when you 89# start a VPATH build or use an absolute $srcdir. 90# 91# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 92# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 93# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 94# and then we would define $MISSING as 95# MISSING="\${SHELL} $am_aux_dir/missing" 96# This will work as long as MISSING is not called from configure, because 97# unfortunately $(top_srcdir) has no meaning in configure. 98# However there are other variables, like CC, which are often used in 99# configure, and could therefore not use this "fixed" $ac_aux_dir. 100# 101# Another solution, used here, is to always expand $ac_aux_dir to an 102# absolute PATH. The drawback is that using absolute paths prevent a 103# configured tree to be moved without reconfiguration. 104 105AC_DEFUN([AM_AUX_DIR_EXPAND], 106[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 107# Expand $ac_aux_dir to an absolute path. 108am_aux_dir=`cd "$ac_aux_dir" && pwd` 109]) 110 111# AM_CONDITIONAL -*- Autoconf -*- 112 113# Copyright (C) 1997-2021 Free Software Foundation, Inc. 114# 115# This file is free software; the Free Software Foundation 116# gives unlimited permission to copy and/or distribute it, 117# with or without modifications, as long as this notice is preserved. 118 119# AM_CONDITIONAL(NAME, SHELL-CONDITION) 120# ------------------------------------- 121# Define a conditional. 122AC_DEFUN([AM_CONDITIONAL], 123[AC_PREREQ([2.52])dnl 124 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 125 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 126AC_SUBST([$1_TRUE])dnl 127AC_SUBST([$1_FALSE])dnl 128_AM_SUBST_NOTMAKE([$1_TRUE])dnl 129_AM_SUBST_NOTMAKE([$1_FALSE])dnl 130m4_define([_AM_COND_VALUE_$1], [$2])dnl 131if $2; then 132 $1_TRUE= 133 $1_FALSE='#' 134else 135 $1_TRUE='#' 136 $1_FALSE= 137fi 138AC_CONFIG_COMMANDS_PRE( 139[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 140 AC_MSG_ERROR([[conditional "$1" was never defined. 141Usually this means the macro was only invoked conditionally.]]) 142fi])]) 143 144# Copyright (C) 1999-2021 Free Software Foundation, Inc. 145# 146# This file is free software; the Free Software Foundation 147# gives unlimited permission to copy and/or distribute it, 148# with or without modifications, as long as this notice is preserved. 149 150 151# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 152# written in clear, in which case automake, when reading aclocal.m4, 153# will think it sees a *use*, and therefore will trigger all it's 154# C support machinery. Also note that it means that autoscan, seeing 155# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 156 157 158# _AM_DEPENDENCIES(NAME) 159# ---------------------- 160# See how the compiler implements dependency checking. 161# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 162# We try a few techniques and use that to set a single cache variable. 163# 164# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 165# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 166# dependency, and given that the user is not expected to run this macro, 167# just rely on AC_PROG_CC. 168AC_DEFUN([_AM_DEPENDENCIES], 169[AC_REQUIRE([AM_SET_DEPDIR])dnl 170AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 171AC_REQUIRE([AM_MAKE_INCLUDE])dnl 172AC_REQUIRE([AM_DEP_TRACK])dnl 173 174m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 175 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 176 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 177 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 178 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 179 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 180 [depcc="$$1" am_compiler_list=]) 181 182AC_CACHE_CHECK([dependency style of $depcc], 183 [am_cv_$1_dependencies_compiler_type], 184[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 185 # We make a subdir and do the tests there. Otherwise we can end up 186 # making bogus files that we don't know about and never remove. For 187 # instance it was reported that on HP-UX the gcc test will end up 188 # making a dummy file named 'D' -- because '-MD' means "put the output 189 # in D". 190 rm -rf conftest.dir 191 mkdir conftest.dir 192 # Copy depcomp to subdir because otherwise we won't find it if we're 193 # using a relative directory. 194 cp "$am_depcomp" conftest.dir 195 cd conftest.dir 196 # We will build objects and dependencies in a subdirectory because 197 # it helps to detect inapplicable dependency modes. For instance 198 # both Tru64's cc and ICC support -MD to output dependencies as a 199 # side effect of compilation, but ICC will put the dependencies in 200 # the current directory while Tru64 will put them in the object 201 # directory. 202 mkdir sub 203 204 am_cv_$1_dependencies_compiler_type=none 205 if test "$am_compiler_list" = ""; then 206 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 207 fi 208 am__universal=false 209 m4_case([$1], [CC], 210 [case " $depcc " in #( 211 *\ -arch\ *\ -arch\ *) am__universal=true ;; 212 esac], 213 [CXX], 214 [case " $depcc " in #( 215 *\ -arch\ *\ -arch\ *) am__universal=true ;; 216 esac]) 217 218 for depmode in $am_compiler_list; do 219 # Setup a source with many dependencies, because some compilers 220 # like to wrap large dependency lists on column 80 (with \), and 221 # we should not choose a depcomp mode which is confused by this. 222 # 223 # We need to recreate these files for each test, as the compiler may 224 # overwrite some of them when testing with obscure command lines. 225 # This happens at least with the AIX C compiler. 226 : > sub/conftest.c 227 for i in 1 2 3 4 5 6; do 228 echo '#include "conftst'$i'.h"' >> sub/conftest.c 229 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 230 # Solaris 10 /bin/sh. 231 echo '/* dummy */' > sub/conftst$i.h 232 done 233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 234 235 # We check with '-c' and '-o' for the sake of the "dashmstdout" 236 # mode. It turns out that the SunPro C++ compiler does not properly 237 # handle '-M -o', and we need to detect this. Also, some Intel 238 # versions had trouble with output in subdirs. 239 am__obj=sub/conftest.${OBJEXT-o} 240 am__minus_obj="-o $am__obj" 241 case $depmode in 242 gcc) 243 # This depmode causes a compiler race in universal mode. 244 test "$am__universal" = false || continue 245 ;; 246 nosideeffect) 247 # After this tag, mechanisms are not by side-effect, so they'll 248 # only be used when explicitly requested. 249 if test "x$enable_dependency_tracking" = xyes; then 250 continue 251 else 252 break 253 fi 254 ;; 255 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 256 # This compiler won't grok '-c -o', but also, the minuso test has 257 # not run yet. These depmodes are late enough in the game, and 258 # so weak that their functioning should not be impacted. 259 am__obj=conftest.${OBJEXT-o} 260 am__minus_obj= 261 ;; 262 none) break ;; 263 esac 264 if depmode=$depmode \ 265 source=sub/conftest.c object=$am__obj \ 266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 268 >/dev/null 2>conftest.err && 269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 273 # icc doesn't choke on unknown options, it will just issue warnings 274 # or remarks (even with -Werror). So we grep stderr for any message 275 # that says an option was ignored or not supported. 276 # When given -MP, icc 7.0 and 7.1 complain thusly: 277 # icc: Command line warning: ignoring option '-M'; no argument required 278 # The diagnosis changed in icc 8.0: 279 # icc: Command line remark: option '-MP' not supported 280 if (grep 'ignoring option' conftest.err || 281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 282 am_cv_$1_dependencies_compiler_type=$depmode 283 break 284 fi 285 fi 286 done 287 288 cd .. 289 rm -rf conftest.dir 290else 291 am_cv_$1_dependencies_compiler_type=none 292fi 293]) 294AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 295AM_CONDITIONAL([am__fastdep$1], [ 296 test "x$enable_dependency_tracking" != xno \ 297 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 298]) 299 300 301# AM_SET_DEPDIR 302# ------------- 303# Choose a directory name for dependency files. 304# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 305AC_DEFUN([AM_SET_DEPDIR], 306[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 307AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 308]) 309 310 311# AM_DEP_TRACK 312# ------------ 313AC_DEFUN([AM_DEP_TRACK], 314[AC_ARG_ENABLE([dependency-tracking], [dnl 315AS_HELP_STRING( 316 [--enable-dependency-tracking], 317 [do not reject slow dependency extractors]) 318AS_HELP_STRING( 319 [--disable-dependency-tracking], 320 [speeds up one-time build])]) 321if test "x$enable_dependency_tracking" != xno; then 322 am_depcomp="$ac_aux_dir/depcomp" 323 AMDEPBACKSLASH='\' 324 am__nodep='_no' 325fi 326AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 327AC_SUBST([AMDEPBACKSLASH])dnl 328_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 329AC_SUBST([am__nodep])dnl 330_AM_SUBST_NOTMAKE([am__nodep])dnl 331]) 332 333# Generate code to set up dependency tracking. -*- Autoconf -*- 334 335# Copyright (C) 1999-2021 Free Software Foundation, Inc. 336# 337# This file is free software; the Free Software Foundation 338# gives unlimited permission to copy and/or distribute it, 339# with or without modifications, as long as this notice is preserved. 340 341# _AM_OUTPUT_DEPENDENCY_COMMANDS 342# ------------------------------ 343AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 344[{ 345 # Older Autoconf quotes --file arguments for eval, but not when files 346 # are listed without --file. Let's play safe and only enable the eval 347 # if we detect the quoting. 348 # TODO: see whether this extra hack can be removed once we start 349 # requiring Autoconf 2.70 or later. 350 AS_CASE([$CONFIG_FILES], 351 [*\'*], [eval set x "$CONFIG_FILES"], 352 [*], [set x $CONFIG_FILES]) 353 shift 354 # Used to flag and report bootstrapping failures. 355 am_rc=0 356 for am_mf 357 do 358 # Strip MF so we end up with the name of the file. 359 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 360 # Check whether this is an Automake generated Makefile which includes 361 # dependency-tracking related rules and includes. 362 # Grep'ing the whole file directly is not great: AIX grep has a line 363 # limit of 2048, but all sed's we know have understand at least 4000. 364 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 365 || continue 366 am_dirpart=`AS_DIRNAME(["$am_mf"])` 367 am_filepart=`AS_BASENAME(["$am_mf"])` 368 AM_RUN_LOG([cd "$am_dirpart" \ 369 && sed -e '/# am--include-marker/d' "$am_filepart" \ 370 | $MAKE -f - am--depfiles]) || am_rc=$? 371 done 372 if test $am_rc -ne 0; then 373 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 374 for automatic dependency tracking. If GNU make was not used, consider 375 re-running the configure script with MAKE="gmake" (or whatever is 376 necessary). You can also try re-running configure with the 377 '--disable-dependency-tracking' option to at least be able to build 378 the package (albeit without support for automatic dependency tracking).]) 379 fi 380 AS_UNSET([am_dirpart]) 381 AS_UNSET([am_filepart]) 382 AS_UNSET([am_mf]) 383 AS_UNSET([am_rc]) 384 rm -f conftest-deps.mk 385} 386])# _AM_OUTPUT_DEPENDENCY_COMMANDS 387 388 389# AM_OUTPUT_DEPENDENCY_COMMANDS 390# ----------------------------- 391# This macro should only be invoked once -- use via AC_REQUIRE. 392# 393# This code is only required when automatic dependency tracking is enabled. 394# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 395# order to bootstrap the dependency handling code. 396AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 397[AC_CONFIG_COMMANDS([depfiles], 398 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 399 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 400 401# Do all the work for Automake. -*- Autoconf -*- 402 403# Copyright (C) 1996-2021 Free Software Foundation, Inc. 404# 405# This file is free software; the Free Software Foundation 406# gives unlimited permission to copy and/or distribute it, 407# with or without modifications, as long as this notice is preserved. 408 409# This macro actually does too much. Some checks are only needed if 410# your package does certain things. But this isn't really a big deal. 411 412dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 413m4_define([AC_PROG_CC], 414m4_defn([AC_PROG_CC]) 415[_AM_PROG_CC_C_O 416]) 417 418# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 419# AM_INIT_AUTOMAKE([OPTIONS]) 420# ----------------------------------------------- 421# The call with PACKAGE and VERSION arguments is the old style 422# call (pre autoconf-2.50), which is being phased out. PACKAGE 423# and VERSION should now be passed to AC_INIT and removed from 424# the call to AM_INIT_AUTOMAKE. 425# We support both call styles for the transition. After 426# the next Automake release, Autoconf can make the AC_INIT 427# arguments mandatory, and then we can depend on a new Autoconf 428# release and drop the old call support. 429AC_DEFUN([AM_INIT_AUTOMAKE], 430[AC_PREREQ([2.65])dnl 431m4_ifdef([_$0_ALREADY_INIT], 432 [m4_fatal([$0 expanded multiple times 433]m4_defn([_$0_ALREADY_INIT]))], 434 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl 435dnl Autoconf wants to disallow AM_ names. We explicitly allow 436dnl the ones we care about. 437m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 438AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 439AC_REQUIRE([AC_PROG_INSTALL])dnl 440if test "`cd $srcdir && pwd`" != "`pwd`"; then 441 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 442 # is not polluted with repeated "-I." 443 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 444 # test to see if srcdir already configured 445 if test -f $srcdir/config.status; then 446 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 447 fi 448fi 449 450# test whether we have cygpath 451if test -z "$CYGPATH_W"; then 452 if (cygpath --version) >/dev/null 2>/dev/null; then 453 CYGPATH_W='cygpath -w' 454 else 455 CYGPATH_W=echo 456 fi 457fi 458AC_SUBST([CYGPATH_W]) 459 460# Define the identity of the package. 461dnl Distinguish between old-style and new-style calls. 462m4_ifval([$2], 463[AC_DIAGNOSE([obsolete], 464 [$0: two- and three-arguments forms are deprecated.]) 465m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 466 AC_SUBST([PACKAGE], [$1])dnl 467 AC_SUBST([VERSION], [$2])], 468[_AM_SET_OPTIONS([$1])dnl 469dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 470m4_if( 471 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), 472 [ok:ok],, 473 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 474 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 475 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 476 477_AM_IF_OPTION([no-define],, 478[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 479 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 480 481# Some tools Automake needs. 482AC_REQUIRE([AM_SANITY_CHECK])dnl 483AC_REQUIRE([AC_ARG_PROGRAM])dnl 484AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 485AM_MISSING_PROG([AUTOCONF], [autoconf]) 486AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 487AM_MISSING_PROG([AUTOHEADER], [autoheader]) 488AM_MISSING_PROG([MAKEINFO], [makeinfo]) 489AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 490AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 491AC_REQUIRE([AC_PROG_MKDIR_P])dnl 492# For better backward compatibility. To be removed once Automake 1.9.x 493# dies out for good. For more background, see: 494# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 495# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 496AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 497# We need awk for the "check" target (and possibly the TAP driver). The 498# system "awk" is bad on some platforms. 499AC_REQUIRE([AC_PROG_AWK])dnl 500AC_REQUIRE([AC_PROG_MAKE_SET])dnl 501AC_REQUIRE([AM_SET_LEADING_DOT])dnl 502_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 503 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 504 [_AM_PROG_TAR([v7])])]) 505_AM_IF_OPTION([no-dependencies],, 506[AC_PROVIDE_IFELSE([AC_PROG_CC], 507 [_AM_DEPENDENCIES([CC])], 508 [m4_define([AC_PROG_CC], 509 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 510AC_PROVIDE_IFELSE([AC_PROG_CXX], 511 [_AM_DEPENDENCIES([CXX])], 512 [m4_define([AC_PROG_CXX], 513 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 514AC_PROVIDE_IFELSE([AC_PROG_OBJC], 515 [_AM_DEPENDENCIES([OBJC])], 516 [m4_define([AC_PROG_OBJC], 517 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 518AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 519 [_AM_DEPENDENCIES([OBJCXX])], 520 [m4_define([AC_PROG_OBJCXX], 521 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 522]) 523# Variables for tags utilities; see am/tags.am 524if test -z "$CTAGS"; then 525 CTAGS=ctags 526fi 527AC_SUBST([CTAGS]) 528if test -z "$ETAGS"; then 529 ETAGS=etags 530fi 531AC_SUBST([ETAGS]) 532if test -z "$CSCOPE"; then 533 CSCOPE=cscope 534fi 535AC_SUBST([CSCOPE]) 536 537AC_REQUIRE([AM_SILENT_RULES])dnl 538dnl The testsuite driver may need to know about EXEEXT, so add the 539dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 540dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 541AC_CONFIG_COMMANDS_PRE(dnl 542[m4_provide_if([_AM_COMPILER_EXEEXT], 543 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 544 545# POSIX will say in a future version that running "rm -f" with no argument 546# is OK; and we want to be able to make that assumption in our Makefile 547# recipes. So use an aggressive probe to check that the usage we want is 548# actually supported "in the wild" to an acceptable degree. 549# See automake bug#10828. 550# To make any issue more visible, cause the running configure to be aborted 551# by default if the 'rm' program in use doesn't match our expectations; the 552# user can still override this though. 553if rm -f && rm -fr && rm -rf; then : OK; else 554 cat >&2 <<'END' 555Oops! 556 557Your 'rm' program seems unable to run without file operands specified 558on the command line, even when the '-f' option is present. This is contrary 559to the behaviour of most rm programs out there, and not conforming with 560the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 561 562Please tell bug-automake@gnu.org about your system, including the value 563of your $PATH and any error possibly output before this message. This 564can help us improve future automake versions. 565 566END 567 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 568 echo 'Configuration will proceed anyway, since you have set the' >&2 569 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 570 echo >&2 571 else 572 cat >&2 <<'END' 573Aborting the configuration process, to ensure you take notice of the issue. 574 575You can download and install GNU coreutils to get an 'rm' implementation 576that behaves properly: <https://www.gnu.org/software/coreutils/>. 577 578If you want to complete the configuration process using your problematic 579'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 580to "yes", and re-run configure. 581 582END 583 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 584 fi 585fi 586dnl The trailing newline in this macro's definition is deliberate, for 587dnl backward compatibility and to allow trailing 'dnl'-style comments 588dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 589]) 590 591dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 592dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 593dnl mangled by Autoconf and run in a shell conditional statement. 594m4_define([_AC_COMPILER_EXEEXT], 595m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 596 597# When config.status generates a header, we must update the stamp-h file. 598# This file resides in the same directory as the config header 599# that is generated. The stamp files are numbered to have different names. 600 601# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 602# loop where config.status creates the headers, so we can generate 603# our stamp files there. 604AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 605[# Compute $1's index in $config_headers. 606_am_arg=$1 607_am_stamp_count=1 608for _am_header in $config_headers :; do 609 case $_am_header in 610 $_am_arg | $_am_arg:* ) 611 break ;; 612 * ) 613 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 614 esac 615done 616echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 617 618# Copyright (C) 2001-2021 Free Software Foundation, Inc. 619# 620# This file is free software; the Free Software Foundation 621# gives unlimited permission to copy and/or distribute it, 622# with or without modifications, as long as this notice is preserved. 623 624# AM_PROG_INSTALL_SH 625# ------------------ 626# Define $install_sh. 627AC_DEFUN([AM_PROG_INSTALL_SH], 628[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 629if test x"${install_sh+set}" != xset; then 630 case $am_aux_dir in 631 *\ * | *\ *) 632 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 633 *) 634 install_sh="\${SHELL} $am_aux_dir/install-sh" 635 esac 636fi 637AC_SUBST([install_sh])]) 638 639# Copyright (C) 2003-2021 Free Software Foundation, Inc. 640# 641# This file is free software; the Free Software Foundation 642# gives unlimited permission to copy and/or distribute it, 643# with or without modifications, as long as this notice is preserved. 644 645# Check whether the underlying file-system supports filenames 646# with a leading dot. For instance MS-DOS doesn't. 647AC_DEFUN([AM_SET_LEADING_DOT], 648[rm -rf .tst 2>/dev/null 649mkdir .tst 2>/dev/null 650if test -d .tst; then 651 am__leading_dot=. 652else 653 am__leading_dot=_ 654fi 655rmdir .tst 2>/dev/null 656AC_SUBST([am__leading_dot])]) 657 658# Check to see how 'make' treats includes. -*- Autoconf -*- 659 660# Copyright (C) 2001-2021 Free Software Foundation, Inc. 661# 662# This file is free software; the Free Software Foundation 663# gives unlimited permission to copy and/or distribute it, 664# with or without modifications, as long as this notice is preserved. 665 666# AM_MAKE_INCLUDE() 667# ----------------- 668# Check whether make has an 'include' directive that can support all 669# the idioms we need for our automatic dependency tracking code. 670AC_DEFUN([AM_MAKE_INCLUDE], 671[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 672cat > confinc.mk << 'END' 673am__doit: 674 @echo this is the am__doit target >confinc.out 675.PHONY: am__doit 676END 677am__include="#" 678am__quote= 679# BSD make does it like this. 680echo '.include "confinc.mk" # ignored' > confmf.BSD 681# Other make implementations (GNU, Solaris 10, AIX) do it like this. 682echo 'include confinc.mk # ignored' > confmf.GNU 683_am_result=no 684for s in GNU BSD; do 685 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 686 AS_CASE([$?:`cat confinc.out 2>/dev/null`], 687 ['0:this is the am__doit target'], 688 [AS_CASE([$s], 689 [BSD], [am__include='.include' am__quote='"'], 690 [am__include='include' am__quote=''])]) 691 if test "$am__include" != "#"; then 692 _am_result="yes ($s style)" 693 break 694 fi 695done 696rm -f confinc.* confmf.* 697AC_MSG_RESULT([${_am_result}]) 698AC_SUBST([am__include])]) 699AC_SUBST([am__quote])]) 700 701# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 702 703# Copyright (C) 1997-2021 Free Software Foundation, Inc. 704# 705# This file is free software; the Free Software Foundation 706# gives unlimited permission to copy and/or distribute it, 707# with or without modifications, as long as this notice is preserved. 708 709# AM_MISSING_PROG(NAME, PROGRAM) 710# ------------------------------ 711AC_DEFUN([AM_MISSING_PROG], 712[AC_REQUIRE([AM_MISSING_HAS_RUN]) 713$1=${$1-"${am_missing_run}$2"} 714AC_SUBST($1)]) 715 716# AM_MISSING_HAS_RUN 717# ------------------ 718# Define MISSING if not defined so far and test if it is modern enough. 719# If it is, set am_missing_run to use it, otherwise, to nothing. 720AC_DEFUN([AM_MISSING_HAS_RUN], 721[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 722AC_REQUIRE_AUX_FILE([missing])dnl 723if test x"${MISSING+set}" != xset; then 724 MISSING="\${SHELL} '$am_aux_dir/missing'" 725fi 726# Use eval to expand $SHELL 727if eval "$MISSING --is-lightweight"; then 728 am_missing_run="$MISSING " 729else 730 am_missing_run= 731 AC_MSG_WARN(['missing' script is too old or missing]) 732fi 733]) 734 735# Helper functions for option handling. -*- Autoconf -*- 736 737# Copyright (C) 2001-2021 Free Software Foundation, Inc. 738# 739# This file is free software; the Free Software Foundation 740# gives unlimited permission to copy and/or distribute it, 741# with or without modifications, as long as this notice is preserved. 742 743# _AM_MANGLE_OPTION(NAME) 744# ----------------------- 745AC_DEFUN([_AM_MANGLE_OPTION], 746[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 747 748# _AM_SET_OPTION(NAME) 749# -------------------- 750# Set option NAME. Presently that only means defining a flag for this option. 751AC_DEFUN([_AM_SET_OPTION], 752[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 753 754# _AM_SET_OPTIONS(OPTIONS) 755# ------------------------ 756# OPTIONS is a space-separated list of Automake options. 757AC_DEFUN([_AM_SET_OPTIONS], 758[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 759 760# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 761# ------------------------------------------- 762# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 763AC_DEFUN([_AM_IF_OPTION], 764[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 765 766# Copyright (C) 1999-2021 Free Software Foundation, Inc. 767# 768# This file is free software; the Free Software Foundation 769# gives unlimited permission to copy and/or distribute it, 770# with or without modifications, as long as this notice is preserved. 771 772# _AM_PROG_CC_C_O 773# --------------- 774# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 775# to automatically call this. 776AC_DEFUN([_AM_PROG_CC_C_O], 777[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 778AC_REQUIRE_AUX_FILE([compile])dnl 779AC_LANG_PUSH([C])dnl 780AC_CACHE_CHECK( 781 [whether $CC understands -c and -o together], 782 [am_cv_prog_cc_c_o], 783 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 784 # Make sure it works both with $CC and with simple cc. 785 # Following AC_PROG_CC_C_O, we do the test twice because some 786 # compilers refuse to overwrite an existing .o file with -o, 787 # though they will create one. 788 am_cv_prog_cc_c_o=yes 789 for am_i in 1 2; do 790 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 791 && test -f conftest2.$ac_objext; then 792 : OK 793 else 794 am_cv_prog_cc_c_o=no 795 break 796 fi 797 done 798 rm -f core conftest* 799 unset am_i]) 800if test "$am_cv_prog_cc_c_o" != yes; then 801 # Losing compiler, so override with the script. 802 # FIXME: It is wrong to rewrite CC. 803 # But if we don't then we get into trouble of one sort or another. 804 # A longer-term fix would be to have automake use am__CC in this case, 805 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 806 CC="$am_aux_dir/compile $CC" 807fi 808AC_LANG_POP([C])]) 809 810# For backward compatibility. 811AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 812 813# Copyright (C) 2001-2021 Free Software Foundation, Inc. 814# 815# This file is free software; the Free Software Foundation 816# gives unlimited permission to copy and/or distribute it, 817# with or without modifications, as long as this notice is preserved. 818 819# AM_RUN_LOG(COMMAND) 820# ------------------- 821# Run COMMAND, save the exit status in ac_status, and log it. 822# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 823AC_DEFUN([AM_RUN_LOG], 824[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 825 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 826 ac_status=$? 827 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 828 (exit $ac_status); }]) 829 830# Check to make sure that the build environment is sane. -*- Autoconf -*- 831 832# Copyright (C) 1996-2021 Free Software Foundation, Inc. 833# 834# This file is free software; the Free Software Foundation 835# gives unlimited permission to copy and/or distribute it, 836# with or without modifications, as long as this notice is preserved. 837 838# AM_SANITY_CHECK 839# --------------- 840AC_DEFUN([AM_SANITY_CHECK], 841[AC_MSG_CHECKING([whether build environment is sane]) 842# Reject unsafe characters in $srcdir or the absolute working directory 843# name. Accept space and tab only in the latter. 844am_lf=' 845' 846case `pwd` in 847 *[[\\\"\#\$\&\'\`$am_lf]]*) 848 AC_MSG_ERROR([unsafe absolute working directory name]);; 849esac 850case $srcdir in 851 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 852 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 853esac 854 855# Do 'set' in a subshell so we don't clobber the current shell's 856# arguments. Must try -L first in case configure is actually a 857# symlink; some systems play weird games with the mod time of symlinks 858# (eg FreeBSD returns the mod time of the symlink's containing 859# directory). 860if ( 861 am_has_slept=no 862 for am_try in 1 2; do 863 echo "timestamp, slept: $am_has_slept" > conftest.file 864 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 865 if test "$[*]" = "X"; then 866 # -L didn't work. 867 set X `ls -t "$srcdir/configure" conftest.file` 868 fi 869 if test "$[*]" != "X $srcdir/configure conftest.file" \ 870 && test "$[*]" != "X conftest.file $srcdir/configure"; then 871 872 # If neither matched, then we have a broken ls. This can happen 873 # if, for instance, CONFIG_SHELL is bash and it inherits a 874 # broken ls alias from the environment. This has actually 875 # happened. Such a system could not be considered "sane". 876 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 877 alias in your environment]) 878 fi 879 if test "$[2]" = conftest.file || test $am_try -eq 2; then 880 break 881 fi 882 # Just in case. 883 sleep 1 884 am_has_slept=yes 885 done 886 test "$[2]" = conftest.file 887 ) 888then 889 # Ok. 890 : 891else 892 AC_MSG_ERROR([newly created file is older than distributed files! 893Check your system clock]) 894fi 895AC_MSG_RESULT([yes]) 896# If we didn't sleep, we still need to ensure time stamps of config.status and 897# generated files are strictly newer. 898am_sleep_pid= 899if grep 'slept: no' conftest.file >/dev/null 2>&1; then 900 ( sleep 1 ) & 901 am_sleep_pid=$! 902fi 903AC_CONFIG_COMMANDS_PRE( 904 [AC_MSG_CHECKING([that generated files are newer than configure]) 905 if test -n "$am_sleep_pid"; then 906 # Hide warnings about reused PIDs. 907 wait $am_sleep_pid 2>/dev/null 908 fi 909 AC_MSG_RESULT([done])]) 910rm -f conftest.file 911]) 912 913# Copyright (C) 2009-2021 Free Software Foundation, Inc. 914# 915# This file is free software; the Free Software Foundation 916# gives unlimited permission to copy and/or distribute it, 917# with or without modifications, as long as this notice is preserved. 918 919# AM_SILENT_RULES([DEFAULT]) 920# -------------------------- 921# Enable less verbose build rules; with the default set to DEFAULT 922# ("yes" being less verbose, "no" or empty being verbose). 923AC_DEFUN([AM_SILENT_RULES], 924[AC_ARG_ENABLE([silent-rules], [dnl 925AS_HELP_STRING( 926 [--enable-silent-rules], 927 [less verbose build output (undo: "make V=1")]) 928AS_HELP_STRING( 929 [--disable-silent-rules], 930 [verbose build output (undo: "make V=0")])dnl 931]) 932case $enable_silent_rules in @%:@ ((( 933 yes) AM_DEFAULT_VERBOSITY=0;; 934 no) AM_DEFAULT_VERBOSITY=1;; 935 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 936esac 937dnl 938dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 939dnl do not support nested variable expansions. 940dnl See automake bug#9928 and bug#10237. 941am_make=${MAKE-make} 942AC_CACHE_CHECK([whether $am_make supports nested variables], 943 [am_cv_make_support_nested_variables], 944 [if AS_ECHO([['TRUE=$(BAR$(V)) 945BAR0=false 946BAR1=true 947V=1 948am__doit: 949 @$(TRUE) 950.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 951 am_cv_make_support_nested_variables=yes 952else 953 am_cv_make_support_nested_variables=no 954fi]) 955if test $am_cv_make_support_nested_variables = yes; then 956 dnl Using '$V' instead of '$(V)' breaks IRIX make. 957 AM_V='$(V)' 958 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 959else 960 AM_V=$AM_DEFAULT_VERBOSITY 961 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 962fi 963AC_SUBST([AM_V])dnl 964AM_SUBST_NOTMAKE([AM_V])dnl 965AC_SUBST([AM_DEFAULT_V])dnl 966AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 967AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 968AM_BACKSLASH='\' 969AC_SUBST([AM_BACKSLASH])dnl 970_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 971]) 972 973# Copyright (C) 2001-2021 Free Software Foundation, Inc. 974# 975# This file is free software; the Free Software Foundation 976# gives unlimited permission to copy and/or distribute it, 977# with or without modifications, as long as this notice is preserved. 978 979# AM_PROG_INSTALL_STRIP 980# --------------------- 981# One issue with vendor 'install' (even GNU) is that you can't 982# specify the program used to strip binaries. This is especially 983# annoying in cross-compiling environments, where the build's strip 984# is unlikely to handle the host's binaries. 985# Fortunately install-sh will honor a STRIPPROG variable, so we 986# always use install-sh in "make install-strip", and initialize 987# STRIPPROG with the value of the STRIP variable (set by the user). 988AC_DEFUN([AM_PROG_INSTALL_STRIP], 989[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 990# Installed binaries are usually stripped using 'strip' when the user 991# run "make install-strip". However 'strip' might not be the right 992# tool to use in cross-compilation environments, therefore Automake 993# will honor the 'STRIP' environment variable to overrule this program. 994dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 995if test "$cross_compiling" != no; then 996 AC_CHECK_TOOL([STRIP], [strip], :) 997fi 998INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 999AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1000 1001# Copyright (C) 2006-2021 Free Software Foundation, Inc. 1002# 1003# This file is free software; the Free Software Foundation 1004# gives unlimited permission to copy and/or distribute it, 1005# with or without modifications, as long as this notice is preserved. 1006 1007# _AM_SUBST_NOTMAKE(VARIABLE) 1008# --------------------------- 1009# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1010# This macro is traced by Automake. 1011AC_DEFUN([_AM_SUBST_NOTMAKE]) 1012 1013# AM_SUBST_NOTMAKE(VARIABLE) 1014# -------------------------- 1015# Public sister of _AM_SUBST_NOTMAKE. 1016AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1017 1018# Check how to create a tarball. -*- Autoconf -*- 1019 1020# Copyright (C) 2004-2021 Free Software Foundation, Inc. 1021# 1022# This file is free software; the Free Software Foundation 1023# gives unlimited permission to copy and/or distribute it, 1024# with or without modifications, as long as this notice is preserved. 1025 1026# _AM_PROG_TAR(FORMAT) 1027# -------------------- 1028# Check how to create a tarball in format FORMAT. 1029# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1030# 1031# Substitute a variable $(am__tar) that is a command 1032# writing to stdout a FORMAT-tarball containing the directory 1033# $tardir. 1034# tardir=directory && $(am__tar) > result.tar 1035# 1036# Substitute a variable $(am__untar) that extract such 1037# a tarball read from stdin. 1038# $(am__untar) < result.tar 1039# 1040AC_DEFUN([_AM_PROG_TAR], 1041[# Always define AMTAR for backward compatibility. Yes, it's still used 1042# in the wild :-( We should find a proper way to deprecate it ... 1043AC_SUBST([AMTAR], ['$${TAR-tar}']) 1044 1045# We'll loop over all known methods to create a tar archive until one works. 1046_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1047 1048m4_if([$1], [v7], 1049 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1050 1051 [m4_case([$1], 1052 [ustar], 1053 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1054 # There is notably a 21 bits limit for the UID and the GID. In fact, 1055 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1056 # and bug#13588). 1057 am_max_uid=2097151 # 2^21 - 1 1058 am_max_gid=$am_max_uid 1059 # The $UID and $GID variables are not portable, so we need to resort 1060 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1061 # below are definitely unexpected, so allow the users to see them 1062 # (that is, avoid stderr redirection). 1063 am_uid=`id -u || echo unknown` 1064 am_gid=`id -g || echo unknown` 1065 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1066 if test $am_uid -le $am_max_uid; then 1067 AC_MSG_RESULT([yes]) 1068 else 1069 AC_MSG_RESULT([no]) 1070 _am_tools=none 1071 fi 1072 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1073 if test $am_gid -le $am_max_gid; then 1074 AC_MSG_RESULT([yes]) 1075 else 1076 AC_MSG_RESULT([no]) 1077 _am_tools=none 1078 fi], 1079 1080 [pax], 1081 [], 1082 1083 [m4_fatal([Unknown tar format])]) 1084 1085 AC_MSG_CHECKING([how to create a $1 tar archive]) 1086 1087 # Go ahead even if we have the value already cached. We do so because we 1088 # need to set the values for the 'am__tar' and 'am__untar' variables. 1089 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1090 1091 for _am_tool in $_am_tools; do 1092 case $_am_tool in 1093 gnutar) 1094 for _am_tar in tar gnutar gtar; do 1095 AM_RUN_LOG([$_am_tar --version]) && break 1096 done 1097 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1098 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1099 am__untar="$_am_tar -xf -" 1100 ;; 1101 plaintar) 1102 # Must skip GNU tar: if it does not support --format= it doesn't create 1103 # ustar tarball either. 1104 (tar --version) >/dev/null 2>&1 && continue 1105 am__tar='tar chf - "$$tardir"' 1106 am__tar_='tar chf - "$tardir"' 1107 am__untar='tar xf -' 1108 ;; 1109 pax) 1110 am__tar='pax -L -x $1 -w "$$tardir"' 1111 am__tar_='pax -L -x $1 -w "$tardir"' 1112 am__untar='pax -r' 1113 ;; 1114 cpio) 1115 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1116 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1117 am__untar='cpio -i -H $1 -d' 1118 ;; 1119 none) 1120 am__tar=false 1121 am__tar_=false 1122 am__untar=false 1123 ;; 1124 esac 1125 1126 # If the value was cached, stop now. We just wanted to have am__tar 1127 # and am__untar set. 1128 test -n "${am_cv_prog_tar_$1}" && break 1129 1130 # tar/untar a dummy directory, and stop if the command works. 1131 rm -rf conftest.dir 1132 mkdir conftest.dir 1133 echo GrepMe > conftest.dir/file 1134 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1135 rm -rf conftest.dir 1136 if test -s conftest.tar; then 1137 AM_RUN_LOG([$am__untar <conftest.tar]) 1138 AM_RUN_LOG([cat conftest.dir/file]) 1139 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1140 fi 1141 done 1142 rm -rf conftest.dir 1143 1144 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1145 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1146 1147AC_SUBST([am__tar]) 1148AC_SUBST([am__untar]) 1149]) # _AM_PROG_TAR 1150 1151dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 1152dnl serial 11 (pkg-config-0.29) 1153dnl 1154dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 1155dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 1156dnl 1157dnl This program is free software; you can redistribute it and/or modify 1158dnl it under the terms of the GNU General Public License as published by 1159dnl the Free Software Foundation; either version 2 of the License, or 1160dnl (at your option) any later version. 1161dnl 1162dnl This program is distributed in the hope that it will be useful, but 1163dnl WITHOUT ANY WARRANTY; without even the implied warranty of 1164dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1165dnl General Public License for more details. 1166dnl 1167dnl You should have received a copy of the GNU General Public License 1168dnl along with this program; if not, write to the Free Software 1169dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 1170dnl 02111-1307, USA. 1171dnl 1172dnl As a special exception to the GNU General Public License, if you 1173dnl distribute this file as part of a program that contains a 1174dnl configuration script generated by Autoconf, you may include it under 1175dnl the same distribution terms that you use for the rest of that 1176dnl program. 1177 1178dnl PKG_PREREQ(MIN-VERSION) 1179dnl ----------------------- 1180dnl Since: 0.29 1181dnl 1182dnl Verify that the version of the pkg-config macros are at least 1183dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 1184dnl installed version of pkg-config, this checks the developer's version 1185dnl of pkg.m4 when generating configure. 1186dnl 1187dnl To ensure that this macro is defined, also add: 1188dnl m4_ifndef([PKG_PREREQ], 1189dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 1190dnl 1191dnl See the "Since" comment for each macro you use to see what version 1192dnl of the macros you require. 1193m4_defun([PKG_PREREQ], 1194[m4_define([PKG_MACROS_VERSION], [0.29]) 1195m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 1196 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 1197])dnl PKG_PREREQ 1198 1199dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 1200dnl ---------------------------------- 1201dnl Since: 0.16 1202dnl 1203dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 1204dnl first found in the path. Checks that the version of pkg-config found 1205dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 1206dnl used since that's the first version where most current features of 1207dnl pkg-config existed. 1208AC_DEFUN([PKG_PROG_PKG_CONFIG], 1209[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 1210m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 1211m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 1212AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 1213AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 1214AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 1215 1216if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 1217 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 1218fi 1219if test -n "$PKG_CONFIG"; then 1220 _pkg_min_version=m4_default([$1], [0.9.0]) 1221 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 1222 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 1223 AC_MSG_RESULT([yes]) 1224 else 1225 AC_MSG_RESULT([no]) 1226 PKG_CONFIG="" 1227 fi 1228fi[]dnl 1229])dnl PKG_PROG_PKG_CONFIG 1230 1231dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 1232dnl ------------------------------------------------------------------- 1233dnl Since: 0.18 1234dnl 1235dnl Check to see whether a particular set of modules exists. Similar to 1236dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 1237dnl 1238dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 1239dnl only at the first occurence in configure.ac, so if the first place 1240dnl it's called might be skipped (such as if it is within an "if", you 1241dnl have to call PKG_CHECK_EXISTS manually 1242AC_DEFUN([PKG_CHECK_EXISTS], 1243[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 1244if test -n "$PKG_CONFIG" && \ 1245 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 1246 m4_default([$2], [:]) 1247m4_ifvaln([$3], [else 1248 $3])dnl 1249fi]) 1250 1251dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 1252dnl --------------------------------------------- 1253dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 1254dnl pkg_failed based on the result. 1255m4_define([_PKG_CONFIG], 1256[if test -n "$$1"; then 1257 pkg_cv_[]$1="$$1" 1258 elif test -n "$PKG_CONFIG"; then 1259 PKG_CHECK_EXISTS([$3], 1260 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 1261 test "x$?" != "x0" && pkg_failed=yes ], 1262 [pkg_failed=yes]) 1263 else 1264 pkg_failed=untried 1265fi[]dnl 1266])dnl _PKG_CONFIG 1267 1268dnl _PKG_SHORT_ERRORS_SUPPORTED 1269dnl --------------------------- 1270dnl Internal check to see if pkg-config supports short errors. 1271AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 1272[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 1273if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1274 _pkg_short_errors_supported=yes 1275else 1276 _pkg_short_errors_supported=no 1277fi[]dnl 1278])dnl _PKG_SHORT_ERRORS_SUPPORTED 1279 1280 1281dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 1282dnl [ACTION-IF-NOT-FOUND]) 1283dnl -------------------------------------------------------------- 1284dnl Since: 0.4.0 1285dnl 1286dnl Note that if there is a possibility the first call to 1287dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 1288dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 1289AC_DEFUN([PKG_CHECK_MODULES], 1290[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 1291AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 1292AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 1293 1294pkg_failed=no 1295AC_MSG_CHECKING([for $1]) 1296 1297_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 1298_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 1299 1300m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 1301and $1[]_LIBS to avoid the need to call pkg-config. 1302See the pkg-config man page for more details.]) 1303 1304if test $pkg_failed = yes; then 1305 AC_MSG_RESULT([no]) 1306 _PKG_SHORT_ERRORS_SUPPORTED 1307 if test $_pkg_short_errors_supported = yes; then 1308 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 1309 else 1310 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 1311 fi 1312 # Put the nasty error message in config.log where it belongs 1313 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 1314 1315 m4_default([$4], [AC_MSG_ERROR( 1316[Package requirements ($2) were not met: 1317 1318$$1_PKG_ERRORS 1319 1320Consider adjusting the PKG_CONFIG_PATH environment variable if you 1321installed software in a non-standard prefix. 1322 1323_PKG_TEXT])[]dnl 1324 ]) 1325elif test $pkg_failed = untried; then 1326 AC_MSG_RESULT([no]) 1327 m4_default([$4], [AC_MSG_FAILURE( 1328[The pkg-config script could not be found or is too old. Make sure it 1329is in your PATH or set the PKG_CONFIG environment variable to the full 1330path to pkg-config. 1331 1332_PKG_TEXT 1333 1334To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 1335 ]) 1336else 1337 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 1338 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 1339 AC_MSG_RESULT([yes]) 1340 $3 1341fi[]dnl 1342])dnl PKG_CHECK_MODULES 1343 1344 1345dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 1346dnl [ACTION-IF-NOT-FOUND]) 1347dnl --------------------------------------------------------------------- 1348dnl Since: 0.29 1349dnl 1350dnl Checks for existence of MODULES and gathers its build flags with 1351dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 1352dnl and VARIABLE-PREFIX_LIBS from --libs. 1353dnl 1354dnl Note that if there is a possibility the first call to 1355dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 1356dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 1357dnl configure.ac. 1358AC_DEFUN([PKG_CHECK_MODULES_STATIC], 1359[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 1360_save_PKG_CONFIG=$PKG_CONFIG 1361PKG_CONFIG="$PKG_CONFIG --static" 1362PKG_CHECK_MODULES($@) 1363PKG_CONFIG=$_save_PKG_CONFIG[]dnl 1364])dnl PKG_CHECK_MODULES_STATIC 1365 1366 1367dnl PKG_INSTALLDIR([DIRECTORY]) 1368dnl ------------------------- 1369dnl Since: 0.27 1370dnl 1371dnl Substitutes the variable pkgconfigdir as the location where a module 1372dnl should install pkg-config .pc files. By default the directory is 1373dnl $libdir/pkgconfig, but the default can be changed by passing 1374dnl DIRECTORY. The user can override through the --with-pkgconfigdir 1375dnl parameter. 1376AC_DEFUN([PKG_INSTALLDIR], 1377[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 1378m4_pushdef([pkg_description], 1379 [pkg-config installation directory @<:@]pkg_default[@:>@]) 1380AC_ARG_WITH([pkgconfigdir], 1381 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 1382 [with_pkgconfigdir=]pkg_default) 1383AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 1384m4_popdef([pkg_default]) 1385m4_popdef([pkg_description]) 1386])dnl PKG_INSTALLDIR 1387 1388 1389dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 1390dnl -------------------------------- 1391dnl Since: 0.27 1392dnl 1393dnl Substitutes the variable noarch_pkgconfigdir as the location where a 1394dnl module should install arch-independent pkg-config .pc files. By 1395dnl default the directory is $datadir/pkgconfig, but the default can be 1396dnl changed by passing DIRECTORY. The user can override through the 1397dnl --with-noarch-pkgconfigdir parameter. 1398AC_DEFUN([PKG_NOARCH_INSTALLDIR], 1399[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 1400m4_pushdef([pkg_description], 1401 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 1402AC_ARG_WITH([noarch-pkgconfigdir], 1403 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 1404 [with_noarch_pkgconfigdir=]pkg_default) 1405AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 1406m4_popdef([pkg_default]) 1407m4_popdef([pkg_description]) 1408])dnl PKG_NOARCH_INSTALLDIR 1409 1410 1411dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 1412dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 1413dnl ------------------------------------------- 1414dnl Since: 0.28 1415dnl 1416dnl Retrieves the value of the pkg-config variable for the given module. 1417AC_DEFUN([PKG_CHECK_VAR], 1418[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 1419AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 1420 1421_PKG_CONFIG([$1], [variable="][$3]["], [$2]) 1422AS_VAR_COPY([$1], [pkg_cv_][$1]) 1423 1424AS_VAR_IF([$1], [""], [$5], [$4])dnl 1425])dnl PKG_CHECK_VAR 1426 1427dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 1428dnl 1429dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. 1430dnl 1431dnl Permission is hereby granted, free of charge, to any person obtaining a 1432dnl copy of this software and associated documentation files (the "Software"), 1433dnl to deal in the Software without restriction, including without limitation 1434dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 1435dnl and/or sell copies of the Software, and to permit persons to whom the 1436dnl Software is furnished to do so, subject to the following conditions: 1437dnl 1438dnl The above copyright notice and this permission notice (including the next 1439dnl paragraph) shall be included in all copies or substantial portions of the 1440dnl Software. 1441dnl 1442dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1443dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1444dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1445dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1446dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1447dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1448dnl DEALINGS IN THE SOFTWARE. 1449 1450# XORG_MACROS_VERSION(required-version) 1451# ------------------------------------- 1452# Minimum version: 1.1.0 1453# 1454# If you're using a macro added in Version 1.1 or newer, include this in 1455# your configure.ac with the minimum required version, such as: 1456# XORG_MACROS_VERSION(1.1) 1457# 1458# To ensure that this macro is defined, also add: 1459# m4_ifndef([XORG_MACROS_VERSION], 1460# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 1461# 1462# 1463# See the "minimum version" comment for each macro you use to see what 1464# version you require. 1465m4_defun([XORG_MACROS_VERSION],[ 1466m4_define([vers_have], [1.19.3]) 1467m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1468m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1469m4_if(m4_cmp(maj_have, maj_needed), 0,, 1470 [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 1471m4_if(m4_version_compare(vers_have, [$1]), -1, 1472 [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 1473m4_undefine([vers_have]) 1474m4_undefine([maj_have]) 1475m4_undefine([maj_needed]) 1476]) # XORG_MACROS_VERSION 1477 1478# XORG_PROG_RAWCPP() 1479# ------------------ 1480# Minimum version: 1.0.0 1481# 1482# Find cpp program and necessary flags for use in pre-processing text files 1483# such as man pages and config files 1484AC_DEFUN([XORG_PROG_RAWCPP],[ 1485AC_REQUIRE([AC_PROG_CPP]) 1486AC_PATH_TOOL(RAWCPP, [cpp], [${CPP}], 1487 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 1488 1489# Check for flag to avoid builtin definitions - assumes unix is predefined, 1490# which is not the best choice for supporting other OS'es, but covers most 1491# of the ones we need for now. 1492AC_MSG_CHECKING([if $RAWCPP requires -undef]) 1493AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp redefine unix ?]])]) 1494if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1495 AC_MSG_RESULT([no]) 1496else 1497 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1498 RAWCPPFLAGS=-undef 1499 AC_MSG_RESULT([yes]) 1500 # under Cygwin unix is still defined even with -undef 1501 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1502 RAWCPPFLAGS="-undef -ansi" 1503 AC_MSG_RESULT([yes, with -ansi]) 1504 else 1505 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 1506 fi 1507fi 1508rm -f conftest.$ac_ext 1509 1510AC_MSG_CHECKING([if $RAWCPP requires -traditional]) 1511AC_LANG_CONFTEST([AC_LANG_SOURCE([[Does cpp preserve "whitespace"?]])]) 1512if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1513 AC_MSG_RESULT([no]) 1514else 1515 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1516 TRADITIONALCPPFLAGS="-traditional" 1517 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 1518 AC_MSG_RESULT([yes]) 1519 else 1520 AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 1521 fi 1522fi 1523rm -f conftest.$ac_ext 1524AC_SUBST(RAWCPPFLAGS) 1525AC_SUBST(TRADITIONALCPPFLAGS) 1526]) # XORG_PROG_RAWCPP 1527 1528# XORG_MANPAGE_SECTIONS() 1529# ----------------------- 1530# Minimum version: 1.0.0 1531# 1532# Determine which sections man pages go in for the different man page types 1533# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 1534# Not sure if there's any better way than just hardcoding by OS name. 1535# Override default settings by setting environment variables 1536# Added MAN_SUBSTS in version 1.8 1537# Added AC_PROG_SED in version 1.8 1538 1539AC_DEFUN([XORG_MANPAGE_SECTIONS],[ 1540AC_REQUIRE([AC_CANONICAL_HOST]) 1541AC_REQUIRE([AC_PROG_SED]) 1542 1543case $host_os in 1544 solaris*) 1545 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 1546 # check for a man page file found in later versions that use 1547 # traditional section numbers instead 1548 AC_CHECK_FILE([/usr/share/man/man7/attributes.7], 1549 [SYSV_MAN_SECTIONS=false], [SYSV_MAN_SECTIONS=true]) 1550 ;; 1551 *) SYSV_MAN_SECTIONS=false ;; 1552esac 1553 1554if test x$APP_MAN_SUFFIX = x ; then 1555 APP_MAN_SUFFIX=1 1556fi 1557if test x$APP_MAN_DIR = x ; then 1558 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1559fi 1560 1561if test x$LIB_MAN_SUFFIX = x ; then 1562 LIB_MAN_SUFFIX=3 1563fi 1564if test x$LIB_MAN_DIR = x ; then 1565 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1566fi 1567 1568if test x$FILE_MAN_SUFFIX = x ; then 1569 case $SYSV_MAN_SECTIONS in 1570 true) FILE_MAN_SUFFIX=4 ;; 1571 *) FILE_MAN_SUFFIX=5 ;; 1572 esac 1573fi 1574if test x$FILE_MAN_DIR = x ; then 1575 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1576fi 1577 1578if test x$MISC_MAN_SUFFIX = x ; then 1579 case $SYSV_MAN_SECTIONS in 1580 true) MISC_MAN_SUFFIX=5 ;; 1581 *) MISC_MAN_SUFFIX=7 ;; 1582 esac 1583fi 1584if test x$MISC_MAN_DIR = x ; then 1585 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1586fi 1587 1588if test x$DRIVER_MAN_SUFFIX = x ; then 1589 case $SYSV_MAN_SECTIONS in 1590 true) DRIVER_MAN_SUFFIX=7 ;; 1591 *) DRIVER_MAN_SUFFIX=4 ;; 1592 esac 1593fi 1594if test x$DRIVER_MAN_DIR = x ; then 1595 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1596fi 1597 1598if test x$ADMIN_MAN_SUFFIX = x ; then 1599 case $SYSV_MAN_SECTIONS in 1600 true) ADMIN_MAN_SUFFIX=1m ;; 1601 *) ADMIN_MAN_SUFFIX=8 ;; 1602 esac 1603fi 1604if test x$ADMIN_MAN_DIR = x ; then 1605 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1606fi 1607 1608 1609AC_SUBST([APP_MAN_SUFFIX]) 1610AC_SUBST([LIB_MAN_SUFFIX]) 1611AC_SUBST([FILE_MAN_SUFFIX]) 1612AC_SUBST([MISC_MAN_SUFFIX]) 1613AC_SUBST([DRIVER_MAN_SUFFIX]) 1614AC_SUBST([ADMIN_MAN_SUFFIX]) 1615AC_SUBST([APP_MAN_DIR]) 1616AC_SUBST([LIB_MAN_DIR]) 1617AC_SUBST([FILE_MAN_DIR]) 1618AC_SUBST([MISC_MAN_DIR]) 1619AC_SUBST([DRIVER_MAN_DIR]) 1620AC_SUBST([ADMIN_MAN_DIR]) 1621 1622XORG_MAN_PAGE="X Version 11" 1623AC_SUBST([XORG_MAN_PAGE]) 1624MAN_SUBSTS="\ 1625 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1626 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1627 -e 's|__xservername__|Xorg|g' \ 1628 -e 's|__xconfigfile__|xorg.conf|g' \ 1629 -e 's|__projectroot__|\$(prefix)|g' \ 1630 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1631 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1632 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1633 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1634 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1635 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1636 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1637AC_SUBST([MAN_SUBSTS]) 1638 1639]) # XORG_MANPAGE_SECTIONS 1640 1641# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION]) 1642# ------------------------ 1643# Minimum version: 1.7.0 1644# 1645# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent 1646# provided by xorg-sgml-doctools, if installed. 1647AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ 1648AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])]) 1649XORG_SGML_PATH= 1650PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])], 1651 [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], 1652 [m4_ifval([$1],[:], 1653 [if test x"$cross_compiling" != x"yes" ; then 1654 AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], 1655 [XORG_SGML_PATH=$prefix/share/sgml]) 1656 fi]) 1657 ]) 1658 1659# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 1660# the path and the name of the doc stylesheet 1661if test "x$XORG_SGML_PATH" != "x" ; then 1662 AC_MSG_RESULT([$XORG_SGML_PATH]) 1663 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 1664 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 1665else 1666 AC_MSG_RESULT([no]) 1667fi 1668 1669AC_SUBST(XORG_SGML_PATH) 1670AC_SUBST(STYLESHEET_SRCDIR) 1671AC_SUBST(XSL_STYLESHEET) 1672AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"]) 1673]) # XORG_CHECK_SGML_DOCTOOLS 1674 1675# XORG_CHECK_LINUXDOC 1676# ------------------- 1677# Minimum version: 1.0.0 1678# 1679# Defines the variable MAKE_TEXT if the necessary tools and 1680# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 1681# Whether or not the necessary tools and files are found can be checked 1682# with the AM_CONDITIONAL "BUILD_LINUXDOC" 1683AC_DEFUN([XORG_CHECK_LINUXDOC],[ 1684AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1685AC_REQUIRE([XORG_WITH_PS2PDF]) 1686 1687AC_PATH_PROG(LINUXDOC, linuxdoc) 1688 1689AC_MSG_CHECKING([whether to build documentation]) 1690 1691if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then 1692 BUILDDOC=yes 1693else 1694 BUILDDOC=no 1695fi 1696 1697AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 1698 1699AC_MSG_RESULT([$BUILDDOC]) 1700 1701AC_MSG_CHECKING([whether to build pdf documentation]) 1702 1703if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then 1704 BUILDPDFDOC=yes 1705else 1706 BUILDPDFDOC=no 1707fi 1708 1709AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1710 1711AC_MSG_RESULT([$BUILDPDFDOC]) 1712 1713MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f" 1714MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 1715MAKE_PDF="$PS2PDF" 1716MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 1717 1718AC_SUBST(MAKE_TEXT) 1719AC_SUBST(MAKE_PS) 1720AC_SUBST(MAKE_PDF) 1721AC_SUBST(MAKE_HTML) 1722]) # XORG_CHECK_LINUXDOC 1723 1724# XORG_CHECK_DOCBOOK 1725# ------------------- 1726# Minimum version: 1.0.0 1727# 1728# Checks for the ability to build output formats from SGML DocBook source. 1729# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 1730# indicates whether the necessary tools and files are found and, if set, 1731# $(MAKE_XXX) blah.sgml will produce blah.xxx. 1732AC_DEFUN([XORG_CHECK_DOCBOOK],[ 1733AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1734 1735BUILDTXTDOC=no 1736BUILDPDFDOC=no 1737BUILDPSDOC=no 1738BUILDHTMLDOC=no 1739 1740AC_PATH_PROG(DOCBOOKPS, docbook2ps) 1741AC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 1742AC_PATH_PROG(DOCBOOKHTML, docbook2html) 1743AC_PATH_PROG(DOCBOOKTXT, docbook2txt) 1744 1745AC_MSG_CHECKING([whether to build text documentation]) 1746if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && 1747 test x$BUILD_TXTDOC != xno; then 1748 BUILDTXTDOC=yes 1749fi 1750AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 1751AC_MSG_RESULT([$BUILDTXTDOC]) 1752 1753AC_MSG_CHECKING([whether to build PDF documentation]) 1754if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && 1755 test x$BUILD_PDFDOC != xno; then 1756 BUILDPDFDOC=yes 1757fi 1758AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1759AC_MSG_RESULT([$BUILDPDFDOC]) 1760 1761AC_MSG_CHECKING([whether to build PostScript documentation]) 1762if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && 1763 test x$BUILD_PSDOC != xno; then 1764 BUILDPSDOC=yes 1765fi 1766AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 1767AC_MSG_RESULT([$BUILDPSDOC]) 1768 1769AC_MSG_CHECKING([whether to build HTML documentation]) 1770if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && 1771 test x$BUILD_HTMLDOC != xno; then 1772 BUILDHTMLDOC=yes 1773fi 1774AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 1775AC_MSG_RESULT([$BUILDHTMLDOC]) 1776 1777MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 1778MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 1779MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 1780MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 1781 1782AC_SUBST(MAKE_TEXT) 1783AC_SUBST(MAKE_PS) 1784AC_SUBST(MAKE_PDF) 1785AC_SUBST(MAKE_HTML) 1786]) # XORG_CHECK_DOCBOOK 1787 1788# XORG_WITH_XMLTO([MIN-VERSION], [DEFAULT]) 1789# ---------------- 1790# Minimum version: 1.5.0 1791# Minimum version for optional DEFAULT argument: 1.11.0 1792# 1793# Documentation tools are not always available on all platforms and sometimes 1794# not at the appropriate level. This macro enables a module to test for the 1795# presence of the tool and obtain it's path in separate variables. Coupled with 1796# the --with-xmlto option, it allows maximum flexibilty in making decisions 1797# as whether or not to use the xmlto package. When DEFAULT is not specified, 1798# --with-xmlto assumes 'auto'. 1799# 1800# Interface to module: 1801# HAVE_XMLTO: used in makefiles to conditionally generate documentation 1802# XMLTO: returns the path of the xmlto program found 1803# returns the path set by the user in the environment 1804# --with-xmlto: 'yes' user instructs the module to use xmlto 1805# 'no' user instructs the module not to use xmlto 1806# 1807# Added in version 1.10.0 1808# HAVE_XMLTO_TEXT: used in makefiles to conditionally generate text documentation 1809# xmlto for text output requires either lynx, links, or w3m browsers 1810# 1811# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 1812# 1813AC_DEFUN([XORG_WITH_XMLTO],[ 1814AC_ARG_VAR([XMLTO], [Path to xmlto command]) 1815m4_define([_defopt], m4_default([$2], [auto])) 1816AC_ARG_WITH(xmlto, 1817 AS_HELP_STRING([--with-xmlto], 1818 [Use xmlto to regenerate documentation (default: ]_defopt[)]), 1819 [use_xmlto=$withval], [use_xmlto=]_defopt) 1820m4_undefine([_defopt]) 1821 1822if test "x$use_xmlto" = x"auto"; then 1823 AC_PATH_PROG([XMLTO], [xmlto]) 1824 if test "x$XMLTO" = "x"; then 1825 AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 1826 have_xmlto=no 1827 else 1828 have_xmlto=yes 1829 fi 1830elif test "x$use_xmlto" = x"yes" ; then 1831 AC_PATH_PROG([XMLTO], [xmlto]) 1832 if test "x$XMLTO" = "x"; then 1833 AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 1834 fi 1835 have_xmlto=yes 1836elif test "x$use_xmlto" = x"no" ; then 1837 if test "x$XMLTO" != "x"; then 1838 AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 1839 fi 1840 have_xmlto=no 1841else 1842 AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 1843fi 1844 1845# Test for a minimum version of xmlto, if provided. 1846m4_ifval([$1], 1847[if test "$have_xmlto" = yes; then 1848 # scrape the xmlto version 1849 AC_MSG_CHECKING([the xmlto version]) 1850 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 1851 AC_MSG_RESULT([$xmlto_version]) 1852 AS_VERSION_COMPARE([$xmlto_version], [$1], 1853 [if test "x$use_xmlto" = xauto; then 1854 AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 1855 have_xmlto=no 1856 else 1857 AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 1858 fi]) 1859fi]) 1860 1861# Test for the ability of xmlto to generate a text target 1862# 1863# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 1864# following test for empty XML docbook files. 1865# For compatibility reasons use the following empty XML docbook file and if 1866# it fails try it again with a non-empty XML file. 1867have_xmlto_text=no 1868cat > conftest.xml << "EOF" 1869EOF 1870AS_IF([test "$have_xmlto" = yes], 1871 [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], 1872 [have_xmlto_text=yes], 1873 [# Try it again with a non-empty XML file. 1874 cat > conftest.xml << "EOF" 1875<x></x> 1876EOF 1877 AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1], 1878 [have_xmlto_text=yes], 1879 [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])]) 1880rm -f conftest.xml 1881AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes]) 1882AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 1883]) # XORG_WITH_XMLTO 1884 1885# XORG_WITH_XSLTPROC([MIN-VERSION], [DEFAULT]) 1886# -------------------------------------------- 1887# Minimum version: 1.12.0 1888# Minimum version for optional DEFAULT argument: 1.12.0 1889# 1890# XSLT (Extensible Stylesheet Language Transformations) is a declarative, 1891# XML-based language used for the transformation of XML documents. 1892# The xsltproc command line tool is for applying XSLT stylesheets to XML documents. 1893# It is used under the cover by xmlto to generate html files from DocBook/XML. 1894# The XSLT processor is often used as a standalone tool for transformations. 1895# It should not be assumed that this tool is used only to work with documnetation. 1896# When DEFAULT is not specified, --with-xsltproc assumes 'auto'. 1897# 1898# Interface to module: 1899# HAVE_XSLTPROC: used in makefiles to conditionally generate documentation 1900# XSLTPROC: returns the path of the xsltproc program found 1901# returns the path set by the user in the environment 1902# --with-xsltproc: 'yes' user instructs the module to use xsltproc 1903# 'no' user instructs the module not to use xsltproc 1904# have_xsltproc: returns yes if xsltproc found in PATH or no 1905# 1906# If the user sets the value of XSLTPROC, AC_PATH_PROG skips testing the path. 1907# 1908AC_DEFUN([XORG_WITH_XSLTPROC],[ 1909AC_ARG_VAR([XSLTPROC], [Path to xsltproc command]) 1910# Preserves the interface, should it be implemented later 1911m4_ifval([$1], [m4_warn([syntax], [Checking for xsltproc MIN-VERSION is not implemented])]) 1912m4_define([_defopt], m4_default([$2], [auto])) 1913AC_ARG_WITH(xsltproc, 1914 AS_HELP_STRING([--with-xsltproc], 1915 [Use xsltproc for the transformation of XML documents (default: ]_defopt[)]), 1916 [use_xsltproc=$withval], [use_xsltproc=]_defopt) 1917m4_undefine([_defopt]) 1918 1919if test "x$use_xsltproc" = x"auto"; then 1920 AC_PATH_PROG([XSLTPROC], [xsltproc]) 1921 if test "x$XSLTPROC" = "x"; then 1922 AC_MSG_WARN([xsltproc not found - cannot transform XML documents]) 1923 have_xsltproc=no 1924 else 1925 have_xsltproc=yes 1926 fi 1927elif test "x$use_xsltproc" = x"yes" ; then 1928 AC_PATH_PROG([XSLTPROC], [xsltproc]) 1929 if test "x$XSLTPROC" = "x"; then 1930 AC_MSG_ERROR([--with-xsltproc=yes specified but xsltproc not found in PATH]) 1931 fi 1932 have_xsltproc=yes 1933elif test "x$use_xsltproc" = x"no" ; then 1934 if test "x$XSLTPROC" != "x"; then 1935 AC_MSG_WARN([ignoring XSLTPROC environment variable since --with-xsltproc=no was specified]) 1936 fi 1937 have_xsltproc=no 1938else 1939 AC_MSG_ERROR([--with-xsltproc expects 'yes' or 'no']) 1940fi 1941 1942AM_CONDITIONAL([HAVE_XSLTPROC], [test "$have_xsltproc" = yes]) 1943]) # XORG_WITH_XSLTPROC 1944 1945# XORG_WITH_PERL([MIN-VERSION], [DEFAULT]) 1946# ---------------------------------------- 1947# Minimum version: 1.15.0 1948# 1949# PERL (Practical Extraction and Report Language) is a language optimized for 1950# scanning arbitrary text files, extracting information from those text files, 1951# and printing reports based on that information. 1952# 1953# When DEFAULT is not specified, --with-perl assumes 'auto'. 1954# 1955# Interface to module: 1956# HAVE_PERL: used in makefiles to conditionally scan text files 1957# PERL: returns the path of the perl program found 1958# returns the path set by the user in the environment 1959# --with-perl: 'yes' user instructs the module to use perl 1960# 'no' user instructs the module not to use perl 1961# have_perl: returns yes if perl found in PATH or no 1962# 1963# If the user sets the value of PERL, AC_PATH_PROG skips testing the path. 1964# 1965AC_DEFUN([XORG_WITH_PERL],[ 1966AC_ARG_VAR([PERL], [Path to perl command]) 1967# Preserves the interface, should it be implemented later 1968m4_ifval([$1], [m4_warn([syntax], [Checking for perl MIN-VERSION is not implemented])]) 1969m4_define([_defopt], m4_default([$2], [auto])) 1970AC_ARG_WITH(perl, 1971 AS_HELP_STRING([--with-perl], 1972 [Use perl for extracting information from files (default: ]_defopt[)]), 1973 [use_perl=$withval], [use_perl=]_defopt) 1974m4_undefine([_defopt]) 1975 1976if test "x$use_perl" = x"auto"; then 1977 AC_PATH_PROG([PERL], [perl]) 1978 if test "x$PERL" = "x"; then 1979 AC_MSG_WARN([perl not found - cannot extract information and report]) 1980 have_perl=no 1981 else 1982 have_perl=yes 1983 fi 1984elif test "x$use_perl" = x"yes" ; then 1985 AC_PATH_PROG([PERL], [perl]) 1986 if test "x$PERL" = "x"; then 1987 AC_MSG_ERROR([--with-perl=yes specified but perl not found in PATH]) 1988 fi 1989 have_perl=yes 1990elif test "x$use_perl" = x"no" ; then 1991 if test "x$PERL" != "x"; then 1992 AC_MSG_WARN([ignoring PERL environment variable since --with-perl=no was specified]) 1993 fi 1994 have_perl=no 1995else 1996 AC_MSG_ERROR([--with-perl expects 'yes' or 'no']) 1997fi 1998 1999AM_CONDITIONAL([HAVE_PERL], [test "$have_perl" = yes]) 2000]) # XORG_WITH_PERL 2001 2002# XORG_WITH_ASCIIDOC([MIN-VERSION], [DEFAULT]) 2003# ---------------- 2004# Minimum version: 1.5.0 2005# Minimum version for optional DEFAULT argument: 1.11.0 2006# 2007# Documentation tools are not always available on all platforms and sometimes 2008# not at the appropriate level. This macro enables a module to test for the 2009# presence of the tool and obtain it's path in separate variables. Coupled with 2010# the --with-asciidoc option, it allows maximum flexibilty in making decisions 2011# as whether or not to use the asciidoc package. When DEFAULT is not specified, 2012# --with-asciidoc assumes 'auto'. 2013# 2014# Interface to module: 2015# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 2016# ASCIIDOC: returns the path of the asciidoc program found 2017# returns the path set by the user in the environment 2018# --with-asciidoc: 'yes' user instructs the module to use asciidoc 2019# 'no' user instructs the module not to use asciidoc 2020# 2021# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 2022# 2023AC_DEFUN([XORG_WITH_ASCIIDOC],[ 2024AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 2025m4_define([_defopt], m4_default([$2], [auto])) 2026AC_ARG_WITH(asciidoc, 2027 AS_HELP_STRING([--with-asciidoc], 2028 [Use asciidoc to regenerate documentation (default: ]_defopt[)]), 2029 [use_asciidoc=$withval], [use_asciidoc=]_defopt) 2030m4_undefine([_defopt]) 2031 2032if test "x$use_asciidoc" = x"auto"; then 2033 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 2034 if test "x$ASCIIDOC" = "x"; then 2035 AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 2036 have_asciidoc=no 2037 else 2038 have_asciidoc=yes 2039 fi 2040elif test "x$use_asciidoc" = x"yes" ; then 2041 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 2042 if test "x$ASCIIDOC" = "x"; then 2043 AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 2044 fi 2045 have_asciidoc=yes 2046elif test "x$use_asciidoc" = x"no" ; then 2047 if test "x$ASCIIDOC" != "x"; then 2048 AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 2049 fi 2050 have_asciidoc=no 2051else 2052 AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 2053fi 2054m4_ifval([$1], 2055[if test "$have_asciidoc" = yes; then 2056 # scrape the asciidoc version 2057 AC_MSG_CHECKING([the asciidoc version]) 2058 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 2059 AC_MSG_RESULT([$asciidoc_version]) 2060 AS_VERSION_COMPARE([$asciidoc_version], [$1], 2061 [if test "x$use_asciidoc" = xauto; then 2062 AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 2063 have_asciidoc=no 2064 else 2065 AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 2066 fi]) 2067fi]) 2068AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 2069]) # XORG_WITH_ASCIIDOC 2070 2071# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT]) 2072# ------------------------------------------- 2073# Minimum version: 1.5.0 2074# Minimum version for optional DEFAULT argument: 1.11.0 2075# Minimum version for optional DOT checking: 1.18.0 2076# 2077# Documentation tools are not always available on all platforms and sometimes 2078# not at the appropriate level. This macro enables a module to test for the 2079# presence of the tool and obtain it's path in separate variables. Coupled with 2080# the --with-doxygen option, it allows maximum flexibilty in making decisions 2081# as whether or not to use the doxygen package. When DEFAULT is not specified, 2082# --with-doxygen assumes 'auto'. 2083# 2084# Interface to module: 2085# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 2086# DOXYGEN: returns the path of the doxygen program found 2087# returns the path set by the user in the environment 2088# --with-doxygen: 'yes' user instructs the module to use doxygen 2089# 'no' user instructs the module not to use doxygen 2090# 2091# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 2092# 2093AC_DEFUN([XORG_WITH_DOXYGEN],[ 2094AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 2095AC_ARG_VAR([DOT], [Path to the dot graphics utility]) 2096m4_define([_defopt], m4_default([$2], [auto])) 2097AC_ARG_WITH(doxygen, 2098 AS_HELP_STRING([--with-doxygen], 2099 [Use doxygen to regenerate documentation (default: ]_defopt[)]), 2100 [use_doxygen=$withval], [use_doxygen=]_defopt) 2101m4_undefine([_defopt]) 2102 2103if test "x$use_doxygen" = x"auto"; then 2104 AC_PATH_PROG([DOXYGEN], [doxygen]) 2105 if test "x$DOXYGEN" = "x"; then 2106 AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 2107 have_doxygen=no 2108 else 2109 have_doxygen=yes 2110 fi 2111elif test "x$use_doxygen" = x"yes" ; then 2112 AC_PATH_PROG([DOXYGEN], [doxygen]) 2113 if test "x$DOXYGEN" = "x"; then 2114 AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 2115 fi 2116 have_doxygen=yes 2117elif test "x$use_doxygen" = x"no" ; then 2118 if test "x$DOXYGEN" != "x"; then 2119 AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 2120 fi 2121 have_doxygen=no 2122else 2123 AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 2124fi 2125m4_ifval([$1], 2126[if test "$have_doxygen" = yes; then 2127 # scrape the doxygen version 2128 AC_MSG_CHECKING([the doxygen version]) 2129 doxygen_version=`$DOXYGEN --version 2>/dev/null` 2130 AC_MSG_RESULT([$doxygen_version]) 2131 AS_VERSION_COMPARE([$doxygen_version], [$1], 2132 [if test "x$use_doxygen" = xauto; then 2133 AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 2134 have_doxygen=no 2135 else 2136 AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 2137 fi]) 2138fi]) 2139 2140dnl Check for DOT if we have doxygen. The caller decides if it is mandatory 2141dnl HAVE_DOT is a variable that can be used in your doxygen.in config file: 2142dnl HAVE_DOT = @HAVE_DOT@ 2143HAVE_DOT=no 2144if test "x$have_doxygen" = "xyes"; then 2145 AC_PATH_PROG([DOT], [dot]) 2146 if test "x$DOT" != "x"; then 2147 HAVE_DOT=yes 2148 fi 2149fi 2150 2151AC_SUBST([HAVE_DOT]) 2152AM_CONDITIONAL([HAVE_DOT], [test "$HAVE_DOT" = "yes"]) 2153AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 2154]) # XORG_WITH_DOXYGEN 2155 2156# XORG_WITH_GROFF([DEFAULT]) 2157# ---------------- 2158# Minimum version: 1.6.0 2159# Minimum version for optional DEFAULT argument: 1.11.0 2160# 2161# Documentation tools are not always available on all platforms and sometimes 2162# not at the appropriate level. This macro enables a module to test for the 2163# presence of the tool and obtain it's path in separate variables. Coupled with 2164# the --with-groff option, it allows maximum flexibilty in making decisions 2165# as whether or not to use the groff package. When DEFAULT is not specified, 2166# --with-groff assumes 'auto'. 2167# 2168# Interface to module: 2169# HAVE_GROFF: used in makefiles to conditionally generate documentation 2170# HAVE_GROFF_MM: the memorandum macros (-mm) package 2171# HAVE_GROFF_MS: the -ms macros package 2172# GROFF: returns the path of the groff program found 2173# returns the path set by the user in the environment 2174# --with-groff: 'yes' user instructs the module to use groff 2175# 'no' user instructs the module not to use groff 2176# 2177# Added in version 1.9.0: 2178# HAVE_GROFF_HTML: groff has dependencies to output HTML format: 2179# pnmcut pnmcrop pnmtopng pnmtops from the netpbm package. 2180# psselect from the psutils package. 2181# the ghostcript package. Refer to the grohtml man pages 2182# 2183# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 2184# 2185# OS and distros often splits groff in a basic and full package, the former 2186# having the groff program and the later having devices, fonts and macros 2187# Checking for the groff executable is not enough. 2188# 2189# If macros are missing, we cannot assume that groff is useless, so we don't 2190# unset HAVE_GROFF or GROFF env variables. 2191# HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 2192# 2193AC_DEFUN([XORG_WITH_GROFF],[ 2194AC_ARG_VAR([GROFF], [Path to groff command]) 2195m4_define([_defopt], m4_default([$1], [auto])) 2196AC_ARG_WITH(groff, 2197 AS_HELP_STRING([--with-groff], 2198 [Use groff to regenerate documentation (default: ]_defopt[)]), 2199 [use_groff=$withval], [use_groff=]_defopt) 2200m4_undefine([_defopt]) 2201 2202if test "x$use_groff" = x"auto"; then 2203 AC_PATH_PROG([GROFF], [groff]) 2204 if test "x$GROFF" = "x"; then 2205 AC_MSG_WARN([groff not found - documentation targets will be skipped]) 2206 have_groff=no 2207 else 2208 have_groff=yes 2209 fi 2210elif test "x$use_groff" = x"yes" ; then 2211 AC_PATH_PROG([GROFF], [groff]) 2212 if test "x$GROFF" = "x"; then 2213 AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 2214 fi 2215 have_groff=yes 2216elif test "x$use_groff" = x"no" ; then 2217 if test "x$GROFF" != "x"; then 2218 AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 2219 fi 2220 have_groff=no 2221else 2222 AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 2223fi 2224 2225# We have groff, test for the presence of the macro packages 2226if test "x$have_groff" = x"yes"; then 2227 AC_MSG_CHECKING([for ${GROFF} -ms macros]) 2228 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 2229 groff_ms_works=yes 2230 else 2231 groff_ms_works=no 2232 fi 2233 AC_MSG_RESULT([$groff_ms_works]) 2234 AC_MSG_CHECKING([for ${GROFF} -mm macros]) 2235 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 2236 groff_mm_works=yes 2237 else 2238 groff_mm_works=no 2239 fi 2240 AC_MSG_RESULT([$groff_mm_works]) 2241fi 2242 2243# We have groff, test for HTML dependencies, one command per package 2244if test "x$have_groff" = x"yes"; then 2245 AC_PATH_PROGS(GS_PATH, [gs gswin32c]) 2246 AC_PATH_PROG(PNMTOPNG_PATH, [pnmtopng]) 2247 AC_PATH_PROG(PSSELECT_PATH, [psselect]) 2248 if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then 2249 have_groff_html=yes 2250 else 2251 have_groff_html=no 2252 AC_MSG_WARN([grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages]) 2253 fi 2254fi 2255 2256# Set Automake conditionals for Makefiles 2257AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 2258AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 2259AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 2260AM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes]) 2261]) # XORG_WITH_GROFF 2262 2263# XORG_WITH_FOP([MIN-VERSION], [DEFAULT]) 2264# --------------------------------------- 2265# Minimum version: 1.6.0 2266# Minimum version for optional DEFAULT argument: 1.11.0 2267# Minimum version for optional MIN-VERSION argument: 1.15.0 2268# 2269# Documentation tools are not always available on all platforms and sometimes 2270# not at the appropriate level. This macro enables a module to test for the 2271# presence of the tool and obtain it's path in separate variables. Coupled with 2272# the --with-fop option, it allows maximum flexibilty in making decisions 2273# as whether or not to use the fop package. When DEFAULT is not specified, 2274# --with-fop assumes 'auto'. 2275# 2276# Interface to module: 2277# HAVE_FOP: used in makefiles to conditionally generate documentation 2278# FOP: returns the path of the fop program found 2279# returns the path set by the user in the environment 2280# --with-fop: 'yes' user instructs the module to use fop 2281# 'no' user instructs the module not to use fop 2282# 2283# If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 2284# 2285AC_DEFUN([XORG_WITH_FOP],[ 2286AC_ARG_VAR([FOP], [Path to fop command]) 2287m4_define([_defopt], m4_default([$2], [auto])) 2288AC_ARG_WITH(fop, 2289 AS_HELP_STRING([--with-fop], 2290 [Use fop to regenerate documentation (default: ]_defopt[)]), 2291 [use_fop=$withval], [use_fop=]_defopt) 2292m4_undefine([_defopt]) 2293 2294if test "x$use_fop" = x"auto"; then 2295 AC_PATH_PROG([FOP], [fop]) 2296 if test "x$FOP" = "x"; then 2297 AC_MSG_WARN([fop not found - documentation targets will be skipped]) 2298 have_fop=no 2299 else 2300 have_fop=yes 2301 fi 2302elif test "x$use_fop" = x"yes" ; then 2303 AC_PATH_PROG([FOP], [fop]) 2304 if test "x$FOP" = "x"; then 2305 AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 2306 fi 2307 have_fop=yes 2308elif test "x$use_fop" = x"no" ; then 2309 if test "x$FOP" != "x"; then 2310 AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 2311 fi 2312 have_fop=no 2313else 2314 AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 2315fi 2316 2317# Test for a minimum version of fop, if provided. 2318m4_ifval([$1], 2319[if test "$have_fop" = yes; then 2320 # scrape the fop version 2321 AC_MSG_CHECKING([for fop minimum version]) 2322 fop_version=`$FOP -version 2>/dev/null | cut -d' ' -f3` 2323 AC_MSG_RESULT([$fop_version]) 2324 AS_VERSION_COMPARE([$fop_version], [$1], 2325 [if test "x$use_fop" = xauto; then 2326 AC_MSG_WARN([fop version $fop_version found, but $1 needed]) 2327 have_fop=no 2328 else 2329 AC_MSG_ERROR([fop version $fop_version found, but $1 needed]) 2330 fi]) 2331fi]) 2332AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 2333]) # XORG_WITH_FOP 2334 2335# XORG_WITH_M4([MIN-VERSION]) 2336# --------------------------- 2337# Minimum version: 1.19.0 2338# 2339# This macro attempts to locate an m4 macro processor which supports 2340# -I option and is only useful for modules relying on M4 in order to 2341# expand macros in source code files. 2342# 2343# Interface to module: 2344# M4: returns the path of the m4 program found 2345# returns the path set by the user in the environment 2346# 2347AC_DEFUN([XORG_WITH_M4], [ 2348AC_CACHE_CHECK([for m4 that supports -I option], [ac_cv_path_M4], 2349 [AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4], 2350 [[$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \ 2351 ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:]], 2352 [AC_MSG_ERROR([could not find m4 that supports -I option])], 2353 [$PATH:/usr/gnu/bin])]) 2354 2355AC_SUBST([M4], [$ac_cv_path_M4]) 2356]) # XORG_WITH_M4 2357 2358# XORG_WITH_PS2PDF([DEFAULT]) 2359# ---------------- 2360# Minimum version: 1.6.0 2361# Minimum version for optional DEFAULT argument: 1.11.0 2362# 2363# Documentation tools are not always available on all platforms and sometimes 2364# not at the appropriate level. This macro enables a module to test for the 2365# presence of the tool and obtain it's path in separate variables. Coupled with 2366# the --with-ps2pdf option, it allows maximum flexibilty in making decisions 2367# as whether or not to use the ps2pdf package. When DEFAULT is not specified, 2368# --with-ps2pdf assumes 'auto'. 2369# 2370# Interface to module: 2371# HAVE_PS2PDF: used in makefiles to conditionally generate documentation 2372# PS2PDF: returns the path of the ps2pdf program found 2373# returns the path set by the user in the environment 2374# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 2375# 'no' user instructs the module not to use ps2pdf 2376# 2377# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 2378# 2379AC_DEFUN([XORG_WITH_PS2PDF],[ 2380AC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 2381m4_define([_defopt], m4_default([$1], [auto])) 2382AC_ARG_WITH(ps2pdf, 2383 AS_HELP_STRING([--with-ps2pdf], 2384 [Use ps2pdf to regenerate documentation (default: ]_defopt[)]), 2385 [use_ps2pdf=$withval], [use_ps2pdf=]_defopt) 2386m4_undefine([_defopt]) 2387 2388if test "x$use_ps2pdf" = x"auto"; then 2389 AC_PATH_PROG([PS2PDF], [ps2pdf]) 2390 if test "x$PS2PDF" = "x"; then 2391 AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 2392 have_ps2pdf=no 2393 else 2394 have_ps2pdf=yes 2395 fi 2396elif test "x$use_ps2pdf" = x"yes" ; then 2397 AC_PATH_PROG([PS2PDF], [ps2pdf]) 2398 if test "x$PS2PDF" = "x"; then 2399 AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 2400 fi 2401 have_ps2pdf=yes 2402elif test "x$use_ps2pdf" = x"no" ; then 2403 if test "x$PS2PDF" != "x"; then 2404 AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 2405 fi 2406 have_ps2pdf=no 2407else 2408 AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 2409fi 2410AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 2411]) # XORG_WITH_PS2PDF 2412 2413# XORG_ENABLE_DOCS (enable_docs=yes) 2414# ---------------- 2415# Minimum version: 1.6.0 2416# 2417# Documentation tools are not always available on all platforms and sometimes 2418# not at the appropriate level. This macro enables a builder to skip all 2419# documentation targets except traditional man pages. 2420# Combined with the specific tool checking macros XORG_WITH_*, it provides 2421# maximum flexibilty in controlling documentation building. 2422# Refer to: 2423# XORG_WITH_XMLTO --with-xmlto 2424# XORG_WITH_ASCIIDOC --with-asciidoc 2425# XORG_WITH_DOXYGEN --with-doxygen 2426# XORG_WITH_FOP --with-fop 2427# XORG_WITH_GROFF --with-groff 2428# XORG_WITH_PS2PDF --with-ps2pdf 2429# 2430# Interface to module: 2431# ENABLE_DOCS: used in makefiles to conditionally generate documentation 2432# --enable-docs: 'yes' user instructs the module to generate docs 2433# 'no' user instructs the module not to generate docs 2434# parm1: specify the default value, yes or no. 2435# 2436AC_DEFUN([XORG_ENABLE_DOCS],[ 2437m4_define([docs_default], m4_default([$1], [yes])) 2438AC_ARG_ENABLE(docs, 2439 AS_HELP_STRING([--enable-docs], 2440 [Enable building the documentation (default: ]docs_default[)]), 2441 [build_docs=$enableval], [build_docs=]docs_default) 2442m4_undefine([docs_default]) 2443AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 2444AC_MSG_CHECKING([whether to build documentation]) 2445AC_MSG_RESULT([$build_docs]) 2446]) # XORG_ENABLE_DOCS 2447 2448# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 2449# ---------------- 2450# Minimum version: 1.6.0 2451# 2452# This macro enables a builder to skip all developer documentation. 2453# Combined with the specific tool checking macros XORG_WITH_*, it provides 2454# maximum flexibilty in controlling documentation building. 2455# Refer to: 2456# XORG_WITH_XMLTO --with-xmlto 2457# XORG_WITH_ASCIIDOC --with-asciidoc 2458# XORG_WITH_DOXYGEN --with-doxygen 2459# XORG_WITH_FOP --with-fop 2460# XORG_WITH_GROFF --with-groff 2461# XORG_WITH_PS2PDF --with-ps2pdf 2462# 2463# Interface to module: 2464# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 2465# --enable-devel-docs: 'yes' user instructs the module to generate developer docs 2466# 'no' user instructs the module not to generate developer docs 2467# parm1: specify the default value, yes or no. 2468# 2469AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 2470m4_define([devel_default], m4_default([$1], [yes])) 2471AC_ARG_ENABLE(devel-docs, 2472 AS_HELP_STRING([--enable-devel-docs], 2473 [Enable building the developer documentation (default: ]devel_default[)]), 2474 [build_devel_docs=$enableval], [build_devel_docs=]devel_default) 2475m4_undefine([devel_default]) 2476AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 2477AC_MSG_CHECKING([whether to build developer documentation]) 2478AC_MSG_RESULT([$build_devel_docs]) 2479]) # XORG_ENABLE_DEVEL_DOCS 2480 2481# XORG_ENABLE_SPECS (enable_specs=yes) 2482# ---------------- 2483# Minimum version: 1.6.0 2484# 2485# This macro enables a builder to skip all functional specification targets. 2486# Combined with the specific tool checking macros XORG_WITH_*, it provides 2487# maximum flexibilty in controlling documentation building. 2488# Refer to: 2489# XORG_WITH_XMLTO --with-xmlto 2490# XORG_WITH_ASCIIDOC --with-asciidoc 2491# XORG_WITH_DOXYGEN --with-doxygen 2492# XORG_WITH_FOP --with-fop 2493# XORG_WITH_GROFF --with-groff 2494# XORG_WITH_PS2PDF --with-ps2pdf 2495# 2496# Interface to module: 2497# ENABLE_SPECS: used in makefiles to conditionally generate specs 2498# --enable-specs: 'yes' user instructs the module to generate specs 2499# 'no' user instructs the module not to generate specs 2500# parm1: specify the default value, yes or no. 2501# 2502AC_DEFUN([XORG_ENABLE_SPECS],[ 2503m4_define([spec_default], m4_default([$1], [yes])) 2504AC_ARG_ENABLE(specs, 2505 AS_HELP_STRING([--enable-specs], 2506 [Enable building the specs (default: ]spec_default[)]), 2507 [build_specs=$enableval], [build_specs=]spec_default) 2508m4_undefine([spec_default]) 2509AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 2510AC_MSG_CHECKING([whether to build functional specifications]) 2511AC_MSG_RESULT([$build_specs]) 2512]) # XORG_ENABLE_SPECS 2513 2514# XORG_ENABLE_UNIT_TESTS (enable_unit_tests=auto) 2515# ---------------------------------------------- 2516# Minimum version: 1.13.0 2517# 2518# This macro enables a builder to enable/disable unit testing 2519# It makes no assumption about the test cases implementation 2520# Test cases may or may not use Automake "Support for test suites" 2521# They may or may not use the software utility library GLib 2522# 2523# When used in conjunction with XORG_WITH_GLIB, use both AM_CONDITIONAL 2524# ENABLE_UNIT_TESTS and HAVE_GLIB. Not all unit tests may use glib. 2525# The variable enable_unit_tests is used by other macros in this file. 2526# 2527# Interface to module: 2528# ENABLE_UNIT_TESTS: used in makefiles to conditionally build tests 2529# enable_unit_tests: used in configure.ac for additional configuration 2530# --enable-unit-tests: 'yes' user instructs the module to build tests 2531# 'no' user instructs the module not to build tests 2532# parm1: specify the default value, yes or no. 2533# 2534AC_DEFUN([XORG_ENABLE_UNIT_TESTS],[ 2535AC_BEFORE([$0], [XORG_WITH_GLIB]) 2536AC_BEFORE([$0], [XORG_LD_WRAP]) 2537AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS]) 2538m4_define([_defopt], m4_default([$1], [auto])) 2539AC_ARG_ENABLE(unit-tests, AS_HELP_STRING([--enable-unit-tests], 2540 [Enable building unit test cases (default: ]_defopt[)]), 2541 [enable_unit_tests=$enableval], [enable_unit_tests=]_defopt) 2542m4_undefine([_defopt]) 2543AM_CONDITIONAL(ENABLE_UNIT_TESTS, [test "x$enable_unit_tests" != xno]) 2544AC_MSG_CHECKING([whether to build unit test cases]) 2545AC_MSG_RESULT([$enable_unit_tests]) 2546]) # XORG_ENABLE_UNIT_TESTS 2547 2548# XORG_ENABLE_INTEGRATION_TESTS (enable_unit_tests=auto) 2549# ------------------------------------------------------ 2550# Minimum version: 1.17.0 2551# 2552# This macro enables a builder to enable/disable integration testing 2553# It makes no assumption about the test cases' implementation 2554# Test cases may or may not use Automake "Support for test suites" 2555# 2556# Please see XORG_ENABLE_UNIT_TESTS for unit test support. Unit test support 2557# usually requires less dependencies and may be built and run under less 2558# stringent environments than integration tests. 2559# 2560# Interface to module: 2561# ENABLE_INTEGRATION_TESTS: used in makefiles to conditionally build tests 2562# enable_integration_tests: used in configure.ac for additional configuration 2563# --enable-integration-tests: 'yes' user instructs the module to build tests 2564# 'no' user instructs the module not to build tests 2565# parm1: specify the default value, yes or no. 2566# 2567AC_DEFUN([XORG_ENABLE_INTEGRATION_TESTS],[ 2568AC_REQUIRE([XORG_MEMORY_CHECK_FLAGS]) 2569m4_define([_defopt], m4_default([$1], [auto])) 2570AC_ARG_ENABLE(integration-tests, AS_HELP_STRING([--enable-integration-tests], 2571 [Enable building integration test cases (default: ]_defopt[)]), 2572 [enable_integration_tests=$enableval], 2573 [enable_integration_tests=]_defopt) 2574m4_undefine([_defopt]) 2575AM_CONDITIONAL([ENABLE_INTEGRATION_TESTS], 2576 [test "x$enable_integration_tests" != xno]) 2577AC_MSG_CHECKING([whether to build unit test cases]) 2578AC_MSG_RESULT([$enable_integration_tests]) 2579]) # XORG_ENABLE_INTEGRATION_TESTS 2580 2581# XORG_WITH_GLIB([MIN-VERSION], [DEFAULT]) 2582# ---------------------------------------- 2583# Minimum version: 1.13.0 2584# 2585# GLib is a library which provides advanced data structures and functions. 2586# This macro enables a module to test for the presence of Glib. 2587# 2588# When used with ENABLE_UNIT_TESTS, it is assumed GLib is used for unit testing. 2589# Otherwise the value of $enable_unit_tests is blank. 2590# 2591# Please see XORG_ENABLE_INTEGRATION_TESTS for integration test support. Unit 2592# test support usually requires less dependencies and may be built and run under 2593# less stringent environments than integration tests. 2594# 2595# Interface to module: 2596# HAVE_GLIB: used in makefiles to conditionally build targets 2597# with_glib: used in configure.ac to know if GLib has been found 2598# --with-glib: 'yes' user instructs the module to use glib 2599# 'no' user instructs the module not to use glib 2600# 2601AC_DEFUN([XORG_WITH_GLIB],[ 2602AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2603m4_define([_defopt], m4_default([$2], [auto])) 2604AC_ARG_WITH(glib, AS_HELP_STRING([--with-glib], 2605 [Use GLib library for unit testing (default: ]_defopt[)]), 2606 [with_glib=$withval], [with_glib=]_defopt) 2607m4_undefine([_defopt]) 2608 2609have_glib=no 2610# Do not probe GLib if user explicitly disabled unit testing 2611if test "x$enable_unit_tests" != x"no"; then 2612 # Do not probe GLib if user explicitly disabled it 2613 if test "x$with_glib" != x"no"; then 2614 m4_ifval( 2615 [$1], 2616 [PKG_CHECK_MODULES([GLIB], [glib-2.0 >= $1], [have_glib=yes], [have_glib=no])], 2617 [PKG_CHECK_MODULES([GLIB], [glib-2.0], [have_glib=yes], [have_glib=no])] 2618 ) 2619 fi 2620fi 2621 2622# Not having GLib when unit testing has been explicitly requested is an error 2623if test "x$enable_unit_tests" = x"yes"; then 2624 if test "x$have_glib" = x"no"; then 2625 AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found]) 2626 fi 2627fi 2628 2629# Having unit testing disabled when GLib has been explicitly requested is an error 2630if test "x$enable_unit_tests" = x"no"; then 2631 if test "x$with_glib" = x"yes"; then 2632 AC_MSG_ERROR([--enable-unit-tests=yes specified but glib-2.0 not found]) 2633 fi 2634fi 2635 2636# Not having GLib when it has been explicitly requested is an error 2637if test "x$with_glib" = x"yes"; then 2638 if test "x$have_glib" = x"no"; then 2639 AC_MSG_ERROR([--with-glib=yes specified but glib-2.0 not found]) 2640 fi 2641fi 2642 2643AM_CONDITIONAL([HAVE_GLIB], [test "$have_glib" = yes]) 2644]) # XORG_WITH_GLIB 2645 2646# XORG_LD_WRAP([required|optional]) 2647# --------------------------------- 2648# Minimum version: 1.13.0 2649# 2650# Check if linker supports -wrap, passed via compiler flags 2651# 2652# When used with ENABLE_UNIT_TESTS, it is assumed -wrap is used for unit testing. 2653# Otherwise the value of $enable_unit_tests is blank. 2654# 2655# Argument added in 1.16.0 - default is "required", to match existing behavior 2656# of returning an error if enable_unit_tests is yes, and ld -wrap is not 2657# available, an argument of "optional" allows use when some unit tests require 2658# ld -wrap and others do not. 2659# 2660AC_DEFUN([XORG_LD_WRAP],[ 2661XORG_CHECK_LINKER_FLAGS([-Wl,-wrap,exit],[have_ld_wrap=yes],[have_ld_wrap=no], 2662 [AC_LANG_PROGRAM([#include <stdlib.h> 2663 void __wrap_exit(int status) { return; }], 2664 [exit(0);])]) 2665# Not having ld wrap when unit testing has been explicitly requested is an error 2666if test "x$enable_unit_tests" = x"yes" -a "x$1" != "xoptional"; then 2667 if test "x$have_ld_wrap" = x"no"; then 2668 AC_MSG_ERROR([--enable-unit-tests=yes specified but ld -wrap support is not available]) 2669 fi 2670fi 2671AM_CONDITIONAL([HAVE_LD_WRAP], [test "$have_ld_wrap" = yes]) 2672# 2673]) # XORG_LD_WRAP 2674 2675# XORG_CHECK_LINKER_FLAGS 2676# ----------------------- 2677# SYNOPSIS 2678# 2679# XORG_CHECK_LINKER_FLAGS(FLAGS, [ACTION-SUCCESS], [ACTION-FAILURE], [PROGRAM-SOURCE]) 2680# 2681# DESCRIPTION 2682# 2683# Check whether the given linker FLAGS work with the current language's 2684# linker, or whether they give an error. 2685# 2686# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on 2687# success/failure. 2688# 2689# PROGRAM-SOURCE is the program source to link with, if needed 2690# 2691# NOTE: Based on AX_CHECK_COMPILER_FLAGS. 2692# 2693# LICENSE 2694# 2695# Copyright (c) 2009 Mike Frysinger <vapier@gentoo.org> 2696# Copyright (c) 2009 Steven G. Johnson <stevenj@alum.mit.edu> 2697# Copyright (c) 2009 Matteo Frigo 2698# 2699# This program is free software: you can redistribute it and/or modify it 2700# under the terms of the GNU General Public License as published by the 2701# Free Software Foundation, either version 3 of the License, or (at your 2702# option) any later version. 2703# 2704# This program is distributed in the hope that it will be useful, but 2705# WITHOUT ANY WARRANTY; without even the implied warranty of 2706# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 2707# Public License for more details. 2708# 2709# You should have received a copy of the GNU General Public License along 2710# with this program. If not, see <http://www.gnu.org/licenses/>. 2711# 2712# As a special exception, the respective Autoconf Macro's copyright owner 2713# gives unlimited permission to copy, distribute and modify the configure 2714# scripts that are the output of Autoconf when processing the Macro. You 2715# need not follow the terms of the GNU General Public License when using 2716# or distributing such scripts, even though portions of the text of the 2717# Macro appear in them. The GNU General Public License (GPL) does govern 2718# all other use of the material that constitutes the Autoconf Macro. 2719# 2720# This special exception to the GPL applies to versions of the Autoconf 2721# Macro released by the Autoconf Archive. When you make and distribute a 2722# modified version of the Autoconf Macro, you may extend this special 2723# exception to the GPL to apply to your modified version as well.# 2724AC_DEFUN([XORG_CHECK_LINKER_FLAGS], 2725[AC_MSG_CHECKING([whether the linker accepts $1]) 2726dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname: 2727AS_LITERAL_IF([$1], 2728 [AC_CACHE_VAL(AS_TR_SH(xorg_cv_linker_flags_[$1]), [ 2729 ax_save_FLAGS=$LDFLAGS 2730 LDFLAGS="$1" 2731 AC_LINK_IFELSE([m4_default([$4],[AC_LANG_PROGRAM()])], 2732 AS_TR_SH(xorg_cv_linker_flags_[$1])=yes, 2733 AS_TR_SH(xorg_cv_linker_flags_[$1])=no) 2734 LDFLAGS=$ax_save_FLAGS])], 2735 [ax_save_FLAGS=$LDFLAGS 2736 LDFLAGS="$1" 2737 AC_LINK_IFELSE([AC_LANG_PROGRAM()], 2738 eval AS_TR_SH(xorg_cv_linker_flags_[$1])=yes, 2739 eval AS_TR_SH(xorg_cv_linker_flags_[$1])=no) 2740 LDFLAGS=$ax_save_FLAGS]) 2741eval xorg_check_linker_flags=$AS_TR_SH(xorg_cv_linker_flags_[$1]) 2742AC_MSG_RESULT($xorg_check_linker_flags) 2743if test "x$xorg_check_linker_flags" = xyes; then 2744 m4_default([$2], :) 2745else 2746 m4_default([$3], :) 2747fi 2748]) # XORG_CHECK_LINKER_FLAGS 2749 2750# XORG_MEMORY_CHECK_FLAGS 2751# ----------------------- 2752# Minimum version: 1.16.0 2753# 2754# This macro attempts to find appropriate memory checking functionality 2755# for various platforms which unit testing code may use to catch various 2756# forms of memory allocation and access errors in testing. 2757# 2758# Interface to module: 2759# XORG_MALLOC_DEBUG_ENV - environment variables to set to enable debugging 2760# Usually added to TESTS_ENVIRONMENT in Makefile.am 2761# 2762# If the user sets the value of XORG_MALLOC_DEBUG_ENV, it is used verbatim. 2763# 2764AC_DEFUN([XORG_MEMORY_CHECK_FLAGS],[ 2765 2766AC_REQUIRE([AC_CANONICAL_HOST]) 2767AC_ARG_VAR([XORG_MALLOC_DEBUG_ENV], 2768 [Environment variables to enable memory checking in tests]) 2769 2770# Check for different types of support on different platforms 2771case $host_os in 2772 solaris*) 2773 AC_CHECK_LIB([umem], [umem_alloc], 2774 [malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default']) 2775 ;; 2776 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 2777 # both directly and inverted, so should not be 0 or 255. 2778 malloc_debug_env='MALLOC_PERTURB_=15' 2779 ;; 2780 darwin*) 2781 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 2782 ;; 2783 *bsd*) 2784 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 2785 ;; 2786esac 2787 2788# User supplied flags override default flags 2789if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 2790 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 2791fi 2792 2793AC_SUBST([XORG_MALLOC_DEBUG_ENV],[$malloc_debug_env]) 2794]) # XORG_WITH_LINT 2795 2796# XORG_CHECK_MALLOC_ZERO 2797# ---------------------- 2798# Minimum version: 1.0.0 2799# 2800# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 2801# malloc(0) returns NULL. Packages should add one of these cflags to 2802# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 2803AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 2804AC_ARG_ENABLE(malloc0returnsnull, 2805 AS_HELP_STRING([--enable-malloc0returnsnull], 2806 [malloc(0) returns NULL (default: auto)]), 2807 [MALLOC_ZERO_RETURNS_NULL=$enableval], 2808 [MALLOC_ZERO_RETURNS_NULL=auto]) 2809 2810AC_MSG_CHECKING([whether malloc(0) returns NULL]) 2811if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 2812AC_CACHE_VAL([xorg_cv_malloc0_returns_null], 2813 [AC_RUN_IFELSE([AC_LANG_PROGRAM([ 2814#include <stdlib.h> 2815],[ 2816 char *m0, *r0, *c0, *p; 2817 m0 = malloc(0); 2818 p = malloc(10); 2819 r0 = realloc(p,0); 2820 c0 = calloc(0,10); 2821 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 2822])], 2823 [xorg_cv_malloc0_returns_null=yes], 2824 [xorg_cv_malloc0_returns_null=no])]) 2825MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 2826fi 2827AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 2828 2829if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 2830 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 2831 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 2832 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 2833else 2834 MALLOC_ZERO_CFLAGS="" 2835 XMALLOC_ZERO_CFLAGS="" 2836 XTMALLOC_ZERO_CFLAGS="" 2837fi 2838 2839AC_SUBST([MALLOC_ZERO_CFLAGS]) 2840AC_SUBST([XMALLOC_ZERO_CFLAGS]) 2841AC_SUBST([XTMALLOC_ZERO_CFLAGS]) 2842]) # XORG_CHECK_MALLOC_ZERO 2843 2844# XORG_WITH_LINT() 2845# ---------------- 2846# Minimum version: 1.1.0 2847# 2848# This macro enables the use of a tool that flags some suspicious and 2849# non-portable constructs (likely to be bugs) in C language source code. 2850# It will attempt to locate the tool and use appropriate options. 2851# There are various lint type tools on different platforms. 2852# 2853# Interface to module: 2854# LINT: returns the path to the tool found on the platform 2855# or the value set to LINT on the configure cmd line 2856# also an Automake conditional 2857# LINT_FLAGS: an Automake variable with appropriate flags 2858# 2859# --with-lint: 'yes' user instructs the module to use lint 2860# 'no' user instructs the module not to use lint (default) 2861# 2862# If the user sets the value of LINT, AC_PATH_PROG skips testing the path. 2863# If the user sets the value of LINT_FLAGS, they are used verbatim. 2864# 2865AC_DEFUN([XORG_WITH_LINT],[ 2866 2867AC_ARG_VAR([LINT], [Path to a lint-style command]) 2868AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command]) 2869AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 2870 [Use a lint-style source code checker (default: disabled)])], 2871 [use_lint=$withval], [use_lint=no]) 2872 2873# Obtain platform specific info like program name and options 2874# The lint program on FreeBSD and NetBSD is different from the one on Solaris 2875case $host_os in 2876 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 2877 lint_name=splint 2878 lint_options="-badflag" 2879 ;; 2880 *freebsd* | *netbsd*) 2881 lint_name=lint 2882 lint_options="-u -b" 2883 ;; 2884 *solaris*) 2885 lint_name=lint 2886 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 2887 ;; 2888esac 2889 2890# Test for the presence of the program (either guessed by the code or spelled out by the user) 2891if test "x$use_lint" = x"yes" ; then 2892 AC_PATH_PROG([LINT], [$lint_name]) 2893 if test "x$LINT" = "x"; then 2894 AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH]) 2895 fi 2896elif test "x$use_lint" = x"no" ; then 2897 if test "x$LINT" != "x"; then 2898 AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified]) 2899 fi 2900else 2901 AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.]) 2902fi 2903 2904# User supplied flags override default flags 2905if test "x$LINT_FLAGS" != "x"; then 2906 lint_options=$LINT_FLAGS 2907fi 2908 2909AC_SUBST([LINT_FLAGS],[$lint_options]) 2910AM_CONDITIONAL(LINT, [test "x$LINT" != x]) 2911 2912]) # XORG_WITH_LINT 2913 2914# XORG_LINT_LIBRARY(LIBNAME) 2915# -------------------------- 2916# Minimum version: 1.1.0 2917# 2918# Sets up flags for building lint libraries for checking programs that call 2919# functions in the library. 2920# 2921# Interface to module: 2922# LINTLIB - Automake variable with the name of lint library file to make 2923# MAKE_LINT_LIB - Automake conditional 2924# 2925# --enable-lint-library: - 'yes' user instructs the module to created a lint library 2926# - 'no' user instructs the module not to create a lint library (default) 2927 2928AC_DEFUN([XORG_LINT_LIBRARY],[ 2929AC_REQUIRE([XORG_WITH_LINT]) 2930AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 2931 [Create lint library (default: disabled)])], 2932 [make_lint_lib=$enableval], [make_lint_lib=no]) 2933 2934if test "x$make_lint_lib" = x"yes" ; then 2935 LINTLIB=llib-l$1.ln 2936 if test "x$LINT" = "x"; then 2937 AC_MSG_ERROR([Cannot make lint library without --with-lint]) 2938 fi 2939elif test "x$make_lint_lib" != x"no" ; then 2940 AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.]) 2941fi 2942 2943AC_SUBST(LINTLIB) 2944AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 2945 2946]) # XORG_LINT_LIBRARY 2947 2948# XORG_COMPILER_BRAND 2949# ------------------- 2950# Minimum version: 1.14.0 2951# 2952# Checks for various brands of compilers and sets flags as appropriate: 2953# GNU gcc - relies on AC_PROG_CC (via AC_PROG_CC_C99) to set GCC to "yes" 2954# GNU g++ - relies on AC_PROG_CXX to set GXX to "yes" 2955# clang compiler - sets CLANGCC to "yes" 2956# Intel compiler - sets INTELCC to "yes" 2957# Sun/Oracle Solaris Studio cc - sets SUNCC to "yes" 2958# 2959AC_DEFUN([XORG_COMPILER_BRAND], [ 2960AC_LANG_CASE( 2961 [C], [ 2962 AC_REQUIRE([AC_PROG_CC_C99]) 2963 ], 2964 [C++], [ 2965 AC_REQUIRE([AC_PROG_CXX]) 2966 ] 2967) 2968AC_CHECK_DECL([__clang__], [CLANGCC="yes"], [CLANGCC="no"]) 2969AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 2970AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2971]) # XORG_COMPILER_BRAND 2972 2973# XORG_TESTSET_CFLAG(<variable>, <flag>, [<alternative flag>, ...]) 2974# --------------- 2975# Minimum version: 1.16.0 2976# 2977# Test if the compiler works when passed the given flag as a command line argument. 2978# If it succeeds, the flag is appeneded to the given variable. If not, it tries the 2979# next flag in the list until there are no more options. 2980# 2981# Note that this does not guarantee that the compiler supports the flag as some 2982# compilers will simply ignore arguments that they do not understand, but we do 2983# attempt to weed out false positives by using -Werror=unknown-warning-option and 2984# -Werror=unused-command-line-argument 2985# 2986AC_DEFUN([XORG_TESTSET_CFLAG], [ 2987m4_if([$#], 0, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])]) 2988m4_if([$#], 1, [m4_fatal([XORG_TESTSET_CFLAG was given with an unsupported number of arguments])]) 2989 2990AC_LANG_COMPILER_REQUIRE 2991 2992AC_LANG_CASE( 2993 [C], [ 2994 AC_REQUIRE([AC_PROG_CC_C99]) 2995 define([PREFIX], [C]) 2996 define([CACHE_PREFIX], [cc]) 2997 define([COMPILER], [$CC]) 2998 ], 2999 [C++], [ 3000 define([PREFIX], [CXX]) 3001 define([CACHE_PREFIX], [cxx]) 3002 define([COMPILER], [$CXX]) 3003 ] 3004) 3005 3006[xorg_testset_save_]PREFIX[FLAGS]="$PREFIX[FLAGS]" 3007 3008if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "x" ; then 3009 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" 3010 AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unknown-warning-option], 3011 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option], 3012 AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])], 3013 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=yes], 3014 [xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option=no])) 3015 [xorg_testset_]CACHE_PREFIX[_unknown_warning_option]=$[xorg_cv_]CACHE_PREFIX[_flag_unknown_warning_option] 3016 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" 3017fi 3018 3019if test "x$[xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]" = "x" ; then 3020 if test "x$[xorg_testset_]CACHE_PREFIX[_unknown_warning_option]" = "xyes" ; then 3021 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" 3022 fi 3023 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument" 3024 AC_CACHE_CHECK([if ]COMPILER[ supports -Werror=unused-command-line-argument], 3025 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument], 3026 AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])], 3027 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=yes], 3028 [xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument=no])) 3029 [xorg_testset_]CACHE_PREFIX[_unused_command_line_argument]=$[xorg_cv_]CACHE_PREFIX[_flag_unused_command_line_argument] 3030 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" 3031fi 3032 3033found="no" 3034m4_foreach([flag], m4_cdr($@), [ 3035 if test $found = "no" ; then 3036 if test "x$xorg_testset_]CACHE_PREFIX[_unknown_warning_option" = "xyes" ; then 3037 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option" 3038 fi 3039 3040 if test "x$xorg_testset_]CACHE_PREFIX[_unused_command_line_argument" = "xyes" ; then 3041 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument" 3042 fi 3043 3044 PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag[" 3045 3046dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname 3047 AC_MSG_CHECKING([if ]COMPILER[ supports ]flag[]) 3048 cacheid=AS_TR_SH([xorg_cv_]CACHE_PREFIX[_flag_]flag[]) 3049 AC_CACHE_VAL($cacheid, 3050 [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])], 3051 [eval $cacheid=yes], 3052 [eval $cacheid=no])]) 3053 3054 PREFIX[FLAGS]="$[xorg_testset_save_]PREFIX[FLAGS]" 3055 3056 eval supported=\$$cacheid 3057 AC_MSG_RESULT([$supported]) 3058 if test "$supported" = "yes" ; then 3059 $1="$$1 ]flag[" 3060 found="yes" 3061 fi 3062 fi 3063]) 3064]) # XORG_TESTSET_CFLAG 3065 3066# XORG_COMPILER_FLAGS 3067# --------------- 3068# Minimum version: 1.16.0 3069# 3070# Defines BASE_CFLAGS or BASE_CXXFLAGS to contain a set of command line 3071# arguments supported by the selected compiler which do NOT alter the generated 3072# code. These arguments will cause the compiler to print various warnings 3073# during compilation AND turn a conservative set of warnings into errors. 3074# 3075# The set of flags supported by BASE_CFLAGS and BASE_CXXFLAGS will grow in 3076# future versions of util-macros as options are added to new compilers. 3077# 3078AC_DEFUN([XORG_COMPILER_FLAGS], [ 3079AC_REQUIRE([XORG_COMPILER_BRAND]) 3080 3081AC_ARG_ENABLE(selective-werror, 3082 AS_HELP_STRING([--disable-selective-werror], 3083 [Turn off selective compiler errors. (default: enabled)]), 3084 [SELECTIVE_WERROR=$enableval], 3085 [SELECTIVE_WERROR=yes]) 3086 3087AC_LANG_CASE( 3088 [C], [ 3089 define([PREFIX], [C]) 3090 ], 3091 [C++], [ 3092 define([PREFIX], [CXX]) 3093 ] 3094) 3095# -v is too short to test reliably with XORG_TESTSET_CFLAG 3096if test "x$SUNCC" = "xyes"; then 3097 [BASE_]PREFIX[FLAGS]="-v" 3098else 3099 [BASE_]PREFIX[FLAGS]="" 3100fi 3101 3102# This chunk of warnings were those that existed in the legacy CWARNFLAGS 3103XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wall]) 3104XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-arith]) 3105XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-declarations]) 3106XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wformat=2], [-Wformat]) 3107 3108AC_LANG_CASE( 3109 [C], [ 3110 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wstrict-prototypes]) 3111 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes]) 3112 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs]) 3113 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast]) 3114 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition], [-fd]) 3115 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement]) 3116 ] 3117) 3118 3119# This chunk adds additional warnings that could catch undesired effects. 3120XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused]) 3121XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized]) 3122XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow]) 3123XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn]) 3124XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute]) 3125XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls]) 3126XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 3127 3128# These are currently disabled because they are noisy. They will be enabled 3129# in the future once the codebase is sufficiently modernized to silence 3130# them. For now, I don't want them to drown out the other warnings. 3131# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 3132# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 3133# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 3134 3135# Turn some warnings into errors, so we don't accidently get successful builds 3136# when there are problems that should be fixed. 3137 3138if test "x$SELECTIVE_WERROR" = "xyes" ; then 3139XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=implicit], [-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED]) 3140XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=nonnull]) 3141XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=init-self]) 3142XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=main]) 3143XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=missing-braces]) 3144XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=sequence-point]) 3145XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=return-type], [-errwarn=E_FUNC_HAS_NO_RETURN_STMT]) 3146XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=trigraphs]) 3147XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=array-bounds]) 3148XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=write-strings]) 3149XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=address]) 3150XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=int-to-pointer-cast], [-errwarn=E_BAD_PTR_INT_COMBINATION]) 3151XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Werror=pointer-to-int-cast]) # Also -errwarn=E_BAD_PTR_INT_COMBINATION 3152else 3153AC_MSG_WARN([You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT]) 3154XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wimplicit]) 3155XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnonnull]) 3156XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Winit-self]) 3157XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmain]) 3158XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-braces]) 3159XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wsequence-point]) 3160XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wreturn-type]) 3161XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wtrigraphs]) 3162XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Warray-bounds]) 3163XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wwrite-strings]) 3164XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Waddress]) 3165XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wint-to-pointer-cast]) 3166XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wpointer-to-int-cast]) 3167fi 3168 3169AC_SUBST([BASE_]PREFIX[FLAGS]) 3170]) # XORG_COMPILER_FLAGS 3171 3172# XORG_CWARNFLAGS 3173# --------------- 3174# Minimum version: 1.2.0 3175# Deprecated since: 1.16.0 (Use XORG_COMPILER_FLAGS instead) 3176# 3177# Defines CWARNFLAGS to enable C compiler warnings. 3178# 3179# This function is deprecated because it defines -fno-strict-aliasing 3180# which alters the code generated by the compiler. If -fno-strict-aliasing 3181# is needed, then it should be added explicitly in the module when 3182# it is updated to use BASE_CFLAGS. 3183# 3184AC_DEFUN([XORG_CWARNFLAGS], [ 3185AC_REQUIRE([XORG_COMPILER_FLAGS]) 3186AC_REQUIRE([XORG_COMPILER_BRAND]) 3187AC_LANG_CASE( 3188 [C], [ 3189 CWARNFLAGS="$BASE_CFLAGS" 3190 if test "x$GCC" = xyes ; then 3191 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 3192 fi 3193 AC_SUBST(CWARNFLAGS) 3194 ] 3195) 3196]) # XORG_CWARNFLAGS 3197 3198# XORG_STRICT_OPTION 3199# ----------------------- 3200# Minimum version: 1.3.0 3201# 3202# Add configure option to enable strict compilation flags, such as treating 3203# warnings as fatal errors. 3204# If --enable-strict-compilation is passed to configure, adds strict flags to 3205# $BASE_CFLAGS or $BASE_CXXFLAGS and the deprecated $CWARNFLAGS. 3206# 3207# Starting in 1.14.0 also exports $STRICT_CFLAGS for use in other tests or 3208# when strict compilation is unconditionally desired. 3209AC_DEFUN([XORG_STRICT_OPTION], [ 3210AC_REQUIRE([XORG_CWARNFLAGS]) 3211AC_REQUIRE([XORG_COMPILER_FLAGS]) 3212 3213AC_ARG_ENABLE(strict-compilation, 3214 AS_HELP_STRING([--enable-strict-compilation], 3215 [Enable all warnings from compiler and make them errors (default: disabled)]), 3216 [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 3217 3218AC_LANG_CASE( 3219 [C], [ 3220 define([PREFIX], [C]) 3221 ], 3222 [C++], [ 3223 define([PREFIX], [CXX]) 3224 ] 3225) 3226 3227[STRICT_]PREFIX[FLAGS]="" 3228XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-pedantic]) 3229XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror], [-errwarn]) 3230 3231# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 3232# activate it with -Werror, so we add it here explicitly. 3233XORG_TESTSET_CFLAG([[STRICT_]PREFIX[FLAGS]], [-Werror=attributes]) 3234 3235if test "x$STRICT_COMPILE" = "xyes"; then 3236 [BASE_]PREFIX[FLAGS]="$[BASE_]PREFIX[FLAGS] $[STRICT_]PREFIX[FLAGS]" 3237 AC_LANG_CASE([C], [CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"]) 3238fi 3239AC_SUBST([STRICT_]PREFIX[FLAGS]) 3240AC_SUBST([BASE_]PREFIX[FLAGS]) 3241AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS])) 3242]) # XORG_STRICT_OPTION 3243 3244# XORG_DEFAULT_OPTIONS 3245# -------------------- 3246# Minimum version: 1.3.0 3247# 3248# Defines default options for X.Org modules. 3249# 3250AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 3251AC_REQUIRE([AC_PROG_INSTALL]) 3252XORG_COMPILER_FLAGS 3253XORG_CWARNFLAGS 3254XORG_STRICT_OPTION 3255XORG_RELEASE_VERSION 3256XORG_CHANGELOG 3257XORG_INSTALL 3258XORG_MANPAGE_SECTIONS 3259m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 3260 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 3261]) # XORG_DEFAULT_OPTIONS 3262 3263# XORG_INSTALL() 3264# ---------------- 3265# Minimum version: 1.4.0 3266# 3267# Defines the variable INSTALL_CMD as the command to copy 3268# INSTALL from $prefix/share/util-macros. 3269# 3270AC_DEFUN([XORG_INSTALL], [ 3271AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 3272macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 3273INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 3274mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 3275|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 3276touch \$(top_srcdir)/INSTALL; \ 3277echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 3278AC_SUBST([INSTALL_CMD]) 3279]) # XORG_INSTALL 3280dnl Copyright 2005 Red Hat, Inc 3281dnl 3282dnl Permission to use, copy, modify, distribute, and sell this software and its 3283dnl documentation for any purpose is hereby granted without fee, provided that 3284dnl the above copyright notice appear in all copies and that both that 3285dnl copyright notice and this permission notice appear in supporting 3286dnl documentation. 3287dnl 3288dnl The above copyright notice and this permission notice shall be included 3289dnl in all copies or substantial portions of the Software. 3290dnl 3291dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 3292dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 3293dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 3294dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 3295dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 3296dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 3297dnl OTHER DEALINGS IN THE SOFTWARE. 3298dnl 3299dnl Except as contained in this notice, the name of the copyright holders shall 3300dnl not be used in advertising or otherwise to promote the sale, use or 3301dnl other dealings in this Software without prior written authorization 3302dnl from the copyright holders. 3303dnl 3304 3305# XORG_RELEASE_VERSION 3306# -------------------- 3307# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 3308 3309AC_DEFUN([XORG_RELEASE_VERSION],[ 3310 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 3311 [`echo $PACKAGE_VERSION | cut -d . -f 1`], 3312 [Major version of this package]) 3313 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 3314 if test "x$PVM" = "x"; then 3315 PVM="0" 3316 fi 3317 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 3318 [$PVM], 3319 [Minor version of this package]) 3320 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 3321 if test "x$PVP" = "x"; then 3322 PVP="0" 3323 fi 3324 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 3325 [$PVP], 3326 [Patch version of this package]) 3327]) 3328 3329# XORG_CHANGELOG() 3330# ---------------- 3331# Minimum version: 1.2.0 3332# 3333# Defines the variable CHANGELOG_CMD as the command to generate 3334# ChangeLog from git. 3335# 3336# 3337AC_DEFUN([XORG_CHANGELOG], [ 3338CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 3339mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 3340|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 3341touch \$(top_srcdir)/ChangeLog; \ 3342echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 3343AC_SUBST([CHANGELOG_CMD]) 3344]) # XORG_CHANGELOG 3345 3346# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 3347# 3348# Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software 3349# Foundation, Inc. 3350# Written by Gordon Matzigkeit, 1996 3351# 3352# This file is free software; the Free Software Foundation gives 3353# unlimited permission to copy and/or distribute it, with or without 3354# modifications, as long as this notice is preserved. 3355 3356m4_define([_LT_COPYING], [dnl 3357# Copyright (C) 2014 Free Software Foundation, Inc. 3358# This is free software; see the source for copying conditions. There is NO 3359# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 3360 3361# GNU Libtool is free software; you can redistribute it and/or modify 3362# it under the terms of the GNU General Public License as published by 3363# the Free Software Foundation; either version 2 of of the License, or 3364# (at your option) any later version. 3365# 3366# As a special exception to the GNU General Public License, if you 3367# distribute this file as part of a program or library that is built 3368# using GNU Libtool, you may include this file under the same 3369# distribution terms that you use for the rest of that program. 3370# 3371# GNU Libtool is distributed in the hope that it will be useful, but 3372# WITHOUT ANY WARRANTY; without even the implied warranty of 3373# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 3374# GNU General Public License for more details. 3375# 3376# You should have received a copy of the GNU General Public License 3377# along with this program. If not, see <http://www.gnu.org/licenses/>. 3378]) 3379 3380# serial 59 LT_INIT 3381 3382 3383# LT_PREREQ(VERSION) 3384# ------------------ 3385# Complain and exit if this libtool version is less that VERSION. 3386m4_defun([LT_PREREQ], 3387[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 3388 [m4_default([$3], 3389 [m4_fatal([Libtool version $1 or higher is required], 3390 63)])], 3391 [$2])]) 3392 3393 3394# _LT_CHECK_BUILDDIR 3395# ------------------ 3396# Complain if the absolute build directory name contains unusual characters 3397m4_defun([_LT_CHECK_BUILDDIR], 3398[case `pwd` in 3399 *\ * | *\ *) 3400 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 3401esac 3402]) 3403 3404 3405# LT_INIT([OPTIONS]) 3406# ------------------ 3407AC_DEFUN([LT_INIT], 3408[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 3409AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 3410AC_BEFORE([$0], [LT_LANG])dnl 3411AC_BEFORE([$0], [LT_OUTPUT])dnl 3412AC_BEFORE([$0], [LTDL_INIT])dnl 3413m4_require([_LT_CHECK_BUILDDIR])dnl 3414 3415dnl Autoconf doesn't catch unexpanded LT_ macros by default: 3416m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 3417m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 3418dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 3419dnl unless we require an AC_DEFUNed macro: 3420AC_REQUIRE([LTOPTIONS_VERSION])dnl 3421AC_REQUIRE([LTSUGAR_VERSION])dnl 3422AC_REQUIRE([LTVERSION_VERSION])dnl 3423AC_REQUIRE([LTOBSOLETE_VERSION])dnl 3424m4_require([_LT_PROG_LTMAIN])dnl 3425 3426_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 3427 3428dnl Parse OPTIONS 3429_LT_SET_OPTIONS([$0], [$1]) 3430 3431# This can be used to rebuild libtool when needed 3432LIBTOOL_DEPS=$ltmain 3433 3434# Always use our own libtool. 3435LIBTOOL='$(SHELL) $(top_builddir)/libtool' 3436AC_SUBST(LIBTOOL)dnl 3437 3438_LT_SETUP 3439 3440# Only expand once: 3441m4_define([LT_INIT]) 3442])# LT_INIT 3443 3444# Old names: 3445AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 3446AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 3447dnl aclocal-1.4 backwards compatibility: 3448dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 3449dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 3450 3451 3452# _LT_PREPARE_CC_BASENAME 3453# ----------------------- 3454m4_defun([_LT_PREPARE_CC_BASENAME], [ 3455# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 3456func_cc_basename () 3457{ 3458 for cc_temp in @S|@*""; do 3459 case $cc_temp in 3460 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 3461 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 3462 \-*) ;; 3463 *) break;; 3464 esac 3465 done 3466 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 3467} 3468])# _LT_PREPARE_CC_BASENAME 3469 3470 3471# _LT_CC_BASENAME(CC) 3472# ------------------- 3473# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 3474# but that macro is also expanded into generated libtool script, which 3475# arranges for $SED and $ECHO to be set by different means. 3476m4_defun([_LT_CC_BASENAME], 3477[m4_require([_LT_PREPARE_CC_BASENAME])dnl 3478AC_REQUIRE([_LT_DECL_SED])dnl 3479AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 3480func_cc_basename $1 3481cc_basename=$func_cc_basename_result 3482]) 3483 3484 3485# _LT_FILEUTILS_DEFAULTS 3486# ---------------------- 3487# It is okay to use these file commands and assume they have been set 3488# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 3489m4_defun([_LT_FILEUTILS_DEFAULTS], 3490[: ${CP="cp -f"} 3491: ${MV="mv -f"} 3492: ${RM="rm -f"} 3493])# _LT_FILEUTILS_DEFAULTS 3494 3495 3496# _LT_SETUP 3497# --------- 3498m4_defun([_LT_SETUP], 3499[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3500AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3501AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 3502AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 3503 3504_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 3505dnl 3506_LT_DECL([], [host_alias], [0], [The host system])dnl 3507_LT_DECL([], [host], [0])dnl 3508_LT_DECL([], [host_os], [0])dnl 3509dnl 3510_LT_DECL([], [build_alias], [0], [The build system])dnl 3511_LT_DECL([], [build], [0])dnl 3512_LT_DECL([], [build_os], [0])dnl 3513dnl 3514AC_REQUIRE([AC_PROG_CC])dnl 3515AC_REQUIRE([LT_PATH_LD])dnl 3516AC_REQUIRE([LT_PATH_NM])dnl 3517dnl 3518AC_REQUIRE([AC_PROG_LN_S])dnl 3519test -z "$LN_S" && LN_S="ln -s" 3520_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 3521dnl 3522AC_REQUIRE([LT_CMD_MAX_LEN])dnl 3523_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 3524_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 3525dnl 3526m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3527m4_require([_LT_CHECK_SHELL_FEATURES])dnl 3528m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 3529m4_require([_LT_CMD_RELOAD])dnl 3530m4_require([_LT_DECL_FILECMD])dnl 3531m4_require([_LT_CHECK_MAGIC_METHOD])dnl 3532m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 3533m4_require([_LT_CMD_OLD_ARCHIVE])dnl 3534m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 3535m4_require([_LT_WITH_SYSROOT])dnl 3536m4_require([_LT_CMD_TRUNCATE])dnl 3537 3538_LT_CONFIG_LIBTOOL_INIT([ 3539# See if we are running on zsh, and set the options that allow our 3540# commands through without removal of \ escapes INIT. 3541if test -n "\${ZSH_VERSION+set}"; then 3542 setopt NO_GLOB_SUBST 3543fi 3544]) 3545if test -n "${ZSH_VERSION+set}"; then 3546 setopt NO_GLOB_SUBST 3547fi 3548 3549_LT_CHECK_OBJDIR 3550 3551m4_require([_LT_TAG_COMPILER])dnl 3552 3553case $host_os in 3554aix3*) 3555 # AIX sometimes has problems with the GCC collect2 program. For some 3556 # reason, if we set the COLLECT_NAMES environment variable, the problems 3557 # vanish in a puff of smoke. 3558 if test set != "${COLLECT_NAMES+set}"; then 3559 COLLECT_NAMES= 3560 export COLLECT_NAMES 3561 fi 3562 ;; 3563esac 3564 3565# Global variables: 3566ofile=libtool 3567can_build_shared=yes 3568 3569# All known linkers require a '.a' archive for static linking (except MSVC and 3570# ICC, which need '.lib'). 3571libext=a 3572 3573with_gnu_ld=$lt_cv_prog_gnu_ld 3574 3575old_CC=$CC 3576old_CFLAGS=$CFLAGS 3577 3578# Set sane defaults for various variables 3579test -z "$CC" && CC=cc 3580test -z "$LTCC" && LTCC=$CC 3581test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 3582test -z "$LD" && LD=ld 3583test -z "$ac_objext" && ac_objext=o 3584 3585_LT_CC_BASENAME([$compiler]) 3586 3587# Only perform the check for file, if the check method requires it 3588test -z "$MAGIC_CMD" && MAGIC_CMD=file 3589case $deplibs_check_method in 3590file_magic*) 3591 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 3592 _LT_PATH_MAGIC 3593 fi 3594 ;; 3595esac 3596 3597# Use C for the default configuration in the libtool script 3598LT_SUPPORTED_TAG([CC]) 3599_LT_LANG_C_CONFIG 3600_LT_LANG_DEFAULT_CONFIG 3601_LT_CONFIG_COMMANDS 3602])# _LT_SETUP 3603 3604 3605# _LT_PREPARE_SED_QUOTE_VARS 3606# -------------------------- 3607# Define a few sed substitution that help us do robust quoting. 3608m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 3609[# Backslashify metacharacters that are still active within 3610# double-quoted strings. 3611sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 3612 3613# Same as above, but do not quote variable references. 3614double_quote_subst='s/\([["`\\]]\)/\\\1/g' 3615 3616# Sed substitution to delay expansion of an escaped shell variable in a 3617# double_quote_subst'ed string. 3618delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3619 3620# Sed substitution to delay expansion of an escaped single quote. 3621delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3622 3623# Sed substitution to avoid accidental globbing in evaled expressions 3624no_glob_subst='s/\*/\\\*/g' 3625]) 3626 3627# _LT_PROG_LTMAIN 3628# --------------- 3629# Note that this code is called both from 'configure', and 'config.status' 3630# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 3631# 'config.status' has no value for ac_aux_dir unless we are using Automake, 3632# so we pass a copy along to make sure it has a sensible value anyway. 3633m4_defun([_LT_PROG_LTMAIN], 3634[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 3635_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 3636ltmain=$ac_aux_dir/ltmain.sh 3637])# _LT_PROG_LTMAIN 3638 3639 3640 3641# So that we can recreate a full libtool script including additional 3642# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 3643# in macros and then make a single call at the end using the 'libtool' 3644# label. 3645 3646 3647# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 3648# ---------------------------------------- 3649# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3650m4_define([_LT_CONFIG_LIBTOOL_INIT], 3651[m4_ifval([$1], 3652 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 3653 [$1 3654])])]) 3655 3656# Initialize. 3657m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 3658 3659 3660# _LT_CONFIG_LIBTOOL([COMMANDS]) 3661# ------------------------------ 3662# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3663m4_define([_LT_CONFIG_LIBTOOL], 3664[m4_ifval([$1], 3665 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 3666 [$1 3667])])]) 3668 3669# Initialize. 3670m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 3671 3672 3673# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3674# ----------------------------------------------------- 3675m4_defun([_LT_CONFIG_SAVE_COMMANDS], 3676[_LT_CONFIG_LIBTOOL([$1]) 3677_LT_CONFIG_LIBTOOL_INIT([$2]) 3678]) 3679 3680 3681# _LT_FORMAT_COMMENT([COMMENT]) 3682# ----------------------------- 3683# Add leading comment marks to the start of each line, and a trailing 3684# full-stop to the whole comment if one is not present already. 3685m4_define([_LT_FORMAT_COMMENT], 3686[m4_ifval([$1], [ 3687m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 3688 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 3689)]) 3690 3691 3692 3693 3694 3695# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3696# ------------------------------------------------------------------- 3697# CONFIGNAME is the name given to the value in the libtool script. 3698# VARNAME is the (base) name used in the configure script. 3699# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3700# VARNAME. Any other value will be used directly. 3701m4_define([_LT_DECL], 3702[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 3703 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 3704 [m4_ifval([$1], [$1], [$2])]) 3705 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 3706 m4_ifval([$4], 3707 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 3708 lt_dict_add_subkey([lt_decl_dict], [$2], 3709 [tagged?], [m4_ifval([$5], [yes], [no])])]) 3710]) 3711 3712 3713# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3714# -------------------------------------------------------- 3715m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 3716 3717 3718# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3719# ------------------------------------------------ 3720m4_define([lt_decl_tag_varnames], 3721[_lt_decl_filter([tagged?], [yes], $@)]) 3722 3723 3724# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3725# --------------------------------------------------------- 3726m4_define([_lt_decl_filter], 3727[m4_case([$#], 3728 [0], [m4_fatal([$0: too few arguments: $#])], 3729 [1], [m4_fatal([$0: too few arguments: $#: $1])], 3730 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 3731 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 3732 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 3733]) 3734 3735 3736# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3737# -------------------------------------------------- 3738m4_define([lt_decl_quote_varnames], 3739[_lt_decl_filter([value], [1], $@)]) 3740 3741 3742# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 3743# --------------------------------------------------- 3744m4_define([lt_decl_dquote_varnames], 3745[_lt_decl_filter([value], [2], $@)]) 3746 3747 3748# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 3749# --------------------------------------------------- 3750m4_define([lt_decl_varnames_tagged], 3751[m4_assert([$# <= 2])dnl 3752_$0(m4_quote(m4_default([$1], [[, ]])), 3753 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 3754 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 3755m4_define([_lt_decl_varnames_tagged], 3756[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 3757 3758 3759# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 3760# ------------------------------------------------ 3761m4_define([lt_decl_all_varnames], 3762[_$0(m4_quote(m4_default([$1], [[, ]])), 3763 m4_if([$2], [], 3764 m4_quote(lt_decl_varnames), 3765 m4_quote(m4_shift($@))))[]dnl 3766]) 3767m4_define([_lt_decl_all_varnames], 3768[lt_join($@, lt_decl_varnames_tagged([$1], 3769 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 3770]) 3771 3772 3773# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 3774# ------------------------------------ 3775# Quote a variable value, and forward it to 'config.status' so that its 3776# declaration there will have the same value as in 'configure'. VARNAME 3777# must have a single quote delimited value for this to work. 3778m4_define([_LT_CONFIG_STATUS_DECLARE], 3779[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 3780 3781 3782# _LT_CONFIG_STATUS_DECLARATIONS 3783# ------------------------------ 3784# We delimit libtool config variables with single quotes, so when 3785# we write them to config.status, we have to be sure to quote all 3786# embedded single quotes properly. In configure, this macro expands 3787# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 3788# 3789# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 3790m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 3791[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 3792 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 3793 3794 3795# _LT_LIBTOOL_TAGS 3796# ---------------- 3797# Output comment and list of tags supported by the script 3798m4_defun([_LT_LIBTOOL_TAGS], 3799[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 3800available_tags='_LT_TAGS'dnl 3801]) 3802 3803 3804# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 3805# ----------------------------------- 3806# Extract the dictionary values for VARNAME (optionally with TAG) and 3807# expand to a commented shell variable setting: 3808# 3809# # Some comment about what VAR is for. 3810# visible_name=$lt_internal_name 3811m4_define([_LT_LIBTOOL_DECLARE], 3812[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 3813 [description])))[]dnl 3814m4_pushdef([_libtool_name], 3815 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 3816m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 3817 [0], [_libtool_name=[$]$1], 3818 [1], [_libtool_name=$lt_[]$1], 3819 [2], [_libtool_name=$lt_[]$1], 3820 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 3821m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 3822]) 3823 3824 3825# _LT_LIBTOOL_CONFIG_VARS 3826# ----------------------- 3827# Produce commented declarations of non-tagged libtool config variables 3828# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 3829# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 3830# section) are produced by _LT_LIBTOOL_TAG_VARS. 3831m4_defun([_LT_LIBTOOL_CONFIG_VARS], 3832[m4_foreach([_lt_var], 3833 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 3834 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 3835 3836 3837# _LT_LIBTOOL_TAG_VARS(TAG) 3838# ------------------------- 3839m4_define([_LT_LIBTOOL_TAG_VARS], 3840[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 3841 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 3842 3843 3844# _LT_TAGVAR(VARNAME, [TAGNAME]) 3845# ------------------------------ 3846m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 3847 3848 3849# _LT_CONFIG_COMMANDS 3850# ------------------- 3851# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 3852# variables for single and double quote escaping we saved from calls 3853# to _LT_DECL, we can put quote escaped variables declarations 3854# into 'config.status', and then the shell code to quote escape them in 3855# for loops in 'config.status'. Finally, any additional code accumulated 3856# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 3857m4_defun([_LT_CONFIG_COMMANDS], 3858[AC_PROVIDE_IFELSE([LT_OUTPUT], 3859 dnl If the libtool generation code has been placed in $CONFIG_LT, 3860 dnl instead of duplicating it all over again into config.status, 3861 dnl then we will have config.status run $CONFIG_LT later, so it 3862 dnl needs to know what name is stored there: 3863 [AC_CONFIG_COMMANDS([libtool], 3864 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 3865 dnl If the libtool generation code is destined for config.status, 3866 dnl expand the accumulated commands and init code now: 3867 [AC_CONFIG_COMMANDS([libtool], 3868 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 3869])#_LT_CONFIG_COMMANDS 3870 3871 3872# Initialize. 3873m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 3874[ 3875 3876# The HP-UX ksh and POSIX shell print the target directory to stdout 3877# if CDPATH is set. 3878(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3879 3880sed_quote_subst='$sed_quote_subst' 3881double_quote_subst='$double_quote_subst' 3882delay_variable_subst='$delay_variable_subst' 3883_LT_CONFIG_STATUS_DECLARATIONS 3884LTCC='$LTCC' 3885LTCFLAGS='$LTCFLAGS' 3886compiler='$compiler_DEFAULT' 3887 3888# A function that is used when there is no print builtin or printf. 3889func_fallback_echo () 3890{ 3891 eval 'cat <<_LTECHO_EOF 3892\$[]1 3893_LTECHO_EOF' 3894} 3895 3896# Quote evaled strings. 3897for var in lt_decl_all_varnames([[ \ 3898]], lt_decl_quote_varnames); do 3899 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 3900 *[[\\\\\\\`\\"\\\$]]*) 3901 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 3902 ;; 3903 *) 3904 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 3905 ;; 3906 esac 3907done 3908 3909# Double-quote double-evaled strings. 3910for var in lt_decl_all_varnames([[ \ 3911]], lt_decl_dquote_varnames); do 3912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 3913 *[[\\\\\\\`\\"\\\$]]*) 3914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 3915 ;; 3916 *) 3917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 3918 ;; 3919 esac 3920done 3921 3922_LT_OUTPUT_LIBTOOL_INIT 3923]) 3924 3925# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 3926# ------------------------------------ 3927# Generate a child script FILE with all initialization necessary to 3928# reuse the environment learned by the parent script, and make the 3929# file executable. If COMMENT is supplied, it is inserted after the 3930# '#!' sequence but before initialization text begins. After this 3931# macro, additional text can be appended to FILE to form the body of 3932# the child script. The macro ends with non-zero status if the 3933# file could not be fully written (such as if the disk is full). 3934m4_ifdef([AS_INIT_GENERATED], 3935[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 3936[m4_defun([_LT_GENERATED_FILE_INIT], 3937[m4_require([AS_PREPARE])]dnl 3938[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 3939[lt_write_fail=0 3940cat >$1 <<_ASEOF || lt_write_fail=1 3941#! $SHELL 3942# Generated by $as_me. 3943$2 3944SHELL=\${CONFIG_SHELL-$SHELL} 3945export SHELL 3946_ASEOF 3947cat >>$1 <<\_ASEOF || lt_write_fail=1 3948AS_SHELL_SANITIZE 3949_AS_PREPARE 3950exec AS_MESSAGE_FD>&1 3951_ASEOF 3952test 0 = "$lt_write_fail" && chmod +x $1[]dnl 3953m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 3954 3955# LT_OUTPUT 3956# --------- 3957# This macro allows early generation of the libtool script (before 3958# AC_OUTPUT is called), incase it is used in configure for compilation 3959# tests. 3960AC_DEFUN([LT_OUTPUT], 3961[: ${CONFIG_LT=./config.lt} 3962AC_MSG_NOTICE([creating $CONFIG_LT]) 3963_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 3964[# Run this file to recreate a libtool stub with the current configuration.]) 3965 3966cat >>"$CONFIG_LT" <<\_LTEOF 3967lt_cl_silent=false 3968exec AS_MESSAGE_LOG_FD>>config.log 3969{ 3970 echo 3971 AS_BOX([Running $as_me.]) 3972} >&AS_MESSAGE_LOG_FD 3973 3974lt_cl_help="\ 3975'$as_me' creates a local libtool stub from the current configuration, 3976for use in further configure time tests before the real libtool is 3977generated. 3978 3979Usage: $[0] [[OPTIONS]] 3980 3981 -h, --help print this help, then exit 3982 -V, --version print version number, then exit 3983 -q, --quiet do not print progress messages 3984 -d, --debug don't remove temporary files 3985 3986Report bugs to <bug-libtool@gnu.org>." 3987 3988lt_cl_version="\ 3989m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 3990m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 3991configured by $[0], generated by m4_PACKAGE_STRING. 3992 3993Copyright (C) 2011 Free Software Foundation, Inc. 3994This config.lt script is free software; the Free Software Foundation 3995gives unlimited permision to copy, distribute and modify it." 3996 3997while test 0 != $[#] 3998do 3999 case $[1] in 4000 --version | --v* | -V ) 4001 echo "$lt_cl_version"; exit 0 ;; 4002 --help | --h* | -h ) 4003 echo "$lt_cl_help"; exit 0 ;; 4004 --debug | --d* | -d ) 4005 debug=: ;; 4006 --quiet | --q* | --silent | --s* | -q ) 4007 lt_cl_silent=: ;; 4008 4009 -*) AC_MSG_ERROR([unrecognized option: $[1] 4010Try '$[0] --help' for more information.]) ;; 4011 4012 *) AC_MSG_ERROR([unrecognized argument: $[1] 4013Try '$[0] --help' for more information.]) ;; 4014 esac 4015 shift 4016done 4017 4018if $lt_cl_silent; then 4019 exec AS_MESSAGE_FD>/dev/null 4020fi 4021_LTEOF 4022 4023cat >>"$CONFIG_LT" <<_LTEOF 4024_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 4025_LTEOF 4026 4027cat >>"$CONFIG_LT" <<\_LTEOF 4028AC_MSG_NOTICE([creating $ofile]) 4029_LT_OUTPUT_LIBTOOL_COMMANDS 4030AS_EXIT(0) 4031_LTEOF 4032chmod +x "$CONFIG_LT" 4033 4034# configure is writing to config.log, but config.lt does its own redirection, 4035# appending to config.log, which fails on DOS, as config.log is still kept 4036# open by configure. Here we exec the FD to /dev/null, effectively closing 4037# config.log, so it can be properly (re)opened and appended to by config.lt. 4038lt_cl_success=: 4039test yes = "$silent" && 4040 lt_config_lt_args="$lt_config_lt_args --quiet" 4041exec AS_MESSAGE_LOG_FD>/dev/null 4042$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 4043exec AS_MESSAGE_LOG_FD>>config.log 4044$lt_cl_success || AS_EXIT(1) 4045])# LT_OUTPUT 4046 4047 4048# _LT_CONFIG(TAG) 4049# --------------- 4050# If TAG is the built-in tag, create an initial libtool script with a 4051# default configuration from the untagged config vars. Otherwise add code 4052# to config.status for appending the configuration named by TAG from the 4053# matching tagged config vars. 4054m4_defun([_LT_CONFIG], 4055[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4056_LT_CONFIG_SAVE_COMMANDS([ 4057 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 4058 m4_if(_LT_TAG, [C], [ 4059 # See if we are running on zsh, and set the options that allow our 4060 # commands through without removal of \ escapes. 4061 if test -n "${ZSH_VERSION+set}"; then 4062 setopt NO_GLOB_SUBST 4063 fi 4064 4065 cfgfile=${ofile}T 4066 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 4067 $RM "$cfgfile" 4068 4069 cat <<_LT_EOF >> "$cfgfile" 4070#! $SHELL 4071# Generated automatically by $as_me ($PACKAGE) $VERSION 4072# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4073# NOTE: Changes made to this file will be lost: look at ltmain.sh. 4074 4075# Provide generalized library-building support services. 4076# Written by Gordon Matzigkeit, 1996 4077 4078_LT_COPYING 4079_LT_LIBTOOL_TAGS 4080 4081# Configured defaults for sys_lib_dlsearch_path munging. 4082: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 4083 4084# ### BEGIN LIBTOOL CONFIG 4085_LT_LIBTOOL_CONFIG_VARS 4086_LT_LIBTOOL_TAG_VARS 4087# ### END LIBTOOL CONFIG 4088 4089_LT_EOF 4090 4091 cat <<'_LT_EOF' >> "$cfgfile" 4092 4093# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 4094 4095_LT_PREPARE_MUNGE_PATH_LIST 4096_LT_PREPARE_CC_BASENAME 4097 4098# ### END FUNCTIONS SHARED WITH CONFIGURE 4099 4100_LT_EOF 4101 4102 case $host_os in 4103 aix3*) 4104 cat <<\_LT_EOF >> "$cfgfile" 4105# AIX sometimes has problems with the GCC collect2 program. For some 4106# reason, if we set the COLLECT_NAMES environment variable, the problems 4107# vanish in a puff of smoke. 4108if test set != "${COLLECT_NAMES+set}"; then 4109 COLLECT_NAMES= 4110 export COLLECT_NAMES 4111fi 4112_LT_EOF 4113 ;; 4114 esac 4115 4116 _LT_PROG_LTMAIN 4117 4118 # We use sed instead of cat because bash on DJGPP gets confused if 4119 # if finds mixed CR/LF and LF-only lines. Since sed operates in 4120 # text mode, it properly converts lines to CR/LF. This bash problem 4121 # is reportedly fixed, but why not run on old versions too? 4122 $SED '$q' "$ltmain" >> "$cfgfile" \ 4123 || (rm -f "$cfgfile"; exit 1) 4124 4125 mv -f "$cfgfile" "$ofile" || 4126 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 4127 chmod +x "$ofile" 4128], 4129[cat <<_LT_EOF >> "$ofile" 4130 4131dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 4132dnl in a comment (ie after a #). 4133# ### BEGIN LIBTOOL TAG CONFIG: $1 4134_LT_LIBTOOL_TAG_VARS(_LT_TAG) 4135# ### END LIBTOOL TAG CONFIG: $1 4136_LT_EOF 4137])dnl /m4_if 4138], 4139[m4_if([$1], [], [ 4140 PACKAGE='$PACKAGE' 4141 VERSION='$VERSION' 4142 RM='$RM' 4143 ofile='$ofile'], []) 4144])dnl /_LT_CONFIG_SAVE_COMMANDS 4145])# _LT_CONFIG 4146 4147 4148# LT_SUPPORTED_TAG(TAG) 4149# --------------------- 4150# Trace this macro to discover what tags are supported by the libtool 4151# --tag option, using: 4152# autoconf --trace 'LT_SUPPORTED_TAG:$1' 4153AC_DEFUN([LT_SUPPORTED_TAG], []) 4154 4155 4156# C support is built-in for now 4157m4_define([_LT_LANG_C_enabled], []) 4158m4_define([_LT_TAGS], []) 4159 4160 4161# LT_LANG(LANG) 4162# ------------- 4163# Enable libtool support for the given language if not already enabled. 4164AC_DEFUN([LT_LANG], 4165[AC_BEFORE([$0], [LT_OUTPUT])dnl 4166m4_case([$1], 4167 [C], [_LT_LANG(C)], 4168 [C++], [_LT_LANG(CXX)], 4169 [Go], [_LT_LANG(GO)], 4170 [Java], [_LT_LANG(GCJ)], 4171 [Fortran 77], [_LT_LANG(F77)], 4172 [Fortran], [_LT_LANG(FC)], 4173 [Windows Resource], [_LT_LANG(RC)], 4174 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 4175 [_LT_LANG($1)], 4176 [m4_fatal([$0: unsupported language: "$1"])])])dnl 4177])# LT_LANG 4178 4179 4180# _LT_LANG(LANGNAME) 4181# ------------------ 4182m4_defun([_LT_LANG], 4183[m4_ifdef([_LT_LANG_]$1[_enabled], [], 4184 [LT_SUPPORTED_TAG([$1])dnl 4185 m4_append([_LT_TAGS], [$1 ])dnl 4186 m4_define([_LT_LANG_]$1[_enabled], [])dnl 4187 _LT_LANG_$1_CONFIG($1)])dnl 4188])# _LT_LANG 4189 4190 4191m4_ifndef([AC_PROG_GO], [ 4192# NOTE: This macro has been submitted for inclusion into # 4193# GNU Autoconf as AC_PROG_GO. When it is available in # 4194# a released version of Autoconf we should remove this # 4195# macro and use it instead. # 4196m4_defun([AC_PROG_GO], 4197[AC_LANG_PUSH(Go)dnl 4198AC_ARG_VAR([GOC], [Go compiler command])dnl 4199AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 4200_AC_ARG_VAR_LDFLAGS()dnl 4201AC_CHECK_TOOL(GOC, gccgo) 4202if test -z "$GOC"; then 4203 if test -n "$ac_tool_prefix"; then 4204 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 4205 fi 4206fi 4207if test -z "$GOC"; then 4208 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 4209fi 4210])#m4_defun 4211])#m4_ifndef 4212 4213 4214# _LT_LANG_DEFAULT_CONFIG 4215# ----------------------- 4216m4_defun([_LT_LANG_DEFAULT_CONFIG], 4217[AC_PROVIDE_IFELSE([AC_PROG_CXX], 4218 [LT_LANG(CXX)], 4219 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 4220 4221AC_PROVIDE_IFELSE([AC_PROG_F77], 4222 [LT_LANG(F77)], 4223 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 4224 4225AC_PROVIDE_IFELSE([AC_PROG_FC], 4226 [LT_LANG(FC)], 4227 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 4228 4229dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 4230dnl pulling things in needlessly. 4231AC_PROVIDE_IFELSE([AC_PROG_GCJ], 4232 [LT_LANG(GCJ)], 4233 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 4234 [LT_LANG(GCJ)], 4235 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 4236 [LT_LANG(GCJ)], 4237 [m4_ifdef([AC_PROG_GCJ], 4238 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 4239 m4_ifdef([A][M_PROG_GCJ], 4240 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 4241 m4_ifdef([LT_PROG_GCJ], 4242 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 4243 4244AC_PROVIDE_IFELSE([AC_PROG_GO], 4245 [LT_LANG(GO)], 4246 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 4247 4248AC_PROVIDE_IFELSE([LT_PROG_RC], 4249 [LT_LANG(RC)], 4250 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 4251])# _LT_LANG_DEFAULT_CONFIG 4252 4253# Obsolete macros: 4254AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 4255AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 4256AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 4257AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 4258AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 4259dnl aclocal-1.4 backwards compatibility: 4260dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 4261dnl AC_DEFUN([AC_LIBTOOL_F77], []) 4262dnl AC_DEFUN([AC_LIBTOOL_FC], []) 4263dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 4264dnl AC_DEFUN([AC_LIBTOOL_RC], []) 4265 4266 4267# _LT_TAG_COMPILER 4268# ---------------- 4269m4_defun([_LT_TAG_COMPILER], 4270[AC_REQUIRE([AC_PROG_CC])dnl 4271 4272_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 4273_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 4274_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 4275_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 4276 4277# If no C compiler was specified, use CC. 4278LTCC=${LTCC-"$CC"} 4279 4280# If no C compiler flags were specified, use CFLAGS. 4281LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4282 4283# Allow CC to be a program name with arguments. 4284compiler=$CC 4285])# _LT_TAG_COMPILER 4286 4287 4288# _LT_COMPILER_BOILERPLATE 4289# ------------------------ 4290# Check for compiler boilerplate output or warnings with 4291# the simple compiler test code. 4292m4_defun([_LT_COMPILER_BOILERPLATE], 4293[m4_require([_LT_DECL_SED])dnl 4294ac_outfile=conftest.$ac_objext 4295echo "$lt_simple_compile_test_code" >conftest.$ac_ext 4296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 4297_lt_compiler_boilerplate=`cat conftest.err` 4298$RM conftest* 4299])# _LT_COMPILER_BOILERPLATE 4300 4301 4302# _LT_LINKER_BOILERPLATE 4303# ---------------------- 4304# Check for linker boilerplate output or warnings with 4305# the simple link test code. 4306m4_defun([_LT_LINKER_BOILERPLATE], 4307[m4_require([_LT_DECL_SED])dnl 4308ac_outfile=conftest.$ac_objext 4309echo "$lt_simple_link_test_code" >conftest.$ac_ext 4310eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 4311_lt_linker_boilerplate=`cat conftest.err` 4312$RM -r conftest* 4313])# _LT_LINKER_BOILERPLATE 4314 4315# _LT_REQUIRED_DARWIN_CHECKS 4316# ------------------------- 4317m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 4318 case $host_os in 4319 rhapsody* | darwin*) 4320 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 4321 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 4322 AC_CHECK_TOOL([LIPO], [lipo], [:]) 4323 AC_CHECK_TOOL([OTOOL], [otool], [:]) 4324 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 4325 _LT_DECL([], [DSYMUTIL], [1], 4326 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 4327 _LT_DECL([], [NMEDIT], [1], 4328 [Tool to change global to local symbols on Mac OS X]) 4329 _LT_DECL([], [LIPO], [1], 4330 [Tool to manipulate fat objects and archives on Mac OS X]) 4331 _LT_DECL([], [OTOOL], [1], 4332 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 4333 _LT_DECL([], [OTOOL64], [1], 4334 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 4335 4336 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 4337 [lt_cv_apple_cc_single_mod=no 4338 if test -z "$LT_MULTI_MODULE"; then 4339 # By default we will add the -single_module flag. You can override 4340 # by either setting the environment variable LT_MULTI_MODULE 4341 # non-empty at configure time, or by adding -multi_module to the 4342 # link flags. 4343 rm -rf libconftest.dylib* 4344 echo "int foo(void){return 1;}" > conftest.c 4345 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 4346-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 4347 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 4348 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 4349 _lt_result=$? 4350 # If there is a non-empty error log, and "single_module" 4351 # appears in it, assume the flag caused a linker warning 4352 if test -s conftest.err && $GREP single_module conftest.err; then 4353 cat conftest.err >&AS_MESSAGE_LOG_FD 4354 # Otherwise, if the output was created with a 0 exit code from 4355 # the compiler, it worked. 4356 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 4357 lt_cv_apple_cc_single_mod=yes 4358 else 4359 cat conftest.err >&AS_MESSAGE_LOG_FD 4360 fi 4361 rm -rf libconftest.dylib* 4362 rm -f conftest.* 4363 fi]) 4364 4365 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 4366 [lt_cv_ld_exported_symbols_list], 4367 [lt_cv_ld_exported_symbols_list=no 4368 save_LDFLAGS=$LDFLAGS 4369 echo "_main" > conftest.sym 4370 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 4371 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 4372 [lt_cv_ld_exported_symbols_list=yes], 4373 [lt_cv_ld_exported_symbols_list=no]) 4374 LDFLAGS=$save_LDFLAGS 4375 ]) 4376 4377 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 4378 [lt_cv_ld_force_load=no 4379 cat > conftest.c << _LT_EOF 4380int forced_loaded() { return 2;} 4381_LT_EOF 4382 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 4383 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 4384 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 4385 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 4386 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 4387 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 4388 cat > conftest.c << _LT_EOF 4389int main() { return 0;} 4390_LT_EOF 4391 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 4392 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 4393 _lt_result=$? 4394 if test -s conftest.err && $GREP force_load conftest.err; then 4395 cat conftest.err >&AS_MESSAGE_LOG_FD 4396 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 4397 lt_cv_ld_force_load=yes 4398 else 4399 cat conftest.err >&AS_MESSAGE_LOG_FD 4400 fi 4401 rm -f conftest.err libconftest.a conftest conftest.c 4402 rm -rf conftest.dSYM 4403 ]) 4404 case $host_os in 4405 rhapsody* | darwin1.[[012]]) 4406 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 4407 darwin1.*) 4408 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 4409 darwin*) 4410 case $MACOSX_DEPLOYMENT_TARGET,$host in 4411 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) 4412 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 4413 *) 4414 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 4415 esac 4416 ;; 4417 esac 4418 if test yes = "$lt_cv_apple_cc_single_mod"; then 4419 _lt_dar_single_mod='$single_module' 4420 fi 4421 if test yes = "$lt_cv_ld_exported_symbols_list"; then 4422 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 4423 else 4424 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 4425 fi 4426 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 4427 _lt_dsymutil='~$DSYMUTIL $lib || :' 4428 else 4429 _lt_dsymutil= 4430 fi 4431 ;; 4432 esac 4433]) 4434 4435 4436# _LT_DARWIN_LINKER_FEATURES([TAG]) 4437# --------------------------------- 4438# Checks for linker and compiler features on darwin 4439m4_defun([_LT_DARWIN_LINKER_FEATURES], 4440[ 4441 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 4442 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 4443 _LT_TAGVAR(hardcode_direct, $1)=no 4444 _LT_TAGVAR(hardcode_automatic, $1)=yes 4445 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4446 if test yes = "$lt_cv_ld_force_load"; then 4447 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 4448 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 4449 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 4450 else 4451 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 4452 fi 4453 _LT_TAGVAR(link_all_deplibs, $1)=yes 4454 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 4455 case $cc_basename in 4456 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 4457 *) _lt_dar_can_shared=$GCC ;; 4458 esac 4459 if test yes = "$_lt_dar_can_shared"; then 4460 output_verbose_link_cmd=func_echo_all 4461 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 4462 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 4463 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 4464 _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 4465 m4_if([$1], [CXX], 4466[ if test yes != "$lt_cv_apple_cc_single_mod"; then 4467 _LT_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$_lt_dsymutil" 4468 _LT_TAGVAR(archive_expsym_cmds, $1)="$SED '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$_lt_dar_export_syms$_lt_dsymutil" 4469 fi 4470],[]) 4471 else 4472 _LT_TAGVAR(ld_shlibs, $1)=no 4473 fi 4474]) 4475 4476# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 4477# ---------------------------------- 4478# Links a minimal program and checks the executable 4479# for the system default hardcoded library path. In most cases, 4480# this is /usr/lib:/lib, but when the MPI compilers are used 4481# the location of the communication and MPI libs are included too. 4482# If we don't find anything, use the default library path according 4483# to the aix ld manual. 4484# Store the results from the different compilers for each TAGNAME. 4485# Allow to override them for all tags through lt_cv_aix_libpath. 4486m4_defun([_LT_SYS_MODULE_PATH_AIX], 4487[m4_require([_LT_DECL_SED])dnl 4488if test set = "${lt_cv_aix_libpath+set}"; then 4489 aix_libpath=$lt_cv_aix_libpath 4490else 4491 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 4492 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 4493 lt_aix_libpath_sed='[ 4494 /Import File Strings/,/^$/ { 4495 /^0/ { 4496 s/^0 *\([^ ]*\) *$/\1/ 4497 p 4498 } 4499 }]' 4500 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 4501 # Check for a 64-bit object if we didn't find anything. 4502 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 4503 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 4504 fi],[]) 4505 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 4506 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 4507 fi 4508 ]) 4509 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 4510fi 4511])# _LT_SYS_MODULE_PATH_AIX 4512 4513 4514# _LT_SHELL_INIT(ARG) 4515# ------------------- 4516m4_define([_LT_SHELL_INIT], 4517[m4_divert_text([M4SH-INIT], [$1 4518])])# _LT_SHELL_INIT 4519 4520 4521 4522# _LT_PROG_ECHO_BACKSLASH 4523# ----------------------- 4524# Find how we can fake an echo command that does not interpret backslash. 4525# In particular, with Autoconf 2.60 or later we add some code to the start 4526# of the generated configure script that will find a shell with a builtin 4527# printf (that we can use as an echo command). 4528m4_defun([_LT_PROG_ECHO_BACKSLASH], 4529[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4530ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4531ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4532 4533AC_MSG_CHECKING([how to print strings]) 4534# Test print first, because it will be a builtin if present. 4535if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4536 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4537 ECHO='print -r --' 4538elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4539 ECHO='printf %s\n' 4540else 4541 # Use this function as a fallback that always works. 4542 func_fallback_echo () 4543 { 4544 eval 'cat <<_LTECHO_EOF 4545$[]1 4546_LTECHO_EOF' 4547 } 4548 ECHO='func_fallback_echo' 4549fi 4550 4551# func_echo_all arg... 4552# Invoke $ECHO with all args, space-separated. 4553func_echo_all () 4554{ 4555 $ECHO "$*" 4556} 4557 4558case $ECHO in 4559 printf*) AC_MSG_RESULT([printf]) ;; 4560 print*) AC_MSG_RESULT([print -r]) ;; 4561 *) AC_MSG_RESULT([cat]) ;; 4562esac 4563 4564m4_ifdef([_AS_DETECT_SUGGESTED], 4565[_AS_DETECT_SUGGESTED([ 4566 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 4567 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4568 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4569 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4570 PATH=/empty FPATH=/empty; export PATH FPATH 4571 test "X`printf %s $ECHO`" = "X$ECHO" \ 4572 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 4573 4574_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 4575_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 4576])# _LT_PROG_ECHO_BACKSLASH 4577 4578 4579# _LT_WITH_SYSROOT 4580# ---------------- 4581AC_DEFUN([_LT_WITH_SYSROOT], 4582[m4_require([_LT_DECL_SED])dnl 4583AC_MSG_CHECKING([for sysroot]) 4584AC_ARG_WITH([sysroot], 4585[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 4586 [Search for dependent libraries within DIR (or the compiler's sysroot 4587 if not specified).])], 4588[], [with_sysroot=no]) 4589 4590dnl lt_sysroot will always be passed unquoted. We quote it here 4591dnl in case the user passed a directory name. 4592lt_sysroot= 4593case $with_sysroot in #( 4594 yes) 4595 if test yes = "$GCC"; then 4596 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 4597 fi 4598 ;; #( 4599 /*) 4600 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 4601 ;; #( 4602 no|'') 4603 ;; #( 4604 *) 4605 AC_MSG_RESULT([$with_sysroot]) 4606 AC_MSG_ERROR([The sysroot must be an absolute path.]) 4607 ;; 4608esac 4609 4610 AC_MSG_RESULT([${lt_sysroot:-no}]) 4611_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 4612[dependent libraries, and where our libraries should be installed.])]) 4613 4614# _LT_ENABLE_LOCK 4615# --------------- 4616m4_defun([_LT_ENABLE_LOCK], 4617[AC_ARG_ENABLE([libtool-lock], 4618 [AS_HELP_STRING([--disable-libtool-lock], 4619 [avoid locking (might break parallel builds)])]) 4620test no = "$enable_libtool_lock" || enable_libtool_lock=yes 4621 4622# Some flags need to be propagated to the compiler or linker for good 4623# libtool support. 4624case $host in 4625ia64-*-hpux*) 4626 # Find out what ABI is being produced by ac_compile, and set mode 4627 # options accordingly. 4628 echo 'int i;' > conftest.$ac_ext 4629 if AC_TRY_EVAL(ac_compile); then 4630 case `$FILECMD conftest.$ac_objext` in 4631 *ELF-32*) 4632 HPUX_IA64_MODE=32 4633 ;; 4634 *ELF-64*) 4635 HPUX_IA64_MODE=64 4636 ;; 4637 esac 4638 fi 4639 rm -rf conftest* 4640 ;; 4641*-*-irix6*) 4642 # Find out what ABI is being produced by ac_compile, and set linker 4643 # options accordingly. 4644 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 4645 if AC_TRY_EVAL(ac_compile); then 4646 if test yes = "$lt_cv_prog_gnu_ld"; then 4647 case `$FILECMD conftest.$ac_objext` in 4648 *32-bit*) 4649 LD="${LD-ld} -melf32bsmip" 4650 ;; 4651 *N32*) 4652 LD="${LD-ld} -melf32bmipn32" 4653 ;; 4654 *64-bit*) 4655 LD="${LD-ld} -melf64bmip" 4656 ;; 4657 esac 4658 else 4659 case `$FILECMD conftest.$ac_objext` in 4660 *32-bit*) 4661 LD="${LD-ld} -32" 4662 ;; 4663 *N32*) 4664 LD="${LD-ld} -n32" 4665 ;; 4666 *64-bit*) 4667 LD="${LD-ld} -64" 4668 ;; 4669 esac 4670 fi 4671 fi 4672 rm -rf conftest* 4673 ;; 4674 4675mips64*-*linux*) 4676 # Find out what ABI is being produced by ac_compile, and set linker 4677 # options accordingly. 4678 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 4679 if AC_TRY_EVAL(ac_compile); then 4680 emul=elf 4681 case `$FILECMD conftest.$ac_objext` in 4682 *32-bit*) 4683 emul="${emul}32" 4684 ;; 4685 *64-bit*) 4686 emul="${emul}64" 4687 ;; 4688 esac 4689 case `$FILECMD conftest.$ac_objext` in 4690 *MSB*) 4691 emul="${emul}btsmip" 4692 ;; 4693 *LSB*) 4694 emul="${emul}ltsmip" 4695 ;; 4696 esac 4697 case `$FILECMD conftest.$ac_objext` in 4698 *N32*) 4699 emul="${emul}n32" 4700 ;; 4701 esac 4702 LD="${LD-ld} -m $emul" 4703 fi 4704 rm -rf conftest* 4705 ;; 4706 4707x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 4708s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 4709 # Find out what ABI is being produced by ac_compile, and set linker 4710 # options accordingly. Note that the listed cases only cover the 4711 # situations where additional linker options are needed (such as when 4712 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 4713 # vice versa); the common cases where no linker options are needed do 4714 # not appear in the list. 4715 echo 'int i;' > conftest.$ac_ext 4716 if AC_TRY_EVAL(ac_compile); then 4717 case `$FILECMD conftest.o` in 4718 *32-bit*) 4719 case $host in 4720 x86_64-*kfreebsd*-gnu) 4721 LD="${LD-ld} -m elf_i386_fbsd" 4722 ;; 4723 x86_64-*linux*) 4724 case `$FILECMD conftest.o` in 4725 *x86-64*) 4726 LD="${LD-ld} -m elf32_x86_64" 4727 ;; 4728 *) 4729 LD="${LD-ld} -m elf_i386" 4730 ;; 4731 esac 4732 ;; 4733 powerpc64le-*linux*) 4734 LD="${LD-ld} -m elf32lppclinux" 4735 ;; 4736 powerpc64-*linux*) 4737 LD="${LD-ld} -m elf32ppclinux" 4738 ;; 4739 s390x-*linux*) 4740 LD="${LD-ld} -m elf_s390" 4741 ;; 4742 sparc64-*linux*) 4743 LD="${LD-ld} -m elf32_sparc" 4744 ;; 4745 esac 4746 ;; 4747 *64-bit*) 4748 case $host in 4749 x86_64-*kfreebsd*-gnu) 4750 LD="${LD-ld} -m elf_x86_64_fbsd" 4751 ;; 4752 x86_64-*linux*) 4753 LD="${LD-ld} -m elf_x86_64" 4754 ;; 4755 powerpcle-*linux*) 4756 LD="${LD-ld} -m elf64lppc" 4757 ;; 4758 powerpc-*linux*) 4759 LD="${LD-ld} -m elf64ppc" 4760 ;; 4761 s390*-*linux*|s390*-*tpf*) 4762 LD="${LD-ld} -m elf64_s390" 4763 ;; 4764 sparc*-*linux*) 4765 LD="${LD-ld} -m elf64_sparc" 4766 ;; 4767 esac 4768 ;; 4769 esac 4770 fi 4771 rm -rf conftest* 4772 ;; 4773 4774*-*-sco3.2v5*) 4775 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4776 SAVE_CFLAGS=$CFLAGS 4777 CFLAGS="$CFLAGS -belf" 4778 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 4779 [AC_LANG_PUSH(C) 4780 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 4781 AC_LANG_POP]) 4782 if test yes != "$lt_cv_cc_needs_belf"; then 4783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4784 CFLAGS=$SAVE_CFLAGS 4785 fi 4786 ;; 4787*-*solaris*) 4788 # Find out what ABI is being produced by ac_compile, and set linker 4789 # options accordingly. 4790 echo 'int i;' > conftest.$ac_ext 4791 if AC_TRY_EVAL(ac_compile); then 4792 case `$FILECMD conftest.o` in 4793 *64-bit*) 4794 case $lt_cv_prog_gnu_ld in 4795 yes*) 4796 case $host in 4797 i?86-*-solaris*|x86_64-*-solaris*) 4798 LD="${LD-ld} -m elf_x86_64" 4799 ;; 4800 sparc*-*-solaris*) 4801 LD="${LD-ld} -m elf64_sparc" 4802 ;; 4803 esac 4804 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 4805 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 4806 LD=${LD-ld}_sol2 4807 fi 4808 ;; 4809 *) 4810 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4811 LD="${LD-ld} -64" 4812 fi 4813 ;; 4814 esac 4815 ;; 4816 esac 4817 fi 4818 rm -rf conftest* 4819 ;; 4820esac 4821 4822need_locks=$enable_libtool_lock 4823])# _LT_ENABLE_LOCK 4824 4825 4826# _LT_PROG_AR 4827# ----------- 4828m4_defun([_LT_PROG_AR], 4829[AC_CHECK_TOOLS(AR, [ar], false) 4830: ${AR=ar} 4831_LT_DECL([], [AR], [1], [The archiver]) 4832 4833# Use ARFLAGS variable as AR's operation code to sync the variable naming with 4834# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 4835# higher priority because thats what people were doing historically (setting 4836# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 4837# variable obsoleted/removed. 4838 4839test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 4840lt_ar_flags=$AR_FLAGS 4841_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) 4842 4843# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 4844# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 4845_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], 4846 [Flags to create an archive]) 4847 4848AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 4849 [lt_cv_ar_at_file=no 4850 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 4851 [echo conftest.$ac_objext > conftest.lst 4852 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 4853 AC_TRY_EVAL([lt_ar_try]) 4854 if test 0 -eq "$ac_status"; then 4855 # Ensure the archiver fails upon bogus file names. 4856 rm -f conftest.$ac_objext libconftest.a 4857 AC_TRY_EVAL([lt_ar_try]) 4858 if test 0 -ne "$ac_status"; then 4859 lt_cv_ar_at_file=@ 4860 fi 4861 fi 4862 rm -f conftest.* libconftest.a 4863 ]) 4864 ]) 4865 4866if test no = "$lt_cv_ar_at_file"; then 4867 archiver_list_spec= 4868else 4869 archiver_list_spec=$lt_cv_ar_at_file 4870fi 4871_LT_DECL([], [archiver_list_spec], [1], 4872 [How to feed a file listing to the archiver]) 4873])# _LT_PROG_AR 4874 4875 4876# _LT_CMD_OLD_ARCHIVE 4877# ------------------- 4878m4_defun([_LT_CMD_OLD_ARCHIVE], 4879[_LT_PROG_AR 4880 4881AC_CHECK_TOOL(STRIP, strip, :) 4882test -z "$STRIP" && STRIP=: 4883_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 4884 4885AC_CHECK_TOOL(RANLIB, ranlib, :) 4886test -z "$RANLIB" && RANLIB=: 4887_LT_DECL([], [RANLIB], [1], 4888 [Commands used to install an old-style archive]) 4889 4890# Determine commands to create old-style static archives. 4891old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4892old_postinstall_cmds='chmod 644 $oldlib' 4893old_postuninstall_cmds= 4894 4895if test -n "$RANLIB"; then 4896 case $host_os in 4897 bitrig* | openbsd*) 4898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 4899 ;; 4900 *) 4901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 4902 ;; 4903 esac 4904 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 4905fi 4906 4907case $host_os in 4908 darwin*) 4909 lock_old_archive_extraction=yes ;; 4910 *) 4911 lock_old_archive_extraction=no ;; 4912esac 4913_LT_DECL([], [old_postinstall_cmds], [2]) 4914_LT_DECL([], [old_postuninstall_cmds], [2]) 4915_LT_TAGDECL([], [old_archive_cmds], [2], 4916 [Commands used to build an old-style archive]) 4917_LT_DECL([], [lock_old_archive_extraction], [0], 4918 [Whether to use a lock for old archive extraction]) 4919])# _LT_CMD_OLD_ARCHIVE 4920 4921 4922# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 4923# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 4924# ---------------------------------------------------------------- 4925# Check whether the given compiler option works 4926AC_DEFUN([_LT_COMPILER_OPTION], 4927[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4928m4_require([_LT_DECL_SED])dnl 4929AC_CACHE_CHECK([$1], [$2], 4930 [$2=no 4931 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 4932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 4933 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 4934 # Insert the option either (1) after the last *FLAGS variable, or 4935 # (2) before a word containing "conftest.", or (3) at the end. 4936 # Note that $ac_compile itself does not contain backslashes and begins 4937 # with a dollar sign (not a hyphen), so the echo should work correctly. 4938 # The option is referenced via a variable to avoid confusing sed. 4939 lt_compile=`echo "$ac_compile" | $SED \ 4940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 4941 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 4942 -e 's:$: $lt_compiler_flag:'` 4943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 4944 (eval "$lt_compile" 2>conftest.err) 4945 ac_status=$? 4946 cat conftest.err >&AS_MESSAGE_LOG_FD 4947 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 4948 if (exit $ac_status) && test -s "$ac_outfile"; then 4949 # The compiler can only warn and ignore the option if not recognized 4950 # So say no if there are warnings other than the usual output. 4951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 4952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 4953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 4954 $2=yes 4955 fi 4956 fi 4957 $RM conftest* 4958]) 4959 4960if test yes = "[$]$2"; then 4961 m4_if([$5], , :, [$5]) 4962else 4963 m4_if([$6], , :, [$6]) 4964fi 4965])# _LT_COMPILER_OPTION 4966 4967# Old name: 4968AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 4969dnl aclocal-1.4 backwards compatibility: 4970dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 4971 4972 4973# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 4974# [ACTION-SUCCESS], [ACTION-FAILURE]) 4975# ---------------------------------------------------- 4976# Check whether the given linker option works 4977AC_DEFUN([_LT_LINKER_OPTION], 4978[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4979m4_require([_LT_DECL_SED])dnl 4980AC_CACHE_CHECK([$1], [$2], 4981 [$2=no 4982 save_LDFLAGS=$LDFLAGS 4983 LDFLAGS="$LDFLAGS $3" 4984 echo "$lt_simple_link_test_code" > conftest.$ac_ext 4985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 4986 # The linker can only warn and ignore the option if not recognized 4987 # So say no if there are warnings 4988 if test -s conftest.err; then 4989 # Append any errors to the config.log. 4990 cat conftest.err 1>&AS_MESSAGE_LOG_FD 4991 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 4992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 4993 if diff conftest.exp conftest.er2 >/dev/null; then 4994 $2=yes 4995 fi 4996 else 4997 $2=yes 4998 fi 4999 fi 5000 $RM -r conftest* 5001 LDFLAGS=$save_LDFLAGS 5002]) 5003 5004if test yes = "[$]$2"; then 5005 m4_if([$4], , :, [$4]) 5006else 5007 m4_if([$5], , :, [$5]) 5008fi 5009])# _LT_LINKER_OPTION 5010 5011# Old name: 5012AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 5013dnl aclocal-1.4 backwards compatibility: 5014dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 5015 5016 5017# LT_CMD_MAX_LEN 5018#--------------- 5019AC_DEFUN([LT_CMD_MAX_LEN], 5020[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5021# find the maximum length of command line arguments 5022AC_MSG_CHECKING([the maximum length of command line arguments]) 5023AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 5024 i=0 5025 teststring=ABCD 5026 5027 case $build_os in 5028 msdosdjgpp*) 5029 # On DJGPP, this test can blow up pretty badly due to problems in libc 5030 # (any single argument exceeding 2000 bytes causes a buffer overrun 5031 # during glob expansion). Even if it were fixed, the result of this 5032 # check would be larger than it should be. 5033 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5034 ;; 5035 5036 gnu*) 5037 # Under GNU Hurd, this test is not required because there is 5038 # no limit to the length of command line arguments. 5039 # Libtool will interpret -1 as no limit whatsoever 5040 lt_cv_sys_max_cmd_len=-1; 5041 ;; 5042 5043 cygwin* | mingw* | cegcc*) 5044 # On Win9x/ME, this test blows up -- it succeeds, but takes 5045 # about 5 minutes as the teststring grows exponentially. 5046 # Worse, since 9x/ME are not pre-emptively multitasking, 5047 # you end up with a "frozen" computer, even though with patience 5048 # the test eventually succeeds (with a max line length of 256k). 5049 # Instead, let's just punt: use the minimum linelength reported by 5050 # all of the supported platforms: 8192 (on NT/2K/XP). 5051 lt_cv_sys_max_cmd_len=8192; 5052 ;; 5053 5054 mint*) 5055 # On MiNT this can take a long time and run out of memory. 5056 lt_cv_sys_max_cmd_len=8192; 5057 ;; 5058 5059 amigaos*) 5060 # On AmigaOS with pdksh, this test takes hours, literally. 5061 # So we just punt and use a minimum line length of 8192. 5062 lt_cv_sys_max_cmd_len=8192; 5063 ;; 5064 5065 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5066 # This has been around since 386BSD, at least. Likely further. 5067 if test -x /sbin/sysctl; then 5068 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5069 elif test -x /usr/sbin/sysctl; then 5070 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5071 else 5072 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5073 fi 5074 # And add a safety zone 5075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5077 ;; 5078 5079 interix*) 5080 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5081 lt_cv_sys_max_cmd_len=196608 5082 ;; 5083 5084 os2*) 5085 # The test takes a long time on OS/2. 5086 lt_cv_sys_max_cmd_len=8192 5087 ;; 5088 5089 osf*) 5090 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5091 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5092 # nice to cause kernel panics so lets avoid the loop below. 5093 # First set a reasonable default. 5094 lt_cv_sys_max_cmd_len=16384 5095 # 5096 if test -x /sbin/sysconfig; then 5097 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5098 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5099 esac 5100 fi 5101 ;; 5102 sco3.2v5*) 5103 lt_cv_sys_max_cmd_len=102400 5104 ;; 5105 sysv5* | sco5v6* | sysv4.2uw2*) 5106 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5107 if test -n "$kargmax"; then 5108 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` 5109 else 5110 lt_cv_sys_max_cmd_len=32768 5111 fi 5112 ;; 5113 *) 5114 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5115 if test -n "$lt_cv_sys_max_cmd_len" && \ 5116 test undefined != "$lt_cv_sys_max_cmd_len"; then 5117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5119 else 5120 # Make teststring a little bigger before we do anything with it. 5121 # a 1K string should be a reasonable start. 5122 for i in 1 2 3 4 5 6 7 8; do 5123 teststring=$teststring$teststring 5124 done 5125 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5126 # If test is not a shell built-in, we'll probably end up computing a 5127 # maximum length that is only half of the actual maximum length, but 5128 # we can't tell. 5129 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5130 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5131 test 17 != "$i" # 1/2 MB should be enough 5132 do 5133 i=`expr $i + 1` 5134 teststring=$teststring$teststring 5135 done 5136 # Only check the string length outside the loop. 5137 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5138 teststring= 5139 # Add a significant safety factor because C++ compilers can tack on 5140 # massive amounts of additional arguments before passing them to the 5141 # linker. It appears as though 1/2 is a usable value. 5142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5143 fi 5144 ;; 5145 esac 5146]) 5147if test -n "$lt_cv_sys_max_cmd_len"; then 5148 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 5149else 5150 AC_MSG_RESULT(none) 5151fi 5152max_cmd_len=$lt_cv_sys_max_cmd_len 5153_LT_DECL([], [max_cmd_len], [0], 5154 [What is the maximum length of a command?]) 5155])# LT_CMD_MAX_LEN 5156 5157# Old name: 5158AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 5159dnl aclocal-1.4 backwards compatibility: 5160dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 5161 5162 5163# _LT_HEADER_DLFCN 5164# ---------------- 5165m4_defun([_LT_HEADER_DLFCN], 5166[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 5167])# _LT_HEADER_DLFCN 5168 5169 5170# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 5171# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 5172# ---------------------------------------------------------------- 5173m4_defun([_LT_TRY_DLOPEN_SELF], 5174[m4_require([_LT_HEADER_DLFCN])dnl 5175if test yes = "$cross_compiling"; then : 5176 [$4] 5177else 5178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 5179 lt_status=$lt_dlunknown 5180 cat > conftest.$ac_ext <<_LT_EOF 5181[#line $LINENO "configure" 5182#include "confdefs.h" 5183 5184#if HAVE_DLFCN_H 5185#include <dlfcn.h> 5186#endif 5187 5188#include <stdio.h> 5189 5190#ifdef RTLD_GLOBAL 5191# define LT_DLGLOBAL RTLD_GLOBAL 5192#else 5193# ifdef DL_GLOBAL 5194# define LT_DLGLOBAL DL_GLOBAL 5195# else 5196# define LT_DLGLOBAL 0 5197# endif 5198#endif 5199 5200/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 5201 find out it does not work in some platform. */ 5202#ifndef LT_DLLAZY_OR_NOW 5203# ifdef RTLD_LAZY 5204# define LT_DLLAZY_OR_NOW RTLD_LAZY 5205# else 5206# ifdef DL_LAZY 5207# define LT_DLLAZY_OR_NOW DL_LAZY 5208# else 5209# ifdef RTLD_NOW 5210# define LT_DLLAZY_OR_NOW RTLD_NOW 5211# else 5212# ifdef DL_NOW 5213# define LT_DLLAZY_OR_NOW DL_NOW 5214# else 5215# define LT_DLLAZY_OR_NOW 0 5216# endif 5217# endif 5218# endif 5219# endif 5220#endif 5221 5222/* When -fvisibility=hidden is used, assume the code has been annotated 5223 correspondingly for the symbols needed. */ 5224#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 5225int fnord () __attribute__((visibility("default"))); 5226#endif 5227 5228int fnord () { return 42; } 5229int main () 5230{ 5231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 5232 int status = $lt_dlunknown; 5233 5234 if (self) 5235 { 5236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 5237 else 5238 { 5239 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 5240 else puts (dlerror ()); 5241 } 5242 /* dlclose (self); */ 5243 } 5244 else 5245 puts (dlerror ()); 5246 5247 return status; 5248}] 5249_LT_EOF 5250 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 5251 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 5252 lt_status=$? 5253 case x$lt_status in 5254 x$lt_dlno_uscore) $1 ;; 5255 x$lt_dlneed_uscore) $2 ;; 5256 x$lt_dlunknown|x*) $3 ;; 5257 esac 5258 else : 5259 # compilation failed 5260 $3 5261 fi 5262fi 5263rm -fr conftest* 5264])# _LT_TRY_DLOPEN_SELF 5265 5266 5267# LT_SYS_DLOPEN_SELF 5268# ------------------ 5269AC_DEFUN([LT_SYS_DLOPEN_SELF], 5270[m4_require([_LT_HEADER_DLFCN])dnl 5271if test yes != "$enable_dlopen"; then 5272 enable_dlopen=unknown 5273 enable_dlopen_self=unknown 5274 enable_dlopen_self_static=unknown 5275else 5276 lt_cv_dlopen=no 5277 lt_cv_dlopen_libs= 5278 5279 case $host_os in 5280 beos*) 5281 lt_cv_dlopen=load_add_on 5282 lt_cv_dlopen_libs= 5283 lt_cv_dlopen_self=yes 5284 ;; 5285 5286 mingw* | pw32* | cegcc*) 5287 lt_cv_dlopen=LoadLibrary 5288 lt_cv_dlopen_libs= 5289 ;; 5290 5291 cygwin*) 5292 lt_cv_dlopen=dlopen 5293 lt_cv_dlopen_libs= 5294 ;; 5295 5296 darwin*) 5297 # if libdl is installed we need to link against it 5298 AC_CHECK_LIB([dl], [dlopen], 5299 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 5300 lt_cv_dlopen=dyld 5301 lt_cv_dlopen_libs= 5302 lt_cv_dlopen_self=yes 5303 ]) 5304 ;; 5305 5306 tpf*) 5307 # Don't try to run any link tests for TPF. We know it's impossible 5308 # because TPF is a cross-compiler, and we know how we open DSOs. 5309 lt_cv_dlopen=dlopen 5310 lt_cv_dlopen_libs= 5311 lt_cv_dlopen_self=no 5312 ;; 5313 5314 *) 5315 AC_CHECK_FUNC([shl_load], 5316 [lt_cv_dlopen=shl_load], 5317 [AC_CHECK_LIB([dld], [shl_load], 5318 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 5319 [AC_CHECK_FUNC([dlopen], 5320 [lt_cv_dlopen=dlopen], 5321 [AC_CHECK_LIB([dl], [dlopen], 5322 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 5323 [AC_CHECK_LIB([svld], [dlopen], 5324 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 5325 [AC_CHECK_LIB([dld], [dld_link], 5326 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 5327 ]) 5328 ]) 5329 ]) 5330 ]) 5331 ]) 5332 ;; 5333 esac 5334 5335 if test no = "$lt_cv_dlopen"; then 5336 enable_dlopen=no 5337 else 5338 enable_dlopen=yes 5339 fi 5340 5341 case $lt_cv_dlopen in 5342 dlopen) 5343 save_CPPFLAGS=$CPPFLAGS 5344 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 5345 5346 save_LDFLAGS=$LDFLAGS 5347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 5348 5349 save_LIBS=$LIBS 5350 LIBS="$lt_cv_dlopen_libs $LIBS" 5351 5352 AC_CACHE_CHECK([whether a program can dlopen itself], 5353 lt_cv_dlopen_self, [dnl 5354 _LT_TRY_DLOPEN_SELF( 5355 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 5356 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 5357 ]) 5358 5359 if test yes = "$lt_cv_dlopen_self"; then 5360 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 5361 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 5362 lt_cv_dlopen_self_static, [dnl 5363 _LT_TRY_DLOPEN_SELF( 5364 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 5365 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 5366 ]) 5367 fi 5368 5369 CPPFLAGS=$save_CPPFLAGS 5370 LDFLAGS=$save_LDFLAGS 5371 LIBS=$save_LIBS 5372 ;; 5373 esac 5374 5375 case $lt_cv_dlopen_self in 5376 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 5377 *) enable_dlopen_self=unknown ;; 5378 esac 5379 5380 case $lt_cv_dlopen_self_static in 5381 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 5382 *) enable_dlopen_self_static=unknown ;; 5383 esac 5384fi 5385_LT_DECL([dlopen_support], [enable_dlopen], [0], 5386 [Whether dlopen is supported]) 5387_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 5388 [Whether dlopen of programs is supported]) 5389_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 5390 [Whether dlopen of statically linked programs is supported]) 5391])# LT_SYS_DLOPEN_SELF 5392 5393# Old name: 5394AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 5395dnl aclocal-1.4 backwards compatibility: 5396dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 5397 5398 5399# _LT_COMPILER_C_O([TAGNAME]) 5400# --------------------------- 5401# Check to see if options -c and -o are simultaneously supported by compiler. 5402# This macro does not hard code the compiler like AC_PROG_CC_C_O. 5403m4_defun([_LT_COMPILER_C_O], 5404[m4_require([_LT_DECL_SED])dnl 5405m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5406m4_require([_LT_TAG_COMPILER])dnl 5407AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 5408 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 5409 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 5410 $RM -r conftest 2>/dev/null 5411 mkdir conftest 5412 cd conftest 5413 mkdir out 5414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5415 5416 lt_compiler_flag="-o out/conftest2.$ac_objext" 5417 # Insert the option either (1) after the last *FLAGS variable, or 5418 # (2) before a word containing "conftest.", or (3) at the end. 5419 # Note that $ac_compile itself does not contain backslashes and begins 5420 # with a dollar sign (not a hyphen), so the echo should work correctly. 5421 lt_compile=`echo "$ac_compile" | $SED \ 5422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 5423 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 5424 -e 's:$: $lt_compiler_flag:'` 5425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 5426 (eval "$lt_compile" 2>out/conftest.err) 5427 ac_status=$? 5428 cat out/conftest.err >&AS_MESSAGE_LOG_FD 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 5430 if (exit $ac_status) && test -s out/conftest2.$ac_objext 5431 then 5432 # The compiler can only warn and ignore the option if not recognized 5433 # So say no if there are warnings 5434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 5435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 5436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 5437 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 5438 fi 5439 fi 5440 chmod u+w . 2>&AS_MESSAGE_LOG_FD 5441 $RM conftest* 5442 # SGI C++ compiler will create directory out/ii_files/ for 5443 # template instantiation 5444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 5445 $RM out/* && rmdir out 5446 cd .. 5447 $RM -r conftest 5448 $RM conftest* 5449]) 5450_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 5451 [Does compiler simultaneously support -c and -o options?]) 5452])# _LT_COMPILER_C_O 5453 5454 5455# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 5456# ---------------------------------- 5457# Check to see if we can do hard links to lock some files if needed 5458m4_defun([_LT_COMPILER_FILE_LOCKS], 5459[m4_require([_LT_ENABLE_LOCK])dnl 5460m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5461_LT_COMPILER_C_O([$1]) 5462 5463hard_links=nottested 5464if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 5465 # do not overwrite the value of need_locks provided by the user 5466 AC_MSG_CHECKING([if we can lock with hard links]) 5467 hard_links=yes 5468 $RM conftest* 5469 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5470 touch conftest.a 5471 ln conftest.a conftest.b 2>&5 || hard_links=no 5472 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5473 AC_MSG_RESULT([$hard_links]) 5474 if test no = "$hard_links"; then 5475 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 5476 need_locks=warn 5477 fi 5478else 5479 need_locks=no 5480fi 5481_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 5482])# _LT_COMPILER_FILE_LOCKS 5483 5484 5485# _LT_CHECK_OBJDIR 5486# ---------------- 5487m4_defun([_LT_CHECK_OBJDIR], 5488[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 5489[rm -f .libs 2>/dev/null 5490mkdir .libs 2>/dev/null 5491if test -d .libs; then 5492 lt_cv_objdir=.libs 5493else 5494 # MS-DOS does not allow filenames that begin with a dot. 5495 lt_cv_objdir=_libs 5496fi 5497rmdir .libs 2>/dev/null]) 5498objdir=$lt_cv_objdir 5499_LT_DECL([], [objdir], [0], 5500 [The name of the directory that contains temporary libtool files])dnl 5501m4_pattern_allow([LT_OBJDIR])dnl 5502AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 5503 [Define to the sub-directory where libtool stores uninstalled libraries.]) 5504])# _LT_CHECK_OBJDIR 5505 5506 5507# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 5508# -------------------------------------- 5509# Check hardcoding attributes. 5510m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 5511[AC_MSG_CHECKING([how to hardcode library paths into programs]) 5512_LT_TAGVAR(hardcode_action, $1)= 5513if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 5514 test -n "$_LT_TAGVAR(runpath_var, $1)" || 5515 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 5516 5517 # We can hardcode non-existent directories. 5518 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 5519 # If the only mechanism to avoid hardcoding is shlibpath_var, we 5520 # have to relink, otherwise we might link with an installed library 5521 # when we should be linking with a yet-to-be-installed one 5522 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 5523 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 5524 # Linking always hardcodes the temporary library directory. 5525 _LT_TAGVAR(hardcode_action, $1)=relink 5526 else 5527 # We can link without hardcoding, and we can hardcode nonexisting dirs. 5528 _LT_TAGVAR(hardcode_action, $1)=immediate 5529 fi 5530else 5531 # We cannot hardcode anything, or else we can only hardcode existing 5532 # directories. 5533 _LT_TAGVAR(hardcode_action, $1)=unsupported 5534fi 5535AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 5536 5537if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 5538 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 5539 # Fast installation is not supported 5540 enable_fast_install=no 5541elif test yes = "$shlibpath_overrides_runpath" || 5542 test no = "$enable_shared"; then 5543 # Fast installation is not necessary 5544 enable_fast_install=needless 5545fi 5546_LT_TAGDECL([], [hardcode_action], [0], 5547 [How to hardcode a shared library path into an executable]) 5548])# _LT_LINKER_HARDCODE_LIBPATH 5549 5550 5551# _LT_CMD_STRIPLIB 5552# ---------------- 5553m4_defun([_LT_CMD_STRIPLIB], 5554[m4_require([_LT_DECL_EGREP]) 5555striplib= 5556old_striplib= 5557AC_MSG_CHECKING([whether stripping libraries is possible]) 5558if test -z "$STRIP"; then 5559 AC_MSG_RESULT([no]) 5560else 5561 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 5562 old_striplib="$STRIP --strip-debug" 5563 striplib="$STRIP --strip-unneeded" 5564 AC_MSG_RESULT([yes]) 5565 else 5566 case $host_os in 5567 darwin*) 5568 # FIXME - insert some real tests, host_os isn't really good enough 5569 striplib="$STRIP -x" 5570 old_striplib="$STRIP -S" 5571 AC_MSG_RESULT([yes]) 5572 ;; 5573 freebsd*) 5574 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 5575 old_striplib="$STRIP --strip-debug" 5576 striplib="$STRIP --strip-unneeded" 5577 AC_MSG_RESULT([yes]) 5578 else 5579 AC_MSG_RESULT([no]) 5580 fi 5581 ;; 5582 *) 5583 AC_MSG_RESULT([no]) 5584 ;; 5585 esac 5586 fi 5587fi 5588_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 5589_LT_DECL([], [striplib], [1]) 5590])# _LT_CMD_STRIPLIB 5591 5592 5593# _LT_PREPARE_MUNGE_PATH_LIST 5594# --------------------------- 5595# Make sure func_munge_path_list() is defined correctly. 5596m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 5597[[# func_munge_path_list VARIABLE PATH 5598# ----------------------------------- 5599# VARIABLE is name of variable containing _space_ separated list of 5600# directories to be munged by the contents of PATH, which is string 5601# having a format: 5602# "DIR[:DIR]:" 5603# string "DIR[ DIR]" will be prepended to VARIABLE 5604# ":DIR[:DIR]" 5605# string "DIR[ DIR]" will be appended to VARIABLE 5606# "DIRP[:DIRP]::[DIRA:]DIRA" 5607# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 5608# "DIRA[ DIRA]" will be appended to VARIABLE 5609# "DIR[:DIR]" 5610# VARIABLE will be replaced by "DIR[ DIR]" 5611func_munge_path_list () 5612{ 5613 case x@S|@2 in 5614 x) 5615 ;; 5616 *:) 5617 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 5618 ;; 5619 x:*) 5620 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 5621 ;; 5622 *::*) 5623 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 5624 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 5625 ;; 5626 *) 5627 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 5628 ;; 5629 esac 5630} 5631]])# _LT_PREPARE_PATH_LIST 5632 5633 5634# _LT_SYS_DYNAMIC_LINKER([TAG]) 5635# ----------------------------- 5636# PORTME Fill in your ld.so characteristics 5637m4_defun([_LT_SYS_DYNAMIC_LINKER], 5638[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5639m4_require([_LT_DECL_EGREP])dnl 5640m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5641m4_require([_LT_DECL_OBJDUMP])dnl 5642m4_require([_LT_DECL_SED])dnl 5643m4_require([_LT_CHECK_SHELL_FEATURES])dnl 5644m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 5645AC_MSG_CHECKING([dynamic linker characteristics]) 5646m4_if([$1], 5647 [], [ 5648if test yes = "$GCC"; then 5649 case $host_os in 5650 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 5651 *) lt_awk_arg='/^libraries:/' ;; 5652 esac 5653 case $host_os in 5654 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 5655 *) lt_sed_strip_eq='s|=/|/|g' ;; 5656 esac 5657 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 5658 case $lt_search_path_spec in 5659 *\;*) 5660 # if the path contains ";" then we assume it to be the separator 5661 # otherwise default to the standard path separator (i.e. ":") - it is 5662 # assumed that no part of a normal pathname contains ";" but that should 5663 # okay in the real world where ";" in dirpaths is itself problematic. 5664 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 5665 ;; 5666 *) 5667 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 5668 ;; 5669 esac 5670 # Ok, now we have the path, separated by spaces, we can step through it 5671 # and add multilib dir if necessary... 5672 lt_tmp_lt_search_path_spec= 5673 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 5674 # ...but if some path component already ends with the multilib dir we assume 5675 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 5676 case "$lt_multi_os_dir; $lt_search_path_spec " in 5677 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 5678 lt_multi_os_dir= 5679 ;; 5680 esac 5681 for lt_sys_path in $lt_search_path_spec; do 5682 if test -d "$lt_sys_path$lt_multi_os_dir"; then 5683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 5684 elif test -n "$lt_multi_os_dir"; then 5685 test -d "$lt_sys_path" && \ 5686 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 5687 fi 5688 done 5689 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 5690BEGIN {RS = " "; FS = "/|\n";} { 5691 lt_foo = ""; 5692 lt_count = 0; 5693 for (lt_i = NF; lt_i > 0; lt_i--) { 5694 if ($lt_i != "" && $lt_i != ".") { 5695 if ($lt_i == "..") { 5696 lt_count++; 5697 } else { 5698 if (lt_count == 0) { 5699 lt_foo = "/" $lt_i lt_foo; 5700 } else { 5701 lt_count--; 5702 } 5703 } 5704 } 5705 } 5706 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 5707 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 5708}'` 5709 # AWK program above erroneously prepends '/' to C:/dos/paths 5710 # for these hosts. 5711 case $host_os in 5712 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 5713 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 5714 esac 5715 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 5716else 5717 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 5718fi]) 5719library_names_spec= 5720libname_spec='lib$name' 5721soname_spec= 5722shrext_cmds=.so 5723postinstall_cmds= 5724postuninstall_cmds= 5725finish_cmds= 5726finish_eval= 5727shlibpath_var= 5728shlibpath_overrides_runpath=unknown 5729version_type=none 5730dynamic_linker="$host_os ld.so" 5731sys_lib_dlsearch_path_spec="/lib /usr/lib" 5732need_lib_prefix=unknown 5733hardcode_into_libs=no 5734 5735# when you set need_version to no, make sure it does not cause -set_version 5736# flags to be left without arguments 5737need_version=unknown 5738 5739AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 5740[User-defined run-time library search path.]) 5741 5742case $host_os in 5743aix3*) 5744 version_type=linux # correct to gnu/linux during the next big refactor 5745 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 5746 shlibpath_var=LIBPATH 5747 5748 # AIX 3 has no versioning support, so we append a major version to the name. 5749 soname_spec='$libname$release$shared_ext$major' 5750 ;; 5751 5752aix[[4-9]]*) 5753 version_type=linux # correct to gnu/linux during the next big refactor 5754 need_lib_prefix=no 5755 need_version=no 5756 hardcode_into_libs=yes 5757 if test ia64 = "$host_cpu"; then 5758 # AIX 5 supports IA64 5759 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 5760 shlibpath_var=LD_LIBRARY_PATH 5761 else 5762 # With GCC up to 2.95.x, collect2 would create an import file 5763 # for dependence libraries. The import file would start with 5764 # the line '#! .'. This would cause the generated library to 5765 # depend on '.', always an invalid library. This was fixed in 5766 # development snapshots of GCC prior to 3.0. 5767 case $host_os in 5768 aix4 | aix4.[[01]] | aix4.[[01]].*) 5769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 5770 echo ' yes ' 5771 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 5772 : 5773 else 5774 can_build_shared=no 5775 fi 5776 ;; 5777 esac 5778 # Using Import Files as archive members, it is possible to support 5779 # filename-based versioning of shared library archives on AIX. While 5780 # this would work for both with and without runtime linking, it will 5781 # prevent static linking of such archives. So we do filename-based 5782 # shared library versioning with .so extension only, which is used 5783 # when both runtime linking and shared linking is enabled. 5784 # Unfortunately, runtime linking may impact performance, so we do 5785 # not want this to be the default eventually. Also, we use the 5786 # versioned .so libs for executables only if there is the -brtl 5787 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 5788 # To allow for filename-based versioning support, we need to create 5789 # libNAME.so.V as an archive file, containing: 5790 # *) an Import File, referring to the versioned filename of the 5791 # archive as well as the shared archive member, telling the 5792 # bitwidth (32 or 64) of that shared object, and providing the 5793 # list of exported symbols of that shared object, eventually 5794 # decorated with the 'weak' keyword 5795 # *) the shared object with the F_LOADONLY flag set, to really avoid 5796 # it being seen by the linker. 5797 # At run time we better use the real file rather than another symlink, 5798 # but for link time we create the symlink libNAME.so -> libNAME.so.V 5799 5800 case $with_aix_soname,$aix_use_runtimelinking in 5801 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 5802 # soname into executable. Probably we can add versioning support to 5803 # collect2, so additional links can be useful in future. 5804 aix,yes) # traditional libtool 5805 dynamic_linker='AIX unversionable lib.so' 5806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 5807 # instead of lib<name>.a to let people know that these are not 5808 # typical AIX shared libraries. 5809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5810 ;; 5811 aix,no) # traditional AIX only 5812 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 5813 # We preserve .a as extension for shared libraries through AIX4.2 5814 # and later when we are not doing run time linking. 5815 library_names_spec='$libname$release.a $libname.a' 5816 soname_spec='$libname$release$shared_ext$major' 5817 ;; 5818 svr4,*) # full svr4 only 5819 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 5820 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 5821 # We do not specify a path in Import Files, so LIBPATH fires. 5822 shlibpath_overrides_runpath=yes 5823 ;; 5824 *,yes) # both, prefer svr4 5825 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 5826 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 5827 # unpreferred sharedlib libNAME.a needs extra handling 5828 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 5829 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 5830 # We do not specify a path in Import Files, so LIBPATH fires. 5831 shlibpath_overrides_runpath=yes 5832 ;; 5833 *,no) # both, prefer aix 5834 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 5835 library_names_spec='$libname$release.a $libname.a' 5836 soname_spec='$libname$release$shared_ext$major' 5837 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 5838 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 5839 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 5840 ;; 5841 esac 5842 shlibpath_var=LIBPATH 5843 fi 5844 ;; 5845 5846amigaos*) 5847 case $host_cpu in 5848 powerpc) 5849 # Since July 2007 AmigaOS4 officially supports .so libraries. 5850 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 5851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5852 ;; 5853 m68k) 5854 library_names_spec='$libname.ixlibrary $libname.a' 5855 # Create ${libname}_ixlibrary.a entries in /sys/libs. 5856 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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' 5857 ;; 5858 esac 5859 ;; 5860 5861beos*) 5862 library_names_spec='$libname$shared_ext' 5863 dynamic_linker="$host_os ld.so" 5864 shlibpath_var=LIBRARY_PATH 5865 ;; 5866 5867bsdi[[45]]*) 5868 version_type=linux # correct to gnu/linux during the next big refactor 5869 need_version=no 5870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 5871 soname_spec='$libname$release$shared_ext$major' 5872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 5873 shlibpath_var=LD_LIBRARY_PATH 5874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 5875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 5876 # the default ld.so.conf also contains /usr/contrib/lib and 5877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 5878 # libtool to hard-code these into programs 5879 ;; 5880 5881cygwin* | mingw* | pw32* | cegcc*) 5882 version_type=windows 5883 shrext_cmds=.dll 5884 need_version=no 5885 need_lib_prefix=no 5886 5887 case $GCC,$cc_basename in 5888 yes,*) 5889 # gcc 5890 library_names_spec='$libname.dll.a' 5891 # DLL is installed to $(libdir)/../bin by postinstall_cmds 5892 postinstall_cmds='base_file=`basename \$file`~ 5893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 5894 dldir=$destdir/`dirname \$dlpath`~ 5895 test -d \$dldir || mkdir -p \$dldir~ 5896 $install_prog $dir/$dlname \$dldir/$dlname~ 5897 chmod a+x \$dldir/$dlname~ 5898 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 5899 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 5900 fi' 5901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 5902 dlpath=$dir/\$dldll~ 5903 $RM \$dlpath' 5904 shlibpath_overrides_runpath=yes 5905 5906 case $host_os in 5907 cygwin*) 5908 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 5909 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 5910m4_if([$1], [],[ 5911 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 5912 ;; 5913 mingw* | cegcc*) 5914 # MinGW DLLs use traditional 'lib' prefix 5915 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 5916 ;; 5917 pw32*) 5918 # pw32 DLLs use 'pw' prefix rather than 'lib' 5919 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 5920 ;; 5921 esac 5922 dynamic_linker='Win32 ld.exe' 5923 ;; 5924 5925 *,cl* | *,icl*) 5926 # Native MSVC or ICC 5927 libname_spec='$name' 5928 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 5929 library_names_spec='$libname.dll.lib' 5930 5931 case $build_os in 5932 mingw*) 5933 sys_lib_search_path_spec= 5934 lt_save_ifs=$IFS 5935 IFS=';' 5936 for lt_path in $LIB 5937 do 5938 IFS=$lt_save_ifs 5939 # Let DOS variable expansion print the short 8.3 style file name. 5940 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 5941 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 5942 done 5943 IFS=$lt_save_ifs 5944 # Convert to MSYS style. 5945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 5946 ;; 5947 cygwin*) 5948 # Convert to unix form, then to dos form, then back to unix form 5949 # but this time dos style (no spaces!) so that the unix form looks 5950 # like /cygdrive/c/PROGRA~1:/cygdr... 5951 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 5952 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 5953 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 5954 ;; 5955 *) 5956 sys_lib_search_path_spec=$LIB 5957 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 5958 # It is most probably a Windows format PATH. 5959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 5960 else 5961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 5962 fi 5963 # FIXME: find the short name or the path components, as spaces are 5964 # common. (e.g. "Program Files" -> "PROGRA~1") 5965 ;; 5966 esac 5967 5968 # DLL is installed to $(libdir)/../bin by postinstall_cmds 5969 postinstall_cmds='base_file=`basename \$file`~ 5970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 5971 dldir=$destdir/`dirname \$dlpath`~ 5972 test -d \$dldir || mkdir -p \$dldir~ 5973 $install_prog $dir/$dlname \$dldir/$dlname' 5974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 5975 dlpath=$dir/\$dldll~ 5976 $RM \$dlpath' 5977 shlibpath_overrides_runpath=yes 5978 dynamic_linker='Win32 link.exe' 5979 ;; 5980 5981 *) 5982 # Assume MSVC and ICC wrapper 5983 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 5984 dynamic_linker='Win32 ld.exe' 5985 ;; 5986 esac 5987 # FIXME: first we should search . and the directory the executable is in 5988 shlibpath_var=PATH 5989 ;; 5990 5991darwin* | rhapsody*) 5992 dynamic_linker="$host_os dyld" 5993 version_type=darwin 5994 need_lib_prefix=no 5995 need_version=no 5996 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 5997 soname_spec='$libname$release$major$shared_ext' 5998 shlibpath_overrides_runpath=yes 5999 shlibpath_var=DYLD_LIBRARY_PATH 6000 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 6001m4_if([$1], [],[ 6002 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 6003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 6004 ;; 6005 6006dgux*) 6007 version_type=linux # correct to gnu/linux during the next big refactor 6008 need_lib_prefix=no 6009 need_version=no 6010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6011 soname_spec='$libname$release$shared_ext$major' 6012 shlibpath_var=LD_LIBRARY_PATH 6013 ;; 6014 6015freebsd* | dragonfly* | midnightbsd*) 6016 # DragonFly does not have aout. When/if they implement a new 6017 # versioning mechanism, adjust this. 6018 if test -x /usr/bin/objformat; then 6019 objformat=`/usr/bin/objformat` 6020 else 6021 case $host_os in 6022 freebsd[[23]].*) objformat=aout ;; 6023 *) objformat=elf ;; 6024 esac 6025 fi 6026 version_type=freebsd-$objformat 6027 case $version_type in 6028 freebsd-elf*) 6029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6030 soname_spec='$libname$release$shared_ext$major' 6031 need_version=no 6032 need_lib_prefix=no 6033 ;; 6034 freebsd-*) 6035 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 6036 need_version=yes 6037 ;; 6038 esac 6039 shlibpath_var=LD_LIBRARY_PATH 6040 case $host_os in 6041 freebsd2.*) 6042 shlibpath_overrides_runpath=yes 6043 ;; 6044 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 6045 shlibpath_overrides_runpath=yes 6046 hardcode_into_libs=yes 6047 ;; 6048 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 6049 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 6050 shlibpath_overrides_runpath=no 6051 hardcode_into_libs=yes 6052 ;; 6053 *) # from 4.6 on, and DragonFly 6054 shlibpath_overrides_runpath=yes 6055 hardcode_into_libs=yes 6056 ;; 6057 esac 6058 ;; 6059 6060haiku*) 6061 version_type=linux # correct to gnu/linux during the next big refactor 6062 need_lib_prefix=no 6063 need_version=no 6064 dynamic_linker="$host_os runtime_loader" 6065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6066 soname_spec='$libname$release$shared_ext$major' 6067 shlibpath_var=LIBRARY_PATH 6068 shlibpath_overrides_runpath=no 6069 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 6070 hardcode_into_libs=yes 6071 ;; 6072 6073hpux9* | hpux10* | hpux11*) 6074 # Give a soname corresponding to the major version so that dld.sl refuses to 6075 # link against other versions. 6076 version_type=sunos 6077 need_lib_prefix=no 6078 need_version=no 6079 case $host_cpu in 6080 ia64*) 6081 shrext_cmds='.so' 6082 hardcode_into_libs=yes 6083 dynamic_linker="$host_os dld.so" 6084 shlibpath_var=LD_LIBRARY_PATH 6085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 6086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6087 soname_spec='$libname$release$shared_ext$major' 6088 if test 32 = "$HPUX_IA64_MODE"; then 6089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 6090 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 6091 else 6092 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 6093 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 6094 fi 6095 ;; 6096 hppa*64*) 6097 shrext_cmds='.sl' 6098 hardcode_into_libs=yes 6099 dynamic_linker="$host_os dld.sl" 6100 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 6101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 6102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6103 soname_spec='$libname$release$shared_ext$major' 6104 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 6105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 6106 ;; 6107 *) 6108 shrext_cmds='.sl' 6109 dynamic_linker="$host_os dld.sl" 6110 shlibpath_var=SHLIB_PATH 6111 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 6112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6113 soname_spec='$libname$release$shared_ext$major' 6114 ;; 6115 esac 6116 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 6117 postinstall_cmds='chmod 555 $lib' 6118 # or fails outright, so override atomically: 6119 install_override_mode=555 6120 ;; 6121 6122interix[[3-9]]*) 6123 version_type=linux # correct to gnu/linux during the next big refactor 6124 need_lib_prefix=no 6125 need_version=no 6126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6127 soname_spec='$libname$release$shared_ext$major' 6128 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 6129 shlibpath_var=LD_LIBRARY_PATH 6130 shlibpath_overrides_runpath=no 6131 hardcode_into_libs=yes 6132 ;; 6133 6134irix5* | irix6* | nonstopux*) 6135 case $host_os in 6136 nonstopux*) version_type=nonstopux ;; 6137 *) 6138 if test yes = "$lt_cv_prog_gnu_ld"; then 6139 version_type=linux # correct to gnu/linux during the next big refactor 6140 else 6141 version_type=irix 6142 fi ;; 6143 esac 6144 need_lib_prefix=no 6145 need_version=no 6146 soname_spec='$libname$release$shared_ext$major' 6147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 6148 case $host_os in 6149 irix5* | nonstopux*) 6150 libsuff= shlibsuff= 6151 ;; 6152 *) 6153 case $LD in # libtool.m4 will add one of these switches to LD 6154 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 6155 libsuff= shlibsuff= libmagic=32-bit;; 6156 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 6157 libsuff=32 shlibsuff=N32 libmagic=N32;; 6158 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 6159 libsuff=64 shlibsuff=64 libmagic=64-bit;; 6160 *) libsuff= shlibsuff= libmagic=never-match;; 6161 esac 6162 ;; 6163 esac 6164 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 6165 shlibpath_overrides_runpath=no 6166 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 6167 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 6168 hardcode_into_libs=yes 6169 ;; 6170 6171# No shared lib support for Linux oldld, aout, or coff. 6172linux*oldld* | linux*aout* | linux*coff*) 6173 dynamic_linker=no 6174 ;; 6175 6176linux*android*) 6177 version_type=none # Android doesn't support versioned libraries. 6178 need_lib_prefix=no 6179 need_version=no 6180 library_names_spec='$libname$release$shared_ext' 6181 soname_spec='$libname$release$shared_ext' 6182 finish_cmds= 6183 shlibpath_var=LD_LIBRARY_PATH 6184 shlibpath_overrides_runpath=yes 6185 6186 # This implies no fast_install, which is unacceptable. 6187 # Some rework will be needed to allow for fast_install 6188 # before this can be enabled. 6189 hardcode_into_libs=yes 6190 6191 dynamic_linker='Android linker' 6192 # Don't embed -rpath directories since the linker doesn't support them. 6193 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6194 ;; 6195 6196# This must be glibc/ELF. 6197linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6198 version_type=linux # correct to gnu/linux during the next big refactor 6199 need_lib_prefix=no 6200 need_version=no 6201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6202 soname_spec='$libname$release$shared_ext$major' 6203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6204 shlibpath_var=LD_LIBRARY_PATH 6205 shlibpath_overrides_runpath=no 6206 6207 # Some binutils ld are patched to set DT_RUNPATH 6208 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 6209 [lt_cv_shlibpath_overrides_runpath=no 6210 save_LDFLAGS=$LDFLAGS 6211 save_libdir=$libdir 6212 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 6213 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 6214 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 6215 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 6216 [lt_cv_shlibpath_overrides_runpath=yes])]) 6217 LDFLAGS=$save_LDFLAGS 6218 libdir=$save_libdir 6219 ]) 6220 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 6221 6222 # This implies no fast_install, which is unacceptable. 6223 # Some rework will be needed to allow for fast_install 6224 # before this can be enabled. 6225 hardcode_into_libs=yes 6226 6227 # Ideally, we could use ldconfig to report *all* directores which are 6228 # searched for libraries, however this is still not possible. Aside from not 6229 # being certain /sbin/ldconfig is available, command 6230 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 6231 # even though it is searched at run-time. Try to do the best guess by 6232 # appending ld.so.conf contents (and includes) to the search path. 6233 if test -f /etc/ld.so.conf; then 6234 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 6235 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 6236 fi 6237 6238 # We used to test for /lib/ld.so.1 and disable shared libraries on 6239 # powerpc, because MkLinux only supported shared libraries with the 6240 # GNU dynamic linker. Since this was broken with cross compilers, 6241 # most powerpc-linux boxes support dynamic linking these days and 6242 # people can always --disable-shared, the test was removed, and we 6243 # assume the GNU/Linux dynamic linker is in use. 6244 dynamic_linker='GNU/Linux ld.so' 6245 ;; 6246 6247netbsd*) 6248 version_type=sunos 6249 need_lib_prefix=no 6250 need_version=no 6251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6252 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 6253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6254 dynamic_linker='NetBSD (a.out) ld.so' 6255 else 6256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6257 soname_spec='$libname$release$shared_ext$major' 6258 dynamic_linker='NetBSD ld.elf_so' 6259 fi 6260 shlibpath_var=LD_LIBRARY_PATH 6261 shlibpath_overrides_runpath=yes 6262 hardcode_into_libs=yes 6263 ;; 6264 6265newsos6) 6266 version_type=linux # correct to gnu/linux during the next big refactor 6267 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6268 shlibpath_var=LD_LIBRARY_PATH 6269 shlibpath_overrides_runpath=yes 6270 ;; 6271 6272*nto* | *qnx*) 6273 version_type=qnx 6274 need_lib_prefix=no 6275 need_version=no 6276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6277 soname_spec='$libname$release$shared_ext$major' 6278 shlibpath_var=LD_LIBRARY_PATH 6279 shlibpath_overrides_runpath=no 6280 hardcode_into_libs=yes 6281 dynamic_linker='ldqnx.so' 6282 ;; 6283 6284openbsd* | bitrig*) 6285 version_type=sunos 6286 sys_lib_dlsearch_path_spec=/usr/lib 6287 need_lib_prefix=no 6288 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6289 need_version=no 6290 else 6291 need_version=yes 6292 fi 6293 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 6294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6295 shlibpath_var=LD_LIBRARY_PATH 6296 shlibpath_overrides_runpath=yes 6297 ;; 6298 6299os2*) 6300 libname_spec='$name' 6301 version_type=windows 6302 shrext_cmds=.dll 6303 need_version=no 6304 need_lib_prefix=no 6305 # OS/2 can only load a DLL with a base name of 8 characters or less. 6306 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 6307 v=$($ECHO $release$versuffix | tr -d .-); 6308 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 6309 $ECHO $n$v`$shared_ext' 6310 library_names_spec='${libname}_dll.$libext' 6311 dynamic_linker='OS/2 ld.exe' 6312 shlibpath_var=BEGINLIBPATH 6313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 6314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 6315 postinstall_cmds='base_file=`basename \$file`~ 6316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 6317 dldir=$destdir/`dirname \$dlpath`~ 6318 test -d \$dldir || mkdir -p \$dldir~ 6319 $install_prog $dir/$dlname \$dldir/$dlname~ 6320 chmod a+x \$dldir/$dlname~ 6321 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 6322 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 6323 fi' 6324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 6325 dlpath=$dir/\$dldll~ 6326 $RM \$dlpath' 6327 ;; 6328 6329osf3* | osf4* | osf5*) 6330 version_type=osf 6331 need_lib_prefix=no 6332 need_version=no 6333 soname_spec='$libname$release$shared_ext$major' 6334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6335 shlibpath_var=LD_LIBRARY_PATH 6336 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 6337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 6338 ;; 6339 6340rdos*) 6341 dynamic_linker=no 6342 ;; 6343 6344solaris*) 6345 version_type=linux # correct to gnu/linux during the next big refactor 6346 need_lib_prefix=no 6347 need_version=no 6348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6349 soname_spec='$libname$release$shared_ext$major' 6350 shlibpath_var=LD_LIBRARY_PATH 6351 shlibpath_overrides_runpath=yes 6352 hardcode_into_libs=yes 6353 # ldd complains unless libraries are executable 6354 postinstall_cmds='chmod +x $lib' 6355 ;; 6356 6357sunos4*) 6358 version_type=sunos 6359 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 6360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 6361 shlibpath_var=LD_LIBRARY_PATH 6362 shlibpath_overrides_runpath=yes 6363 if test yes = "$with_gnu_ld"; then 6364 need_lib_prefix=no 6365 fi 6366 need_version=yes 6367 ;; 6368 6369sysv4 | sysv4.3*) 6370 version_type=linux # correct to gnu/linux during the next big refactor 6371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6372 soname_spec='$libname$release$shared_ext$major' 6373 shlibpath_var=LD_LIBRARY_PATH 6374 case $host_vendor in 6375 sni) 6376 shlibpath_overrides_runpath=no 6377 need_lib_prefix=no 6378 runpath_var=LD_RUN_PATH 6379 ;; 6380 siemens) 6381 need_lib_prefix=no 6382 ;; 6383 motorola) 6384 need_lib_prefix=no 6385 need_version=no 6386 shlibpath_overrides_runpath=no 6387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 6388 ;; 6389 esac 6390 ;; 6391 6392sysv4*MP*) 6393 if test -d /usr/nec; then 6394 version_type=linux # correct to gnu/linux during the next big refactor 6395 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 6396 soname_spec='$libname$shared_ext.$major' 6397 shlibpath_var=LD_LIBRARY_PATH 6398 fi 6399 ;; 6400 6401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6402 version_type=sco 6403 need_lib_prefix=no 6404 need_version=no 6405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 6406 soname_spec='$libname$release$shared_ext$major' 6407 shlibpath_var=LD_LIBRARY_PATH 6408 shlibpath_overrides_runpath=yes 6409 hardcode_into_libs=yes 6410 if test yes = "$with_gnu_ld"; then 6411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 6412 else 6413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 6414 case $host_os in 6415 sco3.2v5*) 6416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 6417 ;; 6418 esac 6419 fi 6420 sys_lib_dlsearch_path_spec='/usr/lib' 6421 ;; 6422 6423tpf*) 6424 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 6425 version_type=linux # correct to gnu/linux during the next big refactor 6426 need_lib_prefix=no 6427 need_version=no 6428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6429 shlibpath_var=LD_LIBRARY_PATH 6430 shlibpath_overrides_runpath=no 6431 hardcode_into_libs=yes 6432 ;; 6433 6434uts4*) 6435 version_type=linux # correct to gnu/linux during the next big refactor 6436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 6437 soname_spec='$libname$release$shared_ext$major' 6438 shlibpath_var=LD_LIBRARY_PATH 6439 ;; 6440 6441*) 6442 dynamic_linker=no 6443 ;; 6444esac 6445AC_MSG_RESULT([$dynamic_linker]) 6446test no = "$dynamic_linker" && can_build_shared=no 6447 6448variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6449if test yes = "$GCC"; then 6450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6451fi 6452 6453if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 6454 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 6455fi 6456 6457if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 6458 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 6459fi 6460 6461# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 6462configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 6463 6464# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 6465func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 6466 6467# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 6468configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 6469 6470_LT_DECL([], [variables_saved_for_relink], [1], 6471 [Variables whose values should be saved in libtool wrapper scripts and 6472 restored at link time]) 6473_LT_DECL([], [need_lib_prefix], [0], 6474 [Do we need the "lib" prefix for modules?]) 6475_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 6476_LT_DECL([], [version_type], [0], [Library versioning type]) 6477_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 6478_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 6479_LT_DECL([], [shlibpath_overrides_runpath], [0], 6480 [Is shlibpath searched before the hard-coded library search path?]) 6481_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 6482_LT_DECL([], [library_names_spec], [1], 6483 [[List of archive names. First name is the real one, the rest are links. 6484 The last name is the one that the linker finds with -lNAME]]) 6485_LT_DECL([], [soname_spec], [1], 6486 [[The coded name of the library, if different from the real name]]) 6487_LT_DECL([], [install_override_mode], [1], 6488 [Permission mode override for installation of shared libraries]) 6489_LT_DECL([], [postinstall_cmds], [2], 6490 [Command to use after installation of a shared archive]) 6491_LT_DECL([], [postuninstall_cmds], [2], 6492 [Command to use after uninstallation of a shared archive]) 6493_LT_DECL([], [finish_cmds], [2], 6494 [Commands used to finish a libtool library installation in a directory]) 6495_LT_DECL([], [finish_eval], [1], 6496 [[As "finish_cmds", except a single script fragment to be evaled but 6497 not shown]]) 6498_LT_DECL([], [hardcode_into_libs], [0], 6499 [Whether we should hardcode library paths into libraries]) 6500_LT_DECL([], [sys_lib_search_path_spec], [2], 6501 [Compile-time system search path for libraries]) 6502_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 6503 [Detected run-time system search path for libraries]) 6504_LT_DECL([], [configure_time_lt_sys_library_path], [2], 6505 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 6506])# _LT_SYS_DYNAMIC_LINKER 6507 6508 6509# _LT_PATH_TOOL_PREFIX(TOOL) 6510# -------------------------- 6511# find a file program that can recognize shared library 6512AC_DEFUN([_LT_PATH_TOOL_PREFIX], 6513[m4_require([_LT_DECL_EGREP])dnl 6514AC_MSG_CHECKING([for $1]) 6515AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 6516[case $MAGIC_CMD in 6517[[\\/*] | ?:[\\/]*]) 6518 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 6519 ;; 6520*) 6521 lt_save_MAGIC_CMD=$MAGIC_CMD 6522 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6523dnl $ac_dummy forces splitting on constant user-supplied paths. 6524dnl POSIX.2 word splitting is done only on the output of word expansions, 6525dnl not every word. This closes a longstanding sh security hole. 6526 ac_dummy="m4_if([$2], , $PATH, [$2])" 6527 for ac_dir in $ac_dummy; do 6528 IFS=$lt_save_ifs 6529 test -z "$ac_dir" && ac_dir=. 6530 if test -f "$ac_dir/$1"; then 6531 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 6532 if test -n "$file_magic_test_file"; then 6533 case $deplibs_check_method in 6534 "file_magic "*) 6535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6536 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 6537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6538 $EGREP "$file_magic_regex" > /dev/null; then 6539 : 6540 else 6541 cat <<_LT_EOF 1>&2 6542 6543*** Warning: the command libtool uses to detect shared libraries, 6544*** $file_magic_cmd, produces output that libtool cannot recognize. 6545*** The result is that libtool may fail to recognize shared libraries 6546*** as such. This will affect the creation of libtool libraries that 6547*** depend on shared libraries, but programs linked with such libtool 6548*** libraries will work regardless of this problem. Nevertheless, you 6549*** may want to report the problem to your system manager and/or to 6550*** bug-libtool@gnu.org 6551 6552_LT_EOF 6553 fi ;; 6554 esac 6555 fi 6556 break 6557 fi 6558 done 6559 IFS=$lt_save_ifs 6560 MAGIC_CMD=$lt_save_MAGIC_CMD 6561 ;; 6562esac]) 6563MAGIC_CMD=$lt_cv_path_MAGIC_CMD 6564if test -n "$MAGIC_CMD"; then 6565 AC_MSG_RESULT($MAGIC_CMD) 6566else 6567 AC_MSG_RESULT(no) 6568fi 6569_LT_DECL([], [MAGIC_CMD], [0], 6570 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 6571])# _LT_PATH_TOOL_PREFIX 6572 6573# Old name: 6574AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 6575dnl aclocal-1.4 backwards compatibility: 6576dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 6577 6578 6579# _LT_PATH_MAGIC 6580# -------------- 6581# find a file program that can recognize a shared library 6582m4_defun([_LT_PATH_MAGIC], 6583[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 6584if test -z "$lt_cv_path_MAGIC_CMD"; then 6585 if test -n "$ac_tool_prefix"; then 6586 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 6587 else 6588 MAGIC_CMD=: 6589 fi 6590fi 6591])# _LT_PATH_MAGIC 6592 6593 6594# LT_PATH_LD 6595# ---------- 6596# find the pathname to the GNU or non-GNU linker 6597AC_DEFUN([LT_PATH_LD], 6598[AC_REQUIRE([AC_PROG_CC])dnl 6599AC_REQUIRE([AC_CANONICAL_HOST])dnl 6600AC_REQUIRE([AC_CANONICAL_BUILD])dnl 6601m4_require([_LT_DECL_SED])dnl 6602m4_require([_LT_DECL_EGREP])dnl 6603m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 6604 6605AC_ARG_WITH([gnu-ld], 6606 [AS_HELP_STRING([--with-gnu-ld], 6607 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 6608 [test no = "$withval" || with_gnu_ld=yes], 6609 [with_gnu_ld=no])dnl 6610 6611ac_prog=ld 6612if test yes = "$GCC"; then 6613 # Check if gcc -print-prog-name=ld gives a path. 6614 AC_MSG_CHECKING([for ld used by $CC]) 6615 case $host in 6616 *-*-mingw*) 6617 # gcc leaves a trailing carriage return, which upsets mingw 6618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6619 *) 6620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6621 esac 6622 case $ac_prog in 6623 # Accept absolute paths. 6624 [[\\/]]* | ?:[[\\/]]*) 6625 re_direlt='/[[^/]][[^/]]*/\.\./' 6626 # Canonicalize the pathname of ld 6627 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6628 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6629 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6630 done 6631 test -z "$LD" && LD=$ac_prog 6632 ;; 6633 "") 6634 # If it fails, then pretend we aren't using GCC. 6635 ac_prog=ld 6636 ;; 6637 *) 6638 # If it is relative, then search for the first ld in PATH. 6639 with_gnu_ld=unknown 6640 ;; 6641 esac 6642elif test yes = "$with_gnu_ld"; then 6643 AC_MSG_CHECKING([for GNU ld]) 6644else 6645 AC_MSG_CHECKING([for non-GNU ld]) 6646fi 6647AC_CACHE_VAL(lt_cv_path_LD, 6648[if test -z "$LD"; then 6649 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6650 for ac_dir in $PATH; do 6651 IFS=$lt_save_ifs 6652 test -z "$ac_dir" && ac_dir=. 6653 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6654 lt_cv_path_LD=$ac_dir/$ac_prog 6655 # Check to see if the program is GNU ld. I'd rather use --version, 6656 # but apparently some variants of GNU ld only accept -v. 6657 # Break only if it was the GNU/non-GNU ld that we prefer. 6658 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6659 *GNU* | *'with BFD'*) 6660 test no != "$with_gnu_ld" && break 6661 ;; 6662 *) 6663 test yes != "$with_gnu_ld" && break 6664 ;; 6665 esac 6666 fi 6667 done 6668 IFS=$lt_save_ifs 6669else 6670 lt_cv_path_LD=$LD # Let the user override the test with a path. 6671fi]) 6672LD=$lt_cv_path_LD 6673if test -n "$LD"; then 6674 AC_MSG_RESULT($LD) 6675else 6676 AC_MSG_RESULT(no) 6677fi 6678test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 6679_LT_PATH_LD_GNU 6680AC_SUBST([LD]) 6681 6682_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 6683])# LT_PATH_LD 6684 6685# Old names: 6686AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 6687AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 6688dnl aclocal-1.4 backwards compatibility: 6689dnl AC_DEFUN([AM_PROG_LD], []) 6690dnl AC_DEFUN([AC_PROG_LD], []) 6691 6692 6693# _LT_PATH_LD_GNU 6694#- -------------- 6695m4_defun([_LT_PATH_LD_GNU], 6696[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 6697[# I'd rather use --version here, but apparently some GNU lds only accept -v. 6698case `$LD -v 2>&1 </dev/null` in 6699*GNU* | *'with BFD'*) 6700 lt_cv_prog_gnu_ld=yes 6701 ;; 6702*) 6703 lt_cv_prog_gnu_ld=no 6704 ;; 6705esac]) 6706with_gnu_ld=$lt_cv_prog_gnu_ld 6707])# _LT_PATH_LD_GNU 6708 6709 6710# _LT_CMD_RELOAD 6711# -------------- 6712# find reload flag for linker 6713# -- PORTME Some linkers may need a different reload flag. 6714m4_defun([_LT_CMD_RELOAD], 6715[AC_CACHE_CHECK([for $LD option to reload object files], 6716 lt_cv_ld_reload_flag, 6717 [lt_cv_ld_reload_flag='-r']) 6718reload_flag=$lt_cv_ld_reload_flag 6719case $reload_flag in 6720"" | " "*) ;; 6721*) reload_flag=" $reload_flag" ;; 6722esac 6723reload_cmds='$LD$reload_flag -o $output$reload_objs' 6724case $host_os in 6725 cygwin* | mingw* | pw32* | cegcc*) 6726 if test yes != "$GCC"; then 6727 reload_cmds=false 6728 fi 6729 ;; 6730 darwin*) 6731 if test yes = "$GCC"; then 6732 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6733 else 6734 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6735 fi 6736 ;; 6737esac 6738_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 6739_LT_TAGDECL([], [reload_cmds], [2])dnl 6740])# _LT_CMD_RELOAD 6741 6742 6743# _LT_PATH_DD 6744# ----------- 6745# find a working dd 6746m4_defun([_LT_PATH_DD], 6747[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 6748[printf 0123456789abcdef0123456789abcdef >conftest.i 6749cat conftest.i conftest.i >conftest2.i 6750: ${lt_DD:=$DD} 6751AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 6752[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6753 cmp -s conftest.i conftest.out \ 6754 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6755fi]) 6756rm -f conftest.i conftest2.i conftest.out]) 6757])# _LT_PATH_DD 6758 6759 6760# _LT_CMD_TRUNCATE 6761# ---------------- 6762# find command to truncate a binary pipe 6763m4_defun([_LT_CMD_TRUNCATE], 6764[m4_require([_LT_PATH_DD]) 6765AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 6766[printf 0123456789abcdef0123456789abcdef >conftest.i 6767cat conftest.i conftest.i >conftest2.i 6768lt_cv_truncate_bin= 6769if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6770 cmp -s conftest.i conftest.out \ 6771 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6772fi 6773rm -f conftest.i conftest2.i conftest.out 6774test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 6775_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 6776 [Command to truncate a binary pipe]) 6777])# _LT_CMD_TRUNCATE 6778 6779 6780# _LT_CHECK_MAGIC_METHOD 6781# ---------------------- 6782# how to check for library dependencies 6783# -- PORTME fill in with the dynamic library characteristics 6784m4_defun([_LT_CHECK_MAGIC_METHOD], 6785[m4_require([_LT_DECL_EGREP]) 6786m4_require([_LT_DECL_OBJDUMP]) 6787AC_CACHE_CHECK([how to recognize dependent libraries], 6788lt_cv_deplibs_check_method, 6789[lt_cv_file_magic_cmd='$MAGIC_CMD' 6790lt_cv_file_magic_test_file= 6791lt_cv_deplibs_check_method='unknown' 6792# Need to set the preceding variable on all platforms that support 6793# interlibrary dependencies. 6794# 'none' -- dependencies not supported. 6795# 'unknown' -- same as none, but documents that we really don't know. 6796# 'pass_all' -- all dependencies passed with no checks. 6797# 'test_compile' -- check by making test program. 6798# 'file_magic [[regex]]' -- check by looking for files in library path 6799# that responds to the $file_magic_cmd with a given extended regex. 6800# If you have 'file' or equivalent on your system and you're not sure 6801# whether 'pass_all' will *always* work, you probably want this one. 6802 6803case $host_os in 6804aix[[4-9]]*) 6805 lt_cv_deplibs_check_method=pass_all 6806 ;; 6807 6808beos*) 6809 lt_cv_deplibs_check_method=pass_all 6810 ;; 6811 6812bsdi[[45]]*) 6813 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 6814 lt_cv_file_magic_cmd='$FILECMD -L' 6815 lt_cv_file_magic_test_file=/shlib/libc.so 6816 ;; 6817 6818cygwin*) 6819 # func_win32_libid is a shell function defined in ltmain.sh 6820 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6821 lt_cv_file_magic_cmd='func_win32_libid' 6822 ;; 6823 6824mingw* | pw32*) 6825 # Base MSYS/MinGW do not provide the 'file' command needed by 6826 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6827 # unless we find 'file', for example because we are cross-compiling. 6828 if ( file / ) >/dev/null 2>&1; then 6829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6830 lt_cv_file_magic_cmd='func_win32_libid' 6831 else 6832 # Keep this pattern in sync with the one in func_win32_libid. 6833 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6834 lt_cv_file_magic_cmd='$OBJDUMP -f' 6835 fi 6836 ;; 6837 6838cegcc*) 6839 # use the weaker test based on 'objdump'. See mingw*. 6840 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6841 lt_cv_file_magic_cmd='$OBJDUMP -f' 6842 ;; 6843 6844darwin* | rhapsody*) 6845 lt_cv_deplibs_check_method=pass_all 6846 ;; 6847 6848freebsd* | dragonfly* | midnightbsd*) 6849 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6850 case $host_cpu in 6851 i*86 ) 6852 # Not sure whether the presence of OpenBSD here was a mistake. 6853 # Let's accept both of them until this is cleared up. 6854 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 6855 lt_cv_file_magic_cmd=$FILECMD 6856 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6857 ;; 6858 esac 6859 else 6860 lt_cv_deplibs_check_method=pass_all 6861 fi 6862 ;; 6863 6864haiku*) 6865 lt_cv_deplibs_check_method=pass_all 6866 ;; 6867 6868hpux10.20* | hpux11*) 6869 lt_cv_file_magic_cmd=$FILECMD 6870 case $host_cpu in 6871 ia64*) 6872 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 6873 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6874 ;; 6875 hppa*64*) 6876 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] 6877 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6878 ;; 6879 *) 6880 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 6881 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6882 ;; 6883 esac 6884 ;; 6885 6886interix[[3-9]]*) 6887 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6888 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 6889 ;; 6890 6891irix5* | irix6* | nonstopux*) 6892 case $LD in 6893 *-32|*"-32 ") libmagic=32-bit;; 6894 *-n32|*"-n32 ") libmagic=N32;; 6895 *-64|*"-64 ") libmagic=64-bit;; 6896 *) libmagic=never-match;; 6897 esac 6898 lt_cv_deplibs_check_method=pass_all 6899 ;; 6900 6901# This must be glibc/ELF. 6902linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6903 lt_cv_deplibs_check_method=pass_all 6904 ;; 6905 6906netbsd*) 6907 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6908 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 6909 else 6910 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 6911 fi 6912 ;; 6913 6914newos6*) 6915 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 6916 lt_cv_file_magic_cmd=$FILECMD 6917 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6918 ;; 6919 6920*nto* | *qnx*) 6921 lt_cv_deplibs_check_method=pass_all 6922 ;; 6923 6924openbsd* | bitrig*) 6925 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6926 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 6927 else 6928 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 6929 fi 6930 ;; 6931 6932osf3* | osf4* | osf5*) 6933 lt_cv_deplibs_check_method=pass_all 6934 ;; 6935 6936rdos*) 6937 lt_cv_deplibs_check_method=pass_all 6938 ;; 6939 6940solaris*) 6941 lt_cv_deplibs_check_method=pass_all 6942 ;; 6943 6944sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6945 lt_cv_deplibs_check_method=pass_all 6946 ;; 6947 6948sysv4 | sysv4.3*) 6949 case $host_vendor in 6950 motorola) 6951 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]]' 6952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6953 ;; 6954 ncr) 6955 lt_cv_deplibs_check_method=pass_all 6956 ;; 6957 sequent) 6958 lt_cv_file_magic_cmd='/bin/file' 6959 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 6960 ;; 6961 sni) 6962 lt_cv_file_magic_cmd='/bin/file' 6963 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 6964 lt_cv_file_magic_test_file=/lib/libc.so 6965 ;; 6966 siemens) 6967 lt_cv_deplibs_check_method=pass_all 6968 ;; 6969 pc) 6970 lt_cv_deplibs_check_method=pass_all 6971 ;; 6972 esac 6973 ;; 6974 6975tpf*) 6976 lt_cv_deplibs_check_method=pass_all 6977 ;; 6978os2*) 6979 lt_cv_deplibs_check_method=pass_all 6980 ;; 6981esac 6982]) 6983 6984file_magic_glob= 6985want_nocaseglob=no 6986if test "$build" = "$host"; then 6987 case $host_os in 6988 mingw* | pw32*) 6989 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6990 want_nocaseglob=yes 6991 else 6992 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 6993 fi 6994 ;; 6995 esac 6996fi 6997 6998file_magic_cmd=$lt_cv_file_magic_cmd 6999deplibs_check_method=$lt_cv_deplibs_check_method 7000test -z "$deplibs_check_method" && deplibs_check_method=unknown 7001 7002_LT_DECL([], [deplibs_check_method], [1], 7003 [Method to check whether dependent libraries are shared objects]) 7004_LT_DECL([], [file_magic_cmd], [1], 7005 [Command to use when deplibs_check_method = "file_magic"]) 7006_LT_DECL([], [file_magic_glob], [1], 7007 [How to find potential files when deplibs_check_method = "file_magic"]) 7008_LT_DECL([], [want_nocaseglob], [1], 7009 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 7010])# _LT_CHECK_MAGIC_METHOD 7011 7012 7013# LT_PATH_NM 7014# ---------- 7015# find the pathname to a BSD- or MS-compatible name lister 7016AC_DEFUN([LT_PATH_NM], 7017[AC_REQUIRE([AC_PROG_CC])dnl 7018AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 7019[if test -n "$NM"; then 7020 # Let the user override the test. 7021 lt_cv_path_NM=$NM 7022else 7023 lt_nm_to_check=${ac_tool_prefix}nm 7024 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7025 lt_nm_to_check="$lt_nm_to_check nm" 7026 fi 7027 for lt_tmp_nm in $lt_nm_to_check; do 7028 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7029 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7030 IFS=$lt_save_ifs 7031 test -z "$ac_dir" && ac_dir=. 7032 tmp_nm=$ac_dir/$lt_tmp_nm 7033 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7034 # Check to see if the nm accepts a BSD-compat flag. 7035 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7036 # nm: unknown option "B" ignored 7037 # Tru64's nm complains that /dev/null is an invalid object file 7038 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7039 case $build_os in 7040 mingw*) lt_bad_file=conftest.nm/nofile ;; 7041 *) lt_bad_file=/dev/null ;; 7042 esac 7043 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 7044 *$lt_bad_file* | *'Invalid file or object type'*) 7045 lt_cv_path_NM="$tmp_nm -B" 7046 break 2 7047 ;; 7048 *) 7049 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 7050 */dev/null*) 7051 lt_cv_path_NM="$tmp_nm -p" 7052 break 2 7053 ;; 7054 *) 7055 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7056 continue # so that we can try to find one that supports BSD flags 7057 ;; 7058 esac 7059 ;; 7060 esac 7061 fi 7062 done 7063 IFS=$lt_save_ifs 7064 done 7065 : ${lt_cv_path_NM=no} 7066fi]) 7067if test no != "$lt_cv_path_NM"; then 7068 NM=$lt_cv_path_NM 7069else 7070 # Didn't find any BSD compatible name lister, look for dumpbin. 7071 if test -n "$DUMPBIN"; then : 7072 # Let the user override the test. 7073 else 7074 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 7075 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 7076 *COFF*) 7077 DUMPBIN="$DUMPBIN -symbols -headers" 7078 ;; 7079 *) 7080 DUMPBIN=: 7081 ;; 7082 esac 7083 fi 7084 AC_SUBST([DUMPBIN]) 7085 if test : != "$DUMPBIN"; then 7086 NM=$DUMPBIN 7087 fi 7088fi 7089test -z "$NM" && NM=nm 7090AC_SUBST([NM]) 7091_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 7092 7093AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 7094 [lt_cv_nm_interface="BSD nm" 7095 echo "int some_variable = 0;" > conftest.$ac_ext 7096 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 7097 (eval "$ac_compile" 2>conftest.err) 7098 cat conftest.err >&AS_MESSAGE_LOG_FD 7099 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 7100 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7101 cat conftest.err >&AS_MESSAGE_LOG_FD 7102 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 7103 cat conftest.out >&AS_MESSAGE_LOG_FD 7104 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7105 lt_cv_nm_interface="MS dumpbin" 7106 fi 7107 rm -f conftest*]) 7108])# LT_PATH_NM 7109 7110# Old names: 7111AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 7112AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 7113dnl aclocal-1.4 backwards compatibility: 7114dnl AC_DEFUN([AM_PROG_NM], []) 7115dnl AC_DEFUN([AC_PROG_NM], []) 7116 7117# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 7118# -------------------------------- 7119# how to determine the name of the shared library 7120# associated with a specific link library. 7121# -- PORTME fill in with the dynamic library characteristics 7122m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 7123[m4_require([_LT_DECL_EGREP]) 7124m4_require([_LT_DECL_OBJDUMP]) 7125m4_require([_LT_DECL_DLLTOOL]) 7126AC_CACHE_CHECK([how to associate runtime and link libraries], 7127lt_cv_sharedlib_from_linklib_cmd, 7128[lt_cv_sharedlib_from_linklib_cmd='unknown' 7129 7130case $host_os in 7131cygwin* | mingw* | pw32* | cegcc*) 7132 # two different shell functions defined in ltmain.sh; 7133 # decide which one to use based on capabilities of $DLLTOOL 7134 case `$DLLTOOL --help 2>&1` in 7135 *--identify-strict*) 7136 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7137 ;; 7138 *) 7139 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7140 ;; 7141 esac 7142 ;; 7143*) 7144 # fallback: assume linklib IS sharedlib 7145 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7146 ;; 7147esac 7148]) 7149sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7150test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7151 7152_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 7153 [Command to associate shared and link libraries]) 7154])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 7155 7156 7157# _LT_PATH_MANIFEST_TOOL 7158# ---------------------- 7159# locate the manifest tool 7160m4_defun([_LT_PATH_MANIFEST_TOOL], 7161[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 7162test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7163AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 7164 [lt_cv_path_mainfest_tool=no 7165 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 7166 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7167 cat conftest.err >&AS_MESSAGE_LOG_FD 7168 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7169 lt_cv_path_mainfest_tool=yes 7170 fi 7171 rm -f conftest*]) 7172if test yes != "$lt_cv_path_mainfest_tool"; then 7173 MANIFEST_TOOL=: 7174fi 7175_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 7176])# _LT_PATH_MANIFEST_TOOL 7177 7178 7179# _LT_DLL_DEF_P([FILE]) 7180# --------------------- 7181# True iff FILE is a Windows DLL '.def' file. 7182# Keep in sync with func_dll_def_p in the libtool script 7183AC_DEFUN([_LT_DLL_DEF_P], 7184[dnl 7185 test DEF = "`$SED -n dnl 7186 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 7187 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 7188 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 7189 -e q dnl Only consider the first "real" line 7190 $1`" dnl 7191])# _LT_DLL_DEF_P 7192 7193 7194# LT_LIB_M 7195# -------- 7196# check for math library 7197AC_DEFUN([LT_LIB_M], 7198[AC_REQUIRE([AC_CANONICAL_HOST])dnl 7199LIBM= 7200case $host in 7201*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 7202 # These system don't have libm, or don't need it 7203 ;; 7204*-ncr-sysv4.3*) 7205 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 7206 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 7207 ;; 7208*) 7209 AC_CHECK_LIB(m, cos, LIBM=-lm) 7210 ;; 7211esac 7212AC_SUBST([LIBM]) 7213])# LT_LIB_M 7214 7215# Old name: 7216AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 7217dnl aclocal-1.4 backwards compatibility: 7218dnl AC_DEFUN([AC_CHECK_LIBM], []) 7219 7220 7221# _LT_COMPILER_NO_RTTI([TAGNAME]) 7222# ------------------------------- 7223m4_defun([_LT_COMPILER_NO_RTTI], 7224[m4_require([_LT_TAG_COMPILER])dnl 7225 7226_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7227 7228if test yes = "$GCC"; then 7229 case $cc_basename in 7230 nvcc*) 7231 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 7232 *) 7233 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 7234 esac 7235 7236 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 7237 lt_cv_prog_compiler_rtti_exceptions, 7238 [-fno-rtti -fno-exceptions], [], 7239 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 7240fi 7241_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 7242 [Compiler flag to turn off builtin functions]) 7243])# _LT_COMPILER_NO_RTTI 7244 7245 7246# _LT_CMD_GLOBAL_SYMBOLS 7247# ---------------------- 7248m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 7249[AC_REQUIRE([AC_CANONICAL_HOST])dnl 7250AC_REQUIRE([AC_PROG_CC])dnl 7251AC_REQUIRE([AC_PROG_AWK])dnl 7252AC_REQUIRE([LT_PATH_NM])dnl 7253AC_REQUIRE([LT_PATH_LD])dnl 7254m4_require([_LT_DECL_SED])dnl 7255m4_require([_LT_DECL_EGREP])dnl 7256m4_require([_LT_TAG_COMPILER])dnl 7257 7258# Check for command to grab the raw symbol name followed by C symbol from nm. 7259AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 7260AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 7261[ 7262# These are sane defaults that work on at least a few old systems. 7263# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7264 7265# Character class describing NM global symbol codes. 7266symcode='[[BCDEGRST]]' 7267 7268# Regexp to match symbols that can be accessed directly from C. 7269sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 7270 7271# Define system-specific variables. 7272case $host_os in 7273aix*) 7274 symcode='[[BCDT]]' 7275 ;; 7276cygwin* | mingw* | pw32* | cegcc*) 7277 symcode='[[ABCDGISTW]]' 7278 ;; 7279hpux*) 7280 if test ia64 = "$host_cpu"; then 7281 symcode='[[ABCDEGRST]]' 7282 fi 7283 ;; 7284irix* | nonstopux*) 7285 symcode='[[BCDEGRST]]' 7286 ;; 7287osf*) 7288 symcode='[[BCDEGQRST]]' 7289 ;; 7290solaris*) 7291 symcode='[[BDRT]]' 7292 ;; 7293sco3.2v5*) 7294 symcode='[[DT]]' 7295 ;; 7296sysv4.2uw2*) 7297 symcode='[[DT]]' 7298 ;; 7299sysv5* | sco5v6* | unixware* | OpenUNIX*) 7300 symcode='[[ABDT]]' 7301 ;; 7302sysv4) 7303 symcode='[[DFNSTU]]' 7304 ;; 7305esac 7306 7307# If we're using GNU nm, then use its standard symbol codes. 7308case `$NM -V 2>&1` in 7309*GNU* | *'with BFD'*) 7310 symcode='[[ABCDGIRSTW]]' ;; 7311esac 7312 7313if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7314 # Gets list of data symbols to import. 7315 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7316 # Adjust the below global symbol transforms to fixup imported variables. 7317 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7318 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7319 lt_c_name_lib_hook="\ 7320 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7321 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7322else 7323 # Disable hooks by default. 7324 lt_cv_sys_global_symbol_to_import= 7325 lt_cdecl_hook= 7326 lt_c_name_hook= 7327 lt_c_name_lib_hook= 7328fi 7329 7330# Transform an extracted symbol line into a proper C declaration. 7331# Some systems (esp. on ia64) link data and code symbols differently, 7332# so use this general approach. 7333lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7334$lt_cdecl_hook\ 7335" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7336" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7337 7338# Transform an extracted symbol line into symbol name and symbol address 7339lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7340$lt_c_name_hook\ 7341" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7342" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7343 7344# Transform an extracted symbol line into symbol name with lib prefix and 7345# symbol address. 7346lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7347$lt_c_name_lib_hook\ 7348" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7349" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7350" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7351 7352# Handle CRLF in mingw tool chain 7353opt_cr= 7354case $build_os in 7355mingw*) 7356 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7357 ;; 7358esac 7359 7360# Try without a prefix underscore, then with it. 7361for ac_symprfx in "" "_"; do 7362 7363 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7364 symxfrm="\\1 $ac_symprfx\\2 \\2" 7365 7366 # Write the raw and C identifiers. 7367 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7368 # Fake it for dumpbin and say T for any non-static function, 7369 # D for any global variable and I for any imported variable. 7370 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7371 # which start with @ or ?. 7372 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 7373" {last_section=section; section=\$ 3};"\ 7374" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7375" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7376" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7377" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7378" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7379" \$ 0!~/External *\|/{next};"\ 7380" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7381" {if(hide[section]) next};"\ 7382" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7383" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7384" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7385" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7386" ' prfx=^$ac_symprfx]" 7387 else 7388 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7389 fi 7390 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7391 7392 # Check to see that the pipe works correctly. 7393 pipe_works=no 7394 7395 rm -f conftest* 7396 cat > conftest.$ac_ext <<_LT_EOF 7397#ifdef __cplusplus 7398extern "C" { 7399#endif 7400char nm_test_var; 7401void nm_test_func(void); 7402void nm_test_func(void){} 7403#ifdef __cplusplus 7404} 7405#endif 7406int main(){nm_test_var='a';nm_test_func();return(0);} 7407_LT_EOF 7408 7409 if AC_TRY_EVAL(ac_compile); then 7410 # Now try to grab the symbols. 7411 nlist=conftest.nm 7412 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 7413 # Try sorting and uniquifying the output. 7414 if sort "$nlist" | uniq > "$nlist"T; then 7415 mv -f "$nlist"T "$nlist" 7416 else 7417 rm -f "$nlist"T 7418 fi 7419 7420 # Make sure that we snagged all the symbols we need. 7421 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7422 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7423 cat <<_LT_EOF > conftest.$ac_ext 7424/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7425#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7426/* DATA imports from DLLs on WIN32 can't be const, because runtime 7427 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7428# define LT@&t@_DLSYM_CONST 7429#elif defined __osf__ 7430/* This system does not cope well with relocations in const data. */ 7431# define LT@&t@_DLSYM_CONST 7432#else 7433# define LT@&t@_DLSYM_CONST const 7434#endif 7435 7436#ifdef __cplusplus 7437extern "C" { 7438#endif 7439 7440_LT_EOF 7441 # Now generate the symbol file. 7442 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7443 7444 cat <<_LT_EOF >> conftest.$ac_ext 7445 7446/* The mapping between symbol names and symbols. */ 7447LT@&t@_DLSYM_CONST struct { 7448 const char *name; 7449 void *address; 7450} 7451lt__PROGRAM__LTX_preloaded_symbols[[]] = 7452{ 7453 { "@PROGRAM@", (void *) 0 }, 7454_LT_EOF 7455 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7456 cat <<\_LT_EOF >> conftest.$ac_ext 7457 {0, (void *) 0} 7458}; 7459 7460/* This works around a problem in FreeBSD linker */ 7461#ifdef FREEBSD_WORKAROUND 7462static const void *lt_preloaded_setup() { 7463 return lt__PROGRAM__LTX_preloaded_symbols; 7464} 7465#endif 7466 7467#ifdef __cplusplus 7468} 7469#endif 7470_LT_EOF 7471 # Now try linking the two files. 7472 mv conftest.$ac_objext conftstm.$ac_objext 7473 lt_globsym_save_LIBS=$LIBS 7474 lt_globsym_save_CFLAGS=$CFLAGS 7475 LIBS=conftstm.$ac_objext 7476 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 7477 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 7478 pipe_works=yes 7479 fi 7480 LIBS=$lt_globsym_save_LIBS 7481 CFLAGS=$lt_globsym_save_CFLAGS 7482 else 7483 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 7484 fi 7485 else 7486 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 7487 fi 7488 else 7489 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 7490 fi 7491 else 7492 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 7493 cat conftest.$ac_ext >&5 7494 fi 7495 rm -rf conftest* conftst* 7496 7497 # Do not use the global_symbol_pipe unless it works. 7498 if test yes = "$pipe_works"; then 7499 break 7500 else 7501 lt_cv_sys_global_symbol_pipe= 7502 fi 7503done 7504]) 7505if test -z "$lt_cv_sys_global_symbol_pipe"; then 7506 lt_cv_sys_global_symbol_to_cdecl= 7507fi 7508if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7509 AC_MSG_RESULT(failed) 7510else 7511 AC_MSG_RESULT(ok) 7512fi 7513 7514# Response file support. 7515if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7516 nm_file_list_spec='@' 7517elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 7518 nm_file_list_spec='@' 7519fi 7520 7521_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 7522 [Take the output of nm and produce a listing of raw symbols and C names]) 7523_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 7524 [Transform the output of nm in a proper C declaration]) 7525_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 7526 [Transform the output of nm into a list of symbols to manually relocate]) 7527_LT_DECL([global_symbol_to_c_name_address], 7528 [lt_cv_sys_global_symbol_to_c_name_address], [1], 7529 [Transform the output of nm in a C name address pair]) 7530_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 7531 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 7532 [Transform the output of nm in a C name address pair when lib prefix is needed]) 7533_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 7534 [The name lister interface]) 7535_LT_DECL([], [nm_file_list_spec], [1], 7536 [Specify filename containing input files for $NM]) 7537]) # _LT_CMD_GLOBAL_SYMBOLS 7538 7539 7540# _LT_COMPILER_PIC([TAGNAME]) 7541# --------------------------- 7542m4_defun([_LT_COMPILER_PIC], 7543[m4_require([_LT_TAG_COMPILER])dnl 7544_LT_TAGVAR(lt_prog_compiler_wl, $1)= 7545_LT_TAGVAR(lt_prog_compiler_pic, $1)= 7546_LT_TAGVAR(lt_prog_compiler_static, $1)= 7547 7548m4_if([$1], [CXX], [ 7549 # C++ specific cases for pic, static, wl, etc. 7550 if test yes = "$GXX"; then 7551 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7552 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7553 7554 case $host_os in 7555 aix*) 7556 # All AIX code is PIC. 7557 if test ia64 = "$host_cpu"; then 7558 # AIX 5 now supports IA64 processor 7559 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7560 fi 7561 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7562 ;; 7563 7564 amigaos*) 7565 case $host_cpu in 7566 powerpc) 7567 # see comment about AmigaOS4 .so support 7568 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7569 ;; 7570 m68k) 7571 # FIXME: we need at least 68020 code to build shared libraries, but 7572 # adding the '-m68020' flag to GCC prevents building anything better, 7573 # like '-m68040'. 7574 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 7575 ;; 7576 esac 7577 ;; 7578 7579 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7580 # PIC is the default for these OSes. 7581 ;; 7582 mingw* | cygwin* | os2* | pw32* | cegcc*) 7583 # This hack is so that the source file can tell whether it is being 7584 # built for inclusion in a dll (and should export symbols for example). 7585 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7586 # (--disable-auto-import) libraries 7587 m4_if([$1], [GCJ], [], 7588 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 7589 case $host_os in 7590 os2*) 7591 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 7592 ;; 7593 esac 7594 ;; 7595 darwin* | rhapsody*) 7596 # PIC is the default on this platform 7597 # Common symbols not allowed in MH_DYLIB files 7598 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 7599 ;; 7600 *djgpp*) 7601 # DJGPP does not support shared libraries at all 7602 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 7603 ;; 7604 haiku*) 7605 # PIC is the default for Haiku. 7606 # The "-static" flag exists, but is broken. 7607 _LT_TAGVAR(lt_prog_compiler_static, $1)= 7608 ;; 7609 interix[[3-9]]*) 7610 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7611 # Instead, we relocate shared libraries at runtime. 7612 ;; 7613 sysv4*MP*) 7614 if test -d /usr/nec; then 7615 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 7616 fi 7617 ;; 7618 hpux*) 7619 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7620 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7621 # sets the default TLS model and affects inlining. 7622 case $host_cpu in 7623 hppa*64*) 7624 ;; 7625 *) 7626 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7627 ;; 7628 esac 7629 ;; 7630 *qnx* | *nto*) 7631 # QNX uses GNU C++, but need to define -shared option too, otherwise 7632 # it will coredump. 7633 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 7634 ;; 7635 *) 7636 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7637 ;; 7638 esac 7639 else 7640 case $host_os in 7641 aix[[4-9]]*) 7642 # All AIX code is PIC. 7643 if test ia64 = "$host_cpu"; then 7644 # AIX 5 now supports IA64 processor 7645 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7646 else 7647 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 7648 fi 7649 ;; 7650 chorus*) 7651 case $cc_basename in 7652 cxch68*) 7653 # Green Hills C++ Compiler 7654 # _LT_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" 7655 ;; 7656 esac 7657 ;; 7658 mingw* | cygwin* | os2* | pw32* | cegcc*) 7659 # This hack is so that the source file can tell whether it is being 7660 # built for inclusion in a dll (and should export symbols for example). 7661 m4_if([$1], [GCJ], [], 7662 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 7663 ;; 7664 dgux*) 7665 case $cc_basename in 7666 ec++*) 7667 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7668 ;; 7669 ghcx*) 7670 # Green Hills C++ Compiler 7671 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7672 ;; 7673 *) 7674 ;; 7675 esac 7676 ;; 7677 freebsd* | dragonfly* | midnightbsd*) 7678 # FreeBSD uses GNU C++ 7679 ;; 7680 hpux9* | hpux10* | hpux11*) 7681 case $cc_basename in 7682 CC*) 7683 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7684 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 7685 if test ia64 != "$host_cpu"; then 7686 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 7687 fi 7688 ;; 7689 aCC*) 7690 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7691 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 7692 case $host_cpu in 7693 hppa*64*|ia64*) 7694 # +Z the default 7695 ;; 7696 *) 7697 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 7698 ;; 7699 esac 7700 ;; 7701 *) 7702 ;; 7703 esac 7704 ;; 7705 interix*) 7706 # This is c89, which is MS Visual C++ (no shared libs) 7707 # Anyone wants to do a port? 7708 ;; 7709 irix5* | irix6* | nonstopux*) 7710 case $cc_basename in 7711 CC*) 7712 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7713 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7714 # CC pic flag -KPIC is the default. 7715 ;; 7716 *) 7717 ;; 7718 esac 7719 ;; 7720 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7721 case $cc_basename in 7722 KCC*) 7723 # KAI C++ Compiler 7724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 7725 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7726 ;; 7727 ecpc* ) 7728 # old Intel C++ for x86_64, which still supported -KPIC. 7729 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7730 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7731 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7732 ;; 7733 icpc* ) 7734 # Intel C++, used to be incompatible with GCC. 7735 # ICC 10 doesn't accept -KPIC any more. 7736 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7737 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7738 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7739 ;; 7740 pgCC* | pgcpp*) 7741 # Portland Group C++ compiler 7742 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7743 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 7744 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7745 ;; 7746 cxx*) 7747 # Compaq C++ 7748 # Make sure the PIC flag is empty. It appears that all Alpha 7749 # Linux and Compaq Tru64 Unix objects are PIC. 7750 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 7751 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7752 ;; 7753 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 7754 # IBM XL 8.0, 9.0 on PPC and BlueGene 7755 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7756 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 7757 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 7758 ;; 7759 *) 7760 case `$CC -V 2>&1 | $SED 5q` in 7761 *Sun\ C*) 7762 # Sun C++ 5.9 7763 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7764 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7765 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 7766 ;; 7767 esac 7768 ;; 7769 esac 7770 ;; 7771 lynxos*) 7772 ;; 7773 m88k*) 7774 ;; 7775 mvs*) 7776 case $cc_basename in 7777 cxx*) 7778 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 7779 ;; 7780 *) 7781 ;; 7782 esac 7783 ;; 7784 netbsd*) 7785 ;; 7786 *qnx* | *nto*) 7787 # QNX uses GNU C++, but need to define -shared option too, otherwise 7788 # it will coredump. 7789 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 7790 ;; 7791 osf3* | osf4* | osf5*) 7792 case $cc_basename in 7793 KCC*) 7794 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 7795 ;; 7796 RCC*) 7797 # Rational C++ 2.4.1 7798 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7799 ;; 7800 cxx*) 7801 # Digital/Compaq C++ 7802 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7803 # Make sure the PIC flag is empty. It appears that all Alpha 7804 # Linux and Compaq Tru64 Unix objects are PIC. 7805 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 7806 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 7807 ;; 7808 *) 7809 ;; 7810 esac 7811 ;; 7812 psos*) 7813 ;; 7814 solaris*) 7815 case $cc_basename in 7816 CC* | sunCC*) 7817 # Sun C++ 4.2, 5.x and Centerline C++ 7818 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7819 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7820 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 7821 ;; 7822 gcx*) 7823 # Green Hills C++ Compiler 7824 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 7825 ;; 7826 *) 7827 ;; 7828 esac 7829 ;; 7830 sunos4*) 7831 case $cc_basename in 7832 CC*) 7833 # Sun C++ 4.x 7834 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7835 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7836 ;; 7837 lcc*) 7838 # Lucid 7839 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 7840 ;; 7841 *) 7842 ;; 7843 esac 7844 ;; 7845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7846 case $cc_basename in 7847 CC*) 7848 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7849 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7850 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7851 ;; 7852 esac 7853 ;; 7854 tandem*) 7855 case $cc_basename in 7856 NCC*) 7857 # NonStop-UX NCC 3.20 7858 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 7859 ;; 7860 *) 7861 ;; 7862 esac 7863 ;; 7864 vxworks*) 7865 ;; 7866 *) 7867 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 7868 ;; 7869 esac 7870 fi 7871], 7872[ 7873 if test yes = "$GCC"; then 7874 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7875 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 7876 7877 case $host_os in 7878 aix*) 7879 # All AIX code is PIC. 7880 if test ia64 = "$host_cpu"; then 7881 # AIX 5 now supports IA64 processor 7882 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7883 fi 7884 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7885 ;; 7886 7887 amigaos*) 7888 case $host_cpu in 7889 powerpc) 7890 # see comment about AmigaOS4 .so support 7891 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7892 ;; 7893 m68k) 7894 # FIXME: we need at least 68020 code to build shared libraries, but 7895 # adding the '-m68020' flag to GCC prevents building anything better, 7896 # like '-m68040'. 7897 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 7898 ;; 7899 esac 7900 ;; 7901 7902 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7903 # PIC is the default for these OSes. 7904 ;; 7905 7906 mingw* | cygwin* | pw32* | os2* | cegcc*) 7907 # This hack is so that the source file can tell whether it is being 7908 # built for inclusion in a dll (and should export symbols for example). 7909 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7910 # (--disable-auto-import) libraries 7911 m4_if([$1], [GCJ], [], 7912 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 7913 case $host_os in 7914 os2*) 7915 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 7916 ;; 7917 esac 7918 ;; 7919 7920 darwin* | rhapsody*) 7921 # PIC is the default on this platform 7922 # Common symbols not allowed in MH_DYLIB files 7923 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 7924 ;; 7925 7926 haiku*) 7927 # PIC is the default for Haiku. 7928 # The "-static" flag exists, but is broken. 7929 _LT_TAGVAR(lt_prog_compiler_static, $1)= 7930 ;; 7931 7932 hpux*) 7933 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7934 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7935 # sets the default TLS model and affects inlining. 7936 case $host_cpu in 7937 hppa*64*) 7938 # +Z the default 7939 ;; 7940 *) 7941 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7942 ;; 7943 esac 7944 ;; 7945 7946 interix[[3-9]]*) 7947 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7948 # Instead, we relocate shared libraries at runtime. 7949 ;; 7950 7951 msdosdjgpp*) 7952 # Just because we use GCC doesn't mean we suddenly get shared libraries 7953 # on systems that don't support them. 7954 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 7955 enable_shared=no 7956 ;; 7957 7958 *nto* | *qnx*) 7959 # QNX uses GNU C++, but need to define -shared option too, otherwise 7960 # it will coredump. 7961 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 7962 ;; 7963 7964 sysv4*MP*) 7965 if test -d /usr/nec; then 7966 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 7967 fi 7968 ;; 7969 7970 *) 7971 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 7972 ;; 7973 esac 7974 7975 case $cc_basename in 7976 nvcc*) # Cuda Compiler Driver 2.2 7977 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 7978 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 7979 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 7980 fi 7981 ;; 7982 esac 7983 else 7984 # PORTME Check for flag to pass linker flags through the system compiler. 7985 case $host_os in 7986 aix*) 7987 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 7988 if test ia64 = "$host_cpu"; then 7989 # AIX 5 now supports IA64 processor 7990 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 7991 else 7992 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 7993 fi 7994 ;; 7995 7996 darwin* | rhapsody*) 7997 # PIC is the default on this platform 7998 # Common symbols not allowed in MH_DYLIB files 7999 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 8000 case $cc_basename in 8001 nagfor*) 8002 # NAG Fortran compiler 8003 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 8004 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 8005 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8006 ;; 8007 esac 8008 ;; 8009 8010 mingw* | cygwin* | pw32* | os2* | cegcc*) 8011 # This hack is so that the source file can tell whether it is being 8012 # built for inclusion in a dll (and should export symbols for example). 8013 m4_if([$1], [GCJ], [], 8014 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 8015 case $host_os in 8016 os2*) 8017 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 8018 ;; 8019 esac 8020 ;; 8021 8022 hpux9* | hpux10* | hpux11*) 8023 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8025 # not for PA HP-UX. 8026 case $host_cpu in 8027 hppa*64*|ia64*) 8028 # +Z the default 8029 ;; 8030 *) 8031 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 8032 ;; 8033 esac 8034 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8035 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 8036 ;; 8037 8038 irix5* | irix6* | nonstopux*) 8039 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8040 # PIC (with -KPIC) is the default. 8041 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 8042 ;; 8043 8044 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8045 case $cc_basename in 8046 # old Intel for x86_64, which still supported -KPIC. 8047 ecc*) 8048 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8049 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8050 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 8051 ;; 8052 # icc used to be incompatible with GCC. 8053 # ICC 10 doesn't accept -KPIC any more. 8054 icc* | ifort*) 8055 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 8057 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 8058 ;; 8059 # Lahey Fortran 8.1. 8060 lf95*) 8061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8062 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 8063 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 8064 ;; 8065 nagfor*) 8066 # NAG Fortran compiler 8067 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 8068 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 8069 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8070 ;; 8071 tcc*) 8072 # Fabrice Bellard et al's Tiny C Compiler 8073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8074 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 8075 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 8076 ;; 8077 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8078 # Portland Group compilers (*not* the Pentium gcc compiler, 8079 # which looks to be a dead project) 8080 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8081 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 8082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8083 ;; 8084 ccc*) 8085 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8086 # All Alpha code is PIC. 8087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 8088 ;; 8089 xl* | bgxl* | bgf* | mpixl*) 8090 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8091 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8092 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 8093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 8094 ;; 8095 *) 8096 case `$CC -V 2>&1 | $SED 5q` in 8097 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 8098 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8099 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8100 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8101 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 8102 ;; 8103 *Sun\ F* | *Sun*Fortran*) 8104 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8105 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8106 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 8107 ;; 8108 *Sun\ C*) 8109 # Sun C 5.9 8110 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8111 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8112 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8113 ;; 8114 *Intel*\ [[CF]]*Compiler*) 8115 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8116 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 8117 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 8118 ;; 8119 *Portland\ Group*) 8120 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8121 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 8122 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8123 ;; 8124 esac 8125 ;; 8126 esac 8127 ;; 8128 8129 newsos6) 8130 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8131 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8132 ;; 8133 8134 *nto* | *qnx*) 8135 # QNX uses GNU C++, but need to define -shared option too, otherwise 8136 # it will coredump. 8137 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 8138 ;; 8139 8140 osf3* | osf4* | osf5*) 8141 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8142 # All OSF/1 code is PIC. 8143 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 8144 ;; 8145 8146 rdos*) 8147 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 8148 ;; 8149 8150 solaris*) 8151 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8152 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8153 case $cc_basename in 8154 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8155 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 8156 *) 8157 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 8158 esac 8159 ;; 8160 8161 sunos4*) 8162 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 8163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 8164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8165 ;; 8166 8167 sysv4 | sysv4.2uw2* | sysv4.3*) 8168 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8169 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8170 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8171 ;; 8172 8173 sysv4*MP*) 8174 if test -d /usr/nec; then 8175 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 8176 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8177 fi 8178 ;; 8179 8180 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8181 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8182 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 8183 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8184 ;; 8185 8186 unicos*) 8187 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 8188 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 8189 ;; 8190 8191 uts4*) 8192 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 8193 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 8194 ;; 8195 8196 *) 8197 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 8198 ;; 8199 esac 8200 fi 8201]) 8202case $host_os in 8203 # For platforms that do not support PIC, -DPIC is meaningless: 8204 *djgpp*) 8205 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 8206 ;; 8207 *) 8208 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 8209 ;; 8210esac 8211 8212AC_CACHE_CHECK([for $compiler option to produce PIC], 8213 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 8214 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 8215_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 8216 8217# 8218# Check to make sure the PIC flag actually works. 8219# 8220if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 8221 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 8222 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 8223 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 8224 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 8225 "" | " "*) ;; 8226 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 8227 esac], 8228 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 8229 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 8230fi 8231_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 8232 [Additional compiler flags for building library objects]) 8233 8234_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 8235 [How to pass a linker flag through the compiler]) 8236# 8237# Check to make sure the static flag actually works. 8238# 8239wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 8240_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 8241 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 8242 $lt_tmp_static_flag, 8243 [], 8244 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 8245_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 8246 [Compiler flag to prevent dynamic linking]) 8247])# _LT_COMPILER_PIC 8248 8249 8250# _LT_LINKER_SHLIBS([TAGNAME]) 8251# ---------------------------- 8252# See if the linker supports building shared libraries. 8253m4_defun([_LT_LINKER_SHLIBS], 8254[AC_REQUIRE([LT_PATH_LD])dnl 8255AC_REQUIRE([LT_PATH_NM])dnl 8256m4_require([_LT_PATH_MANIFEST_TOOL])dnl 8257m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8258m4_require([_LT_DECL_EGREP])dnl 8259m4_require([_LT_DECL_SED])dnl 8260m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 8261m4_require([_LT_TAG_COMPILER])dnl 8262AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 8263m4_if([$1], [CXX], [ 8264 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8265 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 8266 case $host_os in 8267 aix[[4-9]]*) 8268 # If we're using GNU nm, then we don't want the "-C" option. 8269 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 8270 # Without the "-l" option, or with the "-B" option, AIX nm treats 8271 # weak defined symbols like other global defined symbols, whereas 8272 # GNU nm marks them as "W". 8273 # While the 'weak' keyword is ignored in the Export File, we need 8274 # it in the Import File for the 'aix-soname' feature, so we have 8275 # to replace the "-B" option with "-P" for AIX nm. 8276 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8277 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 8278 else 8279 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 8280 fi 8281 ;; 8282 pw32*) 8283 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 8284 ;; 8285 cygwin* | mingw* | cegcc*) 8286 case $cc_basename in 8287 cl* | icl*) 8288 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 8289 ;; 8290 *) 8291 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 8292 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 8293 ;; 8294 esac 8295 ;; 8296 *) 8297 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8298 ;; 8299 esac 8300], [ 8301 runpath_var= 8302 _LT_TAGVAR(allow_undefined_flag, $1)= 8303 _LT_TAGVAR(always_export_symbols, $1)=no 8304 _LT_TAGVAR(archive_cmds, $1)= 8305 _LT_TAGVAR(archive_expsym_cmds, $1)= 8306 _LT_TAGVAR(compiler_needs_object, $1)=no 8307 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8308 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 8309 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8310 _LT_TAGVAR(hardcode_automatic, $1)=no 8311 _LT_TAGVAR(hardcode_direct, $1)=no 8312 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 8313 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8314 _LT_TAGVAR(hardcode_libdir_separator, $1)= 8315 _LT_TAGVAR(hardcode_minus_L, $1)=no 8316 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 8317 _LT_TAGVAR(inherit_rpath, $1)=no 8318 _LT_TAGVAR(link_all_deplibs, $1)=unknown 8319 _LT_TAGVAR(module_cmds, $1)= 8320 _LT_TAGVAR(module_expsym_cmds, $1)= 8321 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 8322 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 8323 _LT_TAGVAR(thread_safe_flag_spec, $1)= 8324 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8325 # include_expsyms should be a list of space-separated symbols to be *always* 8326 # included in the symbol list 8327 _LT_TAGVAR(include_expsyms, $1)= 8328 # exclude_expsyms can be an extended regexp of symbols to exclude 8329 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8330 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8331 # as well as any symbol that contains 'd'. 8332 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 8333 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8334 # platforms (ab)use it in PIC code, but their linkers get confused if 8335 # the symbol is explicitly referenced. Since portable code cannot 8336 # rely on this symbol name, it's probably fine to never include it in 8337 # preloaded symbol tables. 8338 # Exclude shared library initialization/finalization symbols. 8339dnl Note also adjust exclude_expsyms for C++ above. 8340 extract_expsyms_cmds= 8341 8342 case $host_os in 8343 cygwin* | mingw* | pw32* | cegcc*) 8344 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 8345 # When not using gcc, we currently assume that we are using 8346 # Microsoft Visual C++ or Intel C++ Compiler. 8347 if test yes != "$GCC"; then 8348 with_gnu_ld=no 8349 fi 8350 ;; 8351 interix*) 8352 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 8353 with_gnu_ld=yes 8354 ;; 8355 openbsd* | bitrig*) 8356 with_gnu_ld=no 8357 ;; 8358 esac 8359 8360 _LT_TAGVAR(ld_shlibs, $1)=yes 8361 8362 # On some targets, GNU ld is compatible enough with the native linker 8363 # that we're better off using the native interface for both. 8364 lt_use_gnu_ld_interface=no 8365 if test yes = "$with_gnu_ld"; then 8366 case $host_os in 8367 aix*) 8368 # The AIX port of GNU ld has always aspired to compatibility 8369 # with the native linker. However, as the warning in the GNU ld 8370 # block says, versions before 2.19.5* couldn't really create working 8371 # shared libraries, regardless of the interface used. 8372 case `$LD -v 2>&1` in 8373 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8374 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 8375 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 8376 *) 8377 lt_use_gnu_ld_interface=yes 8378 ;; 8379 esac 8380 ;; 8381 *) 8382 lt_use_gnu_ld_interface=yes 8383 ;; 8384 esac 8385 fi 8386 8387 if test yes = "$lt_use_gnu_ld_interface"; then 8388 # If archive_cmds runs LD, not CC, wlarc should be empty 8389 wlarc='$wl' 8390 8391 # Set some defaults for GNU ld with shared library support. These 8392 # are reset later if shared libraries are not supported. Putting them 8393 # here allows them to be overridden if necessary. 8394 runpath_var=LD_RUN_PATH 8395 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8396 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 8397 # ancient GNU ld didn't support --whole-archive et. al. 8398 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8399 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8400 else 8401 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8402 fi 8403 supports_anon_versioning=no 8404 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in 8405 *GNU\ gold*) supports_anon_versioning=yes ;; 8406 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 8407 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8408 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8409 *\ 2.11.*) ;; # other 2.11 versions 8410 *) supports_anon_versioning=yes ;; 8411 esac 8412 8413 # See if GNU ld supports shared libraries. 8414 case $host_os in 8415 aix[[3-9]]*) 8416 # On AIX/PPC, the GNU linker is very broken 8417 if test ia64 != "$host_cpu"; then 8418 _LT_TAGVAR(ld_shlibs, $1)=no 8419 cat <<_LT_EOF 1>&2 8420 8421*** Warning: the GNU linker, at least up to release 2.19, is reported 8422*** to be unable to reliably create shared libraries on AIX. 8423*** Therefore, libtool is disabling shared libraries support. If you 8424*** really care for shared libraries, you may want to install binutils 8425*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8426*** You will then need to restart the configuration process. 8427 8428_LT_EOF 8429 fi 8430 ;; 8431 8432 amigaos*) 8433 case $host_cpu in 8434 powerpc) 8435 # see comment about AmigaOS4 .so support 8436 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8437 _LT_TAGVAR(archive_expsym_cmds, $1)='' 8438 ;; 8439 m68k) 8440 _LT_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)' 8441 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8442 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8443 ;; 8444 esac 8445 ;; 8446 8447 beos*) 8448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8449 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8450 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8451 # support --undefined. This deserves some investigation. FIXME 8452 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8453 else 8454 _LT_TAGVAR(ld_shlibs, $1)=no 8455 fi 8456 ;; 8457 8458 cygwin* | mingw* | pw32* | cegcc*) 8459 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 8460 # as there is no search path for DLLs. 8461 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8462 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 8463 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8464 _LT_TAGVAR(always_export_symbols, $1)=no 8465 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8466 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 8467 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 8468 8469 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8470 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8471 # If the export-symbols file already is a .def file, use it as 8472 # is; otherwise, prepend EXPORTS... 8473 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 8474 cp $export_symbols $output_objdir/$soname.def; 8475 else 8476 echo EXPORTS > $output_objdir/$soname.def; 8477 cat $export_symbols >> $output_objdir/$soname.def; 8478 fi~ 8479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8480 else 8481 _LT_TAGVAR(ld_shlibs, $1)=no 8482 fi 8483 ;; 8484 8485 haiku*) 8486 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8487 _LT_TAGVAR(link_all_deplibs, $1)=yes 8488 ;; 8489 8490 os2*) 8491 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8492 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8493 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8494 shrext_cmds=.dll 8495 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8496 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8497 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8498 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8499 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8500 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8501 emximp -o $lib $output_objdir/$libname.def' 8502 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8503 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8504 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8505 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8506 prefix_cmds="$SED"~ 8507 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8508 prefix_cmds="$prefix_cmds -e 1d"; 8509 fi~ 8510 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8511 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8512 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8513 emximp -o $lib $output_objdir/$libname.def' 8514 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8515 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8516 _LT_TAGVAR(file_list_spec, $1)='@' 8517 ;; 8518 8519 interix[[3-9]]*) 8520 _LT_TAGVAR(hardcode_direct, $1)=no 8521 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8522 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 8523 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 8524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8525 # Instead, shared libraries are loaded at an image base (0x10000000 by 8526 # default) and relocated if they conflict, which is a slow very memory 8527 # consuming and fragmenting process. To avoid this, we pick a random, 8528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8529 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8530 _LT_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' 8531 _LT_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' 8532 ;; 8533 8534 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8535 tmp_diet=no 8536 if test linux-dietlibc = "$host_os"; then 8537 case $cc_basename in 8538 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8539 esac 8540 fi 8541 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8542 && test no = "$tmp_diet" 8543 then 8544 tmp_addflag=' $pic_flag' 8545 tmp_sharedflag='-shared' 8546 case $cc_basename,$host_cpu in 8547 pgcc*) # Portland Group C compiler 8548 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 8549 tmp_addflag=' $pic_flag' 8550 ;; 8551 pgf77* | pgf90* | pgf95* | pgfortran*) 8552 # Portland Group f77 and f90 compilers 8553 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 8554 tmp_addflag=' $pic_flag -Mnomain' ;; 8555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8556 tmp_addflag=' -i_dynamic' ;; 8557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8558 tmp_addflag=' -i_dynamic -nofor_main' ;; 8559 ifc* | ifort*) # Intel Fortran compiler 8560 tmp_addflag=' -nofor_main' ;; 8561 lf95*) # Lahey Fortran 8.1 8562 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8563 tmp_sharedflag='--shared' ;; 8564 nagfor*) # NAGFOR 5.3 8565 tmp_sharedflag='-Wl,-shared' ;; 8566 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8567 tmp_sharedflag='-qmkshrobj' 8568 tmp_addflag= ;; 8569 nvcc*) # Cuda Compiler Driver 2.2 8570 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 8571 _LT_TAGVAR(compiler_needs_object, $1)=yes 8572 ;; 8573 esac 8574 case `$CC -V 2>&1 | $SED 5q` in 8575 *Sun\ C*) # Sun C 5.9 8576 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 8577 _LT_TAGVAR(compiler_needs_object, $1)=yes 8578 tmp_sharedflag='-G' ;; 8579 *Sun\ F*) # Sun Fortran 8.3 8580 tmp_sharedflag='-G' ;; 8581 esac 8582 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8583 8584 if test yes = "$supports_anon_versioning"; then 8585 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8586 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8587 echo "local: *; };" >> $output_objdir/$libname.ver~ 8588 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 8589 fi 8590 8591 case $cc_basename in 8592 tcc*) 8593 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 8594 ;; 8595 xlf* | bgf* | bgxlf* | mpixlf*) 8596 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8597 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 8598 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8599 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8600 if test yes = "$supports_anon_versioning"; then 8601 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8602 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8603 echo "local: *; };" >> $output_objdir/$libname.ver~ 8604 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8605 fi 8606 ;; 8607 esac 8608 else 8609 _LT_TAGVAR(ld_shlibs, $1)=no 8610 fi 8611 ;; 8612 8613 netbsd*) 8614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8615 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8616 wlarc= 8617 else 8618 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8619 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8620 fi 8621 ;; 8622 8623 solaris*) 8624 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8625 _LT_TAGVAR(ld_shlibs, $1)=no 8626 cat <<_LT_EOF 1>&2 8627 8628*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8629*** create shared libraries on Solaris systems. Therefore, libtool 8630*** is disabling shared libraries support. We urge you to upgrade GNU 8631*** binutils to release 2.9.1 or newer. Another option is to modify 8632*** your PATH or compiler configuration so that the native linker is 8633*** used, and then restart. 8634 8635_LT_EOF 8636 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8637 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8638 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8639 else 8640 _LT_TAGVAR(ld_shlibs, $1)=no 8641 fi 8642 ;; 8643 8644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8645 case `$LD -v 2>&1` in 8646 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 8647 _LT_TAGVAR(ld_shlibs, $1)=no 8648 cat <<_LT_EOF 1>&2 8649 8650*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 8651*** reliably create shared libraries on SCO systems. Therefore, libtool 8652*** is disabling shared libraries support. We urge you to upgrade GNU 8653*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8654*** your PATH or compiler configuration so that the native linker is 8655*** used, and then restart. 8656 8657_LT_EOF 8658 ;; 8659 *) 8660 # For security reasons, it is highly recommended that you always 8661 # use absolute paths for naming shared libraries, and exclude the 8662 # DT_RUNPATH tag from executables and libraries. But doing so 8663 # requires that you compile everything twice, which is a pain. 8664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8665 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 8666 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8667 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8668 else 8669 _LT_TAGVAR(ld_shlibs, $1)=no 8670 fi 8671 ;; 8672 esac 8673 ;; 8674 8675 sunos4*) 8676 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8677 wlarc= 8678 _LT_TAGVAR(hardcode_direct, $1)=yes 8679 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8680 ;; 8681 8682 *) 8683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8684 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8685 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8686 else 8687 _LT_TAGVAR(ld_shlibs, $1)=no 8688 fi 8689 ;; 8690 esac 8691 8692 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 8693 runpath_var= 8694 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8695 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 8696 _LT_TAGVAR(whole_archive_flag_spec, $1)= 8697 fi 8698 else 8699 # PORTME fill in a description of your system's linker (not GNU ld) 8700 case $host_os in 8701 aix3*) 8702 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8703 _LT_TAGVAR(always_export_symbols, $1)=yes 8704 _LT_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' 8705 # Note: this linker hardcodes the directories in LIBPATH if there 8706 # are no directories specified by -L. 8707 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8708 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 8709 # Neither direct hardcoding nor static linking is supported with a 8710 # broken collect2. 8711 _LT_TAGVAR(hardcode_direct, $1)=unsupported 8712 fi 8713 ;; 8714 8715 aix[[4-9]]*) 8716 if test ia64 = "$host_cpu"; then 8717 # On IA64, the linker does run time linking by default, so we don't 8718 # have to do anything special. 8719 aix_use_runtimelinking=no 8720 exp_sym_flag='-Bexport' 8721 no_entry_flag= 8722 else 8723 # If we're using GNU nm, then we don't want the "-C" option. 8724 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 8725 # Without the "-l" option, or with the "-B" option, AIX nm treats 8726 # weak defined symbols like other global defined symbols, whereas 8727 # GNU nm marks them as "W". 8728 # While the 'weak' keyword is ignored in the Export File, we need 8729 # it in the Import File for the 'aix-soname' feature, so we have 8730 # to replace the "-B" option with "-P" for AIX nm. 8731 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8732 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 8733 else 8734 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 8735 fi 8736 aix_use_runtimelinking=no 8737 8738 # Test if we are trying to use run time linking or normal 8739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8740 # have runtime linking enabled, and use it for executables. 8741 # For shared libraries, we enable/disable runtime linking 8742 # depending on the kind of the shared library created - 8743 # when "with_aix_soname,aix_use_runtimelinking" is: 8744 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 8745 # "aix,yes" lib.so shared, rtl:yes, for executables 8746 # lib.a static archive 8747 # "both,no" lib.so.V(shr.o) shared, rtl:yes 8748 # lib.a(lib.so.V) shared, rtl:no, for executables 8749 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 8750 # lib.a(lib.so.V) shared, rtl:no 8751 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 8752 # lib.a static archive 8753 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 8754 for ld_flag in $LDFLAGS; do 8755 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 8756 aix_use_runtimelinking=yes 8757 break 8758 fi 8759 done 8760 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 8761 # With aix-soname=svr4, we create the lib.so.V shared archives only, 8762 # so we don't have lib.a shared libs to link our executables. 8763 # We have to force runtime linking in this case. 8764 aix_use_runtimelinking=yes 8765 LDFLAGS="$LDFLAGS -Wl,-brtl" 8766 fi 8767 ;; 8768 esac 8769 8770 exp_sym_flag='-bexport' 8771 no_entry_flag='-bnoentry' 8772 fi 8773 8774 # When large executables or shared objects are built, AIX ld can 8775 # have problems creating the table of contents. If linking a library 8776 # or program results in "error TOC overflow" add -mminimal-toc to 8777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8779 8780 _LT_TAGVAR(archive_cmds, $1)='' 8781 _LT_TAGVAR(hardcode_direct, $1)=yes 8782 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8783 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8784 _LT_TAGVAR(link_all_deplibs, $1)=yes 8785 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 8786 case $with_aix_soname,$aix_use_runtimelinking in 8787 aix,*) ;; # traditional, no import file 8788 svr4,* | *,yes) # use import file 8789 # The Import File defines what to hardcode. 8790 _LT_TAGVAR(hardcode_direct, $1)=no 8791 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 8792 ;; 8793 esac 8794 8795 if test yes = "$GCC"; then 8796 case $host_os in aix4.[[012]]|aix4.[[012]].*) 8797 # We only want to do this on AIX 4.2 and lower, the check 8798 # below for broken collect2 doesn't work under 4.3+ 8799 collect2name=`$CC -print-prog-name=collect2` 8800 if test -f "$collect2name" && 8801 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8802 then 8803 # We have reworked collect2 8804 : 8805 else 8806 # We have old collect2 8807 _LT_TAGVAR(hardcode_direct, $1)=unsupported 8808 # It fails to find uninstalled libraries when the uninstalled 8809 # path is not listed in the libpath. Setting hardcode_minus_L 8810 # to unsupported forces relinking 8811 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8812 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8813 _LT_TAGVAR(hardcode_libdir_separator, $1)= 8814 fi 8815 ;; 8816 esac 8817 shared_flag='-shared' 8818 if test yes = "$aix_use_runtimelinking"; then 8819 shared_flag="$shared_flag "'$wl-G' 8820 fi 8821 # Need to ensure runtime linking is disabled for the traditional 8822 # shared library, or the linker may eventually find shared libraries 8823 # /with/ Import File - we do not want to mix them. 8824 shared_flag_aix='-shared' 8825 shared_flag_svr4='-shared $wl-G' 8826 else 8827 # not using gcc 8828 if test ia64 = "$host_cpu"; then 8829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8830 # chokes on -Wl,-G. The following line is correct: 8831 shared_flag='-G' 8832 else 8833 if test yes = "$aix_use_runtimelinking"; then 8834 shared_flag='$wl-G' 8835 else 8836 shared_flag='$wl-bM:SRE' 8837 fi 8838 shared_flag_aix='$wl-bM:SRE' 8839 shared_flag_svr4='$wl-G' 8840 fi 8841 fi 8842 8843 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 8844 # It seems that -bexpall does not export symbols beginning with 8845 # underscore (_), so it is better to generate a list of symbols to export. 8846 _LT_TAGVAR(always_export_symbols, $1)=yes 8847 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 8848 # Warning - without using the other runtime loading flags (-brtl), 8849 # -berok will link without error, but may produce a broken library. 8850 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 8851 # Determine the default libpath from the value encoded in an 8852 # empty executable. 8853 _LT_SYS_MODULE_PATH_AIX([$1]) 8854 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 8855 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 8856 else 8857 if test ia64 = "$host_cpu"; then 8858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 8859 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 8860 _LT_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" 8861 else 8862 # Determine the default libpath from the value encoded in an 8863 # empty executable. 8864 _LT_SYS_MODULE_PATH_AIX([$1]) 8865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 8866 # Warning - without using the other run time loading flags, 8867 # -berok will link without error, but may produce a broken library. 8868 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 8869 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 8870 if test yes = "$with_gnu_ld"; then 8871 # We only use this code for GNU lds that support --whole-archive. 8872 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 8873 else 8874 # Exported symbols can be pulled into shared objects from archives 8875 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 8876 fi 8877 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 8878 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 8879 # -brtl affects multiple linker settings, -berok does not and is overridden later 8880 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 8881 if test svr4 != "$with_aix_soname"; then 8882 # This is similar to how AIX traditionally builds its shared libraries. 8883 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 8884 fi 8885 if test aix != "$with_aix_soname"; then 8886 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 8887 else 8888 # used by -dlpreopen to get the symbols 8889 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 8890 fi 8891 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 8892 fi 8893 fi 8894 ;; 8895 8896 amigaos*) 8897 case $host_cpu in 8898 powerpc) 8899 # see comment about AmigaOS4 .so support 8900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8901 _LT_TAGVAR(archive_expsym_cmds, $1)='' 8902 ;; 8903 m68k) 8904 _LT_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)' 8905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8906 _LT_TAGVAR(hardcode_minus_L, $1)=yes 8907 ;; 8908 esac 8909 ;; 8910 8911 bsdi[[45]]*) 8912 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 8913 ;; 8914 8915 cygwin* | mingw* | pw32* | cegcc*) 8916 # When not using gcc, we currently assume that we are using 8917 # Microsoft Visual C++ or Intel C++ Compiler. 8918 # hardcode_libdir_flag_spec is actually meaningless, as there is 8919 # no search path for DLLs. 8920 case $cc_basename in 8921 cl* | icl*) 8922 # Native MSVC or ICC 8923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 8924 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8925 _LT_TAGVAR(always_export_symbols, $1)=yes 8926 _LT_TAGVAR(file_list_spec, $1)='@' 8927 # Tell ltmain to make .lib files, not .a files. 8928 libext=lib 8929 # Tell ltmain to make .dll files, not .so files. 8930 shrext_cmds=.dll 8931 # FIXME: Setting linknames here is a bad hack. 8932 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 8933 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 8934 cp "$export_symbols" "$output_objdir/$soname.def"; 8935 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 8936 else 8937 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 8938 fi~ 8939 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8940 linknames=' 8941 # The linker will not automatically build a static lib if we build a DLL. 8942 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 8943 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8944 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 8945 _LT_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' 8946 # Don't use ranlib 8947 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 8948 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 8949 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8950 case $lt_outputfile in 8951 *.exe|*.EXE) ;; 8952 *) 8953 lt_outputfile=$lt_outputfile.exe 8954 lt_tool_outputfile=$lt_tool_outputfile.exe 8955 ;; 8956 esac~ 8957 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 8958 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8959 $RM "$lt_outputfile.manifest"; 8960 fi' 8961 ;; 8962 *) 8963 # Assume MSVC and ICC wrapper 8964 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 8965 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 8966 # Tell ltmain to make .lib files, not .a files. 8967 libext=lib 8968 # Tell ltmain to make .dll files, not .so files. 8969 shrext_cmds=.dll 8970 # FIXME: Setting linknames here is a bad hack. 8971 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8972 # The linker will automatically build a .lib file if we build a DLL. 8973 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 8974 # FIXME: Should let the user specify the lib program. 8975 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 8976 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 8977 ;; 8978 esac 8979 ;; 8980 8981 darwin* | rhapsody*) 8982 _LT_DARWIN_LINKER_FEATURES($1) 8983 ;; 8984 8985 dgux*) 8986 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8987 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 8988 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8989 ;; 8990 8991 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8992 # support. Future versions do this automatically, but an explicit c++rt0.o 8993 # does not break anything, and helps significantly (at the cost of a little 8994 # extra space). 8995 freebsd2.2*) 8996 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8997 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8998 _LT_TAGVAR(hardcode_direct, $1)=yes 8999 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9000 ;; 9001 9002 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9003 freebsd2.*) 9004 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9005 _LT_TAGVAR(hardcode_direct, $1)=yes 9006 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9007 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9008 ;; 9009 9010 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9011 freebsd* | dragonfly* | midnightbsd*) 9012 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9013 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9014 _LT_TAGVAR(hardcode_direct, $1)=yes 9015 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9016 ;; 9017 9018 hpux9*) 9019 if test yes = "$GCC"; then 9020 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9021 else 9022 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9023 fi 9024 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 9025 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9026 _LT_TAGVAR(hardcode_direct, $1)=yes 9027 9028 # hardcode_minus_L: Not really in the search PATH, 9029 # but as the default location of the library. 9030 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9031 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9032 ;; 9033 9034 hpux10*) 9035 if test yes,no = "$GCC,$with_gnu_ld"; then 9036 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9037 else 9038 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9039 fi 9040 if test no = "$with_gnu_ld"; then 9041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 9042 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9043 _LT_TAGVAR(hardcode_direct, $1)=yes 9044 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9045 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9046 # hardcode_minus_L: Not really in the search PATH, 9047 # but as the default location of the library. 9048 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9049 fi 9050 ;; 9051 9052 hpux11*) 9053 if test yes,no = "$GCC,$with_gnu_ld"; then 9054 case $host_cpu in 9055 hppa*64*) 9056 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9057 ;; 9058 ia64*) 9059 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9060 ;; 9061 *) 9062 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9063 ;; 9064 esac 9065 else 9066 case $host_cpu in 9067 hppa*64*) 9068 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9069 ;; 9070 ia64*) 9071 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9072 ;; 9073 *) 9074 m4_if($1, [], [ 9075 # Older versions of the 11.00 compiler do not understand -b yet 9076 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9077 _LT_LINKER_OPTION([if $CC understands -b], 9078 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 9079 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 9080 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 9081 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 9082 ;; 9083 esac 9084 fi 9085 if test no = "$with_gnu_ld"; then 9086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 9087 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9088 9089 case $host_cpu in 9090 hppa*64*|ia64*) 9091 _LT_TAGVAR(hardcode_direct, $1)=no 9092 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9093 ;; 9094 *) 9095 _LT_TAGVAR(hardcode_direct, $1)=yes 9096 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9097 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9098 9099 # hardcode_minus_L: Not really in the search PATH, 9100 # but as the default location of the library. 9101 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9102 ;; 9103 esac 9104 fi 9105 ;; 9106 9107 irix5* | irix6* | nonstopux*) 9108 if test yes = "$GCC"; then 9109 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9110 # Try to use the -exported_symbol ld option, if it does not 9111 # work, assume that -exports_file does not work either and 9112 # implicitly export all symbols. 9113 # This should be the same for all languages, so no per-tag cache variable. 9114 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 9115 [lt_cv_irix_exported_symbol], 9116 [save_LDFLAGS=$LDFLAGS 9117 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9118 AC_LINK_IFELSE( 9119 [AC_LANG_SOURCE( 9120 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 9121 [C++], [[int foo (void) { return 0; }]], 9122 [Fortran 77], [[ 9123 subroutine foo 9124 end]], 9125 [Fortran], [[ 9126 subroutine foo 9127 end]])])], 9128 [lt_cv_irix_exported_symbol=yes], 9129 [lt_cv_irix_exported_symbol=no]) 9130 LDFLAGS=$save_LDFLAGS]) 9131 if test yes = "$lt_cv_irix_exported_symbol"; then 9132 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 9133 fi 9134 else 9135 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9136 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 9137 fi 9138 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 9139 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9140 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9141 _LT_TAGVAR(inherit_rpath, $1)=yes 9142 _LT_TAGVAR(link_all_deplibs, $1)=yes 9143 ;; 9144 9145 linux*) 9146 case $cc_basename in 9147 tcc*) 9148 # Fabrice Bellard et al's Tiny C Compiler 9149 _LT_TAGVAR(ld_shlibs, $1)=yes 9150 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9151 ;; 9152 esac 9153 ;; 9154 9155 netbsd*) 9156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9157 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9158 else 9159 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9160 fi 9161 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9162 _LT_TAGVAR(hardcode_direct, $1)=yes 9163 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9164 ;; 9165 9166 newsos6) 9167 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9168 _LT_TAGVAR(hardcode_direct, $1)=yes 9169 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9170 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9171 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9172 ;; 9173 9174 *nto* | *qnx*) 9175 ;; 9176 9177 openbsd* | bitrig*) 9178 if test -f /usr/libexec/ld.so; then 9179 _LT_TAGVAR(hardcode_direct, $1)=yes 9180 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9181 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9183 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9184 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9186 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 9187 else 9188 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9189 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 9190 fi 9191 else 9192 _LT_TAGVAR(ld_shlibs, $1)=no 9193 fi 9194 ;; 9195 9196 os2*) 9197 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 9198 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9199 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 9200 shrext_cmds=.dll 9201 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9202 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9203 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9204 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9205 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9206 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9207 emximp -o $lib $output_objdir/$libname.def' 9208 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9209 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9210 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9211 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9212 prefix_cmds="$SED"~ 9213 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9214 prefix_cmds="$prefix_cmds -e 1d"; 9215 fi~ 9216 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9217 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9218 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9219 emximp -o $lib $output_objdir/$libname.def' 9220 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9221 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 9222 _LT_TAGVAR(file_list_spec, $1)='@' 9223 ;; 9224 9225 osf3*) 9226 if test yes = "$GCC"; then 9227 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 9228 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9229 else 9230 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 9231 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9232 fi 9233 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 9234 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9235 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9236 ;; 9237 9238 osf4* | osf5*) # as osf3* with the addition of -msym flag 9239 if test yes = "$GCC"; then 9240 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 9241 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 9242 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9243 else 9244 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 9245 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 9246 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9247 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 9248 9249 # Both c and cxx compiler support -rpath directly 9250 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 9251 fi 9252 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 9253 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 9254 ;; 9255 9256 solaris*) 9257 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 9258 if test yes = "$GCC"; then 9259 wlarc='$wl' 9260 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9261 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9262 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9263 else 9264 case `$CC -V 2>&1` in 9265 *"Compilers 5.0"*) 9266 wlarc='' 9267 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9268 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9269 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9270 ;; 9271 *) 9272 wlarc='$wl' 9273 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9274 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9275 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9276 ;; 9277 esac 9278 fi 9279 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 9280 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9281 case $host_os in 9282 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 9283 *) 9284 # The compiler driver will combine and reorder linker options, 9285 # but understands '-z linker_flag'. GCC discards it without '$wl', 9286 # but is careful enough not to reorder. 9287 # Supported since Solaris 2.6 (maybe 2.5.1?) 9288 if test yes = "$GCC"; then 9289 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9290 else 9291 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 9292 fi 9293 ;; 9294 esac 9295 _LT_TAGVAR(link_all_deplibs, $1)=yes 9296 ;; 9297 9298 sunos4*) 9299 if test sequent = "$host_vendor"; then 9300 # Use $CC to link under sequent, because it throws in some extra .o 9301 # files that make .init and .fini sections work. 9302 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9303 else 9304 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9305 fi 9306 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 9307 _LT_TAGVAR(hardcode_direct, $1)=yes 9308 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9309 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9310 ;; 9311 9312 sysv4) 9313 case $host_vendor in 9314 sni) 9315 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9316 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 9317 ;; 9318 siemens) 9319 ## LD is ld it makes a PLAMLIB 9320 ## CC just makes a GrossModule. 9321 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9322 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 9323 _LT_TAGVAR(hardcode_direct, $1)=no 9324 ;; 9325 motorola) 9326 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9327 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 9328 ;; 9329 esac 9330 runpath_var='LD_RUN_PATH' 9331 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9332 ;; 9333 9334 sysv4.3*) 9335 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9336 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9337 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 9338 ;; 9339 9340 sysv4*MP*) 9341 if test -d /usr/nec; then 9342 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9343 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9344 runpath_var=LD_RUN_PATH 9345 hardcode_runpath_var=yes 9346 _LT_TAGVAR(ld_shlibs, $1)=yes 9347 fi 9348 ;; 9349 9350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 9351 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 9352 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9353 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9354 runpath_var='LD_RUN_PATH' 9355 9356 if test yes = "$GCC"; then 9357 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9358 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9359 else 9360 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9361 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9362 fi 9363 ;; 9364 9365 sysv5* | sco3.2v5* | sco5v6*) 9366 # Note: We CANNOT use -z defs as we might desire, because we do not 9367 # link with -lc, and that would cause any symbols used from libc to 9368 # always be unresolved, which means just about no library would 9369 # ever link correctly. If we're not using GNU ld we use -z text 9370 # though, which does catch some bad symbols but isn't as heavy-handed 9371 # as -z defs. 9372 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 9373 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 9374 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 9375 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9376 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 9377 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 9378 _LT_TAGVAR(link_all_deplibs, $1)=yes 9379 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 9380 runpath_var='LD_RUN_PATH' 9381 9382 if test yes = "$GCC"; then 9383 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9384 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9385 else 9386 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9387 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9388 fi 9389 ;; 9390 9391 uts4*) 9392 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 9394 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 9395 ;; 9396 9397 *) 9398 _LT_TAGVAR(ld_shlibs, $1)=no 9399 ;; 9400 esac 9401 9402 if test sni = "$host_vendor"; then 9403 case $host in 9404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9405 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 9406 ;; 9407 esac 9408 fi 9409 fi 9410]) 9411AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 9412test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 9413 9414_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 9415 9416_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 9417_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 9418_LT_DECL([], [extract_expsyms_cmds], [2], 9419 [The commands to extract the exported symbol list from a shared archive]) 9420 9421# 9422# Do we need to explicitly link libc? 9423# 9424case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 9425x|xyes) 9426 # Assume -lc should be added 9427 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 9428 9429 if test yes,yes = "$GCC,$enable_shared"; then 9430 case $_LT_TAGVAR(archive_cmds, $1) in 9431 *'~'*) 9432 # FIXME: we may have to deal with multi-command sequences. 9433 ;; 9434 '$CC '*) 9435 # Test whether the compiler implicitly links with -lc since on some 9436 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9437 # to ld, don't add -lc before -lgcc. 9438 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 9439 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 9440 [$RM conftest* 9441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9442 9443 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 9444 soname=conftest 9445 lib=conftest 9446 libobjs=conftest.$ac_objext 9447 deplibs= 9448 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 9449 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 9450 compiler_flags=-v 9451 linker_flags=-v 9452 verstring= 9453 output_objdir=. 9454 libname=conftest 9455 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 9456 _LT_TAGVAR(allow_undefined_flag, $1)= 9457 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 9458 then 9459 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9460 else 9461 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 9462 fi 9463 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 9464 else 9465 cat conftest.err 1>&5 9466 fi 9467 $RM conftest* 9468 ]) 9469 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 9470 ;; 9471 esac 9472 fi 9473 ;; 9474esac 9475 9476_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 9477 [Whether or not to add -lc for building shared libraries]) 9478_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 9479 [enable_shared_with_static_runtimes], [0], 9480 [Whether or not to disallow shared libs when runtime libs are static]) 9481_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 9482 [Compiler flag to allow reflexive dlopens]) 9483_LT_TAGDECL([], [whole_archive_flag_spec], [1], 9484 [Compiler flag to generate shared objects directly from archives]) 9485_LT_TAGDECL([], [compiler_needs_object], [1], 9486 [Whether the compiler copes with passing no objects directly]) 9487_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 9488 [Create an old-style archive from a shared archive]) 9489_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 9490 [Create a temporary old-style archive to link instead of a shared archive]) 9491_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 9492_LT_TAGDECL([], [archive_expsym_cmds], [2]) 9493_LT_TAGDECL([], [module_cmds], [2], 9494 [Commands used to build a loadable module if different from building 9495 a shared archive.]) 9496_LT_TAGDECL([], [module_expsym_cmds], [2]) 9497_LT_TAGDECL([], [with_gnu_ld], [1], 9498 [Whether we are building with GNU ld or not]) 9499_LT_TAGDECL([], [allow_undefined_flag], [1], 9500 [Flag that allows shared libraries with undefined symbols to be built]) 9501_LT_TAGDECL([], [no_undefined_flag], [1], 9502 [Flag that enforces no undefined symbols]) 9503_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 9504 [Flag to hardcode $libdir into a binary during linking. 9505 This must work even if $libdir does not exist]) 9506_LT_TAGDECL([], [hardcode_libdir_separator], [1], 9507 [Whether we need a single "-rpath" flag with a separated argument]) 9508_LT_TAGDECL([], [hardcode_direct], [0], 9509 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 9510 DIR into the resulting binary]) 9511_LT_TAGDECL([], [hardcode_direct_absolute], [0], 9512 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 9513 DIR into the resulting binary and the resulting library dependency is 9514 "absolute", i.e impossible to change by setting $shlibpath_var if the 9515 library is relocated]) 9516_LT_TAGDECL([], [hardcode_minus_L], [0], 9517 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 9518 into the resulting binary]) 9519_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 9520 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 9521 into the resulting binary]) 9522_LT_TAGDECL([], [hardcode_automatic], [0], 9523 [Set to "yes" if building a shared library automatically hardcodes DIR 9524 into the library and all subsequent libraries and executables linked 9525 against it]) 9526_LT_TAGDECL([], [inherit_rpath], [0], 9527 [Set to yes if linker adds runtime paths of dependent libraries 9528 to runtime path list]) 9529_LT_TAGDECL([], [link_all_deplibs], [0], 9530 [Whether libtool must link a program against all its dependency libraries]) 9531_LT_TAGDECL([], [always_export_symbols], [0], 9532 [Set to "yes" if exported symbols are required]) 9533_LT_TAGDECL([], [export_symbols_cmds], [2], 9534 [The commands to list exported symbols]) 9535_LT_TAGDECL([], [exclude_expsyms], [1], 9536 [Symbols that should not be listed in the preloaded symbols]) 9537_LT_TAGDECL([], [include_expsyms], [1], 9538 [Symbols that must always be exported]) 9539_LT_TAGDECL([], [prelink_cmds], [2], 9540 [Commands necessary for linking programs (against libraries) with templates]) 9541_LT_TAGDECL([], [postlink_cmds], [2], 9542 [Commands necessary for finishing linking programs]) 9543_LT_TAGDECL([], [file_list_spec], [1], 9544 [Specify filename containing input files]) 9545dnl FIXME: Not yet implemented 9546dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 9547dnl [Compiler flag to generate thread safe objects]) 9548])# _LT_LINKER_SHLIBS 9549 9550 9551# _LT_LANG_C_CONFIG([TAG]) 9552# ------------------------ 9553# Ensure that the configuration variables for a C compiler are suitably 9554# defined. These variables are subsequently used by _LT_CONFIG to write 9555# the compiler configuration to 'libtool'. 9556m4_defun([_LT_LANG_C_CONFIG], 9557[m4_require([_LT_DECL_EGREP])dnl 9558lt_save_CC=$CC 9559AC_LANG_PUSH(C) 9560 9561# Source file extension for C test sources. 9562ac_ext=c 9563 9564# Object file extension for compiled C test sources. 9565objext=o 9566_LT_TAGVAR(objext, $1)=$objext 9567 9568# Code to be used in simple compile tests 9569lt_simple_compile_test_code="int some_variable = 0;" 9570 9571# Code to be used in simple link tests 9572lt_simple_link_test_code='int main(){return(0);}' 9573 9574_LT_TAG_COMPILER 9575# Save the default compiler, since it gets overwritten when the other 9576# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9577compiler_DEFAULT=$CC 9578 9579# save warnings/boilerplate of simple test code 9580_LT_COMPILER_BOILERPLATE 9581_LT_LINKER_BOILERPLATE 9582 9583if test -n "$compiler"; then 9584 _LT_COMPILER_NO_RTTI($1) 9585 _LT_COMPILER_PIC($1) 9586 _LT_COMPILER_C_O($1) 9587 _LT_COMPILER_FILE_LOCKS($1) 9588 _LT_LINKER_SHLIBS($1) 9589 _LT_SYS_DYNAMIC_LINKER($1) 9590 _LT_LINKER_HARDCODE_LIBPATH($1) 9591 LT_SYS_DLOPEN_SELF 9592 _LT_CMD_STRIPLIB 9593 9594 # Report what library types will actually be built 9595 AC_MSG_CHECKING([if libtool supports shared libraries]) 9596 AC_MSG_RESULT([$can_build_shared]) 9597 9598 AC_MSG_CHECKING([whether to build shared libraries]) 9599 test no = "$can_build_shared" && enable_shared=no 9600 9601 # On AIX, shared libraries and static libraries use the same namespace, and 9602 # are all built from PIC. 9603 case $host_os in 9604 aix3*) 9605 test yes = "$enable_shared" && enable_static=no 9606 if test -n "$RANLIB"; then 9607 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9608 postinstall_cmds='$RANLIB $lib' 9609 fi 9610 ;; 9611 9612 aix[[4-9]]*) 9613 if test ia64 != "$host_cpu"; then 9614 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 9615 yes,aix,yes) ;; # shared object as lib.so file only 9616 yes,svr4,*) ;; # shared object as lib.so archive member only 9617 yes,*) enable_static=no ;; # shared object in lib.a archive as well 9618 esac 9619 fi 9620 ;; 9621 esac 9622 AC_MSG_RESULT([$enable_shared]) 9623 9624 AC_MSG_CHECKING([whether to build static libraries]) 9625 # Make sure either enable_shared or enable_static is yes. 9626 test yes = "$enable_shared" || enable_static=yes 9627 AC_MSG_RESULT([$enable_static]) 9628 9629 _LT_CONFIG($1) 9630fi 9631AC_LANG_POP 9632CC=$lt_save_CC 9633])# _LT_LANG_C_CONFIG 9634 9635 9636# _LT_LANG_CXX_CONFIG([TAG]) 9637# -------------------------- 9638# Ensure that the configuration variables for a C++ compiler are suitably 9639# defined. These variables are subsequently used by _LT_CONFIG to write 9640# the compiler configuration to 'libtool'. 9641m4_defun([_LT_LANG_CXX_CONFIG], 9642[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 9643m4_require([_LT_DECL_EGREP])dnl 9644m4_require([_LT_PATH_MANIFEST_TOOL])dnl 9645if test -n "$CXX" && ( test no != "$CXX" && 9646 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 9647 (test g++ != "$CXX"))); then 9648 AC_PROG_CXXCPP 9649else 9650 _lt_caught_CXX_error=yes 9651fi 9652 9653AC_LANG_PUSH(C++) 9654_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9655_LT_TAGVAR(allow_undefined_flag, $1)= 9656_LT_TAGVAR(always_export_symbols, $1)=no 9657_LT_TAGVAR(archive_expsym_cmds, $1)= 9658_LT_TAGVAR(compiler_needs_object, $1)=no 9659_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9660_LT_TAGVAR(hardcode_direct, $1)=no 9661_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9662_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9663_LT_TAGVAR(hardcode_libdir_separator, $1)= 9664_LT_TAGVAR(hardcode_minus_L, $1)=no 9665_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 9666_LT_TAGVAR(hardcode_automatic, $1)=no 9667_LT_TAGVAR(inherit_rpath, $1)=no 9668_LT_TAGVAR(module_cmds, $1)= 9669_LT_TAGVAR(module_expsym_cmds, $1)= 9670_LT_TAGVAR(link_all_deplibs, $1)=unknown 9671_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9672_LT_TAGVAR(reload_flag, $1)=$reload_flag 9673_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 9674_LT_TAGVAR(no_undefined_flag, $1)= 9675_LT_TAGVAR(whole_archive_flag_spec, $1)= 9676_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9677 9678# Source file extension for C++ test sources. 9679ac_ext=cpp 9680 9681# Object file extension for compiled C++ test sources. 9682objext=o 9683_LT_TAGVAR(objext, $1)=$objext 9684 9685# No sense in running all these tests if we already determined that 9686# the CXX compiler isn't working. Some variables (like enable_shared) 9687# are currently assumed to apply to all compilers on this platform, 9688# and will be corrupted by setting them based on a non-working compiler. 9689if test yes != "$_lt_caught_CXX_error"; then 9690 # Code to be used in simple compile tests 9691 lt_simple_compile_test_code="int some_variable = 0;" 9692 9693 # Code to be used in simple link tests 9694 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 9695 9696 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9697 _LT_TAG_COMPILER 9698 9699 # save warnings/boilerplate of simple test code 9700 _LT_COMPILER_BOILERPLATE 9701 _LT_LINKER_BOILERPLATE 9702 9703 # Allow CC to be a program name with arguments. 9704 lt_save_CC=$CC 9705 lt_save_CFLAGS=$CFLAGS 9706 lt_save_LD=$LD 9707 lt_save_GCC=$GCC 9708 GCC=$GXX 9709 lt_save_with_gnu_ld=$with_gnu_ld 9710 lt_save_path_LD=$lt_cv_path_LD 9711 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9712 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9713 else 9714 $as_unset lt_cv_prog_gnu_ld 9715 fi 9716 if test -n "${lt_cv_path_LDCXX+set}"; then 9717 lt_cv_path_LD=$lt_cv_path_LDCXX 9718 else 9719 $as_unset lt_cv_path_LD 9720 fi 9721 test -z "${LDCXX+set}" || LD=$LDCXX 9722 CC=${CXX-"c++"} 9723 CFLAGS=$CXXFLAGS 9724 compiler=$CC 9725 _LT_TAGVAR(compiler, $1)=$CC 9726 _LT_CC_BASENAME([$compiler]) 9727 9728 if test -n "$compiler"; then 9729 # We don't want -fno-exception when compiling C++ code, so set the 9730 # no_builtin_flag separately 9731 if test yes = "$GXX"; then 9732 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 9733 else 9734 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 9735 fi 9736 9737 if test yes = "$GXX"; then 9738 # Set up default GNU C++ configuration 9739 9740 LT_PATH_LD 9741 9742 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9743 # archiving commands below assume that GNU ld is being used. 9744 if test yes = "$with_gnu_ld"; then 9745 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 9746 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9747 9748 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 9749 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 9750 9751 # If archive_cmds runs LD, not CC, wlarc should be empty 9752 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9753 # investigate it a little bit more. (MM) 9754 wlarc='$wl' 9755 9756 # ancient GNU ld didn't support --whole-archive et. al. 9757 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 9758 $GREP 'no-whole-archive' > /dev/null; then 9759 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9760 else 9761 _LT_TAGVAR(whole_archive_flag_spec, $1)= 9762 fi 9763 else 9764 with_gnu_ld=no 9765 wlarc= 9766 9767 # A generic and very simple default shared library creation 9768 # command for GNU C++ for the case where it uses the native 9769 # linker, instead of GNU ld. If possible, this setting should 9770 # overridden to take advantage of the native linker features on 9771 # the platform it is being used on. 9772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9773 fi 9774 9775 # Commands to make compiler produce verbose output that lists 9776 # what "hidden" libraries, object files and flags are used when 9777 # linking a shared library. 9778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 9779 9780 else 9781 GXX=no 9782 with_gnu_ld=no 9783 wlarc= 9784 fi 9785 9786 # PORTME: fill in a description of your system's C++ link characteristics 9787 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 9788 _LT_TAGVAR(ld_shlibs, $1)=yes 9789 case $host_os in 9790 aix3*) 9791 # FIXME: insert proper C++ library support 9792 _LT_TAGVAR(ld_shlibs, $1)=no 9793 ;; 9794 aix[[4-9]]*) 9795 if test ia64 = "$host_cpu"; then 9796 # On IA64, the linker does run time linking by default, so we don't 9797 # have to do anything special. 9798 aix_use_runtimelinking=no 9799 exp_sym_flag='-Bexport' 9800 no_entry_flag= 9801 else 9802 aix_use_runtimelinking=no 9803 9804 # Test if we are trying to use run time linking or normal 9805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9806 # have runtime linking enabled, and use it for executables. 9807 # For shared libraries, we enable/disable runtime linking 9808 # depending on the kind of the shared library created - 9809 # when "with_aix_soname,aix_use_runtimelinking" is: 9810 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9811 # "aix,yes" lib.so shared, rtl:yes, for executables 9812 # lib.a static archive 9813 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9814 # lib.a(lib.so.V) shared, rtl:no, for executables 9815 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9816 # lib.a(lib.so.V) shared, rtl:no 9817 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9818 # lib.a static archive 9819 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 9820 for ld_flag in $LDFLAGS; do 9821 case $ld_flag in 9822 *-brtl*) 9823 aix_use_runtimelinking=yes 9824 break 9825 ;; 9826 esac 9827 done 9828 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9829 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9830 # so we don't have lib.a shared libs to link our executables. 9831 # We have to force runtime linking in this case. 9832 aix_use_runtimelinking=yes 9833 LDFLAGS="$LDFLAGS -Wl,-brtl" 9834 fi 9835 ;; 9836 esac 9837 9838 exp_sym_flag='-bexport' 9839 no_entry_flag='-bnoentry' 9840 fi 9841 9842 # When large executables or shared objects are built, AIX ld can 9843 # have problems creating the table of contents. If linking a library 9844 # or program results in "error TOC overflow" add -mminimal-toc to 9845 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9846 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9847 9848 _LT_TAGVAR(archive_cmds, $1)='' 9849 _LT_TAGVAR(hardcode_direct, $1)=yes 9850 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 9851 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 9852 _LT_TAGVAR(link_all_deplibs, $1)=yes 9853 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 9854 case $with_aix_soname,$aix_use_runtimelinking in 9855 aix,*) ;; # no import file 9856 svr4,* | *,yes) # use import file 9857 # The Import File defines what to hardcode. 9858 _LT_TAGVAR(hardcode_direct, $1)=no 9859 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 9860 ;; 9861 esac 9862 9863 if test yes = "$GXX"; then 9864 case $host_os in aix4.[[012]]|aix4.[[012]].*) 9865 # We only want to do this on AIX 4.2 and lower, the check 9866 # below for broken collect2 doesn't work under 4.3+ 9867 collect2name=`$CC -print-prog-name=collect2` 9868 if test -f "$collect2name" && 9869 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9870 then 9871 # We have reworked collect2 9872 : 9873 else 9874 # We have old collect2 9875 _LT_TAGVAR(hardcode_direct, $1)=unsupported 9876 # It fails to find uninstalled libraries when the uninstalled 9877 # path is not listed in the libpath. Setting hardcode_minus_L 9878 # to unsupported forces relinking 9879 _LT_TAGVAR(hardcode_minus_L, $1)=yes 9880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 9881 _LT_TAGVAR(hardcode_libdir_separator, $1)= 9882 fi 9883 esac 9884 shared_flag='-shared' 9885 if test yes = "$aix_use_runtimelinking"; then 9886 shared_flag=$shared_flag' $wl-G' 9887 fi 9888 # Need to ensure runtime linking is disabled for the traditional 9889 # shared library, or the linker may eventually find shared libraries 9890 # /with/ Import File - we do not want to mix them. 9891 shared_flag_aix='-shared' 9892 shared_flag_svr4='-shared $wl-G' 9893 else 9894 # not using gcc 9895 if test ia64 = "$host_cpu"; then 9896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9897 # chokes on -Wl,-G. The following line is correct: 9898 shared_flag='-G' 9899 else 9900 if test yes = "$aix_use_runtimelinking"; then 9901 shared_flag='$wl-G' 9902 else 9903 shared_flag='$wl-bM:SRE' 9904 fi 9905 shared_flag_aix='$wl-bM:SRE' 9906 shared_flag_svr4='$wl-G' 9907 fi 9908 fi 9909 9910 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 9911 # It seems that -bexpall does not export symbols beginning with 9912 # underscore (_), so it is better to generate a list of symbols to 9913 # export. 9914 _LT_TAGVAR(always_export_symbols, $1)=yes 9915 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9916 # Warning - without using the other runtime loading flags (-brtl), 9917 # -berok will link without error, but may produce a broken library. 9918 # The "-G" linker flag allows undefined symbols. 9919 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 9920 # Determine the default libpath from the value encoded in an empty 9921 # executable. 9922 _LT_SYS_MODULE_PATH_AIX([$1]) 9923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 9924 9925 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9926 else 9927 if test ia64 = "$host_cpu"; then 9928 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 9929 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 9930 _LT_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" 9931 else 9932 # Determine the default libpath from the value encoded in an 9933 # empty executable. 9934 _LT_SYS_MODULE_PATH_AIX([$1]) 9935 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 9936 # Warning - without using the other run time loading flags, 9937 # -berok will link without error, but may produce a broken library. 9938 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 9939 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 9940 if test yes = "$with_gnu_ld"; then 9941 # We only use this code for GNU lds that support --whole-archive. 9942 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 9943 else 9944 # Exported symbols can be pulled into shared objects from archives 9945 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 9946 fi 9947 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 9948 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9949 # -brtl affects multiple linker settings, -berok does not and is overridden later 9950 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 9951 if test svr4 != "$with_aix_soname"; then 9952 # This is similar to how AIX traditionally builds its shared 9953 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 9954 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9955 fi 9956 if test aix != "$with_aix_soname"; then 9957 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9958 else 9959 # used by -dlpreopen to get the symbols 9960 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9961 fi 9962 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 9963 fi 9964 fi 9965 ;; 9966 9967 beos*) 9968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9969 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 9970 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9971 # support --undefined. This deserves some investigation. FIXME 9972 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9973 else 9974 _LT_TAGVAR(ld_shlibs, $1)=no 9975 fi 9976 ;; 9977 9978 chorus*) 9979 case $cc_basename in 9980 *) 9981 # FIXME: insert proper C++ library support 9982 _LT_TAGVAR(ld_shlibs, $1)=no 9983 ;; 9984 esac 9985 ;; 9986 9987 cygwin* | mingw* | pw32* | cegcc*) 9988 case $GXX,$cc_basename in 9989 ,cl* | no,cl* | ,icl* | no,icl*) 9990 # Native MSVC or ICC 9991 # hardcode_libdir_flag_spec is actually meaningless, as there is 9992 # no search path for DLLs. 9993 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 9994 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 9995 _LT_TAGVAR(always_export_symbols, $1)=yes 9996 _LT_TAGVAR(file_list_spec, $1)='@' 9997 # Tell ltmain to make .lib files, not .a files. 9998 libext=lib 9999 # Tell ltmain to make .dll files, not .so files. 10000 shrext_cmds=.dll 10001 # FIXME: Setting linknames here is a bad hack. 10002 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10003 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 10004 cp "$export_symbols" "$output_objdir/$soname.def"; 10005 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10006 else 10007 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10008 fi~ 10009 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10010 linknames=' 10011 # The linker will not automatically build a static lib if we build a DLL. 10012 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 10013 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 10014 # Don't use ranlib 10015 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 10016 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 10017 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10018 case $lt_outputfile in 10019 *.exe|*.EXE) ;; 10020 *) 10021 lt_outputfile=$lt_outputfile.exe 10022 lt_tool_outputfile=$lt_tool_outputfile.exe 10023 ;; 10024 esac~ 10025 func_to_tool_file "$lt_outputfile"~ 10026 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10027 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10028 $RM "$lt_outputfile.manifest"; 10029 fi' 10030 ;; 10031 *) 10032 # g++ 10033 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 10034 # as there is no search path for DLLs. 10035 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 10036 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 10037 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 10038 _LT_TAGVAR(always_export_symbols, $1)=no 10039 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 10040 10041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10042 _LT_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' 10043 # If the export-symbols file already is a .def file, use it as 10044 # is; otherwise, prepend EXPORTS... 10045 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 10046 cp $export_symbols $output_objdir/$soname.def; 10047 else 10048 echo EXPORTS > $output_objdir/$soname.def; 10049 cat $export_symbols >> $output_objdir/$soname.def; 10050 fi~ 10051 $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' 10052 else 10053 _LT_TAGVAR(ld_shlibs, $1)=no 10054 fi 10055 ;; 10056 esac 10057 ;; 10058 darwin* | rhapsody*) 10059 _LT_DARWIN_LINKER_FEATURES($1) 10060 ;; 10061 10062 os2*) 10063 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 10064 _LT_TAGVAR(hardcode_minus_L, $1)=yes 10065 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 10066 shrext_cmds=.dll 10067 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10068 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10069 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10070 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10071 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10072 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10073 emximp -o $lib $output_objdir/$libname.def' 10074 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10075 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10076 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10077 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10078 prefix_cmds="$SED"~ 10079 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10080 prefix_cmds="$prefix_cmds -e 1d"; 10081 fi~ 10082 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10083 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10084 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10085 emximp -o $lib $output_objdir/$libname.def' 10086 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10087 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 10088 _LT_TAGVAR(file_list_spec, $1)='@' 10089 ;; 10090 10091 dgux*) 10092 case $cc_basename in 10093 ec++*) 10094 # FIXME: insert proper C++ library support 10095 _LT_TAGVAR(ld_shlibs, $1)=no 10096 ;; 10097 ghcx*) 10098 # Green Hills C++ Compiler 10099 # FIXME: insert proper C++ library support 10100 _LT_TAGVAR(ld_shlibs, $1)=no 10101 ;; 10102 *) 10103 # FIXME: insert proper C++ library support 10104 _LT_TAGVAR(ld_shlibs, $1)=no 10105 ;; 10106 esac 10107 ;; 10108 10109 freebsd2.*) 10110 # C++ shared libraries reported to be fairly broken before 10111 # switch to ELF 10112 _LT_TAGVAR(ld_shlibs, $1)=no 10113 ;; 10114 10115 freebsd-elf*) 10116 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10117 ;; 10118 10119 freebsd* | dragonfly* | midnightbsd*) 10120 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10121 # conventions 10122 _LT_TAGVAR(ld_shlibs, $1)=yes 10123 ;; 10124 10125 haiku*) 10126 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10127 _LT_TAGVAR(link_all_deplibs, $1)=yes 10128 ;; 10129 10130 hpux9*) 10131 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 10132 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10133 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 10134 _LT_TAGVAR(hardcode_direct, $1)=yes 10135 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 10136 # but as the default 10137 # location of the library. 10138 10139 case $cc_basename in 10140 CC*) 10141 # FIXME: insert proper C++ library support 10142 _LT_TAGVAR(ld_shlibs, $1)=no 10143 ;; 10144 aCC*) 10145 _LT_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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10146 # Commands to make compiler produce verbose output that lists 10147 # what "hidden" libraries, object files and flags are used when 10148 # linking a shared library. 10149 # 10150 # There doesn't appear to be a way to prevent this compiler from 10151 # explicitly linking system object files so we need to strip them 10152 # from the output so that they don't get included in the library 10153 # dependencies. 10154 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 10155 ;; 10156 *) 10157 if test yes = "$GXX"; then 10158 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10159 else 10160 # FIXME: insert proper C++ library support 10161 _LT_TAGVAR(ld_shlibs, $1)=no 10162 fi 10163 ;; 10164 esac 10165 ;; 10166 10167 hpux10*|hpux11*) 10168 if test no = "$with_gnu_ld"; then 10169 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 10170 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10171 10172 case $host_cpu in 10173 hppa*64*|ia64*) 10174 ;; 10175 *) 10176 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 10177 ;; 10178 esac 10179 fi 10180 case $host_cpu in 10181 hppa*64*|ia64*) 10182 _LT_TAGVAR(hardcode_direct, $1)=no 10183 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10184 ;; 10185 *) 10186 _LT_TAGVAR(hardcode_direct, $1)=yes 10187 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 10188 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 10189 # but as the default 10190 # location of the library. 10191 ;; 10192 esac 10193 10194 case $cc_basename in 10195 CC*) 10196 # FIXME: insert proper C++ library support 10197 _LT_TAGVAR(ld_shlibs, $1)=no 10198 ;; 10199 aCC*) 10200 case $host_cpu in 10201 hppa*64*) 10202 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10203 ;; 10204 ia64*) 10205 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10206 ;; 10207 *) 10208 _LT_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' 10209 ;; 10210 esac 10211 # Commands to make compiler produce verbose output that lists 10212 # what "hidden" libraries, object files and flags are used when 10213 # linking a shared library. 10214 # 10215 # There doesn't appear to be a way to prevent this compiler from 10216 # explicitly linking system object files so we need to strip them 10217 # from the output so that they don't get included in the library 10218 # dependencies. 10219 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; func_echo_all "$list"' 10220 ;; 10221 *) 10222 if test yes = "$GXX"; then 10223 if test no = "$with_gnu_ld"; then 10224 case $host_cpu in 10225 hppa*64*) 10226 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10227 ;; 10228 ia64*) 10229 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10230 ;; 10231 *) 10232 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10233 ;; 10234 esac 10235 fi 10236 else 10237 # FIXME: insert proper C++ library support 10238 _LT_TAGVAR(ld_shlibs, $1)=no 10239 fi 10240 ;; 10241 esac 10242 ;; 10243 10244 interix[[3-9]]*) 10245 _LT_TAGVAR(hardcode_direct, $1)=no 10246 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10247 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10248 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 10249 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10250 # Instead, shared libraries are loaded at an image base (0x10000000 by 10251 # default) and relocated if they conflict, which is a slow very memory 10252 # consuming and fragmenting process. To avoid this, we pick a random, 10253 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10254 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10255 _LT_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' 10256 _LT_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' 10257 ;; 10258 irix5* | irix6*) 10259 case $cc_basename in 10260 CC*) 10261 # SGI C++ 10262 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10263 10264 # Archives containing C++ object files must be created using 10265 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10266 # necessary to make sure instantiated templates are included 10267 # in the archive. 10268 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 10269 ;; 10270 *) 10271 if test yes = "$GXX"; then 10272 if test no = "$with_gnu_ld"; then 10273 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10274 else 10275 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 10276 fi 10277 fi 10278 _LT_TAGVAR(link_all_deplibs, $1)=yes 10279 ;; 10280 esac 10281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 10282 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10283 _LT_TAGVAR(inherit_rpath, $1)=yes 10284 ;; 10285 10286 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10287 case $cc_basename in 10288 KCC*) 10289 # Kuck and Associates, Inc. (KAI) C++ Compiler 10290 10291 # KCC will only create a shared library if the output file 10292 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10293 # to its proper name (with version) after linking. 10294 _LT_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' 10295 _LT_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' 10296 # Commands to make compiler produce verbose output that lists 10297 # what "hidden" libraries, object files and flags are used when 10298 # linking a shared library. 10299 # 10300 # There doesn't appear to be a way to prevent this compiler from 10301 # explicitly linking system object files so we need to strip them 10302 # from the output so that they don't get included in the library 10303 # dependencies. 10304 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; func_echo_all "$list"' 10305 10306 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10307 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 10308 10309 # Archives containing C++ object files must be created using 10310 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10311 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 10312 ;; 10313 icpc* | ecpc* ) 10314 # Intel C++ 10315 with_gnu_ld=yes 10316 # version 8.0 and above of icpc choke on multiply defined symbols 10317 # if we add $predep_objects and $postdep_objects, however 7.1 and 10318 # earlier do not add the objects themselves. 10319 case `$CC -V 2>&1` in 10320 *"Version 7."*) 10321 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 10322 _LT_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' 10323 ;; 10324 *) # Version 8.0 or newer 10325 tmp_idyn= 10326 case $host_cpu in 10327 ia64*) tmp_idyn=' -i_dynamic';; 10328 esac 10329 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10330 _LT_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' 10331 ;; 10332 esac 10333 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10334 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10335 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 10336 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 10337 ;; 10338 pgCC* | pgcpp*) 10339 # Portland Group C++ compiler 10340 case `$CC -V` in 10341 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 10342 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 10343 rm -rf $tpldir~ 10344 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 10345 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 10346 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 10347 rm -rf $tpldir~ 10348 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 10349 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 10350 $RANLIB $oldlib' 10351 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 10352 rm -rf $tpldir~ 10353 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 10354 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 10355 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 10356 rm -rf $tpldir~ 10357 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 10358 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10359 ;; 10360 *) # Version 6 and above use weak symbols 10361 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 10362 _LT_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' 10363 ;; 10364 esac 10365 10366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 10367 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 10368 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10369 ;; 10370 cxx*) 10371 # Compaq C++ 10372 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 10373 _LT_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' 10374 10375 runpath_var=LD_RUN_PATH 10376 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 10377 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10378 10379 # Commands to make compiler produce verbose output that lists 10380 # what "hidden" libraries, object files and flags are used when 10381 # linking a shared library. 10382 # 10383 # There doesn't appear to be a way to prevent this compiler from 10384 # explicitly linking system object files so we need to strip them 10385 # from the output so that they don't get included in the library 10386 # dependencies. 10387 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 10388 ;; 10389 xl* | mpixl* | bgxl*) 10390 # IBM XL 8.0 on PPC, with GNU ld 10391 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 10392 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 10393 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10394 if test yes = "$supports_anon_versioning"; then 10395 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 10396 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10397 echo "local: *; };" >> $output_objdir/$libname.ver~ 10398 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10399 fi 10400 ;; 10401 *) 10402 case `$CC -V 2>&1 | $SED 5q` in 10403 *Sun\ C*) 10404 # Sun C++ 5.9 10405 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 10406 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10407 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 10408 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 10409 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10410 _LT_TAGVAR(compiler_needs_object, $1)=yes 10411 10412 # Not sure whether something based on 10413 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 10414 # would be better. 10415 output_verbose_link_cmd='func_echo_all' 10416 10417 # Archives containing C++ object files must be created using 10418 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10419 # necessary to make sure instantiated templates are included 10420 # in the archive. 10421 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 10422 ;; 10423 esac 10424 ;; 10425 esac 10426 ;; 10427 10428 lynxos*) 10429 # FIXME: insert proper C++ library support 10430 _LT_TAGVAR(ld_shlibs, $1)=no 10431 ;; 10432 10433 m88k*) 10434 # FIXME: insert proper C++ library support 10435 _LT_TAGVAR(ld_shlibs, $1)=no 10436 ;; 10437 10438 mvs*) 10439 case $cc_basename in 10440 cxx*) 10441 # FIXME: insert proper C++ library support 10442 _LT_TAGVAR(ld_shlibs, $1)=no 10443 ;; 10444 *) 10445 # FIXME: insert proper C++ library support 10446 _LT_TAGVAR(ld_shlibs, $1)=no 10447 ;; 10448 esac 10449 ;; 10450 10451 netbsd*) 10452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10453 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10454 wlarc= 10455 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 10456 _LT_TAGVAR(hardcode_direct, $1)=yes 10457 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10458 fi 10459 # Workaround some broken pre-1.5 toolchains 10460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10461 ;; 10462 10463 *nto* | *qnx*) 10464 _LT_TAGVAR(ld_shlibs, $1)=yes 10465 ;; 10466 10467 openbsd* | bitrig*) 10468 if test -f /usr/libexec/ld.so; then 10469 _LT_TAGVAR(hardcode_direct, $1)=yes 10470 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10471 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 10472 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10473 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 10475 _LT_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' 10476 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 10477 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10478 fi 10479 output_verbose_link_cmd=func_echo_all 10480 else 10481 _LT_TAGVAR(ld_shlibs, $1)=no 10482 fi 10483 ;; 10484 10485 osf3* | osf4* | osf5*) 10486 case $cc_basename in 10487 KCC*) 10488 # Kuck and Associates, Inc. (KAI) C++ Compiler 10489 10490 # KCC will only create a shared library if the output file 10491 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10492 # to its proper name (with version) after linking. 10493 _LT_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' 10494 10495 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 10496 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10497 10498 # Archives containing C++ object files must be created using 10499 # the KAI C++ compiler. 10500 case $host in 10501 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 10502 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 10503 esac 10504 ;; 10505 RCC*) 10506 # Rational C++ 2.4.1 10507 # FIXME: insert proper C++ library support 10508 _LT_TAGVAR(ld_shlibs, $1)=no 10509 ;; 10510 cxx*) 10511 case $host in 10512 osf3*) 10513 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 10514 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10515 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 10516 ;; 10517 *) 10518 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 10519 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10520 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10521 echo "-hidden">> $lib.exp~ 10522 $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~ 10523 $RM $lib.exp' 10524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 10525 ;; 10526 esac 10527 10528 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10529 10530 # Commands to make compiler produce verbose output that lists 10531 # what "hidden" libraries, object files and flags are used when 10532 # linking a shared library. 10533 # 10534 # There doesn't appear to be a way to prevent this compiler from 10535 # explicitly linking system object files so we need to strip them 10536 # from the output so that they don't get included in the library 10537 # dependencies. 10538 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 10539 ;; 10540 *) 10541 if test yes,no = "$GXX,$with_gnu_ld"; then 10542 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 10543 case $host in 10544 osf3*) 10545 _LT_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" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10546 ;; 10547 *) 10548 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10549 ;; 10550 esac 10551 10552 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 10553 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 10554 10555 # Commands to make compiler produce verbose output that lists 10556 # what "hidden" libraries, object files and flags are used when 10557 # linking a shared library. 10558 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 10559 10560 else 10561 # FIXME: insert proper C++ library support 10562 _LT_TAGVAR(ld_shlibs, $1)=no 10563 fi 10564 ;; 10565 esac 10566 ;; 10567 10568 psos*) 10569 # FIXME: insert proper C++ library support 10570 _LT_TAGVAR(ld_shlibs, $1)=no 10571 ;; 10572 10573 sunos4*) 10574 case $cc_basename in 10575 CC*) 10576 # Sun C++ 4.x 10577 # FIXME: insert proper C++ library support 10578 _LT_TAGVAR(ld_shlibs, $1)=no 10579 ;; 10580 lcc*) 10581 # Lucid 10582 # FIXME: insert proper C++ library support 10583 _LT_TAGVAR(ld_shlibs, $1)=no 10584 ;; 10585 *) 10586 # FIXME: insert proper C++ library support 10587 _LT_TAGVAR(ld_shlibs, $1)=no 10588 ;; 10589 esac 10590 ;; 10591 10592 solaris*) 10593 case $cc_basename in 10594 CC* | sunCC*) 10595 # Sun C++ 4.2, 5.x and Centerline C++ 10596 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 10597 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 10598 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10599 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10600 $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' 10601 10602 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 10603 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10604 case $host_os in 10605 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 10606 *) 10607 # The compiler driver will combine and reorder linker options, 10608 # but understands '-z linker_flag'. 10609 # Supported since Solaris 2.6 (maybe 2.5.1?) 10610 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 10611 ;; 10612 esac 10613 _LT_TAGVAR(link_all_deplibs, $1)=yes 10614 10615 output_verbose_link_cmd='func_echo_all' 10616 10617 # Archives containing C++ object files must be created using 10618 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10619 # necessary to make sure instantiated templates are included 10620 # in the archive. 10621 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 10622 ;; 10623 gcx*) 10624 # Green Hills C++ Compiler 10625 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 10626 10627 # The C++ compiler must be used to create the archive. 10628 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10629 ;; 10630 *) 10631 # GNU C++ compiler with Solaris linker 10632 if test yes,no = "$GXX,$with_gnu_ld"; then 10633 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 10634 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 10635 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 10636 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10637 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 10638 10639 # Commands to make compiler produce verbose output that lists 10640 # what "hidden" libraries, object files and flags are used when 10641 # linking a shared library. 10642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 10643 else 10644 # g++ 2.7 appears to require '-G' NOT '-shared' on this 10645 # platform. 10646 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 10647 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10648 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 10649 10650 # Commands to make compiler produce verbose output that lists 10651 # what "hidden" libraries, object files and flags are used when 10652 # linking a shared library. 10653 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 10654 fi 10655 10656 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 10657 case $host_os in 10658 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 10659 *) 10660 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10661 ;; 10662 esac 10663 fi 10664 ;; 10665 esac 10666 ;; 10667 10668 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 10669 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 10670 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10671 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10672 runpath_var='LD_RUN_PATH' 10673 10674 case $cc_basename in 10675 CC*) 10676 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10677 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10678 ;; 10679 *) 10680 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10681 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10682 ;; 10683 esac 10684 ;; 10685 10686 sysv5* | sco3.2v5* | sco5v6*) 10687 # Note: We CANNOT use -z defs as we might desire, because we do not 10688 # link with -lc, and that would cause any symbols used from libc to 10689 # always be unresolved, which means just about no library would 10690 # ever link correctly. If we're not using GNU ld we use -z text 10691 # though, which does catch some bad symbols but isn't as heavy-handed 10692 # as -z defs. 10693 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 10694 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 10695 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10696 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 10697 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 10698 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 10699 _LT_TAGVAR(link_all_deplibs, $1)=yes 10700 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 10701 runpath_var='LD_RUN_PATH' 10702 10703 case $cc_basename in 10704 CC*) 10705 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10706 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10707 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 10708 '"$_LT_TAGVAR(old_archive_cmds, $1)" 10709 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 10710 '"$_LT_TAGVAR(reload_cmds, $1)" 10711 ;; 10712 *) 10713 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10714 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10715 ;; 10716 esac 10717 ;; 10718 10719 tandem*) 10720 case $cc_basename in 10721 NCC*) 10722 # NonStop-UX NCC 3.20 10723 # FIXME: insert proper C++ library support 10724 _LT_TAGVAR(ld_shlibs, $1)=no 10725 ;; 10726 *) 10727 # FIXME: insert proper C++ library support 10728 _LT_TAGVAR(ld_shlibs, $1)=no 10729 ;; 10730 esac 10731 ;; 10732 10733 vxworks*) 10734 # FIXME: insert proper C++ library support 10735 _LT_TAGVAR(ld_shlibs, $1)=no 10736 ;; 10737 10738 *) 10739 # FIXME: insert proper C++ library support 10740 _LT_TAGVAR(ld_shlibs, $1)=no 10741 ;; 10742 esac 10743 10744 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 10745 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 10746 10747 _LT_TAGVAR(GCC, $1)=$GXX 10748 _LT_TAGVAR(LD, $1)=$LD 10749 10750 ## CAVEAT EMPTOR: 10751 ## There is no encapsulation within the following macros, do not change 10752 ## the running order or otherwise move them around unless you know exactly 10753 ## what you are doing... 10754 _LT_SYS_HIDDEN_LIBDEPS($1) 10755 _LT_COMPILER_PIC($1) 10756 _LT_COMPILER_C_O($1) 10757 _LT_COMPILER_FILE_LOCKS($1) 10758 _LT_LINKER_SHLIBS($1) 10759 _LT_SYS_DYNAMIC_LINKER($1) 10760 _LT_LINKER_HARDCODE_LIBPATH($1) 10761 10762 _LT_CONFIG($1) 10763 fi # test -n "$compiler" 10764 10765 CC=$lt_save_CC 10766 CFLAGS=$lt_save_CFLAGS 10767 LDCXX=$LD 10768 LD=$lt_save_LD 10769 GCC=$lt_save_GCC 10770 with_gnu_ld=$lt_save_with_gnu_ld 10771 lt_cv_path_LDCXX=$lt_cv_path_LD 10772 lt_cv_path_LD=$lt_save_path_LD 10773 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 10774 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 10775fi # test yes != "$_lt_caught_CXX_error" 10776 10777AC_LANG_POP 10778])# _LT_LANG_CXX_CONFIG 10779 10780 10781# _LT_FUNC_STRIPNAME_CNF 10782# ---------------------- 10783# func_stripname_cnf prefix suffix name 10784# strip PREFIX and SUFFIX off of NAME. 10785# PREFIX and SUFFIX must not contain globbing or regex special 10786# characters, hashes, percent signs, but SUFFIX may contain a leading 10787# dot (in which case that matches only a dot). 10788# 10789# This function is identical to the (non-XSI) version of func_stripname, 10790# except this one can be used by m4 code that may be executed by configure, 10791# rather than the libtool script. 10792m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 10793AC_REQUIRE([_LT_DECL_SED]) 10794AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 10795func_stripname_cnf () 10796{ 10797 case @S|@2 in 10798 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 10799 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 10800 esac 10801} # func_stripname_cnf 10802])# _LT_FUNC_STRIPNAME_CNF 10803 10804 10805# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 10806# --------------------------------- 10807# Figure out "hidden" library dependencies from verbose 10808# compiler output when linking a shared library. 10809# Parse the compiler output and extract the necessary 10810# objects, libraries and library flags. 10811m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 10812[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 10813AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 10814# Dependencies to place before and after the object being linked: 10815_LT_TAGVAR(predep_objects, $1)= 10816_LT_TAGVAR(postdep_objects, $1)= 10817_LT_TAGVAR(predeps, $1)= 10818_LT_TAGVAR(postdeps, $1)= 10819_LT_TAGVAR(compiler_lib_search_path, $1)= 10820 10821dnl we can't use the lt_simple_compile_test_code here, 10822dnl because it contains code intended for an executable, 10823dnl not a library. It's possible we should let each 10824dnl tag define a new lt_????_link_test_code variable, 10825dnl but it's only used here... 10826m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 10827int a; 10828void foo (void) { a = 0; } 10829_LT_EOF 10830], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 10831class Foo 10832{ 10833public: 10834 Foo (void) { a = 0; } 10835private: 10836 int a; 10837}; 10838_LT_EOF 10839], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 10840 subroutine foo 10841 implicit none 10842 integer*4 a 10843 a=0 10844 return 10845 end 10846_LT_EOF 10847], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 10848 subroutine foo 10849 implicit none 10850 integer a 10851 a=0 10852 return 10853 end 10854_LT_EOF 10855], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 10856public class foo { 10857 private int a; 10858 public void bar (void) { 10859 a = 0; 10860 } 10861}; 10862_LT_EOF 10863], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 10864package foo 10865func foo() { 10866} 10867_LT_EOF 10868]) 10869 10870_lt_libdeps_save_CFLAGS=$CFLAGS 10871case "$CC $CFLAGS " in #( 10872*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 10873*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 10874*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 10875esac 10876 10877dnl Parse the compiler output and extract the necessary 10878dnl objects, libraries and library flags. 10879if AC_TRY_EVAL(ac_compile); then 10880 # Parse the compiler output and extract the necessary 10881 # objects, libraries and library flags. 10882 10883 # Sentinel used to keep track of whether or not we are before 10884 # the conftest object file. 10885 pre_test_object_deps_done=no 10886 10887 for p in `eval "$output_verbose_link_cmd"`; do 10888 case $prev$p in 10889 10890 -L* | -R* | -l*) 10891 # Some compilers place space between "-{L,R}" and the path. 10892 # Remove the space. 10893 if test x-L = "$p" || 10894 test x-R = "$p"; then 10895 prev=$p 10896 continue 10897 fi 10898 10899 # Expand the sysroot to ease extracting the directories later. 10900 if test -z "$prev"; then 10901 case $p in 10902 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 10903 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 10904 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 10905 esac 10906 fi 10907 case $p in 10908 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 10909 esac 10910 if test no = "$pre_test_object_deps_done"; then 10911 case $prev in 10912 -L | -R) 10913 # Internal compiler library paths should come after those 10914 # provided the user. The postdeps already come after the 10915 # user supplied libs so there is no need to process them. 10916 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 10917 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 10918 else 10919 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 10920 fi 10921 ;; 10922 # The "-l" case would never come before the object being 10923 # linked, so don't bother handling this case. 10924 esac 10925 else 10926 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 10927 _LT_TAGVAR(postdeps, $1)=$prev$p 10928 else 10929 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 10930 fi 10931 fi 10932 prev= 10933 ;; 10934 10935 *.lto.$objext) ;; # Ignore GCC LTO objects 10936 *.$objext) 10937 # This assumes that the test object file only shows up 10938 # once in the compiler output. 10939 if test "$p" = "conftest.$objext"; then 10940 pre_test_object_deps_done=yes 10941 continue 10942 fi 10943 10944 if test no = "$pre_test_object_deps_done"; then 10945 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 10946 _LT_TAGVAR(predep_objects, $1)=$p 10947 else 10948 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 10949 fi 10950 else 10951 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 10952 _LT_TAGVAR(postdep_objects, $1)=$p 10953 else 10954 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 10955 fi 10956 fi 10957 ;; 10958 10959 *) ;; # Ignore the rest. 10960 10961 esac 10962 done 10963 10964 # Clean up. 10965 rm -f a.out a.exe 10966else 10967 echo "libtool.m4: error: problem compiling $1 test program" 10968fi 10969 10970$RM -f confest.$objext 10971CFLAGS=$_lt_libdeps_save_CFLAGS 10972 10973# PORTME: override above test on systems where it is broken 10974m4_if([$1], [CXX], 10975[case $host_os in 10976interix[[3-9]]*) 10977 # Interix 3.5 installs completely hosed .la files for C++, so rather than 10978 # hack all around it, let's just trust "g++" to DTRT. 10979 _LT_TAGVAR(predep_objects,$1)= 10980 _LT_TAGVAR(postdep_objects,$1)= 10981 _LT_TAGVAR(postdeps,$1)= 10982 ;; 10983esac 10984]) 10985 10986case " $_LT_TAGVAR(postdeps, $1) " in 10987*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 10988esac 10989 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 10990if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 10991 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 10992fi 10993_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 10994 [The directories searched by this compiler when creating a shared library]) 10995_LT_TAGDECL([], [predep_objects], [1], 10996 [Dependencies to place before and after the objects being linked to 10997 create a shared library]) 10998_LT_TAGDECL([], [postdep_objects], [1]) 10999_LT_TAGDECL([], [predeps], [1]) 11000_LT_TAGDECL([], [postdeps], [1]) 11001_LT_TAGDECL([], [compiler_lib_search_path], [1], 11002 [The library search path used internally by the compiler when linking 11003 a shared library]) 11004])# _LT_SYS_HIDDEN_LIBDEPS 11005 11006 11007# _LT_LANG_F77_CONFIG([TAG]) 11008# -------------------------- 11009# Ensure that the configuration variables for a Fortran 77 compiler are 11010# suitably defined. These variables are subsequently used by _LT_CONFIG 11011# to write the compiler configuration to 'libtool'. 11012m4_defun([_LT_LANG_F77_CONFIG], 11013[AC_LANG_PUSH(Fortran 77) 11014if test -z "$F77" || test no = "$F77"; then 11015 _lt_disable_F77=yes 11016fi 11017 11018_LT_TAGVAR(archive_cmds_need_lc, $1)=no 11019_LT_TAGVAR(allow_undefined_flag, $1)= 11020_LT_TAGVAR(always_export_symbols, $1)=no 11021_LT_TAGVAR(archive_expsym_cmds, $1)= 11022_LT_TAGVAR(export_dynamic_flag_spec, $1)= 11023_LT_TAGVAR(hardcode_direct, $1)=no 11024_LT_TAGVAR(hardcode_direct_absolute, $1)=no 11025_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 11026_LT_TAGVAR(hardcode_libdir_separator, $1)= 11027_LT_TAGVAR(hardcode_minus_L, $1)=no 11028_LT_TAGVAR(hardcode_automatic, $1)=no 11029_LT_TAGVAR(inherit_rpath, $1)=no 11030_LT_TAGVAR(module_cmds, $1)= 11031_LT_TAGVAR(module_expsym_cmds, $1)= 11032_LT_TAGVAR(link_all_deplibs, $1)=unknown 11033_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 11034_LT_TAGVAR(reload_flag, $1)=$reload_flag 11035_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 11036_LT_TAGVAR(no_undefined_flag, $1)= 11037_LT_TAGVAR(whole_archive_flag_spec, $1)= 11038_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 11039 11040# Source file extension for f77 test sources. 11041ac_ext=f 11042 11043# Object file extension for compiled f77 test sources. 11044objext=o 11045_LT_TAGVAR(objext, $1)=$objext 11046 11047# No sense in running all these tests if we already determined that 11048# the F77 compiler isn't working. Some variables (like enable_shared) 11049# are currently assumed to apply to all compilers on this platform, 11050# and will be corrupted by setting them based on a non-working compiler. 11051if test yes != "$_lt_disable_F77"; then 11052 # Code to be used in simple compile tests 11053 lt_simple_compile_test_code="\ 11054 subroutine t 11055 return 11056 end 11057" 11058 11059 # Code to be used in simple link tests 11060 lt_simple_link_test_code="\ 11061 program t 11062 end 11063" 11064 11065 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11066 _LT_TAG_COMPILER 11067 11068 # save warnings/boilerplate of simple test code 11069 _LT_COMPILER_BOILERPLATE 11070 _LT_LINKER_BOILERPLATE 11071 11072 # Allow CC to be a program name with arguments. 11073 lt_save_CC=$CC 11074 lt_save_GCC=$GCC 11075 lt_save_CFLAGS=$CFLAGS 11076 CC=${F77-"f77"} 11077 CFLAGS=$FFLAGS 11078 compiler=$CC 11079 _LT_TAGVAR(compiler, $1)=$CC 11080 _LT_CC_BASENAME([$compiler]) 11081 GCC=$G77 11082 if test -n "$compiler"; then 11083 AC_MSG_CHECKING([if libtool supports shared libraries]) 11084 AC_MSG_RESULT([$can_build_shared]) 11085 11086 AC_MSG_CHECKING([whether to build shared libraries]) 11087 test no = "$can_build_shared" && enable_shared=no 11088 11089 # On AIX, shared libraries and static libraries use the same namespace, and 11090 # are all built from PIC. 11091 case $host_os in 11092 aix3*) 11093 test yes = "$enable_shared" && enable_static=no 11094 if test -n "$RANLIB"; then 11095 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11096 postinstall_cmds='$RANLIB $lib' 11097 fi 11098 ;; 11099 aix[[4-9]]*) 11100 if test ia64 != "$host_cpu"; then 11101 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11102 yes,aix,yes) ;; # shared object as lib.so file only 11103 yes,svr4,*) ;; # shared object as lib.so archive member only 11104 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11105 esac 11106 fi 11107 ;; 11108 esac 11109 AC_MSG_RESULT([$enable_shared]) 11110 11111 AC_MSG_CHECKING([whether to build static libraries]) 11112 # Make sure either enable_shared or enable_static is yes. 11113 test yes = "$enable_shared" || enable_static=yes 11114 AC_MSG_RESULT([$enable_static]) 11115 11116 _LT_TAGVAR(GCC, $1)=$G77 11117 _LT_TAGVAR(LD, $1)=$LD 11118 11119 ## CAVEAT EMPTOR: 11120 ## There is no encapsulation within the following macros, do not change 11121 ## the running order or otherwise move them around unless you know exactly 11122 ## what you are doing... 11123 _LT_COMPILER_PIC($1) 11124 _LT_COMPILER_C_O($1) 11125 _LT_COMPILER_FILE_LOCKS($1) 11126 _LT_LINKER_SHLIBS($1) 11127 _LT_SYS_DYNAMIC_LINKER($1) 11128 _LT_LINKER_HARDCODE_LIBPATH($1) 11129 11130 _LT_CONFIG($1) 11131 fi # test -n "$compiler" 11132 11133 GCC=$lt_save_GCC 11134 CC=$lt_save_CC 11135 CFLAGS=$lt_save_CFLAGS 11136fi # test yes != "$_lt_disable_F77" 11137 11138AC_LANG_POP 11139])# _LT_LANG_F77_CONFIG 11140 11141 11142# _LT_LANG_FC_CONFIG([TAG]) 11143# ------------------------- 11144# Ensure that the configuration variables for a Fortran compiler are 11145# suitably defined. These variables are subsequently used by _LT_CONFIG 11146# to write the compiler configuration to 'libtool'. 11147m4_defun([_LT_LANG_FC_CONFIG], 11148[AC_LANG_PUSH(Fortran) 11149 11150if test -z "$FC" || test no = "$FC"; then 11151 _lt_disable_FC=yes 11152fi 11153 11154_LT_TAGVAR(archive_cmds_need_lc, $1)=no 11155_LT_TAGVAR(allow_undefined_flag, $1)= 11156_LT_TAGVAR(always_export_symbols, $1)=no 11157_LT_TAGVAR(archive_expsym_cmds, $1)= 11158_LT_TAGVAR(export_dynamic_flag_spec, $1)= 11159_LT_TAGVAR(hardcode_direct, $1)=no 11160_LT_TAGVAR(hardcode_direct_absolute, $1)=no 11161_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 11162_LT_TAGVAR(hardcode_libdir_separator, $1)= 11163_LT_TAGVAR(hardcode_minus_L, $1)=no 11164_LT_TAGVAR(hardcode_automatic, $1)=no 11165_LT_TAGVAR(inherit_rpath, $1)=no 11166_LT_TAGVAR(module_cmds, $1)= 11167_LT_TAGVAR(module_expsym_cmds, $1)= 11168_LT_TAGVAR(link_all_deplibs, $1)=unknown 11169_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 11170_LT_TAGVAR(reload_flag, $1)=$reload_flag 11171_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 11172_LT_TAGVAR(no_undefined_flag, $1)= 11173_LT_TAGVAR(whole_archive_flag_spec, $1)= 11174_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 11175 11176# Source file extension for fc test sources. 11177ac_ext=${ac_fc_srcext-f} 11178 11179# Object file extension for compiled fc test sources. 11180objext=o 11181_LT_TAGVAR(objext, $1)=$objext 11182 11183# No sense in running all these tests if we already determined that 11184# the FC compiler isn't working. Some variables (like enable_shared) 11185# are currently assumed to apply to all compilers on this platform, 11186# and will be corrupted by setting them based on a non-working compiler. 11187if test yes != "$_lt_disable_FC"; then 11188 # Code to be used in simple compile tests 11189 lt_simple_compile_test_code="\ 11190 subroutine t 11191 return 11192 end 11193" 11194 11195 # Code to be used in simple link tests 11196 lt_simple_link_test_code="\ 11197 program t 11198 end 11199" 11200 11201 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11202 _LT_TAG_COMPILER 11203 11204 # save warnings/boilerplate of simple test code 11205 _LT_COMPILER_BOILERPLATE 11206 _LT_LINKER_BOILERPLATE 11207 11208 # Allow CC to be a program name with arguments. 11209 lt_save_CC=$CC 11210 lt_save_GCC=$GCC 11211 lt_save_CFLAGS=$CFLAGS 11212 CC=${FC-"f95"} 11213 CFLAGS=$FCFLAGS 11214 compiler=$CC 11215 GCC=$ac_cv_fc_compiler_gnu 11216 11217 _LT_TAGVAR(compiler, $1)=$CC 11218 _LT_CC_BASENAME([$compiler]) 11219 11220 if test -n "$compiler"; then 11221 AC_MSG_CHECKING([if libtool supports shared libraries]) 11222 AC_MSG_RESULT([$can_build_shared]) 11223 11224 AC_MSG_CHECKING([whether to build shared libraries]) 11225 test no = "$can_build_shared" && enable_shared=no 11226 11227 # On AIX, shared libraries and static libraries use the same namespace, and 11228 # are all built from PIC. 11229 case $host_os in 11230 aix3*) 11231 test yes = "$enable_shared" && enable_static=no 11232 if test -n "$RANLIB"; then 11233 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11234 postinstall_cmds='$RANLIB $lib' 11235 fi 11236 ;; 11237 aix[[4-9]]*) 11238 if test ia64 != "$host_cpu"; then 11239 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11240 yes,aix,yes) ;; # shared object as lib.so file only 11241 yes,svr4,*) ;; # shared object as lib.so archive member only 11242 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11243 esac 11244 fi 11245 ;; 11246 esac 11247 AC_MSG_RESULT([$enable_shared]) 11248 11249 AC_MSG_CHECKING([whether to build static libraries]) 11250 # Make sure either enable_shared or enable_static is yes. 11251 test yes = "$enable_shared" || enable_static=yes 11252 AC_MSG_RESULT([$enable_static]) 11253 11254 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 11255 _LT_TAGVAR(LD, $1)=$LD 11256 11257 ## CAVEAT EMPTOR: 11258 ## There is no encapsulation within the following macros, do not change 11259 ## the running order or otherwise move them around unless you know exactly 11260 ## what you are doing... 11261 _LT_SYS_HIDDEN_LIBDEPS($1) 11262 _LT_COMPILER_PIC($1) 11263 _LT_COMPILER_C_O($1) 11264 _LT_COMPILER_FILE_LOCKS($1) 11265 _LT_LINKER_SHLIBS($1) 11266 _LT_SYS_DYNAMIC_LINKER($1) 11267 _LT_LINKER_HARDCODE_LIBPATH($1) 11268 11269 _LT_CONFIG($1) 11270 fi # test -n "$compiler" 11271 11272 GCC=$lt_save_GCC 11273 CC=$lt_save_CC 11274 CFLAGS=$lt_save_CFLAGS 11275fi # test yes != "$_lt_disable_FC" 11276 11277AC_LANG_POP 11278])# _LT_LANG_FC_CONFIG 11279 11280 11281# _LT_LANG_GCJ_CONFIG([TAG]) 11282# -------------------------- 11283# Ensure that the configuration variables for the GNU Java Compiler compiler 11284# are suitably defined. These variables are subsequently used by _LT_CONFIG 11285# to write the compiler configuration to 'libtool'. 11286m4_defun([_LT_LANG_GCJ_CONFIG], 11287[AC_REQUIRE([LT_PROG_GCJ])dnl 11288AC_LANG_SAVE 11289 11290# Source file extension for Java test sources. 11291ac_ext=java 11292 11293# Object file extension for compiled Java test sources. 11294objext=o 11295_LT_TAGVAR(objext, $1)=$objext 11296 11297# Code to be used in simple compile tests 11298lt_simple_compile_test_code="class foo {}" 11299 11300# Code to be used in simple link tests 11301lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 11302 11303# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11304_LT_TAG_COMPILER 11305 11306# save warnings/boilerplate of simple test code 11307_LT_COMPILER_BOILERPLATE 11308_LT_LINKER_BOILERPLATE 11309 11310# Allow CC to be a program name with arguments. 11311lt_save_CC=$CC 11312lt_save_CFLAGS=$CFLAGS 11313lt_save_GCC=$GCC 11314GCC=yes 11315CC=${GCJ-"gcj"} 11316CFLAGS=$GCJFLAGS 11317compiler=$CC 11318_LT_TAGVAR(compiler, $1)=$CC 11319_LT_TAGVAR(LD, $1)=$LD 11320_LT_CC_BASENAME([$compiler]) 11321 11322# GCJ did not exist at the time GCC didn't implicitly link libc in. 11323_LT_TAGVAR(archive_cmds_need_lc, $1)=no 11324 11325_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 11326_LT_TAGVAR(reload_flag, $1)=$reload_flag 11327_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 11328 11329if test -n "$compiler"; then 11330 _LT_COMPILER_NO_RTTI($1) 11331 _LT_COMPILER_PIC($1) 11332 _LT_COMPILER_C_O($1) 11333 _LT_COMPILER_FILE_LOCKS($1) 11334 _LT_LINKER_SHLIBS($1) 11335 _LT_LINKER_HARDCODE_LIBPATH($1) 11336 11337 _LT_CONFIG($1) 11338fi 11339 11340AC_LANG_RESTORE 11341 11342GCC=$lt_save_GCC 11343CC=$lt_save_CC 11344CFLAGS=$lt_save_CFLAGS 11345])# _LT_LANG_GCJ_CONFIG 11346 11347 11348# _LT_LANG_GO_CONFIG([TAG]) 11349# -------------------------- 11350# Ensure that the configuration variables for the GNU Go compiler 11351# are suitably defined. These variables are subsequently used by _LT_CONFIG 11352# to write the compiler configuration to 'libtool'. 11353m4_defun([_LT_LANG_GO_CONFIG], 11354[AC_REQUIRE([LT_PROG_GO])dnl 11355AC_LANG_SAVE 11356 11357# Source file extension for Go test sources. 11358ac_ext=go 11359 11360# Object file extension for compiled Go test sources. 11361objext=o 11362_LT_TAGVAR(objext, $1)=$objext 11363 11364# Code to be used in simple compile tests 11365lt_simple_compile_test_code="package main; func main() { }" 11366 11367# Code to be used in simple link tests 11368lt_simple_link_test_code='package main; func main() { }' 11369 11370# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11371_LT_TAG_COMPILER 11372 11373# save warnings/boilerplate of simple test code 11374_LT_COMPILER_BOILERPLATE 11375_LT_LINKER_BOILERPLATE 11376 11377# Allow CC to be a program name with arguments. 11378lt_save_CC=$CC 11379lt_save_CFLAGS=$CFLAGS 11380lt_save_GCC=$GCC 11381GCC=yes 11382CC=${GOC-"gccgo"} 11383CFLAGS=$GOFLAGS 11384compiler=$CC 11385_LT_TAGVAR(compiler, $1)=$CC 11386_LT_TAGVAR(LD, $1)=$LD 11387_LT_CC_BASENAME([$compiler]) 11388 11389# Go did not exist at the time GCC didn't implicitly link libc in. 11390_LT_TAGVAR(archive_cmds_need_lc, $1)=no 11391 11392_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 11393_LT_TAGVAR(reload_flag, $1)=$reload_flag 11394_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 11395 11396if test -n "$compiler"; then 11397 _LT_COMPILER_NO_RTTI($1) 11398 _LT_COMPILER_PIC($1) 11399 _LT_COMPILER_C_O($1) 11400 _LT_COMPILER_FILE_LOCKS($1) 11401 _LT_LINKER_SHLIBS($1) 11402 _LT_LINKER_HARDCODE_LIBPATH($1) 11403 11404 _LT_CONFIG($1) 11405fi 11406 11407AC_LANG_RESTORE 11408 11409GCC=$lt_save_GCC 11410CC=$lt_save_CC 11411CFLAGS=$lt_save_CFLAGS 11412])# _LT_LANG_GO_CONFIG 11413 11414 11415# _LT_LANG_RC_CONFIG([TAG]) 11416# ------------------------- 11417# Ensure that the configuration variables for the Windows resource compiler 11418# are suitably defined. These variables are subsequently used by _LT_CONFIG 11419# to write the compiler configuration to 'libtool'. 11420m4_defun([_LT_LANG_RC_CONFIG], 11421[AC_REQUIRE([LT_PROG_RC])dnl 11422AC_LANG_SAVE 11423 11424# Source file extension for RC test sources. 11425ac_ext=rc 11426 11427# Object file extension for compiled RC test sources. 11428objext=o 11429_LT_TAGVAR(objext, $1)=$objext 11430 11431# Code to be used in simple compile tests 11432lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 11433 11434# Code to be used in simple link tests 11435lt_simple_link_test_code=$lt_simple_compile_test_code 11436 11437# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11438_LT_TAG_COMPILER 11439 11440# save warnings/boilerplate of simple test code 11441_LT_COMPILER_BOILERPLATE 11442_LT_LINKER_BOILERPLATE 11443 11444# Allow CC to be a program name with arguments. 11445lt_save_CC=$CC 11446lt_save_CFLAGS=$CFLAGS 11447lt_save_GCC=$GCC 11448GCC= 11449CC=${RC-"windres"} 11450CFLAGS= 11451compiler=$CC 11452_LT_TAGVAR(compiler, $1)=$CC 11453_LT_CC_BASENAME([$compiler]) 11454_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 11455 11456if test -n "$compiler"; then 11457 : 11458 _LT_CONFIG($1) 11459fi 11460 11461GCC=$lt_save_GCC 11462AC_LANG_RESTORE 11463CC=$lt_save_CC 11464CFLAGS=$lt_save_CFLAGS 11465])# _LT_LANG_RC_CONFIG 11466 11467 11468# LT_PROG_GCJ 11469# ----------- 11470AC_DEFUN([LT_PROG_GCJ], 11471[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 11472 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 11473 [AC_CHECK_TOOL(GCJ, gcj,) 11474 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 11475 AC_SUBST(GCJFLAGS)])])[]dnl 11476]) 11477 11478# Old name: 11479AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 11480dnl aclocal-1.4 backwards compatibility: 11481dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 11482 11483 11484# LT_PROG_GO 11485# ---------- 11486AC_DEFUN([LT_PROG_GO], 11487[AC_CHECK_TOOL(GOC, gccgo,) 11488]) 11489 11490 11491# LT_PROG_RC 11492# ---------- 11493AC_DEFUN([LT_PROG_RC], 11494[AC_CHECK_TOOL(RC, windres,) 11495]) 11496 11497# Old name: 11498AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 11499dnl aclocal-1.4 backwards compatibility: 11500dnl AC_DEFUN([LT_AC_PROG_RC], []) 11501 11502 11503# _LT_DECL_EGREP 11504# -------------- 11505# If we don't have a new enough Autoconf to choose the best grep 11506# available, choose the one first in the user's PATH. 11507m4_defun([_LT_DECL_EGREP], 11508[AC_REQUIRE([AC_PROG_EGREP])dnl 11509AC_REQUIRE([AC_PROG_FGREP])dnl 11510test -z "$GREP" && GREP=grep 11511_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 11512_LT_DECL([], [EGREP], [1], [An ERE matcher]) 11513_LT_DECL([], [FGREP], [1], [A literal string matcher]) 11514dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 11515AC_SUBST([GREP]) 11516]) 11517 11518 11519# _LT_DECL_OBJDUMP 11520# -------------- 11521# If we don't have a new enough Autoconf to choose the best objdump 11522# available, choose the one first in the user's PATH. 11523m4_defun([_LT_DECL_OBJDUMP], 11524[AC_CHECK_TOOL(OBJDUMP, objdump, false) 11525test -z "$OBJDUMP" && OBJDUMP=objdump 11526_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 11527AC_SUBST([OBJDUMP]) 11528]) 11529 11530# _LT_DECL_DLLTOOL 11531# ---------------- 11532# Ensure DLLTOOL variable is set. 11533m4_defun([_LT_DECL_DLLTOOL], 11534[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 11535test -z "$DLLTOOL" && DLLTOOL=dlltool 11536_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 11537AC_SUBST([DLLTOOL]) 11538]) 11539 11540# _LT_DECL_FILECMD 11541# ---------------- 11542# Check for a file(cmd) program that can be used to detect file type and magic 11543m4_defun([_LT_DECL_FILECMD], 11544[AC_CHECK_TOOL([FILECMD], [file], [:]) 11545_LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) 11546])# _LD_DECL_FILECMD 11547 11548# _LT_DECL_SED 11549# ------------ 11550# Check for a fully-functional sed program, that truncates 11551# as few characters as possible. Prefer GNU sed if found. 11552m4_defun([_LT_DECL_SED], 11553[AC_PROG_SED 11554test -z "$SED" && SED=sed 11555Xsed="$SED -e 1s/^X//" 11556_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 11557_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 11558 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 11559])# _LT_DECL_SED 11560 11561m4_ifndef([AC_PROG_SED], [ 11562# NOTE: This macro has been submitted for inclusion into # 11563# GNU Autoconf as AC_PROG_SED. When it is available in # 11564# a released version of Autoconf we should remove this # 11565# macro and use it instead. # 11566 11567m4_defun([AC_PROG_SED], 11568[AC_MSG_CHECKING([for a sed that does not truncate output]) 11569AC_CACHE_VAL(lt_cv_path_SED, 11570[# Loop through the user's path and test for sed and gsed. 11571# Then use that list of sed's as ones to test for truncation. 11572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11573for as_dir in $PATH 11574do 11575 IFS=$as_save_IFS 11576 test -z "$as_dir" && as_dir=. 11577 for lt_ac_prog in sed gsed; do 11578 for ac_exec_ext in '' $ac_executable_extensions; do 11579 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 11580 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 11581 fi 11582 done 11583 done 11584done 11585IFS=$as_save_IFS 11586lt_ac_max=0 11587lt_ac_count=0 11588# Add /usr/xpg4/bin/sed as it is typically found on Solaris 11589# along with /bin/sed that truncates output. 11590for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 11591 test ! -f "$lt_ac_sed" && continue 11592 cat /dev/null > conftest.in 11593 lt_ac_count=0 11594 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 11595 # Check for GNU sed and select it if it is found. 11596 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 11597 lt_cv_path_SED=$lt_ac_sed 11598 break 11599 fi 11600 while true; do 11601 cat conftest.in conftest.in >conftest.tmp 11602 mv conftest.tmp conftest.in 11603 cp conftest.in conftest.nl 11604 echo >>conftest.nl 11605 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 11606 cmp -s conftest.out conftest.nl || break 11607 # 10000 chars as input seems more than enough 11608 test 10 -lt "$lt_ac_count" && break 11609 lt_ac_count=`expr $lt_ac_count + 1` 11610 if test "$lt_ac_count" -gt "$lt_ac_max"; then 11611 lt_ac_max=$lt_ac_count 11612 lt_cv_path_SED=$lt_ac_sed 11613 fi 11614 done 11615done 11616]) 11617SED=$lt_cv_path_SED 11618AC_SUBST([SED]) 11619AC_MSG_RESULT([$SED]) 11620])#AC_PROG_SED 11621])#m4_ifndef 11622 11623# Old name: 11624AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 11625dnl aclocal-1.4 backwards compatibility: 11626dnl AC_DEFUN([LT_AC_PROG_SED], []) 11627 11628 11629# _LT_CHECK_SHELL_FEATURES 11630# ------------------------ 11631# Find out whether the shell is Bourne or XSI compatible, 11632# or has some other useful features. 11633m4_defun([_LT_CHECK_SHELL_FEATURES], 11634[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11635 lt_unset=unset 11636else 11637 lt_unset=false 11638fi 11639_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 11640 11641# test EBCDIC or ASCII 11642case `echo X|tr X '\101'` in 11643 A) # ASCII based system 11644 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11645 lt_SP2NL='tr \040 \012' 11646 lt_NL2SP='tr \015\012 \040\040' 11647 ;; 11648 *) # EBCDIC based system 11649 lt_SP2NL='tr \100 \n' 11650 lt_NL2SP='tr \r\n \100\100' 11651 ;; 11652esac 11653_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 11654_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 11655])# _LT_CHECK_SHELL_FEATURES 11656 11657 11658# _LT_PATH_CONVERSION_FUNCTIONS 11659# ----------------------------- 11660# Determine what file name conversion functions should be used by 11661# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 11662# for certain cross-compile configurations and native mingw. 11663m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 11664[AC_REQUIRE([AC_CANONICAL_HOST])dnl 11665AC_REQUIRE([AC_CANONICAL_BUILD])dnl 11666AC_MSG_CHECKING([how to convert $build file names to $host format]) 11667AC_CACHE_VAL(lt_cv_to_host_file_cmd, 11668[case $host in 11669 *-*-mingw* ) 11670 case $build in 11671 *-*-mingw* ) # actually msys 11672 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11673 ;; 11674 *-*-cygwin* ) 11675 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11676 ;; 11677 * ) # otherwise, assume *nix 11678 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11679 ;; 11680 esac 11681 ;; 11682 *-*-cygwin* ) 11683 case $build in 11684 *-*-mingw* ) # actually msys 11685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11686 ;; 11687 *-*-cygwin* ) 11688 lt_cv_to_host_file_cmd=func_convert_file_noop 11689 ;; 11690 * ) # otherwise, assume *nix 11691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11692 ;; 11693 esac 11694 ;; 11695 * ) # unhandled hosts (and "normal" native builds) 11696 lt_cv_to_host_file_cmd=func_convert_file_noop 11697 ;; 11698esac 11699]) 11700to_host_file_cmd=$lt_cv_to_host_file_cmd 11701AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 11702_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 11703 [0], [convert $build file names to $host format])dnl 11704 11705AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 11706AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 11707[#assume ordinary cross tools, or native build. 11708lt_cv_to_tool_file_cmd=func_convert_file_noop 11709case $host in 11710 *-*-mingw* ) 11711 case $build in 11712 *-*-mingw* ) # actually msys 11713 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11714 ;; 11715 esac 11716 ;; 11717esac 11718]) 11719to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11720AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 11721_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 11722 [0], [convert $build files to toolchain format])dnl 11723])# _LT_PATH_CONVERSION_FUNCTIONS 11724 11725# Helper functions for option handling. -*- Autoconf -*- 11726# 11727# Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free 11728# Software Foundation, Inc. 11729# Written by Gary V. Vaughan, 2004 11730# 11731# This file is free software; the Free Software Foundation gives 11732# unlimited permission to copy and/or distribute it, with or without 11733# modifications, as long as this notice is preserved. 11734 11735# serial 8 ltoptions.m4 11736 11737# This is to help aclocal find these macros, as it can't see m4_define. 11738AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 11739 11740 11741# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 11742# ------------------------------------------ 11743m4_define([_LT_MANGLE_OPTION], 11744[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 11745 11746 11747# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 11748# --------------------------------------- 11749# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 11750# matching handler defined, dispatch to it. Other OPTION-NAMEs are 11751# saved as a flag. 11752m4_define([_LT_SET_OPTION], 11753[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 11754m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 11755 _LT_MANGLE_DEFUN([$1], [$2]), 11756 [m4_warning([Unknown $1 option '$2'])])[]dnl 11757]) 11758 11759 11760# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 11761# ------------------------------------------------------------ 11762# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 11763m4_define([_LT_IF_OPTION], 11764[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 11765 11766 11767# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 11768# ------------------------------------------------------- 11769# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 11770# are set. 11771m4_define([_LT_UNLESS_OPTIONS], 11772[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 11773 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 11774 [m4_define([$0_found])])])[]dnl 11775m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 11776])[]dnl 11777]) 11778 11779 11780# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 11781# ---------------------------------------- 11782# OPTION-LIST is a space-separated list of Libtool options associated 11783# with MACRO-NAME. If any OPTION has a matching handler declared with 11784# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 11785# the unknown option and exit. 11786m4_defun([_LT_SET_OPTIONS], 11787[# Set options 11788m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 11789 [_LT_SET_OPTION([$1], _LT_Option)]) 11790 11791m4_if([$1],[LT_INIT],[ 11792 dnl 11793 dnl Simply set some default values (i.e off) if boolean options were not 11794 dnl specified: 11795 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 11796 ]) 11797 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 11798 ]) 11799 dnl 11800 dnl If no reference was made to various pairs of opposing options, then 11801 dnl we run the default mode handler for the pair. For example, if neither 11802 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 11803 dnl archives by default: 11804 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 11805 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 11806 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 11807 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 11808 [_LT_ENABLE_FAST_INSTALL]) 11809 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 11810 [_LT_WITH_AIX_SONAME([aix])]) 11811 ]) 11812])# _LT_SET_OPTIONS 11813 11814 11815 11816# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 11817# ----------------------------------------- 11818m4_define([_LT_MANGLE_DEFUN], 11819[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 11820 11821 11822# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 11823# ----------------------------------------------- 11824m4_define([LT_OPTION_DEFINE], 11825[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 11826])# LT_OPTION_DEFINE 11827 11828 11829# dlopen 11830# ------ 11831LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 11832]) 11833 11834AU_DEFUN([AC_LIBTOOL_DLOPEN], 11835[_LT_SET_OPTION([LT_INIT], [dlopen]) 11836AC_DIAGNOSE([obsolete], 11837[$0: Remove this warning and the call to _LT_SET_OPTION when you 11838put the 'dlopen' option into LT_INIT's first parameter.]) 11839]) 11840 11841dnl aclocal-1.4 backwards compatibility: 11842dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 11843 11844 11845# win32-dll 11846# --------- 11847# Declare package support for building win32 dll's. 11848LT_OPTION_DEFINE([LT_INIT], [win32-dll], 11849[enable_win32_dll=yes 11850 11851case $host in 11852*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 11853 AC_CHECK_TOOL(AS, as, false) 11854 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 11855 AC_CHECK_TOOL(OBJDUMP, objdump, false) 11856 ;; 11857esac 11858 11859test -z "$AS" && AS=as 11860_LT_DECL([], [AS], [1], [Assembler program])dnl 11861 11862test -z "$DLLTOOL" && DLLTOOL=dlltool 11863_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 11864 11865test -z "$OBJDUMP" && OBJDUMP=objdump 11866_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 11867])# win32-dll 11868 11869AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 11870[AC_REQUIRE([AC_CANONICAL_HOST])dnl 11871_LT_SET_OPTION([LT_INIT], [win32-dll]) 11872AC_DIAGNOSE([obsolete], 11873[$0: Remove this warning and the call to _LT_SET_OPTION when you 11874put the 'win32-dll' option into LT_INIT's first parameter.]) 11875]) 11876 11877dnl aclocal-1.4 backwards compatibility: 11878dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 11879 11880 11881# _LT_ENABLE_SHARED([DEFAULT]) 11882# ---------------------------- 11883# implement the --enable-shared flag, and supports the 'shared' and 11884# 'disable-shared' LT_INIT options. 11885# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 11886m4_define([_LT_ENABLE_SHARED], 11887[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 11888AC_ARG_ENABLE([shared], 11889 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 11890 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 11891 [p=${PACKAGE-default} 11892 case $enableval in 11893 yes) enable_shared=yes ;; 11894 no) enable_shared=no ;; 11895 *) 11896 enable_shared=no 11897 # Look at the argument we got. We use all the common list separators. 11898 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11899 for pkg in $enableval; do 11900 IFS=$lt_save_ifs 11901 if test "X$pkg" = "X$p"; then 11902 enable_shared=yes 11903 fi 11904 done 11905 IFS=$lt_save_ifs 11906 ;; 11907 esac], 11908 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 11909 11910 _LT_DECL([build_libtool_libs], [enable_shared], [0], 11911 [Whether or not to build shared libraries]) 11912])# _LT_ENABLE_SHARED 11913 11914LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 11915LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 11916 11917# Old names: 11918AC_DEFUN([AC_ENABLE_SHARED], 11919[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 11920]) 11921 11922AC_DEFUN([AC_DISABLE_SHARED], 11923[_LT_SET_OPTION([LT_INIT], [disable-shared]) 11924]) 11925 11926AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 11927AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 11928 11929dnl aclocal-1.4 backwards compatibility: 11930dnl AC_DEFUN([AM_ENABLE_SHARED], []) 11931dnl AC_DEFUN([AM_DISABLE_SHARED], []) 11932 11933 11934 11935# _LT_ENABLE_STATIC([DEFAULT]) 11936# ---------------------------- 11937# implement the --enable-static flag, and support the 'static' and 11938# 'disable-static' LT_INIT options. 11939# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 11940m4_define([_LT_ENABLE_STATIC], 11941[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 11942AC_ARG_ENABLE([static], 11943 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 11944 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 11945 [p=${PACKAGE-default} 11946 case $enableval in 11947 yes) enable_static=yes ;; 11948 no) enable_static=no ;; 11949 *) 11950 enable_static=no 11951 # Look at the argument we got. We use all the common list separators. 11952 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11953 for pkg in $enableval; do 11954 IFS=$lt_save_ifs 11955 if test "X$pkg" = "X$p"; then 11956 enable_static=yes 11957 fi 11958 done 11959 IFS=$lt_save_ifs 11960 ;; 11961 esac], 11962 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 11963 11964 _LT_DECL([build_old_libs], [enable_static], [0], 11965 [Whether or not to build static libraries]) 11966])# _LT_ENABLE_STATIC 11967 11968LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 11969LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 11970 11971# Old names: 11972AC_DEFUN([AC_ENABLE_STATIC], 11973[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 11974]) 11975 11976AC_DEFUN([AC_DISABLE_STATIC], 11977[_LT_SET_OPTION([LT_INIT], [disable-static]) 11978]) 11979 11980AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 11981AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 11982 11983dnl aclocal-1.4 backwards compatibility: 11984dnl AC_DEFUN([AM_ENABLE_STATIC], []) 11985dnl AC_DEFUN([AM_DISABLE_STATIC], []) 11986 11987 11988 11989# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 11990# ---------------------------------- 11991# implement the --enable-fast-install flag, and support the 'fast-install' 11992# and 'disable-fast-install' LT_INIT options. 11993# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 11994m4_define([_LT_ENABLE_FAST_INSTALL], 11995[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 11996AC_ARG_ENABLE([fast-install], 11997 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 11998 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 11999 [p=${PACKAGE-default} 12000 case $enableval in 12001 yes) enable_fast_install=yes ;; 12002 no) enable_fast_install=no ;; 12003 *) 12004 enable_fast_install=no 12005 # Look at the argument we got. We use all the common list separators. 12006 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12007 for pkg in $enableval; do 12008 IFS=$lt_save_ifs 12009 if test "X$pkg" = "X$p"; then 12010 enable_fast_install=yes 12011 fi 12012 done 12013 IFS=$lt_save_ifs 12014 ;; 12015 esac], 12016 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 12017 12018_LT_DECL([fast_install], [enable_fast_install], [0], 12019 [Whether or not to optimize for fast installation])dnl 12020])# _LT_ENABLE_FAST_INSTALL 12021 12022LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 12023LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 12024 12025# Old names: 12026AU_DEFUN([AC_ENABLE_FAST_INSTALL], 12027[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 12028AC_DIAGNOSE([obsolete], 12029[$0: Remove this warning and the call to _LT_SET_OPTION when you put 12030the 'fast-install' option into LT_INIT's first parameter.]) 12031]) 12032 12033AU_DEFUN([AC_DISABLE_FAST_INSTALL], 12034[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 12035AC_DIAGNOSE([obsolete], 12036[$0: Remove this warning and the call to _LT_SET_OPTION when you put 12037the 'disable-fast-install' option into LT_INIT's first parameter.]) 12038]) 12039 12040dnl aclocal-1.4 backwards compatibility: 12041dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 12042dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 12043 12044 12045# _LT_WITH_AIX_SONAME([DEFAULT]) 12046# ---------------------------------- 12047# implement the --with-aix-soname flag, and support the `aix-soname=aix' 12048# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 12049# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 12050m4_define([_LT_WITH_AIX_SONAME], 12051[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 12052shared_archive_member_spec= 12053case $host,$enable_shared in 12054power*-*-aix[[5-9]]*,yes) 12055 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 12056 AC_ARG_WITH([aix-soname], 12057 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 12058 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 12059 [case $withval in 12060 aix|svr4|both) 12061 ;; 12062 *) 12063 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 12064 ;; 12065 esac 12066 lt_cv_with_aix_soname=$with_aix_soname], 12067 [AC_CACHE_VAL([lt_cv_with_aix_soname], 12068 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 12069 with_aix_soname=$lt_cv_with_aix_soname]) 12070 AC_MSG_RESULT([$with_aix_soname]) 12071 if test aix != "$with_aix_soname"; then 12072 # For the AIX way of multilib, we name the shared archive member 12073 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 12074 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 12075 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 12076 # the AIX toolchain works better with OBJECT_MODE set (default 32). 12077 if test 64 = "${OBJECT_MODE-32}"; then 12078 shared_archive_member_spec=shr_64 12079 else 12080 shared_archive_member_spec=shr 12081 fi 12082 fi 12083 ;; 12084*) 12085 with_aix_soname=aix 12086 ;; 12087esac 12088 12089_LT_DECL([], [shared_archive_member_spec], [0], 12090 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 12091])# _LT_WITH_AIX_SONAME 12092 12093LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 12094LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 12095LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 12096 12097 12098# _LT_WITH_PIC([MODE]) 12099# -------------------- 12100# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 12101# LT_INIT options. 12102# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 12103m4_define([_LT_WITH_PIC], 12104[AC_ARG_WITH([pic], 12105 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 12106 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 12107 [lt_p=${PACKAGE-default} 12108 case $withval in 12109 yes|no) pic_mode=$withval ;; 12110 *) 12111 pic_mode=default 12112 # Look at the argument we got. We use all the common list separators. 12113 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12114 for lt_pkg in $withval; do 12115 IFS=$lt_save_ifs 12116 if test "X$lt_pkg" = "X$lt_p"; then 12117 pic_mode=yes 12118 fi 12119 done 12120 IFS=$lt_save_ifs 12121 ;; 12122 esac], 12123 [pic_mode=m4_default([$1], [default])]) 12124 12125_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 12126])# _LT_WITH_PIC 12127 12128LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 12129LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 12130 12131# Old name: 12132AU_DEFUN([AC_LIBTOOL_PICMODE], 12133[_LT_SET_OPTION([LT_INIT], [pic-only]) 12134AC_DIAGNOSE([obsolete], 12135[$0: Remove this warning and the call to _LT_SET_OPTION when you 12136put the 'pic-only' option into LT_INIT's first parameter.]) 12137]) 12138 12139dnl aclocal-1.4 backwards compatibility: 12140dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 12141 12142 12143m4_define([_LTDL_MODE], []) 12144LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 12145 [m4_define([_LTDL_MODE], [nonrecursive])]) 12146LT_OPTION_DEFINE([LTDL_INIT], [recursive], 12147 [m4_define([_LTDL_MODE], [recursive])]) 12148LT_OPTION_DEFINE([LTDL_INIT], [subproject], 12149 [m4_define([_LTDL_MODE], [subproject])]) 12150 12151m4_define([_LTDL_TYPE], []) 12152LT_OPTION_DEFINE([LTDL_INIT], [installable], 12153 [m4_define([_LTDL_TYPE], [installable])]) 12154LT_OPTION_DEFINE([LTDL_INIT], [convenience], 12155 [m4_define([_LTDL_TYPE], [convenience])]) 12156 12157# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 12158# 12159# Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software 12160# Foundation, Inc. 12161# Written by Gary V. Vaughan, 2004 12162# 12163# This file is free software; the Free Software Foundation gives 12164# unlimited permission to copy and/or distribute it, with or without 12165# modifications, as long as this notice is preserved. 12166 12167# serial 6 ltsugar.m4 12168 12169# This is to help aclocal find these macros, as it can't see m4_define. 12170AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 12171 12172 12173# lt_join(SEP, ARG1, [ARG2...]) 12174# ----------------------------- 12175# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 12176# associated separator. 12177# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 12178# versions in m4sugar had bugs. 12179m4_define([lt_join], 12180[m4_if([$#], [1], [], 12181 [$#], [2], [[$2]], 12182 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 12183m4_define([_lt_join], 12184[m4_if([$#$2], [2], [], 12185 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 12186 12187 12188# lt_car(LIST) 12189# lt_cdr(LIST) 12190# ------------ 12191# Manipulate m4 lists. 12192# These macros are necessary as long as will still need to support 12193# Autoconf-2.59, which quotes differently. 12194m4_define([lt_car], [[$1]]) 12195m4_define([lt_cdr], 12196[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 12197 [$#], 1, [], 12198 [m4_dquote(m4_shift($@))])]) 12199m4_define([lt_unquote], $1) 12200 12201 12202# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 12203# ------------------------------------------ 12204# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 12205# Note that neither SEPARATOR nor STRING are expanded; they are appended 12206# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 12207# No SEPARATOR is output if MACRO-NAME was previously undefined (different 12208# than defined and empty). 12209# 12210# This macro is needed until we can rely on Autoconf 2.62, since earlier 12211# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 12212m4_define([lt_append], 12213[m4_define([$1], 12214 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 12215 12216 12217 12218# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 12219# ---------------------------------------------------------- 12220# Produce a SEP delimited list of all paired combinations of elements of 12221# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 12222# has the form PREFIXmINFIXSUFFIXn. 12223# Needed until we can rely on m4_combine added in Autoconf 2.62. 12224m4_define([lt_combine], 12225[m4_if(m4_eval([$# > 3]), [1], 12226 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 12227[[m4_foreach([_Lt_prefix], [$2], 12228 [m4_foreach([_Lt_suffix], 12229 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 12230 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 12231 12232 12233# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 12234# ----------------------------------------------------------------------- 12235# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 12236# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 12237m4_define([lt_if_append_uniq], 12238[m4_ifdef([$1], 12239 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 12240 [lt_append([$1], [$2], [$3])$4], 12241 [$5])], 12242 [lt_append([$1], [$2], [$3])$4])]) 12243 12244 12245# lt_dict_add(DICT, KEY, VALUE) 12246# ----------------------------- 12247m4_define([lt_dict_add], 12248[m4_define([$1($2)], [$3])]) 12249 12250 12251# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 12252# -------------------------------------------- 12253m4_define([lt_dict_add_subkey], 12254[m4_define([$1($2:$3)], [$4])]) 12255 12256 12257# lt_dict_fetch(DICT, KEY, [SUBKEY]) 12258# ---------------------------------- 12259m4_define([lt_dict_fetch], 12260[m4_ifval([$3], 12261 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 12262 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 12263 12264 12265# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 12266# ----------------------------------------------------------------- 12267m4_define([lt_if_dict_fetch], 12268[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 12269 [$5], 12270 [$6])]) 12271 12272 12273# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 12274# -------------------------------------------------------------- 12275m4_define([lt_dict_filter], 12276[m4_if([$5], [], [], 12277 [lt_join(m4_quote(m4_default([$4], [[, ]])), 12278 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 12279 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 12280]) 12281 12282# ltversion.m4 -- version numbers -*- Autoconf -*- 12283# 12284# Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation, 12285# Inc. 12286# Written by Scott James Remnant, 2004 12287# 12288# This file is free software; the Free Software Foundation gives 12289# unlimited permission to copy and/or distribute it, with or without 12290# modifications, as long as this notice is preserved. 12291 12292# @configure_input@ 12293 12294# serial 4245 ltversion.m4 12295# This file is part of GNU Libtool 12296 12297m4_define([LT_PACKAGE_VERSION], [2.4.7]) 12298m4_define([LT_PACKAGE_REVISION], [2.4.7]) 12299 12300AC_DEFUN([LTVERSION_VERSION], 12301[macro_version='2.4.7' 12302macro_revision='2.4.7' 12303_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 12304_LT_DECL(, macro_revision, 0) 12305]) 12306 12307# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 12308# 12309# Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free 12310# Software Foundation, Inc. 12311# Written by Scott James Remnant, 2004. 12312# 12313# This file is free software; the Free Software Foundation gives 12314# unlimited permission to copy and/or distribute it, with or without 12315# modifications, as long as this notice is preserved. 12316 12317# serial 5 lt~obsolete.m4 12318 12319# These exist entirely to fool aclocal when bootstrapping libtool. 12320# 12321# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 12322# which have later been changed to m4_define as they aren't part of the 12323# exported API, or moved to Autoconf or Automake where they belong. 12324# 12325# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 12326# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 12327# using a macro with the same name in our local m4/libtool.m4 it'll 12328# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 12329# and doesn't know about Autoconf macros at all.) 12330# 12331# So we provide this file, which has a silly filename so it's always 12332# included after everything else. This provides aclocal with the 12333# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 12334# because those macros already exist, or will be overwritten later. 12335# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 12336# 12337# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 12338# Yes, that means every name once taken will need to remain here until 12339# we give up compatibility with versions before 1.7, at which point 12340# we need to keep only those names which we still refer to. 12341 12342# This is to help aclocal find these macros, as it can't see m4_define. 12343AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 12344 12345m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 12346m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 12347m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 12348m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 12349m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 12350m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 12351m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 12352m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 12353m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 12354m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 12355m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 12356m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 12357m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 12358m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 12359m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 12360m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 12361m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 12362m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 12363m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 12364m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 12365m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 12366m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 12367m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 12368m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 12369m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 12370m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 12371m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 12372m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 12373m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 12374m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 12375m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 12376m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 12377m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 12378m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 12379m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 12380m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 12381m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 12382m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 12383m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 12384m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 12385m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 12386m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 12387m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 12388m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 12389m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 12390m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 12391m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 12392m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 12393m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 12394m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 12395m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 12396m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 12397m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 12398m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 12399m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 12400m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 12401m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 12402m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 12403m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 12404m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 12405m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 12406 12407