aclocal.m4 revision b9b4fd27
1# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 2 3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_AUTOCONF_VERSION], 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, 17[m4_warning([this file was generated for autoconf 2.65. 18You have another version of autoconf. It may work, but is not guaranteed to. 19If you have problems, you may need to regenerate the build system entirely. 20To do so, use the procedure documented by the package, typically `autoreconf'.])]) 21 22# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 23# 24# This file is free software; the Free Software Foundation 25# gives unlimited permission to copy and/or distribute it, 26# with or without modifications, as long as this notice is preserved. 27 28# AM_AUTOMAKE_VERSION(VERSION) 29# ---------------------------- 30# Automake X.Y traces this macro to ensure aclocal.m4 has been 31# generated from the m4 files accompanying Automake X.Y. 32# (This private macro should not be called outside this file.) 33AC_DEFUN([AM_AUTOMAKE_VERSION], 34[am__api_version='1.11' 35dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 36dnl require some minimum version. Point them to the right macro. 37m4_if([$1], [1.11.1], [], 38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 39]) 40 41# _AM_AUTOCONF_VERSION(VERSION) 42# ----------------------------- 43# aclocal traces this macro to find the Autoconf version. 44# This is a private macro too. Using m4_define simplifies 45# the logic in aclocal, which can simply ignore this definition. 46m4_define([_AM_AUTOCONF_VERSION], []) 47 48# AM_SET_CURRENT_AUTOMAKE_VERSION 49# ------------------------------- 50# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 51# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53[AM_AUTOMAKE_VERSION([1.11.1])dnl 54m4_ifndef([AC_AUTOCONF_VERSION], 55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 56_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 57 58# AM_AUX_DIR_EXPAND -*- Autoconf -*- 59 60# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 61# 62# This file is free software; the Free Software Foundation 63# gives unlimited permission to copy and/or distribute it, 64# with or without modifications, as long as this notice is preserved. 65 66# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 67# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 68# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 69# 70# Of course, Automake must honor this variable whenever it calls a 71# tool from the auxiliary directory. The problem is that $srcdir (and 72# therefore $ac_aux_dir as well) can be either absolute or relative, 73# depending on how configure is run. This is pretty annoying, since 74# it makes $ac_aux_dir quite unusable in subdirectories: in the top 75# source directory, any form will work fine, but in subdirectories a 76# relative path needs to be adjusted first. 77# 78# $ac_aux_dir/missing 79# fails when called from a subdirectory if $ac_aux_dir is relative 80# $top_srcdir/$ac_aux_dir/missing 81# fails if $ac_aux_dir is absolute, 82# fails when called from a subdirectory in a VPATH build with 83# a relative $ac_aux_dir 84# 85# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 86# are both prefixed by $srcdir. In an in-source build this is usually 87# harmless because $srcdir is `.', but things will broke when you 88# start a VPATH build or use an absolute $srcdir. 89# 90# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 91# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 92# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 93# and then we would define $MISSING as 94# MISSING="\${SHELL} $am_aux_dir/missing" 95# This will work as long as MISSING is not called from configure, because 96# unfortunately $(top_srcdir) has no meaning in configure. 97# However there are other variables, like CC, which are often used in 98# configure, and could therefore not use this "fixed" $ac_aux_dir. 99# 100# Another solution, used here, is to always expand $ac_aux_dir to an 101# absolute PATH. The drawback is that using absolute paths prevent a 102# configured tree to be moved without reconfiguration. 103 104AC_DEFUN([AM_AUX_DIR_EXPAND], 105[dnl Rely on autoconf to set up CDPATH properly. 106AC_PREREQ([2.50])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, 2000, 2001, 2003, 2004, 2005, 2006, 2008 114# Free Software Foundation, Inc. 115# 116# This file is free software; the Free Software Foundation 117# gives unlimited permission to copy and/or distribute it, 118# with or without modifications, as long as this notice is preserved. 119 120# serial 9 121 122# AM_CONDITIONAL(NAME, SHELL-CONDITION) 123# ------------------------------------- 124# Define a conditional. 125AC_DEFUN([AM_CONDITIONAL], 126[AC_PREREQ(2.52)dnl 127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 129AC_SUBST([$1_TRUE])dnl 130AC_SUBST([$1_FALSE])dnl 131_AM_SUBST_NOTMAKE([$1_TRUE])dnl 132_AM_SUBST_NOTMAKE([$1_FALSE])dnl 133m4_define([_AM_COND_VALUE_$1], [$2])dnl 134if $2; then 135 $1_TRUE= 136 $1_FALSE='#' 137else 138 $1_TRUE='#' 139 $1_FALSE= 140fi 141AC_CONFIG_COMMANDS_PRE( 142[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 143 AC_MSG_ERROR([[conditional "$1" was never defined. 144Usually this means the macro was only invoked conditionally.]]) 145fi])]) 146 147# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 148# Free Software Foundation, Inc. 149# 150# This file is free software; the Free Software Foundation 151# gives unlimited permission to copy and/or distribute it, 152# with or without modifications, as long as this notice is preserved. 153 154# serial 10 155 156# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 157# written in clear, in which case automake, when reading aclocal.m4, 158# will think it sees a *use*, and therefore will trigger all it's 159# C support machinery. Also note that it means that autoscan, seeing 160# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 161 162 163# _AM_DEPENDENCIES(NAME) 164# ---------------------- 165# See how the compiler implements dependency checking. 166# NAME is "CC", "CXX", "GCJ", or "OBJC". 167# We try a few techniques and use that to set a single cache variable. 168# 169# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 170# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 171# dependency, and given that the user is not expected to run this macro, 172# just rely on AC_PROG_CC. 173AC_DEFUN([_AM_DEPENDENCIES], 174[AC_REQUIRE([AM_SET_DEPDIR])dnl 175AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 176AC_REQUIRE([AM_MAKE_INCLUDE])dnl 177AC_REQUIRE([AM_DEP_TRACK])dnl 178 179ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 180 [$1], CXX, [depcc="$CXX" am_compiler_list=], 181 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 182 [$1], UPC, [depcc="$UPC" am_compiler_list=], 183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 184 [depcc="$$1" am_compiler_list=]) 185 186AC_CACHE_CHECK([dependency style of $depcc], 187 [am_cv_$1_dependencies_compiler_type], 188[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 189 # We make a subdir and do the tests there. Otherwise we can end up 190 # making bogus files that we don't know about and never remove. For 191 # instance it was reported that on HP-UX the gcc test will end up 192 # making a dummy file named `D' -- because `-MD' means `put the output 193 # in D'. 194 mkdir conftest.dir 195 # Copy depcomp to subdir because otherwise we won't find it if we're 196 # using a relative directory. 197 cp "$am_depcomp" conftest.dir 198 cd conftest.dir 199 # We will build objects and dependencies in a subdirectory because 200 # it helps to detect inapplicable dependency modes. For instance 201 # both Tru64's cc and ICC support -MD to output dependencies as a 202 # side effect of compilation, but ICC will put the dependencies in 203 # the current directory while Tru64 will put them in the object 204 # directory. 205 mkdir sub 206 207 am_cv_$1_dependencies_compiler_type=none 208 if test "$am_compiler_list" = ""; then 209 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 210 fi 211 am__universal=false 212 m4_case([$1], [CC], 213 [case " $depcc " in #( 214 *\ -arch\ *\ -arch\ *) am__universal=true ;; 215 esac], 216 [CXX], 217 [case " $depcc " in #( 218 *\ -arch\ *\ -arch\ *) am__universal=true ;; 219 esac]) 220 221 for depmode in $am_compiler_list; do 222 # Setup a source with many dependencies, because some compilers 223 # like to wrap large dependency lists on column 80 (with \), and 224 # we should not choose a depcomp mode which is confused by this. 225 # 226 # We need to recreate these files for each test, as the compiler may 227 # overwrite some of them when testing with obscure command lines. 228 # This happens at least with the AIX C compiler. 229 : > sub/conftest.c 230 for i in 1 2 3 4 5 6; do 231 echo '#include "conftst'$i'.h"' >> sub/conftest.c 232 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 233 # Solaris 8's {/usr,}/bin/sh. 234 touch sub/conftst$i.h 235 done 236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 237 238 # We check with `-c' and `-o' for the sake of the "dashmstdout" 239 # mode. It turns out that the SunPro C++ compiler does not properly 240 # handle `-M -o', and we need to detect this. Also, some Intel 241 # versions had trouble with output in subdirs 242 am__obj=sub/conftest.${OBJEXT-o} 243 am__minus_obj="-o $am__obj" 244 case $depmode in 245 gcc) 246 # This depmode causes a compiler race in universal mode. 247 test "$am__universal" = false || continue 248 ;; 249 nosideeffect) 250 # after this tag, mechanisms are not by side-effect, so they'll 251 # only be used when explicitly requested 252 if test "x$enable_dependency_tracking" = xyes; then 253 continue 254 else 255 break 256 fi 257 ;; 258 msvisualcpp | msvcmsys) 259 # This compiler won't grok `-c -o', but also, the minuso test has 260 # not run yet. These depmodes are late enough in the game, and 261 # so weak that their functioning should not be impacted. 262 am__obj=conftest.${OBJEXT-o} 263 am__minus_obj= 264 ;; 265 none) break ;; 266 esac 267 if depmode=$depmode \ 268 source=sub/conftest.c object=$am__obj \ 269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 271 >/dev/null 2>conftest.err && 272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 276 # icc doesn't choke on unknown options, it will just issue warnings 277 # or remarks (even with -Werror). So we grep stderr for any message 278 # that says an option was ignored or not supported. 279 # When given -MP, icc 7.0 and 7.1 complain thusly: 280 # icc: Command line warning: ignoring option '-M'; no argument required 281 # The diagnosis changed in icc 8.0: 282 # icc: Command line remark: option '-MP' not supported 283 if (grep 'ignoring option' conftest.err || 284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 285 am_cv_$1_dependencies_compiler_type=$depmode 286 break 287 fi 288 fi 289 done 290 291 cd .. 292 rm -rf conftest.dir 293else 294 am_cv_$1_dependencies_compiler_type=none 295fi 296]) 297AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 298AM_CONDITIONAL([am__fastdep$1], [ 299 test "x$enable_dependency_tracking" != xno \ 300 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 301]) 302 303 304# AM_SET_DEPDIR 305# ------------- 306# Choose a directory name for dependency files. 307# This macro is AC_REQUIREd in _AM_DEPENDENCIES 308AC_DEFUN([AM_SET_DEPDIR], 309[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 310AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 311]) 312 313 314# AM_DEP_TRACK 315# ------------ 316AC_DEFUN([AM_DEP_TRACK], 317[AC_ARG_ENABLE(dependency-tracking, 318[ --disable-dependency-tracking speeds up one-time build 319 --enable-dependency-tracking do not reject slow dependency extractors]) 320if test "x$enable_dependency_tracking" != xno; then 321 am_depcomp="$ac_aux_dir/depcomp" 322 AMDEPBACKSLASH='\' 323fi 324AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 325AC_SUBST([AMDEPBACKSLASH])dnl 326_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 327]) 328 329# Generate code to set up dependency tracking. -*- Autoconf -*- 330 331# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 332# Free Software Foundation, Inc. 333# 334# This file is free software; the Free Software Foundation 335# gives unlimited permission to copy and/or distribute it, 336# with or without modifications, as long as this notice is preserved. 337 338#serial 5 339 340# _AM_OUTPUT_DEPENDENCY_COMMANDS 341# ------------------------------ 342AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 343[{ 344 # Autoconf 2.62 quotes --file arguments for eval, but not when files 345 # are listed without --file. Let's play safe and only enable the eval 346 # if we detect the quoting. 347 case $CONFIG_FILES in 348 *\'*) eval set x "$CONFIG_FILES" ;; 349 *) set x $CONFIG_FILES ;; 350 esac 351 shift 352 for mf 353 do 354 # Strip MF so we end up with the name of the file. 355 mf=`echo "$mf" | sed -e 's/:.*$//'` 356 # Check whether this is an Automake generated Makefile or not. 357 # We used to match only the files named `Makefile.in', but 358 # some people rename them; so instead we look at the file content. 359 # Grep'ing the first line is not enough: some people post-process 360 # each Makefile.in and add a new line on top of each file to say so. 361 # Grep'ing the whole file is not good either: AIX grep has a line 362 # limit of 2048, but all sed's we know have understand at least 4000. 363 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 364 dirpart=`AS_DIRNAME("$mf")` 365 else 366 continue 367 fi 368 # Extract the definition of DEPDIR, am__include, and am__quote 369 # from the Makefile without running `make'. 370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 371 test -z "$DEPDIR" && continue 372 am__include=`sed -n 's/^am__include = //p' < "$mf"` 373 test -z "am__include" && continue 374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 375 # When using ansi2knr, U may be empty or an underscore; expand it 376 U=`sed -n 's/^U = //p' < "$mf"` 377 # Find all dependency output files, they are included files with 378 # $(DEPDIR) in their names. We invoke sed twice because it is the 379 # simplest approach to changing $(DEPDIR) to its actual value in the 380 # expansion. 381 for file in `sed -n " 382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 384 # Make sure the directory exists. 385 test -f "$dirpart/$file" && continue 386 fdir=`AS_DIRNAME(["$file"])` 387 AS_MKDIR_P([$dirpart/$fdir]) 388 # echo "creating $dirpart/$file" 389 echo '# dummy' > "$dirpart/$file" 390 done 391 done 392} 393])# _AM_OUTPUT_DEPENDENCY_COMMANDS 394 395 396# AM_OUTPUT_DEPENDENCY_COMMANDS 397# ----------------------------- 398# This macro should only be invoked once -- use via AC_REQUIRE. 399# 400# This code is only required when automatic dependency tracking 401# is enabled. FIXME. This creates each `.P' file that we will 402# need in order to bootstrap the dependency handling code. 403AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 404[AC_CONFIG_COMMANDS([depfiles], 405 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 407]) 408 409# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 410# Free Software Foundation, Inc. 411# 412# This file is free software; the Free Software Foundation 413# gives unlimited permission to copy and/or distribute it, 414# with or without modifications, as long as this notice is preserved. 415 416# serial 8 417 418# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 419AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 420 421# Do all the work for Automake. -*- Autoconf -*- 422 423# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 424# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 425# 426# This file is free software; the Free Software Foundation 427# gives unlimited permission to copy and/or distribute it, 428# with or without modifications, as long as this notice is preserved. 429 430# serial 16 431 432# This macro actually does too much. Some checks are only needed if 433# your package does certain things. But this isn't really a big deal. 434 435# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 436# AM_INIT_AUTOMAKE([OPTIONS]) 437# ----------------------------------------------- 438# The call with PACKAGE and VERSION arguments is the old style 439# call (pre autoconf-2.50), which is being phased out. PACKAGE 440# and VERSION should now be passed to AC_INIT and removed from 441# the call to AM_INIT_AUTOMAKE. 442# We support both call styles for the transition. After 443# the next Automake release, Autoconf can make the AC_INIT 444# arguments mandatory, and then we can depend on a new Autoconf 445# release and drop the old call support. 446AC_DEFUN([AM_INIT_AUTOMAKE], 447[AC_PREREQ([2.62])dnl 448dnl Autoconf wants to disallow AM_ names. We explicitly allow 449dnl the ones we care about. 450m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 451AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 452AC_REQUIRE([AC_PROG_INSTALL])dnl 453if test "`cd $srcdir && pwd`" != "`pwd`"; then 454 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 455 # is not polluted with repeated "-I." 456 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 457 # test to see if srcdir already configured 458 if test -f $srcdir/config.status; then 459 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 460 fi 461fi 462 463# test whether we have cygpath 464if test -z "$CYGPATH_W"; then 465 if (cygpath --version) >/dev/null 2>/dev/null; then 466 CYGPATH_W='cygpath -w' 467 else 468 CYGPATH_W=echo 469 fi 470fi 471AC_SUBST([CYGPATH_W]) 472 473# Define the identity of the package. 474dnl Distinguish between old-style and new-style calls. 475m4_ifval([$2], 476[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 477 AC_SUBST([PACKAGE], [$1])dnl 478 AC_SUBST([VERSION], [$2])], 479[_AM_SET_OPTIONS([$1])dnl 480dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 481m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 482 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 483 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 484 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 485 486_AM_IF_OPTION([no-define],, 487[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 488 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 489 490# Some tools Automake needs. 491AC_REQUIRE([AM_SANITY_CHECK])dnl 492AC_REQUIRE([AC_ARG_PROGRAM])dnl 493AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 494AM_MISSING_PROG(AUTOCONF, autoconf) 495AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 496AM_MISSING_PROG(AUTOHEADER, autoheader) 497AM_MISSING_PROG(MAKEINFO, makeinfo) 498AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 499AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 500AC_REQUIRE([AM_PROG_MKDIR_P])dnl 501# We need awk for the "check" target. The system "awk" is bad on 502# some platforms. 503AC_REQUIRE([AC_PROG_AWK])dnl 504AC_REQUIRE([AC_PROG_MAKE_SET])dnl 505AC_REQUIRE([AM_SET_LEADING_DOT])dnl 506_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 507 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 508 [_AM_PROG_TAR([v7])])]) 509_AM_IF_OPTION([no-dependencies],, 510[AC_PROVIDE_IFELSE([AC_PROG_CC], 511 [_AM_DEPENDENCIES(CC)], 512 [define([AC_PROG_CC], 513 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 514AC_PROVIDE_IFELSE([AC_PROG_CXX], 515 [_AM_DEPENDENCIES(CXX)], 516 [define([AC_PROG_CXX], 517 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 518AC_PROVIDE_IFELSE([AC_PROG_OBJC], 519 [_AM_DEPENDENCIES(OBJC)], 520 [define([AC_PROG_OBJC], 521 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 522]) 523_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 524dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 525dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 526dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 527AC_CONFIG_COMMANDS_PRE(dnl 528[m4_provide_if([_AM_COMPILER_EXEEXT], 529 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 530]) 531 532dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 533dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 534dnl mangled by Autoconf and run in a shell conditional statement. 535m4_define([_AC_COMPILER_EXEEXT], 536m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 537 538 539# When config.status generates a header, we must update the stamp-h file. 540# This file resides in the same directory as the config header 541# that is generated. The stamp files are numbered to have different names. 542 543# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 544# loop where config.status creates the headers, so we can generate 545# our stamp files there. 546AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 547[# Compute $1's index in $config_headers. 548_am_arg=$1 549_am_stamp_count=1 550for _am_header in $config_headers :; do 551 case $_am_header in 552 $_am_arg | $_am_arg:* ) 553 break ;; 554 * ) 555 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 556 esac 557done 558echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 559 560# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 561# 562# This file is free software; the Free Software Foundation 563# gives unlimited permission to copy and/or distribute it, 564# with or without modifications, as long as this notice is preserved. 565 566# AM_PROG_INSTALL_SH 567# ------------------ 568# Define $install_sh. 569AC_DEFUN([AM_PROG_INSTALL_SH], 570[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 571if test x"${install_sh}" != xset; then 572 case $am_aux_dir in 573 *\ * | *\ *) 574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 575 *) 576 install_sh="\${SHELL} $am_aux_dir/install-sh" 577 esac 578fi 579AC_SUBST(install_sh)]) 580 581# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 582# 583# This file is free software; the Free Software Foundation 584# gives unlimited permission to copy and/or distribute it, 585# with or without modifications, as long as this notice is preserved. 586 587# serial 2 588 589# Check whether the underlying file-system supports filenames 590# with a leading dot. For instance MS-DOS doesn't. 591AC_DEFUN([AM_SET_LEADING_DOT], 592[rm -rf .tst 2>/dev/null 593mkdir .tst 2>/dev/null 594if test -d .tst; then 595 am__leading_dot=. 596else 597 am__leading_dot=_ 598fi 599rmdir .tst 2>/dev/null 600AC_SUBST([am__leading_dot])]) 601 602# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 603# From Jim Meyering 604 605# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 606# Free Software Foundation, Inc. 607# 608# This file is free software; the Free Software Foundation 609# gives unlimited permission to copy and/or distribute it, 610# with or without modifications, as long as this notice is preserved. 611 612# serial 5 613 614# AM_MAINTAINER_MODE([DEFAULT-MODE]) 615# ---------------------------------- 616# Control maintainer-specific portions of Makefiles. 617# Default is to disable them, unless `enable' is passed literally. 618# For symmetry, `disable' may be passed as well. Anyway, the user 619# can override the default with the --enable/--disable switch. 620AC_DEFUN([AM_MAINTAINER_MODE], 621[m4_case(m4_default([$1], [disable]), 622 [enable], [m4_define([am_maintainer_other], [disable])], 623 [disable], [m4_define([am_maintainer_other], [enable])], 624 [m4_define([am_maintainer_other], [enable]) 625 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 626AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) 627 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 628 AC_ARG_ENABLE([maintainer-mode], 629[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 630 (and sometimes confusing) to the casual installer], 631 [USE_MAINTAINER_MODE=$enableval], 632 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 633 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 634 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 635 MAINT=$MAINTAINER_MODE_TRUE 636 AC_SUBST([MAINT])dnl 637] 638) 639 640AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 641 642# Check to see how 'make' treats includes. -*- Autoconf -*- 643 644# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 645# 646# This file is free software; the Free Software Foundation 647# gives unlimited permission to copy and/or distribute it, 648# with or without modifications, as long as this notice is preserved. 649 650# serial 4 651 652# AM_MAKE_INCLUDE() 653# ----------------- 654# Check to see how make treats includes. 655AC_DEFUN([AM_MAKE_INCLUDE], 656[am_make=${MAKE-make} 657cat > confinc << 'END' 658am__doit: 659 @echo this is the am__doit target 660.PHONY: am__doit 661END 662# If we don't find an include directive, just comment out the code. 663AC_MSG_CHECKING([for style of include used by $am_make]) 664am__include="#" 665am__quote= 666_am_result=none 667# First try GNU make style include. 668echo "include confinc" > confmf 669# Ignore all kinds of additional output from `make'. 670case `$am_make -s -f confmf 2> /dev/null` in #( 671*the\ am__doit\ target*) 672 am__include=include 673 am__quote= 674 _am_result=GNU 675 ;; 676esac 677# Now try BSD make style include. 678if test "$am__include" = "#"; then 679 echo '.include "confinc"' > confmf 680 case `$am_make -s -f confmf 2> /dev/null` in #( 681 *the\ am__doit\ target*) 682 am__include=.include 683 am__quote="\"" 684 _am_result=BSD 685 ;; 686 esac 687fi 688AC_SUBST([am__include]) 689AC_SUBST([am__quote]) 690AC_MSG_RESULT([$_am_result]) 691rm -f confinc confmf 692]) 693 694# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 695 696# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 697# Free Software Foundation, Inc. 698# 699# This file is free software; the Free Software Foundation 700# gives unlimited permission to copy and/or distribute it, 701# with or without modifications, as long as this notice is preserved. 702 703# serial 6 704 705# AM_MISSING_PROG(NAME, PROGRAM) 706# ------------------------------ 707AC_DEFUN([AM_MISSING_PROG], 708[AC_REQUIRE([AM_MISSING_HAS_RUN]) 709$1=${$1-"${am_missing_run}$2"} 710AC_SUBST($1)]) 711 712 713# AM_MISSING_HAS_RUN 714# ------------------ 715# Define MISSING if not defined so far and test if it supports --run. 716# If it does, set am_missing_run to use it, otherwise, to nothing. 717AC_DEFUN([AM_MISSING_HAS_RUN], 718[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 719AC_REQUIRE_AUX_FILE([missing])dnl 720if test x"${MISSING+set}" != xset; then 721 case $am_aux_dir in 722 *\ * | *\ *) 723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 724 *) 725 MISSING="\${SHELL} $am_aux_dir/missing" ;; 726 esac 727fi 728# Use eval to expand $SHELL 729if eval "$MISSING --run true"; then 730 am_missing_run="$MISSING --run " 731else 732 am_missing_run= 733 AC_MSG_WARN([`missing' script is too old or missing]) 734fi 735]) 736 737# Copyright (C) 2003, 2004, 2005, 2006 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_PROG_MKDIR_P 744# --------------- 745# Check for `mkdir -p'. 746AC_DEFUN([AM_PROG_MKDIR_P], 747[AC_PREREQ([2.60])dnl 748AC_REQUIRE([AC_PROG_MKDIR_P])dnl 749dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 750dnl while keeping a definition of mkdir_p for backward compatibility. 751dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 752dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 753dnl Makefile.ins that do not define MKDIR_P, so we do our own 754dnl adjustment using top_builddir (which is defined more often than 755dnl MKDIR_P). 756AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 757case $mkdir_p in 758 [[\\/$]]* | ?:[[\\/]]*) ;; 759 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 760esac 761]) 762 763# Helper functions for option handling. -*- Autoconf -*- 764 765# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 766# 767# This file is free software; the Free Software Foundation 768# gives unlimited permission to copy and/or distribute it, 769# with or without modifications, as long as this notice is preserved. 770 771# serial 4 772 773# _AM_MANGLE_OPTION(NAME) 774# ----------------------- 775AC_DEFUN([_AM_MANGLE_OPTION], 776[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 777 778# _AM_SET_OPTION(NAME) 779# ------------------------------ 780# Set option NAME. Presently that only means defining a flag for this option. 781AC_DEFUN([_AM_SET_OPTION], 782[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 783 784# _AM_SET_OPTIONS(OPTIONS) 785# ---------------------------------- 786# OPTIONS is a space-separated list of Automake options. 787AC_DEFUN([_AM_SET_OPTIONS], 788[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 789 790# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 791# ------------------------------------------- 792# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 793AC_DEFUN([_AM_IF_OPTION], 794[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 795 796# Check to make sure that the build environment is sane. -*- Autoconf -*- 797 798# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 799# Free Software Foundation, Inc. 800# 801# This file is free software; the Free Software Foundation 802# gives unlimited permission to copy and/or distribute it, 803# with or without modifications, as long as this notice is preserved. 804 805# serial 5 806 807# AM_SANITY_CHECK 808# --------------- 809AC_DEFUN([AM_SANITY_CHECK], 810[AC_MSG_CHECKING([whether build environment is sane]) 811# Just in case 812sleep 1 813echo timestamp > conftest.file 814# Reject unsafe characters in $srcdir or the absolute working directory 815# name. Accept space and tab only in the latter. 816am_lf=' 817' 818case `pwd` in 819 *[[\\\"\#\$\&\'\`$am_lf]]*) 820 AC_MSG_ERROR([unsafe absolute working directory name]);; 821esac 822case $srcdir in 823 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 824 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 825esac 826 827# Do `set' in a subshell so we don't clobber the current shell's 828# arguments. Must try -L first in case configure is actually a 829# symlink; some systems play weird games with the mod time of symlinks 830# (eg FreeBSD returns the mod time of the symlink's containing 831# directory). 832if ( 833 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 834 if test "$[*]" = "X"; then 835 # -L didn't work. 836 set X `ls -t "$srcdir/configure" conftest.file` 837 fi 838 rm -f conftest.file 839 if test "$[*]" != "X $srcdir/configure conftest.file" \ 840 && test "$[*]" != "X conftest.file $srcdir/configure"; then 841 842 # If neither matched, then we have a broken ls. This can happen 843 # if, for instance, CONFIG_SHELL is bash and it inherits a 844 # broken ls alias from the environment. This has actually 845 # happened. Such a system could not be considered "sane". 846 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 847alias in your environment]) 848 fi 849 850 test "$[2]" = conftest.file 851 ) 852then 853 # Ok. 854 : 855else 856 AC_MSG_ERROR([newly created file is older than distributed files! 857Check your system clock]) 858fi 859AC_MSG_RESULT(yes)]) 860 861# Copyright (C) 2009 Free Software Foundation, Inc. 862# 863# This file is free software; the Free Software Foundation 864# gives unlimited permission to copy and/or distribute it, 865# with or without modifications, as long as this notice is preserved. 866 867# serial 1 868 869# AM_SILENT_RULES([DEFAULT]) 870# -------------------------- 871# Enable less verbose build rules; with the default set to DEFAULT 872# (`yes' being less verbose, `no' or empty being verbose). 873AC_DEFUN([AM_SILENT_RULES], 874[AC_ARG_ENABLE([silent-rules], 875[ --enable-silent-rules less verbose build output (undo: `make V=1') 876 --disable-silent-rules verbose build output (undo: `make V=0')]) 877case $enable_silent_rules in 878yes) AM_DEFAULT_VERBOSITY=0;; 879no) AM_DEFAULT_VERBOSITY=1;; 880*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 881esac 882AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 883AM_BACKSLASH='\' 884AC_SUBST([AM_BACKSLASH])dnl 885_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 886]) 887 888# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 889# 890# This file is free software; the Free Software Foundation 891# gives unlimited permission to copy and/or distribute it, 892# with or without modifications, as long as this notice is preserved. 893 894# AM_PROG_INSTALL_STRIP 895# --------------------- 896# One issue with vendor `install' (even GNU) is that you can't 897# specify the program used to strip binaries. This is especially 898# annoying in cross-compiling environments, where the build's strip 899# is unlikely to handle the host's binaries. 900# Fortunately install-sh will honor a STRIPPROG variable, so we 901# always use install-sh in `make install-strip', and initialize 902# STRIPPROG with the value of the STRIP variable (set by the user). 903AC_DEFUN([AM_PROG_INSTALL_STRIP], 904[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 905# Installed binaries are usually stripped using `strip' when the user 906# run `make install-strip'. However `strip' might not be the right 907# tool to use in cross-compilation environments, therefore Automake 908# will honor the `STRIP' environment variable to overrule this program. 909dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 910if test "$cross_compiling" != no; then 911 AC_CHECK_TOOL([STRIP], [strip], :) 912fi 913INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 914AC_SUBST([INSTALL_STRIP_PROGRAM])]) 915 916# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 917# 918# This file is free software; the Free Software Foundation 919# gives unlimited permission to copy and/or distribute it, 920# with or without modifications, as long as this notice is preserved. 921 922# serial 2 923 924# _AM_SUBST_NOTMAKE(VARIABLE) 925# --------------------------- 926# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 927# This macro is traced by Automake. 928AC_DEFUN([_AM_SUBST_NOTMAKE]) 929 930# AM_SUBST_NOTMAKE(VARIABLE) 931# --------------------------- 932# Public sister of _AM_SUBST_NOTMAKE. 933AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 934 935# Check how to create a tarball. -*- Autoconf -*- 936 937# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 938# 939# This file is free software; the Free Software Foundation 940# gives unlimited permission to copy and/or distribute it, 941# with or without modifications, as long as this notice is preserved. 942 943# serial 2 944 945# _AM_PROG_TAR(FORMAT) 946# -------------------- 947# Check how to create a tarball in format FORMAT. 948# FORMAT should be one of `v7', `ustar', or `pax'. 949# 950# Substitute a variable $(am__tar) that is a command 951# writing to stdout a FORMAT-tarball containing the directory 952# $tardir. 953# tardir=directory && $(am__tar) > result.tar 954# 955# Substitute a variable $(am__untar) that extract such 956# a tarball read from stdin. 957# $(am__untar) < result.tar 958AC_DEFUN([_AM_PROG_TAR], 959[# Always define AMTAR for backward compatibility. 960AM_MISSING_PROG([AMTAR], [tar]) 961m4_if([$1], [v7], 962 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 963 [m4_case([$1], [ustar],, [pax],, 964 [m4_fatal([Unknown tar format])]) 965AC_MSG_CHECKING([how to create a $1 tar archive]) 966# Loop over all known methods to create a tar archive until one works. 967_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 968_am_tools=${am_cv_prog_tar_$1-$_am_tools} 969# Do not fold the above two line into one, because Tru64 sh and 970# Solaris sh will not grok spaces in the rhs of `-'. 971for _am_tool in $_am_tools 972do 973 case $_am_tool in 974 gnutar) 975 for _am_tar in tar gnutar gtar; 976 do 977 AM_RUN_LOG([$_am_tar --version]) && break 978 done 979 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 980 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 981 am__untar="$_am_tar -xf -" 982 ;; 983 plaintar) 984 # Must skip GNU tar: if it does not support --format= it doesn't create 985 # ustar tarball either. 986 (tar --version) >/dev/null 2>&1 && continue 987 am__tar='tar chf - "$$tardir"' 988 am__tar_='tar chf - "$tardir"' 989 am__untar='tar xf -' 990 ;; 991 pax) 992 am__tar='pax -L -x $1 -w "$$tardir"' 993 am__tar_='pax -L -x $1 -w "$tardir"' 994 am__untar='pax -r' 995 ;; 996 cpio) 997 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 998 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 999 am__untar='cpio -i -H $1 -d' 1000 ;; 1001 none) 1002 am__tar=false 1003 am__tar_=false 1004 am__untar=false 1005 ;; 1006 esac 1007 1008 # If the value was cached, stop now. We just wanted to have am__tar 1009 # and am__untar set. 1010 test -n "${am_cv_prog_tar_$1}" && break 1011 1012 # tar/untar a dummy directory, and stop if the command works 1013 rm -rf conftest.dir 1014 mkdir conftest.dir 1015 echo GrepMe > conftest.dir/file 1016 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1017 rm -rf conftest.dir 1018 if test -s conftest.tar; then 1019 AM_RUN_LOG([$am__untar <conftest.tar]) 1020 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1021 fi 1022done 1023rm -rf conftest.dir 1024 1025AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1026AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1027AC_SUBST([am__tar]) 1028AC_SUBST([am__untar]) 1029]) # _AM_PROG_TAR 1030 1031dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 1032dnl 1033dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 1034dnl 1035dnl Permission is hereby granted, free of charge, to any person obtaining a 1036dnl copy of this software and associated documentation files (the "Software"), 1037dnl to deal in the Software without restriction, including without limitation 1038dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, 1039dnl and/or sell copies of the Software, and to permit persons to whom the 1040dnl Software is furnished to do so, subject to the following conditions: 1041dnl 1042dnl The above copyright notice and this permission notice (including the next 1043dnl paragraph) shall be included in all copies or substantial portions of the 1044dnl Software. 1045dnl 1046dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1047dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1048dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1049dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1050dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1051dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 1052dnl DEALINGS IN THE SOFTWARE. 1053 1054# XORG_MACROS_VERSION(required-version) 1055# ------------------------------------- 1056# Minimum version: 1.1.0 1057# 1058# If you're using a macro added in Version 1.1 or newer, include this in 1059# your configure.ac with the minimum required version, such as: 1060# XORG_MACROS_VERSION(1.1) 1061# 1062# To ensure that this macro is defined, also add: 1063# m4_ifndef([XORG_MACROS_VERSION], 1064# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 1065# 1066# 1067# See the "minimum version" comment for each macro you use to see what 1068# version you require. 1069m4_defun([XORG_MACROS_VERSION],[ 1070m4_define([vers_have], [1.7.0]) 1071m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1072m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1073m4_if(m4_cmp(maj_have, maj_needed), 0,, 1074 [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 1075m4_if(m4_version_compare(vers_have, [$1]), -1, 1076 [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 1077m4_undefine([vers_have]) 1078m4_undefine([maj_have]) 1079m4_undefine([maj_needed]) 1080]) # XORG_MACROS_VERSION 1081 1082# XORG_PROG_RAWCPP() 1083# ------------------ 1084# Minimum version: 1.0.0 1085# 1086# Find cpp program and necessary flags for use in pre-processing text files 1087# such as man pages and config files 1088AC_DEFUN([XORG_PROG_RAWCPP],[ 1089AC_REQUIRE([AC_PROG_CPP]) 1090AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 1091 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 1092 1093# Check for flag to avoid builtin definitions - assumes unix is predefined, 1094# which is not the best choice for supporting other OS'es, but covers most 1095# of the ones we need for now. 1096AC_MSG_CHECKING([if $RAWCPP requires -undef]) 1097AC_LANG_CONFTEST([Does cpp redefine unix ?]) 1098if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1099 AC_MSG_RESULT([no]) 1100else 1101 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1102 RAWCPPFLAGS=-undef 1103 AC_MSG_RESULT([yes]) 1104 # under Cygwin unix is still defined even with -undef 1105 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 1106 RAWCPPFLAGS="-undef -ansi" 1107 AC_MSG_RESULT([yes, with -ansi]) 1108 else 1109 AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 1110 fi 1111fi 1112rm -f conftest.$ac_ext 1113 1114AC_MSG_CHECKING([if $RAWCPP requires -traditional]) 1115AC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 1116if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1117 AC_MSG_RESULT([no]) 1118else 1119 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 1120 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 1121 AC_MSG_RESULT([yes]) 1122 else 1123 AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 1124 fi 1125fi 1126rm -f conftest.$ac_ext 1127AC_SUBST(RAWCPPFLAGS) 1128]) # XORG_PROG_RAWCPP 1129 1130# XORG_MANPAGE_SECTIONS() 1131# ----------------------- 1132# Minimum version: 1.0.0 1133# 1134# Determine which sections man pages go in for the different man page types 1135# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 1136# Not sure if there's any better way than just hardcoding by OS name. 1137# Override default settings by setting environment variables 1138# Added MAN_SUBSTS in version 1.8 1139 1140AC_DEFUN([XORG_MANPAGE_SECTIONS],[ 1141AC_REQUIRE([AC_CANONICAL_HOST]) 1142 1143if test x$APP_MAN_SUFFIX = x ; then 1144 APP_MAN_SUFFIX=1 1145fi 1146if test x$APP_MAN_DIR = x ; then 1147 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1148fi 1149 1150if test x$LIB_MAN_SUFFIX = x ; then 1151 LIB_MAN_SUFFIX=3 1152fi 1153if test x$LIB_MAN_DIR = x ; then 1154 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1155fi 1156 1157if test x$FILE_MAN_SUFFIX = x ; then 1158 case $host_os in 1159 solaris*) FILE_MAN_SUFFIX=4 ;; 1160 *) FILE_MAN_SUFFIX=5 ;; 1161 esac 1162fi 1163if test x$FILE_MAN_DIR = x ; then 1164 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1165fi 1166 1167if test x$MISC_MAN_SUFFIX = x ; then 1168 case $host_os in 1169 solaris*) MISC_MAN_SUFFIX=5 ;; 1170 *) MISC_MAN_SUFFIX=7 ;; 1171 esac 1172fi 1173if test x$MISC_MAN_DIR = x ; then 1174 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1175fi 1176 1177if test x$DRIVER_MAN_SUFFIX = x ; then 1178 case $host_os in 1179 solaris*) DRIVER_MAN_SUFFIX=7 ;; 1180 *) DRIVER_MAN_SUFFIX=4 ;; 1181 esac 1182fi 1183if test x$DRIVER_MAN_DIR = x ; then 1184 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1185fi 1186 1187if test x$ADMIN_MAN_SUFFIX = x ; then 1188 case $host_os in 1189 solaris*) ADMIN_MAN_SUFFIX=1m ;; 1190 *) ADMIN_MAN_SUFFIX=8 ;; 1191 esac 1192fi 1193if test x$ADMIN_MAN_DIR = x ; then 1194 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1195fi 1196 1197 1198AC_SUBST([APP_MAN_SUFFIX]) 1199AC_SUBST([LIB_MAN_SUFFIX]) 1200AC_SUBST([FILE_MAN_SUFFIX]) 1201AC_SUBST([MISC_MAN_SUFFIX]) 1202AC_SUBST([DRIVER_MAN_SUFFIX]) 1203AC_SUBST([ADMIN_MAN_SUFFIX]) 1204AC_SUBST([APP_MAN_DIR]) 1205AC_SUBST([LIB_MAN_DIR]) 1206AC_SUBST([FILE_MAN_DIR]) 1207AC_SUBST([MISC_MAN_DIR]) 1208AC_SUBST([DRIVER_MAN_DIR]) 1209AC_SUBST([ADMIN_MAN_DIR]) 1210 1211XORG_MAN_PAGE="X Version 11" 1212AC_SUBST([XORG_MAN_PAGE]) 1213MAN_SUBSTS="\ 1214 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1215 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1216 -e 's|__xservername__|Xorg|g' \ 1217 -e 's|__xconfigfile__|xorg.conf|g' \ 1218 -e 's|__projectroot__|\$(prefix)|g' \ 1219 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1220 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1221 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1222 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1223 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1224 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1225AC_SUBST([MAN_SUBSTS]) 1226 1227]) # XORG_MANPAGE_SECTIONS 1228 1229# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION]) 1230# ------------------------ 1231# Minimum version: 1.7.0 1232# 1233# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent 1234# provided by xorg-sgml-doctools, if installed. 1235AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[ 1236AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])]) 1237XORG_SGML_PATH= 1238PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])], 1239 [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`], 1240 [m4_ifval([$1],[:], 1241 [if test x"$cross_compiling" != x"yes" ; then 1242 AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent], 1243 [XORG_SGML_PATH=$prefix/share/sgml]) 1244 fi]) 1245 ]) 1246 1247if test "x$XORG_SGML_PATH" != "x" ; then 1248 AC_MSG_RESULT([$XORG_SGML_PATH]) 1249else 1250 AC_MSG_RESULT([no]) 1251fi 1252 1253AC_SUBST(XORG_SGML_PATH) 1254]) # XORG_CHECK_SGML_DOCTOOLS 1255 1256# XORG_CHECK_LINUXDOC 1257# ------------------- 1258# Minimum version: 1.0.0 1259# 1260# Defines the variable MAKE_TEXT if the necessary tools and 1261# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 1262# Whether or not the necessary tools and files are found can be checked 1263# with the AM_CONDITIONAL "BUILD_LINUXDOC" 1264AC_DEFUN([XORG_CHECK_LINUXDOC],[ 1265AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1266AC_REQUIRE([XORG_WITH_PS2PDF]) 1267 1268AC_PATH_PROG(LINUXDOC, linuxdoc) 1269 1270AC_MSG_CHECKING([whether to build documentation]) 1271 1272if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then 1273 BUILDDOC=yes 1274else 1275 BUILDDOC=no 1276fi 1277 1278AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 1279 1280AC_MSG_RESULT([$BUILDDOC]) 1281 1282AC_MSG_CHECKING([whether to build pdf documentation]) 1283 1284if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then 1285 BUILDPDFDOC=yes 1286else 1287 BUILDPDFDOC=no 1288fi 1289 1290AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1291 1292AC_MSG_RESULT([$BUILDPDFDOC]) 1293 1294MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f" 1295MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 1296MAKE_PDF="$PS2PDF" 1297MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 1298 1299AC_SUBST(MAKE_TEXT) 1300AC_SUBST(MAKE_PS) 1301AC_SUBST(MAKE_PDF) 1302AC_SUBST(MAKE_HTML) 1303]) # XORG_CHECK_LINUXDOC 1304 1305# XORG_CHECK_DOCBOOK 1306# ------------------- 1307# Minimum version: 1.0.0 1308# 1309# Checks for the ability to build output formats from SGML DocBook source. 1310# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 1311# indicates whether the necessary tools and files are found and, if set, 1312# $(MAKE_XXX) blah.sgml will produce blah.xxx. 1313AC_DEFUN([XORG_CHECK_DOCBOOK],[ 1314AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS]) 1315 1316BUILDTXTDOC=no 1317BUILDPDFDOC=no 1318BUILDPSDOC=no 1319BUILDHTMLDOC=no 1320 1321AC_PATH_PROG(DOCBOOKPS, docbook2ps) 1322AC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 1323AC_PATH_PROG(DOCBOOKHTML, docbook2html) 1324AC_PATH_PROG(DOCBOOKTXT, docbook2txt) 1325 1326AC_MSG_CHECKING([whether to build text documentation]) 1327if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x && 1328 test x$BUILD_TXTDOC != xno; then 1329 BUILDTXTDOC=yes 1330fi 1331AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 1332AC_MSG_RESULT([$BUILDTXTDOC]) 1333 1334AC_MSG_CHECKING([whether to build PDF documentation]) 1335if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x && 1336 test x$BUILD_PDFDOC != xno; then 1337 BUILDPDFDOC=yes 1338fi 1339AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 1340AC_MSG_RESULT([$BUILDPDFDOC]) 1341 1342AC_MSG_CHECKING([whether to build PostScript documentation]) 1343if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x && 1344 test x$BUILD_PSDOC != xno; then 1345 BUILDPSDOC=yes 1346fi 1347AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 1348AC_MSG_RESULT([$BUILDPSDOC]) 1349 1350AC_MSG_CHECKING([whether to build HTML documentation]) 1351if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x && 1352 test x$BUILD_HTMLDOC != xno; then 1353 BUILDHTMLDOC=yes 1354fi 1355AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 1356AC_MSG_RESULT([$BUILDHTMLDOC]) 1357 1358MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 1359MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 1360MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 1361MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 1362 1363AC_SUBST(MAKE_TEXT) 1364AC_SUBST(MAKE_PS) 1365AC_SUBST(MAKE_PDF) 1366AC_SUBST(MAKE_HTML) 1367]) # XORG_CHECK_DOCBOOK 1368 1369# XORG_WITH_XMLTO([MIN-VERSION]) 1370# ---------------- 1371# Minimum version: 1.5.0 1372# 1373# Documentation tools are not always available on all platforms and sometimes 1374# not at the appropriate level. This macro enables a module to test for the 1375# presence of the tool and obtain it's path in separate variables. Coupled with 1376# the --with-xmlto option, it allows maximum flexibilty in making decisions 1377# as whether or not to use the xmlto package. 1378# 1379# Interface to module: 1380# HAVE_XMLTO: used in makefiles to conditionally generate documentation 1381# XMLTO: returns the path of the xmlto program found 1382# returns the path set by the user in the environment 1383# --with-xmlto: 'yes' user instructs the module to use xmlto 1384# 'no' user instructs the module not to use xmlto 1385# 1386# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path. 1387# 1388AC_DEFUN([XORG_WITH_XMLTO],[ 1389AC_ARG_VAR([XMLTO], [Path to xmlto command]) 1390AC_ARG_WITH(xmlto, 1391 AS_HELP_STRING([--with-xmlto], 1392 [Use xmlto to regenerate documentation (default: yes, if installed)]), 1393 [use_xmlto=$withval], [use_xmlto=auto]) 1394 1395if test "x$use_xmlto" = x"auto"; then 1396 AC_PATH_PROG([XMLTO], [xmlto]) 1397 if test "x$XMLTO" = "x"; then 1398 AC_MSG_WARN([xmlto not found - documentation targets will be skipped]) 1399 have_xmlto=no 1400 else 1401 have_xmlto=yes 1402 fi 1403elif test "x$use_xmlto" = x"yes" ; then 1404 AC_PATH_PROG([XMLTO], [xmlto]) 1405 if test "x$XMLTO" = "x"; then 1406 AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH]) 1407 fi 1408 have_xmlto=yes 1409elif test "x$use_xmlto" = x"no" ; then 1410 if test "x$XMLTO" != "x"; then 1411 AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified]) 1412 fi 1413 have_xmlto=no 1414else 1415 AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no']) 1416fi 1417m4_ifval([$1], 1418[if test "$have_xmlto" = yes; then 1419 # scrape the xmlto version 1420 AC_MSG_CHECKING([the xmlto version]) 1421 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 1422 AC_MSG_RESULT([$xmlto_version]) 1423 AS_VERSION_COMPARE([$xmlto_version], [$1], 1424 [if test "x$use_xmlto" = xauto; then 1425 AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed]) 1426 have_xmlto=no 1427 else 1428 AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed]) 1429 fi]) 1430fi]) 1431AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes]) 1432]) # XORG_WITH_XMLTO 1433 1434# XORG_WITH_ASCIIDOC([MIN-VERSION]) 1435# ---------------- 1436# Minimum version: 1.5.0 1437# 1438# Documentation tools are not always available on all platforms and sometimes 1439# not at the appropriate level. This macro enables a module to test for the 1440# presence of the tool and obtain it's path in separate variables. Coupled with 1441# the --with-asciidoc option, it allows maximum flexibilty in making decisions 1442# as whether or not to use the asciidoc package. 1443# 1444# Interface to module: 1445# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation 1446# ASCIIDOC: returns the path of the asciidoc program found 1447# returns the path set by the user in the environment 1448# --with-asciidoc: 'yes' user instructs the module to use asciidoc 1449# 'no' user instructs the module not to use asciidoc 1450# 1451# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path. 1452# 1453AC_DEFUN([XORG_WITH_ASCIIDOC],[ 1454AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command]) 1455AC_ARG_WITH(asciidoc, 1456 AS_HELP_STRING([--with-asciidoc], 1457 [Use asciidoc to regenerate documentation (default: yes, if installed)]), 1458 [use_asciidoc=$withval], [use_asciidoc=auto]) 1459 1460if test "x$use_asciidoc" = x"auto"; then 1461 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1462 if test "x$ASCIIDOC" = "x"; then 1463 AC_MSG_WARN([asciidoc not found - documentation targets will be skipped]) 1464 have_asciidoc=no 1465 else 1466 have_asciidoc=yes 1467 fi 1468elif test "x$use_asciidoc" = x"yes" ; then 1469 AC_PATH_PROG([ASCIIDOC], [asciidoc]) 1470 if test "x$ASCIIDOC" = "x"; then 1471 AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH]) 1472 fi 1473 have_asciidoc=yes 1474elif test "x$use_asciidoc" = x"no" ; then 1475 if test "x$ASCIIDOC" != "x"; then 1476 AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified]) 1477 fi 1478 have_asciidoc=no 1479else 1480 AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no']) 1481fi 1482m4_ifval([$1], 1483[if test "$have_asciidoc" = yes; then 1484 # scrape the asciidoc version 1485 AC_MSG_CHECKING([the asciidoc version]) 1486 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 1487 AC_MSG_RESULT([$asciidoc_version]) 1488 AS_VERSION_COMPARE([$asciidoc_version], [$1], 1489 [if test "x$use_asciidoc" = xauto; then 1490 AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed]) 1491 have_asciidoc=no 1492 else 1493 AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed]) 1494 fi]) 1495fi]) 1496AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes]) 1497]) # XORG_WITH_ASCIIDOC 1498 1499# XORG_WITH_DOXYGEN([MIN-VERSION]) 1500# -------------------------------- 1501# Minimum version: 1.5.0 1502# 1503# Documentation tools are not always available on all platforms and sometimes 1504# not at the appropriate level. This macro enables a module to test for the 1505# presence of the tool and obtain it's path in separate variables. Coupled with 1506# the --with-doxygen option, it allows maximum flexibilty in making decisions 1507# as whether or not to use the doxygen package. 1508# 1509# Interface to module: 1510# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation 1511# DOXYGEN: returns the path of the doxygen program found 1512# returns the path set by the user in the environment 1513# --with-doxygen: 'yes' user instructs the module to use doxygen 1514# 'no' user instructs the module not to use doxygen 1515# 1516# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path. 1517# 1518AC_DEFUN([XORG_WITH_DOXYGEN],[ 1519AC_ARG_VAR([DOXYGEN], [Path to doxygen command]) 1520AC_ARG_WITH(doxygen, 1521 AS_HELP_STRING([--with-doxygen], 1522 [Use doxygen to regenerate documentation (default: yes, if installed)]), 1523 [use_doxygen=$withval], [use_doxygen=auto]) 1524 1525if test "x$use_doxygen" = x"auto"; then 1526 AC_PATH_PROG([DOXYGEN], [doxygen]) 1527 if test "x$DOXYGEN" = "x"; then 1528 AC_MSG_WARN([doxygen not found - documentation targets will be skipped]) 1529 have_doxygen=no 1530 else 1531 have_doxygen=yes 1532 fi 1533elif test "x$use_doxygen" = x"yes" ; then 1534 AC_PATH_PROG([DOXYGEN], [doxygen]) 1535 if test "x$DOXYGEN" = "x"; then 1536 AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH]) 1537 fi 1538 have_doxygen=yes 1539elif test "x$use_doxygen" = x"no" ; then 1540 if test "x$DOXYGEN" != "x"; then 1541 AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified]) 1542 fi 1543 have_doxygen=no 1544else 1545 AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no']) 1546fi 1547m4_ifval([$1], 1548[if test "$have_doxygen" = yes; then 1549 # scrape the doxygen version 1550 AC_MSG_CHECKING([the doxygen version]) 1551 doxygen_version=`$DOXYGEN --version 2>/dev/null` 1552 AC_MSG_RESULT([$doxygen_version]) 1553 AS_VERSION_COMPARE([$doxygen_version], [$1], 1554 [if test "x$use_doxygen" = xauto; then 1555 AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed]) 1556 have_doxygen=no 1557 else 1558 AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed]) 1559 fi]) 1560fi]) 1561AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes]) 1562]) # XORG_WITH_DOXYGEN 1563 1564# XORG_WITH_GROFF 1565# ---------------- 1566# Minimum version: 1.6.0 1567# 1568# Documentation tools are not always available on all platforms and sometimes 1569# not at the appropriate level. This macro enables a module to test for the 1570# presence of the tool and obtain it's path in separate variables. Coupled with 1571# the --with-groff option, it allows maximum flexibilty in making decisions 1572# as whether or not to use the groff package. 1573# 1574# Interface to module: 1575# HAVE_GROFF: used in makefiles to conditionally generate documentation 1576# HAVE_GROFF_MM: the memorandum macros (-mm) package 1577# HAVE_GROFF_MS: the -ms macros package 1578# GROFF: returns the path of the groff program found 1579# returns the path set by the user in the environment 1580# --with-groff: 'yes' user instructs the module to use groff 1581# 'no' user instructs the module not to use groff 1582# 1583# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path. 1584# 1585# OS and distros often splits groff in a basic and full package, the former 1586# having the groff program and the later having devices, fonts and macros 1587# Checking for the groff executable is not enough. 1588# 1589# If macros are missing, we cannot assume that groff is useless, so we don't 1590# unset HAVE_GROFF or GROFF env variables. 1591# HAVE_GROFF_?? can never be true while HAVE_GROFF is false. 1592# 1593AC_DEFUN([XORG_WITH_GROFF],[ 1594AC_ARG_VAR([GROFF], [Path to groff command]) 1595AC_ARG_WITH(groff, 1596 AS_HELP_STRING([--with-groff], 1597 [Use groff to regenerate documentation (default: yes, if installed)]), 1598 [use_groff=$withval], [use_groff=auto]) 1599 1600if test "x$use_groff" = x"auto"; then 1601 AC_PATH_PROG([GROFF], [groff]) 1602 if test "x$GROFF" = "x"; then 1603 AC_MSG_WARN([groff not found - documentation targets will be skipped]) 1604 have_groff=no 1605 else 1606 have_groff=yes 1607 fi 1608elif test "x$use_groff" = x"yes" ; then 1609 AC_PATH_PROG([GROFF], [groff]) 1610 if test "x$GROFF" = "x"; then 1611 AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH]) 1612 fi 1613 have_groff=yes 1614elif test "x$use_groff" = x"no" ; then 1615 if test "x$GROFF" != "x"; then 1616 AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified]) 1617 fi 1618 have_groff=no 1619else 1620 AC_MSG_ERROR([--with-groff expects 'yes' or 'no']) 1621fi 1622# We have groff, test for the presence of the macro packages 1623if test "x$have_groff" = x"yes"; then 1624 AC_MSG_CHECKING([for ${GROFF} -ms macros]) 1625 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 1626 groff_ms_works=yes 1627 else 1628 groff_ms_works=no 1629 fi 1630 AC_MSG_RESULT([$groff_ms_works]) 1631 AC_MSG_CHECKING([for ${GROFF} -mm macros]) 1632 if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then 1633 groff_mm_works=yes 1634 else 1635 groff_mm_works=no 1636 fi 1637 AC_MSG_RESULT([$groff_mm_works]) 1638fi 1639AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes]) 1640AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes]) 1641AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes]) 1642]) # XORG_WITH_GROFF 1643 1644# XORG_WITH_FOP 1645# ---------------- 1646# Minimum version: 1.6.0 1647# 1648# Documentation tools are not always available on all platforms and sometimes 1649# not at the appropriate level. This macro enables a module to test for the 1650# presence of the tool and obtain it's path in separate variables. Coupled with 1651# the --with-fop option, it allows maximum flexibilty in making decisions 1652# as whether or not to use the fop package. 1653# 1654# Interface to module: 1655# HAVE_FOP: used in makefiles to conditionally generate documentation 1656# FOP: returns the path of the fop program found 1657# returns the path set by the user in the environment 1658# --with-fop: 'yes' user instructs the module to use fop 1659# 'no' user instructs the module not to use fop 1660# 1661# If the user sets the value of FOP, AC_PATH_PROG skips testing the path. 1662# 1663AC_DEFUN([XORG_WITH_FOP],[ 1664AC_ARG_VAR([FOP], [Path to fop command]) 1665AC_ARG_WITH(fop, 1666 AS_HELP_STRING([--with-fop], 1667 [Use fop to regenerate documentation (default: yes, if installed)]), 1668 [use_fop=$withval], [use_fop=auto]) 1669 1670if test "x$use_fop" = x"auto"; then 1671 AC_PATH_PROG([FOP], [fop]) 1672 if test "x$FOP" = "x"; then 1673 AC_MSG_WARN([fop not found - documentation targets will be skipped]) 1674 have_fop=no 1675 else 1676 have_fop=yes 1677 fi 1678elif test "x$use_fop" = x"yes" ; then 1679 AC_PATH_PROG([FOP], [fop]) 1680 if test "x$FOP" = "x"; then 1681 AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH]) 1682 fi 1683 have_fop=yes 1684elif test "x$use_fop" = x"no" ; then 1685 if test "x$FOP" != "x"; then 1686 AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified]) 1687 fi 1688 have_fop=no 1689else 1690 AC_MSG_ERROR([--with-fop expects 'yes' or 'no']) 1691fi 1692AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes]) 1693]) # XORG_WITH_FOP 1694 1695# XORG_WITH_PS2PDF 1696# ---------------- 1697# Minimum version: 1.6.0 1698# 1699# Documentation tools are not always available on all platforms and sometimes 1700# not at the appropriate level. This macro enables a module to test for the 1701# presence of the tool and obtain it's path in separate variables. Coupled with 1702# the --with-ps2pdf option, it allows maximum flexibilty in making decisions 1703# as whether or not to use the ps2pdf package. 1704# 1705# Interface to module: 1706# HAVE_PS2PDF: used in makefiles to conditionally generate documentation 1707# PS2PDF: returns the path of the ps2pdf program found 1708# returns the path set by the user in the environment 1709# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf 1710# 'no' user instructs the module not to use ps2pdf 1711# 1712# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path. 1713# 1714AC_DEFUN([XORG_WITH_PS2PDF],[ 1715AC_ARG_VAR([PS2PDF], [Path to ps2pdf command]) 1716AC_ARG_WITH(ps2pdf, 1717 AS_HELP_STRING([--with-ps2pdf], 1718 [Use ps2pdf to regenerate documentation (default: yes, if installed)]), 1719 [use_ps2pdf=$withval], [use_ps2pdf=auto]) 1720 1721if test "x$use_ps2pdf" = x"auto"; then 1722 AC_PATH_PROG([PS2PDF], [ps2pdf]) 1723 if test "x$PS2PDF" = "x"; then 1724 AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped]) 1725 have_ps2pdf=no 1726 else 1727 have_ps2pdf=yes 1728 fi 1729elif test "x$use_ps2pdf" = x"yes" ; then 1730 AC_PATH_PROG([PS2PDF], [ps2pdf]) 1731 if test "x$PS2PDF" = "x"; then 1732 AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH]) 1733 fi 1734 have_ps2pdf=yes 1735elif test "x$use_ps2pdf" = x"no" ; then 1736 if test "x$PS2PDF" != "x"; then 1737 AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified]) 1738 fi 1739 have_ps2pdf=no 1740else 1741 AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no']) 1742fi 1743AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes]) 1744]) # XORG_WITH_PS2PDF 1745 1746# XORG_ENABLE_DOCS (enable_docs=yes) 1747# ---------------- 1748# Minimum version: 1.6.0 1749# 1750# Documentation tools are not always available on all platforms and sometimes 1751# not at the appropriate level. This macro enables a builder to skip all 1752# documentation targets except traditional man pages. 1753# Combined with the specific tool checking macros XORG_WITH_*, it provides 1754# maximum flexibilty in controlling documentation building. 1755# Refer to: 1756# XORG_WITH_XMLTO --with-xmlto 1757# XORG_WITH_ASCIIDOC --with-asciidoc 1758# XORG_WITH_DOXYGEN --with-doxygen 1759# XORG_WITH_FOP --with-fop 1760# XORG_WITH_GROFF --with-groff 1761# XORG_WITH_PS2PDF --with-ps2pdf 1762# 1763# Interface to module: 1764# ENABLE_DOCS: used in makefiles to conditionally generate documentation 1765# --enable-docs: 'yes' user instructs the module to generate docs 1766# 'no' user instructs the module not to generate docs 1767# parm1: specify the default value, yes or no. 1768# 1769AC_DEFUN([XORG_ENABLE_DOCS],[ 1770default=$1 1771if test "x$default" = x ; then 1772 default="yes" 1773fi 1774AC_ARG_ENABLE(docs, 1775 AS_HELP_STRING([--enable-docs], 1776 [Enable building the documentation (default: yes)]), 1777 [build_docs=$enableval], [build_docs=$default]) 1778AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes]) 1779AC_MSG_CHECKING([whether to build documentation]) 1780AC_MSG_RESULT([$build_docs]) 1781]) # XORG_ENABLE_DOCS 1782 1783# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes) 1784# ---------------- 1785# Minimum version: 1.6.0 1786# 1787# This macro enables a builder to skip all developer documentation. 1788# Combined with the specific tool checking macros XORG_WITH_*, it provides 1789# maximum flexibilty in controlling documentation building. 1790# Refer to: 1791# XORG_WITH_XMLTO --with-xmlto 1792# XORG_WITH_ASCIIDOC --with-asciidoc 1793# XORG_WITH_DOXYGEN --with-doxygen 1794# XORG_WITH_FOP --with-fop 1795# XORG_WITH_GROFF --with-groff 1796# XORG_WITH_PS2PDF --with-ps2pdf 1797# 1798# Interface to module: 1799# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs 1800# --enable-devel-docs: 'yes' user instructs the module to generate developer docs 1801# 'no' user instructs the module not to generate developer docs 1802# parm1: specify the default value, yes or no. 1803# 1804AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[ 1805devel_default=$1 1806if test "x$devel_default" = x ; then 1807 devel_default="yes" 1808fi 1809AC_ARG_ENABLE(devel-docs, 1810 AS_HELP_STRING([--enable-devel-docs], 1811 [Enable building the developer documentation (default: yes)]), 1812 [build_devel_docs=$enableval], [build_devel_docs=$devel_default]) 1813AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes]) 1814AC_MSG_CHECKING([whether to build developer documentation]) 1815AC_MSG_RESULT([$build_devel_docs]) 1816]) # XORG_ENABLE_DEVEL_DOCS 1817 1818# XORG_ENABLE_SPECS (enable_specs=yes) 1819# ---------------- 1820# Minimum version: 1.6.0 1821# 1822# This macro enables a builder to skip all functional specification targets. 1823# Combined with the specific tool checking macros XORG_WITH_*, it provides 1824# maximum flexibilty in controlling documentation building. 1825# Refer to: 1826# XORG_WITH_XMLTO --with-xmlto 1827# XORG_WITH_ASCIIDOC --with-asciidoc 1828# XORG_WITH_DOXYGEN --with-doxygen 1829# XORG_WITH_FOP --with-fop 1830# XORG_WITH_GROFF --with-groff 1831# XORG_WITH_PS2PDF --with-ps2pdf 1832# 1833# Interface to module: 1834# ENABLE_SPECS: used in makefiles to conditionally generate specs 1835# --enable-specs: 'yes' user instructs the module to generate specs 1836# 'no' user instructs the module not to generate specs 1837# parm1: specify the default value, yes or no. 1838# 1839AC_DEFUN([XORG_ENABLE_SPECS],[ 1840spec_default=$1 1841if test "x$spec_default" = x ; then 1842 spec_default="yes" 1843fi 1844AC_ARG_ENABLE(specs, 1845 AS_HELP_STRING([--enable-specs], 1846 [Enable building the specs (default: yes)]), 1847 [build_specs=$enableval], [build_specs=$spec_default]) 1848AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes]) 1849AC_MSG_CHECKING([whether to build functional specifications]) 1850AC_MSG_RESULT([$build_specs]) 1851]) # XORG_ENABLE_SPECS 1852 1853# XORG_CHECK_MALLOC_ZERO 1854# ---------------------- 1855# Minimum version: 1.0.0 1856# 1857# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 1858# malloc(0) returns NULL. Packages should add one of these cflags to 1859# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 1860AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 1861AC_ARG_ENABLE(malloc0returnsnull, 1862 AS_HELP_STRING([--enable-malloc0returnsnull], 1863 [malloc(0) returns NULL (default: auto)]), 1864 [MALLOC_ZERO_RETURNS_NULL=$enableval], 1865 [MALLOC_ZERO_RETURNS_NULL=auto]) 1866 1867AC_MSG_CHECKING([whether malloc(0) returns NULL]) 1868if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 1869 AC_RUN_IFELSE([ 1870char *malloc(); 1871char *realloc(); 1872char *calloc(); 1873main() { 1874 char *m0, *r0, *c0, *p; 1875 m0 = malloc(0); 1876 p = malloc(10); 1877 r0 = realloc(p,0); 1878 c0 = calloc(0); 1879 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 1880}], 1881 [MALLOC_ZERO_RETURNS_NULL=yes], 1882 [MALLOC_ZERO_RETURNS_NULL=no], 1883 [MALLOC_ZERO_RETURNS_NULL=yes]) 1884fi 1885AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 1886 1887if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 1888 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 1889 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 1890 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 1891else 1892 MALLOC_ZERO_CFLAGS="" 1893 XMALLOC_ZERO_CFLAGS="" 1894 XTMALLOC_ZERO_CFLAGS="" 1895fi 1896 1897AC_SUBST([MALLOC_ZERO_CFLAGS]) 1898AC_SUBST([XMALLOC_ZERO_CFLAGS]) 1899AC_SUBST([XTMALLOC_ZERO_CFLAGS]) 1900]) # XORG_CHECK_MALLOC_ZERO 1901 1902# XORG_WITH_LINT() 1903# ---------------- 1904# Minimum version: 1.1.0 1905# 1906# Sets up flags for source checkers such as lint and sparse if --with-lint 1907# is specified. (Use --with-lint=sparse for sparse.) 1908# Sets $LINT to name of source checker passed with --with-lint (default: lint) 1909# Sets $LINT_FLAGS to flags to pass to source checker 1910# Sets LINT automake conditional if enabled (default: disabled) 1911# 1912AC_DEFUN([XORG_WITH_LINT],[ 1913 1914# Allow checking code with lint, sparse, etc. 1915AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint], 1916 [Use a lint-style source code checker (default: disabled)])], 1917 [use_lint=$withval], [use_lint=no]) 1918if test "x$use_lint" = "xyes" ; then 1919 LINT="lint" 1920else 1921 LINT="$use_lint" 1922fi 1923if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 1924 case $LINT in 1925 lint|*/lint) 1926 case $host_os in 1927 solaris*) 1928 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 1929 ;; 1930 esac 1931 ;; 1932 esac 1933fi 1934 1935AC_SUBST(LINT) 1936AC_SUBST(LINT_FLAGS) 1937AM_CONDITIONAL(LINT, [test x$LINT != xno]) 1938 1939]) # XORG_WITH_LINT 1940 1941# XORG_LINT_LIBRARY(LIBNAME) 1942# -------------------------- 1943# Minimum version: 1.1.0 1944# 1945# Sets up flags for building lint libraries for checking programs that call 1946# functions in the library. 1947# Disabled by default, enable with --enable-lint-library 1948# Sets: 1949# @LINTLIB@ - name of lint library file to make 1950# MAKE_LINT_LIB - automake conditional 1951# 1952 1953AC_DEFUN([XORG_LINT_LIBRARY],[ 1954AC_REQUIRE([XORG_WITH_LINT]) 1955# Build lint "library" for more indepth checks of programs calling this library 1956AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library], 1957 [Create lint library (default: disabled)])], 1958 [make_lint_lib=$enableval], [make_lint_lib=no]) 1959if test "x$make_lint_lib" != "xno" ; then 1960 if test "x$LINT" = "xno" ; then 1961 AC_MSG_ERROR([Cannot make lint library without --with-lint]) 1962 fi 1963 if test "x$make_lint_lib" = "xyes" ; then 1964 LINTLIB=llib-l$1.ln 1965 else 1966 LINTLIB=$make_lint_lib 1967 fi 1968fi 1969AC_SUBST(LINTLIB) 1970AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 1971 1972]) # XORG_LINT_LIBRARY 1973 1974# XORG_CWARNFLAGS 1975# --------------- 1976# Minimum version: 1.2.0 1977# 1978# Defines CWARNFLAGS to enable C compiler warnings. 1979# 1980AC_DEFUN([XORG_CWARNFLAGS], [ 1981AC_REQUIRE([AC_PROG_CC]) 1982if test "x$GCC" = xyes ; then 1983 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 1984-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 1985-Wbad-function-cast -Wformat=2" 1986 case `$CC -dumpversion` in 1987 3.4.* | 4.*) 1988 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 1989 ;; 1990 esac 1991else 1992 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 1993 if test "x$SUNCC" = "xyes"; then 1994 CWARNFLAGS="-v" 1995 fi 1996fi 1997AC_SUBST(CWARNFLAGS) 1998]) # XORG_CWARNFLAGS 1999 2000# XORG_STRICT_OPTION 2001# ----------------------- 2002# Minimum version: 1.3.0 2003# 2004# Add configure option to enable strict compilation 2005AC_DEFUN([XORG_STRICT_OPTION], [ 2006AC_REQUIRE([AC_PROG_CC]) 2007AC_REQUIRE([AC_PROG_CC_C99]) 2008AC_REQUIRE([XORG_CWARNFLAGS]) 2009 2010AC_ARG_ENABLE(strict-compilation, 2011 AS_HELP_STRING([--enable-strict-compilation], 2012 [Enable all warnings from compiler and make them errors (default: disabled)]), 2013 [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no]) 2014if test "x$STRICT_COMPILE" = "xyes"; then 2015 AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 2016 AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"]) 2017 if test "x$GCC" = xyes ; then 2018 STRICT_CFLAGS="-pedantic -Werror" 2019 elif test "x$SUNCC" = "xyes"; then 2020 STRICT_CFLAGS="-errwarn" 2021 elif test "x$INTELCC" = "xyes"; then 2022 STRICT_CFLAGS="-Werror" 2023 fi 2024fi 2025CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 2026AC_SUBST([CWARNFLAGS]) 2027]) # XORG_STRICT_OPTION 2028 2029# XORG_DEFAULT_OPTIONS 2030# -------------------- 2031# Minimum version: 1.3.0 2032# 2033# Defines default options for X.Org modules. 2034# 2035AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 2036XORG_CWARNFLAGS 2037XORG_STRICT_OPTION 2038XORG_RELEASE_VERSION 2039XORG_CHANGELOG 2040XORG_INSTALL 2041XORG_MANPAGE_SECTIONS 2042m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 2043 [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 2044]) # XORG_DEFAULT_OPTIONS 2045 2046# XORG_INSTALL() 2047# ---------------- 2048# Minimum version: 1.4.0 2049# 2050# Defines the variable INSTALL_CMD as the command to copy 2051# INSTALL from $prefix/share/util-macros. 2052# 2053AC_DEFUN([XORG_INSTALL], [ 2054AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2055macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 2056INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 2057mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 2058|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 2059echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 2060AC_SUBST([INSTALL_CMD]) 2061]) # XORG_INSTALL 2062dnl Copyright 2005 Red Hat, Inc 2063dnl 2064dnl Permission to use, copy, modify, distribute, and sell this software and its 2065dnl documentation for any purpose is hereby granted without fee, provided that 2066dnl the above copyright notice appear in all copies and that both that 2067dnl copyright notice and this permission notice appear in supporting 2068dnl documentation. 2069dnl 2070dnl The above copyright notice and this permission notice shall be included 2071dnl in all copies or substantial portions of the Software. 2072dnl 2073dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 2074dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2075dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 2076dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 2077dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2078dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2079dnl OTHER DEALINGS IN THE SOFTWARE. 2080dnl 2081dnl Except as contained in this notice, the name of the copyright holders shall 2082dnl not be used in advertising or otherwise to promote the sale, use or 2083dnl other dealings in this Software without prior written authorization 2084dnl from the copyright holders. 2085dnl 2086 2087# XORG_RELEASE_VERSION 2088# -------------------- 2089# Adds --with/without-release-string and changes the PACKAGE and 2090# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 2091# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 2092# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 2093 2094AC_DEFUN([XORG_RELEASE_VERSION],[ 2095 AC_ARG_WITH(release-version, 2096 AS_HELP_STRING([--with-release-version=STRING], 2097 [Use release version string in package name]), 2098 [RELEASE_VERSION="$withval"], 2099 [RELEASE_VERSION=""]) 2100 if test "x$RELEASE_VERSION" != "x"; then 2101 PACKAGE="$PACKAGE-$RELEASE_VERSION" 2102 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 2103 AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 2104 fi 2105 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 2106 [`echo $PACKAGE_VERSION | cut -d . -f 1`], 2107 [Major version of this package]) 2108 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 2109 if test "x$PVM" = "x"; then 2110 PVM="0" 2111 fi 2112 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 2113 [$PVM], 2114 [Minor version of this package]) 2115 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 2116 if test "x$PVP" = "x"; then 2117 PVP="0" 2118 fi 2119 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 2120 [$PVP], 2121 [Patch version of this package]) 2122]) 2123 2124# XORG_CHANGELOG() 2125# ---------------- 2126# Minimum version: 1.2.0 2127# 2128# Defines the variable CHANGELOG_CMD as the command to generate 2129# ChangeLog from git. 2130# 2131# 2132AC_DEFUN([XORG_CHANGELOG], [ 2133CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 2134mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 2135|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 2136echo 'git directory not found: installing possibly empty changelog.' >&2)" 2137AC_SUBST([CHANGELOG_CMD]) 2138]) # XORG_CHANGELOG 2139 2140# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 2141# 2142# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 2143# 2144# This program is free software; you can redistribute it and/or modify 2145# it under the terms of the GNU General Public License as published by 2146# the Free Software Foundation; either version 2 of the License, or 2147# (at your option) any later version. 2148# 2149# This program is distributed in the hope that it will be useful, but 2150# WITHOUT ANY WARRANTY; without even the implied warranty of 2151# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2152# General Public License for more details. 2153# 2154# You should have received a copy of the GNU General Public License 2155# along with this program; if not, write to the Free Software 2156# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 2157# 2158# As a special exception to the GNU General Public License, if you 2159# distribute this file as part of a program that contains a 2160# configuration script generated by Autoconf, you may include it under 2161# the same distribution terms that you use for the rest of that program. 2162 2163# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 2164# ---------------------------------- 2165AC_DEFUN([PKG_PROG_PKG_CONFIG], 2166[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 2167m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 2168AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 2169if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 2170 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 2171fi 2172if test -n "$PKG_CONFIG"; then 2173 _pkg_min_version=m4_default([$1], [0.9.0]) 2174 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 2175 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 2176 AC_MSG_RESULT([yes]) 2177 else 2178 AC_MSG_RESULT([no]) 2179 PKG_CONFIG="" 2180 fi 2181 2182fi[]dnl 2183])# PKG_PROG_PKG_CONFIG 2184 2185# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 2186# 2187# Check to see whether a particular set of modules exists. Similar 2188# to PKG_CHECK_MODULES(), but does not set variables or print errors. 2189# 2190# 2191# Similar to PKG_CHECK_MODULES, make sure that the first instance of 2192# this or PKG_CHECK_MODULES is called, or make sure to call 2193# PKG_CHECK_EXISTS manually 2194# -------------------------------------------------------------- 2195AC_DEFUN([PKG_CHECK_EXISTS], 2196[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2197if test -n "$PKG_CONFIG" && \ 2198 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 2199 m4_ifval([$2], [$2], [:]) 2200m4_ifvaln([$3], [else 2201 $3])dnl 2202fi]) 2203 2204 2205# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 2206# --------------------------------------------- 2207m4_define([_PKG_CONFIG], 2208[if test -n "$$1"; then 2209 pkg_cv_[]$1="$$1" 2210 elif test -n "$PKG_CONFIG"; then 2211 PKG_CHECK_EXISTS([$3], 2212 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 2213 [pkg_failed=yes]) 2214 else 2215 pkg_failed=untried 2216fi[]dnl 2217])# _PKG_CONFIG 2218 2219# _PKG_SHORT_ERRORS_SUPPORTED 2220# ----------------------------- 2221AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 2222[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 2223if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 2224 _pkg_short_errors_supported=yes 2225else 2226 _pkg_short_errors_supported=no 2227fi[]dnl 2228])# _PKG_SHORT_ERRORS_SUPPORTED 2229 2230 2231# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 2232# [ACTION-IF-NOT-FOUND]) 2233# 2234# 2235# Note that if there is a possibility the first call to 2236# PKG_CHECK_MODULES might not happen, you should be sure to include an 2237# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 2238# 2239# 2240# -------------------------------------------------------------- 2241AC_DEFUN([PKG_CHECK_MODULES], 2242[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 2243AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 2244AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 2245 2246pkg_failed=no 2247AC_MSG_CHECKING([for $1]) 2248 2249_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 2250_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 2251 2252m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 2253and $1[]_LIBS to avoid the need to call pkg-config. 2254See the pkg-config man page for more details.]) 2255 2256if test $pkg_failed = yes; then 2257 _PKG_SHORT_ERRORS_SUPPORTED 2258 if test $_pkg_short_errors_supported = yes; then 2259 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 2260 else 2261 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 2262 fi 2263 # Put the nasty error message in config.log where it belongs 2264 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 2265 2266 ifelse([$4], , [AC_MSG_ERROR(dnl 2267[Package requirements ($2) were not met: 2268 2269$$1_PKG_ERRORS 2270 2271Consider adjusting the PKG_CONFIG_PATH environment variable if you 2272installed software in a non-standard prefix. 2273 2274_PKG_TEXT 2275])], 2276 [AC_MSG_RESULT([no]) 2277 $4]) 2278elif test $pkg_failed = untried; then 2279 ifelse([$4], , [AC_MSG_FAILURE(dnl 2280[The pkg-config script could not be found or is too old. Make sure it 2281is in your PATH or set the PKG_CONFIG environment variable to the full 2282path to pkg-config. 2283 2284_PKG_TEXT 2285 2286To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 2287 [$4]) 2288else 2289 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 2290 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 2291 AC_MSG_RESULT([yes]) 2292 ifelse([$3], , :, [$3]) 2293fi[]dnl 2294])# PKG_CHECK_MODULES 2295 2296# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2297# 2298# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2299# 2006, 2007, 2008 Free Software Foundation, Inc. 2300# Written by Gordon Matzigkeit, 1996 2301# 2302# This file is free software; the Free Software Foundation gives 2303# unlimited permission to copy and/or distribute it, with or without 2304# modifications, as long as this notice is preserved. 2305 2306m4_define([_LT_COPYING], [dnl 2307# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2308# 2006, 2007, 2008 Free Software Foundation, Inc. 2309# Written by Gordon Matzigkeit, 1996 2310# 2311# This file is part of GNU Libtool. 2312# 2313# GNU Libtool is free software; you can redistribute it and/or 2314# modify it under the terms of the GNU General Public License as 2315# published by the Free Software Foundation; either version 2 of 2316# the License, or (at your option) any later version. 2317# 2318# As a special exception to the GNU General Public License, 2319# if you distribute this file as part of a program or library that 2320# is built using GNU Libtool, you may include this file under the 2321# same distribution terms that you use for the rest of that program. 2322# 2323# GNU Libtool is distributed in the hope that it will be useful, 2324# but WITHOUT ANY WARRANTY; without even the implied warranty of 2325# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2326# GNU General Public License for more details. 2327# 2328# You should have received a copy of the GNU General Public License 2329# along with GNU Libtool; see the file COPYING. If not, a copy 2330# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 2331# obtained by writing to the Free Software Foundation, Inc., 2332# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 2333]) 2334 2335# serial 56 LT_INIT 2336 2337 2338# LT_PREREQ(VERSION) 2339# ------------------ 2340# Complain and exit if this libtool version is less that VERSION. 2341m4_defun([LT_PREREQ], 2342[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 2343 [m4_default([$3], 2344 [m4_fatal([Libtool version $1 or higher is required], 2345 63)])], 2346 [$2])]) 2347 2348 2349# _LT_CHECK_BUILDDIR 2350# ------------------ 2351# Complain if the absolute build directory name contains unusual characters 2352m4_defun([_LT_CHECK_BUILDDIR], 2353[case `pwd` in 2354 *\ * | *\ *) 2355 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 2356esac 2357]) 2358 2359 2360# LT_INIT([OPTIONS]) 2361# ------------------ 2362AC_DEFUN([LT_INIT], 2363[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 2364AC_BEFORE([$0], [LT_LANG])dnl 2365AC_BEFORE([$0], [LT_OUTPUT])dnl 2366AC_BEFORE([$0], [LTDL_INIT])dnl 2367m4_require([_LT_CHECK_BUILDDIR])dnl 2368 2369dnl Autoconf doesn't catch unexpanded LT_ macros by default: 2370m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 2371m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 2372dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 2373dnl unless we require an AC_DEFUNed macro: 2374AC_REQUIRE([LTOPTIONS_VERSION])dnl 2375AC_REQUIRE([LTSUGAR_VERSION])dnl 2376AC_REQUIRE([LTVERSION_VERSION])dnl 2377AC_REQUIRE([LTOBSOLETE_VERSION])dnl 2378m4_require([_LT_PROG_LTMAIN])dnl 2379 2380dnl Parse OPTIONS 2381_LT_SET_OPTIONS([$0], [$1]) 2382 2383# This can be used to rebuild libtool when needed 2384LIBTOOL_DEPS="$ltmain" 2385 2386# Always use our own libtool. 2387LIBTOOL='$(SHELL) $(top_builddir)/libtool' 2388AC_SUBST(LIBTOOL)dnl 2389 2390_LT_SETUP 2391 2392# Only expand once: 2393m4_define([LT_INIT]) 2394])# LT_INIT 2395 2396# Old names: 2397AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 2398AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 2399dnl aclocal-1.4 backwards compatibility: 2400dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 2401dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 2402 2403 2404# _LT_CC_BASENAME(CC) 2405# ------------------- 2406# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2407m4_defun([_LT_CC_BASENAME], 2408[for cc_temp in $1""; do 2409 case $cc_temp in 2410 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 2411 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 2412 \-*) ;; 2413 *) break;; 2414 esac 2415done 2416cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 2417]) 2418 2419 2420# _LT_FILEUTILS_DEFAULTS 2421# ---------------------- 2422# It is okay to use these file commands and assume they have been set 2423# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 2424m4_defun([_LT_FILEUTILS_DEFAULTS], 2425[: ${CP="cp -f"} 2426: ${MV="mv -f"} 2427: ${RM="rm -f"} 2428])# _LT_FILEUTILS_DEFAULTS 2429 2430 2431# _LT_SETUP 2432# --------- 2433m4_defun([_LT_SETUP], 2434[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2435AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2436_LT_DECL([], [host_alias], [0], [The host system])dnl 2437_LT_DECL([], [host], [0])dnl 2438_LT_DECL([], [host_os], [0])dnl 2439dnl 2440_LT_DECL([], [build_alias], [0], [The build system])dnl 2441_LT_DECL([], [build], [0])dnl 2442_LT_DECL([], [build_os], [0])dnl 2443dnl 2444AC_REQUIRE([AC_PROG_CC])dnl 2445AC_REQUIRE([LT_PATH_LD])dnl 2446AC_REQUIRE([LT_PATH_NM])dnl 2447dnl 2448AC_REQUIRE([AC_PROG_LN_S])dnl 2449test -z "$LN_S" && LN_S="ln -s" 2450_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 2451dnl 2452AC_REQUIRE([LT_CMD_MAX_LEN])dnl 2453_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 2454_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 2455dnl 2456m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2457m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2458m4_require([_LT_CMD_RELOAD])dnl 2459m4_require([_LT_CHECK_MAGIC_METHOD])dnl 2460m4_require([_LT_CMD_OLD_ARCHIVE])dnl 2461m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 2462 2463_LT_CONFIG_LIBTOOL_INIT([ 2464# See if we are running on zsh, and set the options which allow our 2465# commands through without removal of \ escapes INIT. 2466if test -n "\${ZSH_VERSION+set}" ; then 2467 setopt NO_GLOB_SUBST 2468fi 2469]) 2470if test -n "${ZSH_VERSION+set}" ; then 2471 setopt NO_GLOB_SUBST 2472fi 2473 2474_LT_CHECK_OBJDIR 2475 2476m4_require([_LT_TAG_COMPILER])dnl 2477_LT_PROG_ECHO_BACKSLASH 2478 2479case $host_os in 2480aix3*) 2481 # AIX sometimes has problems with the GCC collect2 program. For some 2482 # reason, if we set the COLLECT_NAMES environment variable, the problems 2483 # vanish in a puff of smoke. 2484 if test "X${COLLECT_NAMES+set}" != Xset; then 2485 COLLECT_NAMES= 2486 export COLLECT_NAMES 2487 fi 2488 ;; 2489esac 2490 2491# Sed substitution that helps us do robust quoting. It backslashifies 2492# metacharacters that are still active within double-quoted strings. 2493sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2494 2495# Same as above, but do not quote variable references. 2496double_quote_subst='s/\([["`\\]]\)/\\\1/g' 2497 2498# Sed substitution to delay expansion of an escaped shell variable in a 2499# double_quote_subst'ed string. 2500delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2501 2502# Sed substitution to delay expansion of an escaped single quote. 2503delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2504 2505# Sed substitution to avoid accidental globbing in evaled expressions 2506no_glob_subst='s/\*/\\\*/g' 2507 2508# Global variables: 2509ofile=libtool 2510can_build_shared=yes 2511 2512# All known linkers require a `.a' archive for static linking (except MSVC, 2513# which needs '.lib'). 2514libext=a 2515 2516with_gnu_ld="$lt_cv_prog_gnu_ld" 2517 2518old_CC="$CC" 2519old_CFLAGS="$CFLAGS" 2520 2521# Set sane defaults for various variables 2522test -z "$CC" && CC=cc 2523test -z "$LTCC" && LTCC=$CC 2524test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2525test -z "$LD" && LD=ld 2526test -z "$ac_objext" && ac_objext=o 2527 2528_LT_CC_BASENAME([$compiler]) 2529 2530# Only perform the check for file, if the check method requires it 2531test -z "$MAGIC_CMD" && MAGIC_CMD=file 2532case $deplibs_check_method in 2533file_magic*) 2534 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2535 _LT_PATH_MAGIC 2536 fi 2537 ;; 2538esac 2539 2540# Use C for the default configuration in the libtool script 2541LT_SUPPORTED_TAG([CC]) 2542_LT_LANG_C_CONFIG 2543_LT_LANG_DEFAULT_CONFIG 2544_LT_CONFIG_COMMANDS 2545])# _LT_SETUP 2546 2547 2548# _LT_PROG_LTMAIN 2549# --------------- 2550# Note that this code is called both from `configure', and `config.status' 2551# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2552# `config.status' has no value for ac_aux_dir unless we are using Automake, 2553# so we pass a copy along to make sure it has a sensible value anyway. 2554m4_defun([_LT_PROG_LTMAIN], 2555[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2556_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2557ltmain="$ac_aux_dir/ltmain.sh" 2558])# _LT_PROG_LTMAIN 2559 2560 2561 2562# So that we can recreate a full libtool script including additional 2563# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2564# in macros and then make a single call at the end using the `libtool' 2565# label. 2566 2567 2568# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2569# ---------------------------------------- 2570# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2571m4_define([_LT_CONFIG_LIBTOOL_INIT], 2572[m4_ifval([$1], 2573 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 2574 [$1 2575])])]) 2576 2577# Initialize. 2578m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 2579 2580 2581# _LT_CONFIG_LIBTOOL([COMMANDS]) 2582# ------------------------------ 2583# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2584m4_define([_LT_CONFIG_LIBTOOL], 2585[m4_ifval([$1], 2586 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 2587 [$1 2588])])]) 2589 2590# Initialize. 2591m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 2592 2593 2594# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 2595# ----------------------------------------------------- 2596m4_defun([_LT_CONFIG_SAVE_COMMANDS], 2597[_LT_CONFIG_LIBTOOL([$1]) 2598_LT_CONFIG_LIBTOOL_INIT([$2]) 2599]) 2600 2601 2602# _LT_FORMAT_COMMENT([COMMENT]) 2603# ----------------------------- 2604# Add leading comment marks to the start of each line, and a trailing 2605# full-stop to the whole comment if one is not present already. 2606m4_define([_LT_FORMAT_COMMENT], 2607[m4_ifval([$1], [ 2608m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 2609 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 2610)]) 2611 2612 2613 2614 2615 2616# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 2617# ------------------------------------------------------------------- 2618# CONFIGNAME is the name given to the value in the libtool script. 2619# VARNAME is the (base) name used in the configure script. 2620# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 2621# VARNAME. Any other value will be used directly. 2622m4_define([_LT_DECL], 2623[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 2624 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 2625 [m4_ifval([$1], [$1], [$2])]) 2626 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 2627 m4_ifval([$4], 2628 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 2629 lt_dict_add_subkey([lt_decl_dict], [$2], 2630 [tagged?], [m4_ifval([$5], [yes], [no])])]) 2631]) 2632 2633 2634# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 2635# -------------------------------------------------------- 2636m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 2637 2638 2639# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 2640# ------------------------------------------------ 2641m4_define([lt_decl_tag_varnames], 2642[_lt_decl_filter([tagged?], [yes], $@)]) 2643 2644 2645# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 2646# --------------------------------------------------------- 2647m4_define([_lt_decl_filter], 2648[m4_case([$#], 2649 [0], [m4_fatal([$0: too few arguments: $#])], 2650 [1], [m4_fatal([$0: too few arguments: $#: $1])], 2651 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 2652 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 2653 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 2654]) 2655 2656 2657# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 2658# -------------------------------------------------- 2659m4_define([lt_decl_quote_varnames], 2660[_lt_decl_filter([value], [1], $@)]) 2661 2662 2663# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 2664# --------------------------------------------------- 2665m4_define([lt_decl_dquote_varnames], 2666[_lt_decl_filter([value], [2], $@)]) 2667 2668 2669# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 2670# --------------------------------------------------- 2671m4_define([lt_decl_varnames_tagged], 2672[m4_assert([$# <= 2])dnl 2673_$0(m4_quote(m4_default([$1], [[, ]])), 2674 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 2675 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 2676m4_define([_lt_decl_varnames_tagged], 2677[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 2678 2679 2680# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 2681# ------------------------------------------------ 2682m4_define([lt_decl_all_varnames], 2683[_$0(m4_quote(m4_default([$1], [[, ]])), 2684 m4_if([$2], [], 2685 m4_quote(lt_decl_varnames), 2686 m4_quote(m4_shift($@))))[]dnl 2687]) 2688m4_define([_lt_decl_all_varnames], 2689[lt_join($@, lt_decl_varnames_tagged([$1], 2690 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 2691]) 2692 2693 2694# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 2695# ------------------------------------ 2696# Quote a variable value, and forward it to `config.status' so that its 2697# declaration there will have the same value as in `configure'. VARNAME 2698# must have a single quote delimited value for this to work. 2699m4_define([_LT_CONFIG_STATUS_DECLARE], 2700[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 2701 2702 2703# _LT_CONFIG_STATUS_DECLARATIONS 2704# ------------------------------ 2705# We delimit libtool config variables with single quotes, so when 2706# we write them to config.status, we have to be sure to quote all 2707# embedded single quotes properly. In configure, this macro expands 2708# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 2709# 2710# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 2711m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 2712[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 2713 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 2714 2715 2716# _LT_LIBTOOL_TAGS 2717# ---------------- 2718# Output comment and list of tags supported by the script 2719m4_defun([_LT_LIBTOOL_TAGS], 2720[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 2721available_tags="_LT_TAGS"dnl 2722]) 2723 2724 2725# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 2726# ----------------------------------- 2727# Extract the dictionary values for VARNAME (optionally with TAG) and 2728# expand to a commented shell variable setting: 2729# 2730# # Some comment about what VAR is for. 2731# visible_name=$lt_internal_name 2732m4_define([_LT_LIBTOOL_DECLARE], 2733[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 2734 [description])))[]dnl 2735m4_pushdef([_libtool_name], 2736 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 2737m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 2738 [0], [_libtool_name=[$]$1], 2739 [1], [_libtool_name=$lt_[]$1], 2740 [2], [_libtool_name=$lt_[]$1], 2741 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 2742m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 2743]) 2744 2745 2746# _LT_LIBTOOL_CONFIG_VARS 2747# ----------------------- 2748# Produce commented declarations of non-tagged libtool config variables 2749# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 2750# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 2751# section) are produced by _LT_LIBTOOL_TAG_VARS. 2752m4_defun([_LT_LIBTOOL_CONFIG_VARS], 2753[m4_foreach([_lt_var], 2754 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 2755 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 2756 2757 2758# _LT_LIBTOOL_TAG_VARS(TAG) 2759# ------------------------- 2760m4_define([_LT_LIBTOOL_TAG_VARS], 2761[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 2762 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 2763 2764 2765# _LT_TAGVAR(VARNAME, [TAGNAME]) 2766# ------------------------------ 2767m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 2768 2769 2770# _LT_CONFIG_COMMANDS 2771# ------------------- 2772# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 2773# variables for single and double quote escaping we saved from calls 2774# to _LT_DECL, we can put quote escaped variables declarations 2775# into `config.status', and then the shell code to quote escape them in 2776# for loops in `config.status'. Finally, any additional code accumulated 2777# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 2778m4_defun([_LT_CONFIG_COMMANDS], 2779[AC_PROVIDE_IFELSE([LT_OUTPUT], 2780 dnl If the libtool generation code has been placed in $CONFIG_LT, 2781 dnl instead of duplicating it all over again into config.status, 2782 dnl then we will have config.status run $CONFIG_LT later, so it 2783 dnl needs to know what name is stored there: 2784 [AC_CONFIG_COMMANDS([libtool], 2785 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 2786 dnl If the libtool generation code is destined for config.status, 2787 dnl expand the accumulated commands and init code now: 2788 [AC_CONFIG_COMMANDS([libtool], 2789 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 2790])#_LT_CONFIG_COMMANDS 2791 2792 2793# Initialize. 2794m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 2795[ 2796 2797# The HP-UX ksh and POSIX shell print the target directory to stdout 2798# if CDPATH is set. 2799(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2800 2801sed_quote_subst='$sed_quote_subst' 2802double_quote_subst='$double_quote_subst' 2803delay_variable_subst='$delay_variable_subst' 2804_LT_CONFIG_STATUS_DECLARATIONS 2805LTCC='$LTCC' 2806LTCFLAGS='$LTCFLAGS' 2807compiler='$compiler_DEFAULT' 2808 2809# Quote evaled strings. 2810for var in lt_decl_all_varnames([[ \ 2811]], lt_decl_quote_varnames); do 2812 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 2813 *[[\\\\\\\`\\"\\\$]]*) 2814 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 2815 ;; 2816 *) 2817 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2818 ;; 2819 esac 2820done 2821 2822# Double-quote double-evaled strings. 2823for var in lt_decl_all_varnames([[ \ 2824]], lt_decl_dquote_varnames); do 2825 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 2826 *[[\\\\\\\`\\"\\\$]]*) 2827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 2828 ;; 2829 *) 2830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 2831 ;; 2832 esac 2833done 2834 2835# Fix-up fallback echo if it was mangled by the above quoting rules. 2836case \$lt_ECHO in 2837*'\\\[$]0 --fallback-echo"')dnl " 2838 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 2839 ;; 2840esac 2841 2842_LT_OUTPUT_LIBTOOL_INIT 2843]) 2844 2845 2846# LT_OUTPUT 2847# --------- 2848# This macro allows early generation of the libtool script (before 2849# AC_OUTPUT is called), incase it is used in configure for compilation 2850# tests. 2851AC_DEFUN([LT_OUTPUT], 2852[: ${CONFIG_LT=./config.lt} 2853AC_MSG_NOTICE([creating $CONFIG_LT]) 2854cat >"$CONFIG_LT" <<_LTEOF 2855#! $SHELL 2856# Generated by $as_me. 2857# Run this file to recreate a libtool stub with the current configuration. 2858 2859lt_cl_silent=false 2860SHELL=\${CONFIG_SHELL-$SHELL} 2861_LTEOF 2862 2863cat >>"$CONFIG_LT" <<\_LTEOF 2864AS_SHELL_SANITIZE 2865_AS_PREPARE 2866 2867exec AS_MESSAGE_FD>&1 2868exec AS_MESSAGE_LOG_FD>>config.log 2869{ 2870 echo 2871 AS_BOX([Running $as_me.]) 2872} >&AS_MESSAGE_LOG_FD 2873 2874lt_cl_help="\ 2875\`$as_me' creates a local libtool stub from the current configuration, 2876for use in further configure time tests before the real libtool is 2877generated. 2878 2879Usage: $[0] [[OPTIONS]] 2880 2881 -h, --help print this help, then exit 2882 -V, --version print version number, then exit 2883 -q, --quiet do not print progress messages 2884 -d, --debug don't remove temporary files 2885 2886Report bugs to <bug-libtool@gnu.org>." 2887 2888lt_cl_version="\ 2889m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 2890m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 2891configured by $[0], generated by m4_PACKAGE_STRING. 2892 2893Copyright (C) 2008 Free Software Foundation, Inc. 2894This config.lt script is free software; the Free Software Foundation 2895gives unlimited permision to copy, distribute and modify it." 2896 2897while test $[#] != 0 2898do 2899 case $[1] in 2900 --version | --v* | -V ) 2901 echo "$lt_cl_version"; exit 0 ;; 2902 --help | --h* | -h ) 2903 echo "$lt_cl_help"; exit 0 ;; 2904 --debug | --d* | -d ) 2905 debug=: ;; 2906 --quiet | --q* | --silent | --s* | -q ) 2907 lt_cl_silent=: ;; 2908 2909 -*) AC_MSG_ERROR([unrecognized option: $[1] 2910Try \`$[0] --help' for more information.]) ;; 2911 2912 *) AC_MSG_ERROR([unrecognized argument: $[1] 2913Try \`$[0] --help' for more information.]) ;; 2914 esac 2915 shift 2916done 2917 2918if $lt_cl_silent; then 2919 exec AS_MESSAGE_FD>/dev/null 2920fi 2921_LTEOF 2922 2923cat >>"$CONFIG_LT" <<_LTEOF 2924_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 2925_LTEOF 2926 2927cat >>"$CONFIG_LT" <<\_LTEOF 2928AC_MSG_NOTICE([creating $ofile]) 2929_LT_OUTPUT_LIBTOOL_COMMANDS 2930AS_EXIT(0) 2931_LTEOF 2932chmod +x "$CONFIG_LT" 2933 2934# configure is writing to config.log, but config.lt does its own redirection, 2935# appending to config.log, which fails on DOS, as config.log is still kept 2936# open by configure. Here we exec the FD to /dev/null, effectively closing 2937# config.log, so it can be properly (re)opened and appended to by config.lt. 2938if test "$no_create" != yes; then 2939 lt_cl_success=: 2940 test "$silent" = yes && 2941 lt_config_lt_args="$lt_config_lt_args --quiet" 2942 exec AS_MESSAGE_LOG_FD>/dev/null 2943 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 2944 exec AS_MESSAGE_LOG_FD>>config.log 2945 $lt_cl_success || AS_EXIT(1) 2946fi 2947])# LT_OUTPUT 2948 2949 2950# _LT_CONFIG(TAG) 2951# --------------- 2952# If TAG is the built-in tag, create an initial libtool script with a 2953# default configuration from the untagged config vars. Otherwise add code 2954# to config.status for appending the configuration named by TAG from the 2955# matching tagged config vars. 2956m4_defun([_LT_CONFIG], 2957[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2958_LT_CONFIG_SAVE_COMMANDS([ 2959 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 2960 m4_if(_LT_TAG, [C], [ 2961 # See if we are running on zsh, and set the options which allow our 2962 # commands through without removal of \ escapes. 2963 if test -n "${ZSH_VERSION+set}" ; then 2964 setopt NO_GLOB_SUBST 2965 fi 2966 2967 cfgfile="${ofile}T" 2968 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 2969 $RM "$cfgfile" 2970 2971 cat <<_LT_EOF >> "$cfgfile" 2972#! $SHELL 2973 2974# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 2975# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 2976# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2977# NOTE: Changes made to this file will be lost: look at ltmain.sh. 2978# 2979_LT_COPYING 2980_LT_LIBTOOL_TAGS 2981 2982# ### BEGIN LIBTOOL CONFIG 2983_LT_LIBTOOL_CONFIG_VARS 2984_LT_LIBTOOL_TAG_VARS 2985# ### END LIBTOOL CONFIG 2986 2987_LT_EOF 2988 2989 case $host_os in 2990 aix3*) 2991 cat <<\_LT_EOF >> "$cfgfile" 2992# AIX sometimes has problems with the GCC collect2 program. For some 2993# reason, if we set the COLLECT_NAMES environment variable, the problems 2994# vanish in a puff of smoke. 2995if test "X${COLLECT_NAMES+set}" != Xset; then 2996 COLLECT_NAMES= 2997 export COLLECT_NAMES 2998fi 2999_LT_EOF 3000 ;; 3001 esac 3002 3003 _LT_PROG_LTMAIN 3004 3005 # We use sed instead of cat because bash on DJGPP gets confused if 3006 # if finds mixed CR/LF and LF-only lines. Since sed operates in 3007 # text mode, it properly converts lines to CR/LF. This bash problem 3008 # is reportedly fixed, but why not run on old versions too? 3009 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 3010 || (rm -f "$cfgfile"; exit 1) 3011 3012 _LT_PROG_XSI_SHELLFNS 3013 3014 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 3015 || (rm -f "$cfgfile"; exit 1) 3016 3017 mv -f "$cfgfile" "$ofile" || 3018 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 3019 chmod +x "$ofile" 3020], 3021[cat <<_LT_EOF >> "$ofile" 3022 3023dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 3024dnl in a comment (ie after a #). 3025# ### BEGIN LIBTOOL TAG CONFIG: $1 3026_LT_LIBTOOL_TAG_VARS(_LT_TAG) 3027# ### END LIBTOOL TAG CONFIG: $1 3028_LT_EOF 3029])dnl /m4_if 3030], 3031[m4_if([$1], [], [ 3032 PACKAGE='$PACKAGE' 3033 VERSION='$VERSION' 3034 TIMESTAMP='$TIMESTAMP' 3035 RM='$RM' 3036 ofile='$ofile'], []) 3037])dnl /_LT_CONFIG_SAVE_COMMANDS 3038])# _LT_CONFIG 3039 3040 3041# LT_SUPPORTED_TAG(TAG) 3042# --------------------- 3043# Trace this macro to discover what tags are supported by the libtool 3044# --tag option, using: 3045# autoconf --trace 'LT_SUPPORTED_TAG:$1' 3046AC_DEFUN([LT_SUPPORTED_TAG], []) 3047 3048 3049# C support is built-in for now 3050m4_define([_LT_LANG_C_enabled], []) 3051m4_define([_LT_TAGS], []) 3052 3053 3054# LT_LANG(LANG) 3055# ------------- 3056# Enable libtool support for the given language if not already enabled. 3057AC_DEFUN([LT_LANG], 3058[AC_BEFORE([$0], [LT_OUTPUT])dnl 3059m4_case([$1], 3060 [C], [_LT_LANG(C)], 3061 [C++], [_LT_LANG(CXX)], 3062 [Java], [_LT_LANG(GCJ)], 3063 [Fortran 77], [_LT_LANG(F77)], 3064 [Fortran], [_LT_LANG(FC)], 3065 [Windows Resource], [_LT_LANG(RC)], 3066 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 3067 [_LT_LANG($1)], 3068 [m4_fatal([$0: unsupported language: "$1"])])])dnl 3069])# LT_LANG 3070 3071 3072# _LT_LANG(LANGNAME) 3073# ------------------ 3074m4_defun([_LT_LANG], 3075[m4_ifdef([_LT_LANG_]$1[_enabled], [], 3076 [LT_SUPPORTED_TAG([$1])dnl 3077 m4_append([_LT_TAGS], [$1 ])dnl 3078 m4_define([_LT_LANG_]$1[_enabled], [])dnl 3079 _LT_LANG_$1_CONFIG($1)])dnl 3080])# _LT_LANG 3081 3082 3083# _LT_LANG_DEFAULT_CONFIG 3084# ----------------------- 3085m4_defun([_LT_LANG_DEFAULT_CONFIG], 3086[AC_PROVIDE_IFELSE([AC_PROG_CXX], 3087 [LT_LANG(CXX)], 3088 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 3089 3090AC_PROVIDE_IFELSE([AC_PROG_F77], 3091 [LT_LANG(F77)], 3092 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 3093 3094AC_PROVIDE_IFELSE([AC_PROG_FC], 3095 [LT_LANG(FC)], 3096 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 3097 3098dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 3099dnl pulling things in needlessly. 3100AC_PROVIDE_IFELSE([AC_PROG_GCJ], 3101 [LT_LANG(GCJ)], 3102 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 3103 [LT_LANG(GCJ)], 3104 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 3105 [LT_LANG(GCJ)], 3106 [m4_ifdef([AC_PROG_GCJ], 3107 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 3108 m4_ifdef([A][M_PROG_GCJ], 3109 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 3110 m4_ifdef([LT_PROG_GCJ], 3111 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 3112 3113AC_PROVIDE_IFELSE([LT_PROG_RC], 3114 [LT_LANG(RC)], 3115 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 3116])# _LT_LANG_DEFAULT_CONFIG 3117 3118# Obsolete macros: 3119AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 3120AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 3121AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 3122AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 3123dnl aclocal-1.4 backwards compatibility: 3124dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 3125dnl AC_DEFUN([AC_LIBTOOL_F77], []) 3126dnl AC_DEFUN([AC_LIBTOOL_FC], []) 3127dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 3128 3129 3130# _LT_TAG_COMPILER 3131# ---------------- 3132m4_defun([_LT_TAG_COMPILER], 3133[AC_REQUIRE([AC_PROG_CC])dnl 3134 3135_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 3136_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 3137_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 3138_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 3139 3140# If no C compiler was specified, use CC. 3141LTCC=${LTCC-"$CC"} 3142 3143# If no C compiler flags were specified, use CFLAGS. 3144LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3145 3146# Allow CC to be a program name with arguments. 3147compiler=$CC 3148])# _LT_TAG_COMPILER 3149 3150 3151# _LT_COMPILER_BOILERPLATE 3152# ------------------------ 3153# Check for compiler boilerplate output or warnings with 3154# the simple compiler test code. 3155m4_defun([_LT_COMPILER_BOILERPLATE], 3156[m4_require([_LT_DECL_SED])dnl 3157ac_outfile=conftest.$ac_objext 3158echo "$lt_simple_compile_test_code" >conftest.$ac_ext 3159eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3160_lt_compiler_boilerplate=`cat conftest.err` 3161$RM conftest* 3162])# _LT_COMPILER_BOILERPLATE 3163 3164 3165# _LT_LINKER_BOILERPLATE 3166# ---------------------- 3167# Check for linker boilerplate output or warnings with 3168# the simple link test code. 3169m4_defun([_LT_LINKER_BOILERPLATE], 3170[m4_require([_LT_DECL_SED])dnl 3171ac_outfile=conftest.$ac_objext 3172echo "$lt_simple_link_test_code" >conftest.$ac_ext 3173eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 3174_lt_linker_boilerplate=`cat conftest.err` 3175$RM -r conftest* 3176])# _LT_LINKER_BOILERPLATE 3177 3178# _LT_REQUIRED_DARWIN_CHECKS 3179# ------------------------- 3180m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 3181 case $host_os in 3182 rhapsody* | darwin*) 3183 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 3184 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 3185 AC_CHECK_TOOL([LIPO], [lipo], [:]) 3186 AC_CHECK_TOOL([OTOOL], [otool], [:]) 3187 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 3188 _LT_DECL([], [DSYMUTIL], [1], 3189 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 3190 _LT_DECL([], [NMEDIT], [1], 3191 [Tool to change global to local symbols on Mac OS X]) 3192 _LT_DECL([], [LIPO], [1], 3193 [Tool to manipulate fat objects and archives on Mac OS X]) 3194 _LT_DECL([], [OTOOL], [1], 3195 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 3196 _LT_DECL([], [OTOOL64], [1], 3197 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 3198 3199 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 3200 [lt_cv_apple_cc_single_mod=no 3201 if test -z "${LT_MULTI_MODULE}"; then 3202 # By default we will add the -single_module flag. You can override 3203 # by either setting the environment variable LT_MULTI_MODULE 3204 # non-empty at configure time, or by adding -multi_module to the 3205 # link flags. 3206 rm -rf libconftest.dylib* 3207 echo "int foo(void){return 1;}" > conftest.c 3208 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3209-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 3210 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 3211 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 3212 _lt_result=$? 3213 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 3214 lt_cv_apple_cc_single_mod=yes 3215 else 3216 cat conftest.err >&AS_MESSAGE_LOG_FD 3217 fi 3218 rm -rf libconftest.dylib* 3219 rm -f conftest.* 3220 fi]) 3221 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 3222 [lt_cv_ld_exported_symbols_list], 3223 [lt_cv_ld_exported_symbols_list=no 3224 save_LDFLAGS=$LDFLAGS 3225 echo "_main" > conftest.sym 3226 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 3227 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 3228 [lt_cv_ld_exported_symbols_list=yes], 3229 [lt_cv_ld_exported_symbols_list=no]) 3230 LDFLAGS="$save_LDFLAGS" 3231 ]) 3232 case $host_os in 3233 rhapsody* | darwin1.[[012]]) 3234 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 3235 darwin1.*) 3236 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 3237 darwin*) # darwin 5.x on 3238 # if running on 10.5 or later, the deployment target defaults 3239 # to the OS version, if on x86, and 10.4, the deployment 3240 # target defaults to 10.4. Don't you love it? 3241 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 3242 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 3243 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 3244 10.[[012]]*) 3245 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 3246 10.*) 3247 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 3248 esac 3249 ;; 3250 esac 3251 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 3252 _lt_dar_single_mod='$single_module' 3253 fi 3254 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 3255 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 3256 else 3257 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 3258 fi 3259 if test "$DSYMUTIL" != ":"; then 3260 _lt_dsymutil='~$DSYMUTIL $lib || :' 3261 else 3262 _lt_dsymutil= 3263 fi 3264 ;; 3265 esac 3266]) 3267 3268 3269# _LT_DARWIN_LINKER_FEATURES 3270# -------------------------- 3271# Checks for linker and compiler features on darwin 3272m4_defun([_LT_DARWIN_LINKER_FEATURES], 3273[ 3274 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 3275 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 3276 _LT_TAGVAR(hardcode_direct, $1)=no 3277 _LT_TAGVAR(hardcode_automatic, $1)=yes 3278 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3279 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 3280 _LT_TAGVAR(link_all_deplibs, $1)=yes 3281 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 3282 case $cc_basename in 3283 ifort*) _lt_dar_can_shared=yes ;; 3284 *) _lt_dar_can_shared=$GCC ;; 3285 esac 3286 if test "$_lt_dar_can_shared" = "yes"; then 3287 output_verbose_link_cmd=echo 3288 _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}" 3289 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 3290 _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}" 3291 _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}" 3292 m4_if([$1], [CXX], 3293[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 3294 _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}" 3295 _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}" 3296 fi 3297],[]) 3298 else 3299 _LT_TAGVAR(ld_shlibs, $1)=no 3300 fi 3301]) 3302 3303# _LT_SYS_MODULE_PATH_AIX 3304# ----------------------- 3305# Links a minimal program and checks the executable 3306# for the system default hardcoded library path. In most cases, 3307# this is /usr/lib:/lib, but when the MPI compilers are used 3308# the location of the communication and MPI libs are included too. 3309# If we don't find anything, use the default library path according 3310# to the aix ld manual. 3311m4_defun([_LT_SYS_MODULE_PATH_AIX], 3312[m4_require([_LT_DECL_SED])dnl 3313AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 3314lt_aix_libpath_sed=' 3315 /Import File Strings/,/^$/ { 3316 /^0/ { 3317 s/^0 *\(.*\)$/\1/ 3318 p 3319 } 3320 }' 3321aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3322# Check for a 64-bit object if we didn't find anything. 3323if test -z "$aix_libpath"; then 3324 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3325fi],[]) 3326if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 3327])# _LT_SYS_MODULE_PATH_AIX 3328 3329 3330# _LT_SHELL_INIT(ARG) 3331# ------------------- 3332m4_define([_LT_SHELL_INIT], 3333[ifdef([AC_DIVERSION_NOTICE], 3334 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 3335 [AC_DIVERT_PUSH(NOTICE)]) 3336$1 3337AC_DIVERT_POP 3338])# _LT_SHELL_INIT 3339 3340 3341# _LT_PROG_ECHO_BACKSLASH 3342# ----------------------- 3343# Add some code to the start of the generated configure script which 3344# will find an echo command which doesn't interpret backslashes. 3345m4_defun([_LT_PROG_ECHO_BACKSLASH], 3346[_LT_SHELL_INIT([ 3347# Check that we are running under the correct shell. 3348SHELL=${CONFIG_SHELL-/bin/sh} 3349 3350case X$lt_ECHO in 3351X*--fallback-echo) 3352 # Remove one level of quotation (which was required for Make). 3353 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 3354 ;; 3355esac 3356 3357ECHO=${lt_ECHO-echo} 3358if test "X[$]1" = X--no-reexec; then 3359 # Discard the --no-reexec flag, and continue. 3360 shift 3361elif test "X[$]1" = X--fallback-echo; then 3362 # Avoid inline document here, it may be left over 3363 : 3364elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 3365 # Yippee, $ECHO works! 3366 : 3367else 3368 # Restart under the correct shell. 3369 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 3370fi 3371 3372if test "X[$]1" = X--fallback-echo; then 3373 # used as fallback echo 3374 shift 3375 cat <<_LT_EOF 3376[$]* 3377_LT_EOF 3378 exit 0 3379fi 3380 3381# The HP-UX ksh and POSIX shell print the target directory to stdout 3382# if CDPATH is set. 3383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3384 3385if test -z "$lt_ECHO"; then 3386 if test "X${echo_test_string+set}" != Xset; then 3387 # find a string as large as possible, as long as the shell can cope with it 3388 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 3389 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 3390 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 3391 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 3392 then 3393 break 3394 fi 3395 done 3396 fi 3397 3398 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 3399 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 3400 test "X$echo_testing_string" = "X$echo_test_string"; then 3401 : 3402 else 3403 # The Solaris, AIX, and Digital Unix default echo programs unquote 3404 # backslashes. This makes it impossible to quote backslashes using 3405 # echo "$something" | sed 's/\\/\\\\/g' 3406 # 3407 # So, first we look for a working echo in the user's PATH. 3408 3409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3410 for dir in $PATH /usr/ucb; do 3411 IFS="$lt_save_ifs" 3412 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 3413 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 3414 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 3415 test "X$echo_testing_string" = "X$echo_test_string"; then 3416 ECHO="$dir/echo" 3417 break 3418 fi 3419 done 3420 IFS="$lt_save_ifs" 3421 3422 if test "X$ECHO" = Xecho; then 3423 # We didn't find a better echo, so look for alternatives. 3424 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 3425 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 3426 test "X$echo_testing_string" = "X$echo_test_string"; then 3427 # This shell has a builtin print -r that does the trick. 3428 ECHO='print -r' 3429 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 3430 test "X$CONFIG_SHELL" != X/bin/ksh; then 3431 # If we have ksh, try running configure again with it. 3432 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 3433 export ORIGINAL_CONFIG_SHELL 3434 CONFIG_SHELL=/bin/ksh 3435 export CONFIG_SHELL 3436 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 3437 else 3438 # Try using printf. 3439 ECHO='printf %s\n' 3440 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 3441 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 3442 test "X$echo_testing_string" = "X$echo_test_string"; then 3443 # Cool, printf works 3444 : 3445 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 3446 test "X$echo_testing_string" = 'X\t' && 3447 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 3448 test "X$echo_testing_string" = "X$echo_test_string"; then 3449 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 3450 export CONFIG_SHELL 3451 SHELL="$CONFIG_SHELL" 3452 export SHELL 3453 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 3454 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 3455 test "X$echo_testing_string" = 'X\t' && 3456 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 3457 test "X$echo_testing_string" = "X$echo_test_string"; then 3458 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 3459 else 3460 # maybe with a smaller string... 3461 prev=: 3462 3463 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 3464 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 3465 then 3466 break 3467 fi 3468 prev="$cmd" 3469 done 3470 3471 if test "$prev" != 'sed 50q "[$]0"'; then 3472 echo_test_string=`eval $prev` 3473 export echo_test_string 3474 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 3475 else 3476 # Oops. We lost completely, so just stick with echo. 3477 ECHO=echo 3478 fi 3479 fi 3480 fi 3481 fi 3482 fi 3483fi 3484 3485# Copy echo and quote the copy suitably for passing to libtool from 3486# the Makefile, instead of quoting the original, which is used later. 3487lt_ECHO=$ECHO 3488if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 3489 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 3490fi 3491 3492AC_SUBST(lt_ECHO) 3493]) 3494_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 3495_LT_DECL([], [ECHO], [1], 3496 [An echo program that does not interpret backslashes]) 3497])# _LT_PROG_ECHO_BACKSLASH 3498 3499 3500# _LT_ENABLE_LOCK 3501# --------------- 3502m4_defun([_LT_ENABLE_LOCK], 3503[AC_ARG_ENABLE([libtool-lock], 3504 [AS_HELP_STRING([--disable-libtool-lock], 3505 [avoid locking (might break parallel builds)])]) 3506test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3507 3508# Some flags need to be propagated to the compiler or linker for good 3509# libtool support. 3510case $host in 3511ia64-*-hpux*) 3512 # Find out which ABI we are using. 3513 echo 'int i;' > conftest.$ac_ext 3514 if AC_TRY_EVAL(ac_compile); then 3515 case `/usr/bin/file conftest.$ac_objext` in 3516 *ELF-32*) 3517 HPUX_IA64_MODE="32" 3518 ;; 3519 *ELF-64*) 3520 HPUX_IA64_MODE="64" 3521 ;; 3522 esac 3523 fi 3524 rm -rf conftest* 3525 ;; 3526*-*-irix6*) 3527 # Find out which ABI we are using. 3528 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 3529 if AC_TRY_EVAL(ac_compile); then 3530 if test "$lt_cv_prog_gnu_ld" = yes; then 3531 case `/usr/bin/file conftest.$ac_objext` in 3532 *32-bit*) 3533 LD="${LD-ld} -melf32bsmip" 3534 ;; 3535 *N32*) 3536 LD="${LD-ld} -melf32bmipn32" 3537 ;; 3538 *64-bit*) 3539 LD="${LD-ld} -melf64bmip" 3540 ;; 3541 esac 3542 else 3543 case `/usr/bin/file conftest.$ac_objext` in 3544 *32-bit*) 3545 LD="${LD-ld} -32" 3546 ;; 3547 *N32*) 3548 LD="${LD-ld} -n32" 3549 ;; 3550 *64-bit*) 3551 LD="${LD-ld} -64" 3552 ;; 3553 esac 3554 fi 3555 fi 3556 rm -rf conftest* 3557 ;; 3558 3559x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 3560s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 3561 # Find out which ABI we are using. 3562 echo 'int i;' > conftest.$ac_ext 3563 if AC_TRY_EVAL(ac_compile); then 3564 case `/usr/bin/file conftest.o` in 3565 *32-bit*) 3566 case $host in 3567 x86_64-*kfreebsd*-gnu) 3568 LD="${LD-ld} -m elf_i386_fbsd" 3569 ;; 3570 x86_64-*linux*) 3571 LD="${LD-ld} -m elf_i386" 3572 ;; 3573 ppc64-*linux*|powerpc64-*linux*) 3574 LD="${LD-ld} -m elf32ppclinux" 3575 ;; 3576 s390x-*linux*) 3577 LD="${LD-ld} -m elf_s390" 3578 ;; 3579 sparc64-*linux*) 3580 LD="${LD-ld} -m elf32_sparc" 3581 ;; 3582 esac 3583 ;; 3584 *64-bit*) 3585 case $host in 3586 x86_64-*kfreebsd*-gnu) 3587 LD="${LD-ld} -m elf_x86_64_fbsd" 3588 ;; 3589 x86_64-*linux*) 3590 LD="${LD-ld} -m elf_x86_64" 3591 ;; 3592 ppc*-*linux*|powerpc*-*linux*) 3593 LD="${LD-ld} -m elf64ppc" 3594 ;; 3595 s390*-*linux*|s390*-*tpf*) 3596 LD="${LD-ld} -m elf64_s390" 3597 ;; 3598 sparc*-*linux*) 3599 LD="${LD-ld} -m elf64_sparc" 3600 ;; 3601 esac 3602 ;; 3603 esac 3604 fi 3605 rm -rf conftest* 3606 ;; 3607 3608*-*-sco3.2v5*) 3609 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3610 SAVE_CFLAGS="$CFLAGS" 3611 CFLAGS="$CFLAGS -belf" 3612 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 3613 [AC_LANG_PUSH(C) 3614 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 3615 AC_LANG_POP]) 3616 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3617 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3618 CFLAGS="$SAVE_CFLAGS" 3619 fi 3620 ;; 3621sparc*-*solaris*) 3622 # Find out which ABI we are using. 3623 echo 'int i;' > conftest.$ac_ext 3624 if AC_TRY_EVAL(ac_compile); then 3625 case `/usr/bin/file conftest.o` in 3626 *64-bit*) 3627 case $lt_cv_prog_gnu_ld in 3628 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3629 *) 3630 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 3631 LD="${LD-ld} -64" 3632 fi 3633 ;; 3634 esac 3635 ;; 3636 esac 3637 fi 3638 rm -rf conftest* 3639 ;; 3640esac 3641 3642need_locks="$enable_libtool_lock" 3643])# _LT_ENABLE_LOCK 3644 3645 3646# _LT_CMD_OLD_ARCHIVE 3647# ------------------- 3648m4_defun([_LT_CMD_OLD_ARCHIVE], 3649[AC_CHECK_TOOL(AR, ar, false) 3650test -z "$AR" && AR=ar 3651test -z "$AR_FLAGS" && AR_FLAGS=cru 3652_LT_DECL([], [AR], [1], [The archiver]) 3653_LT_DECL([], [AR_FLAGS], [1]) 3654 3655AC_CHECK_TOOL(STRIP, strip, :) 3656test -z "$STRIP" && STRIP=: 3657_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 3658 3659AC_CHECK_TOOL(RANLIB, ranlib, :) 3660test -z "$RANLIB" && RANLIB=: 3661_LT_DECL([], [RANLIB], [1], 3662 [Commands used to install an old-style archive]) 3663 3664# Determine commands to create old-style static archives. 3665old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 3666old_postinstall_cmds='chmod 644 $oldlib' 3667old_postuninstall_cmds= 3668 3669if test -n "$RANLIB"; then 3670 case $host_os in 3671 openbsd*) 3672 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 3673 ;; 3674 *) 3675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 3676 ;; 3677 esac 3678 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 3679fi 3680_LT_DECL([], [old_postinstall_cmds], [2]) 3681_LT_DECL([], [old_postuninstall_cmds], [2]) 3682_LT_TAGDECL([], [old_archive_cmds], [2], 3683 [Commands used to build an old-style archive]) 3684])# _LT_CMD_OLD_ARCHIVE 3685 3686 3687# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3688# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3689# ---------------------------------------------------------------- 3690# Check whether the given compiler option works 3691AC_DEFUN([_LT_COMPILER_OPTION], 3692[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3693m4_require([_LT_DECL_SED])dnl 3694AC_CACHE_CHECK([$1], [$2], 3695 [$2=no 3696 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 3697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 3698 lt_compiler_flag="$3" 3699 # Insert the option either (1) after the last *FLAGS variable, or 3700 # (2) before a word containing "conftest.", or (3) at the end. 3701 # Note that $ac_compile itself does not contain backslashes and begins 3702 # with a dollar sign (not a hyphen), so the echo should work correctly. 3703 # The option is referenced via a variable to avoid confusing sed. 3704 lt_compile=`echo "$ac_compile" | $SED \ 3705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 3706 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 3707 -e 's:$: $lt_compiler_flag:'` 3708 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 3709 (eval "$lt_compile" 2>conftest.err) 3710 ac_status=$? 3711 cat conftest.err >&AS_MESSAGE_LOG_FD 3712 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 3713 if (exit $ac_status) && test -s "$ac_outfile"; then 3714 # The compiler can only warn and ignore the option if not recognized 3715 # So say no if there are warnings other than the usual output. 3716 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 3717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 3719 $2=yes 3720 fi 3721 fi 3722 $RM conftest* 3723]) 3724 3725if test x"[$]$2" = xyes; then 3726 m4_if([$5], , :, [$5]) 3727else 3728 m4_if([$6], , :, [$6]) 3729fi 3730])# _LT_COMPILER_OPTION 3731 3732# Old name: 3733AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 3734dnl aclocal-1.4 backwards compatibility: 3735dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 3736 3737 3738# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3739# [ACTION-SUCCESS], [ACTION-FAILURE]) 3740# ---------------------------------------------------- 3741# Check whether the given linker option works 3742AC_DEFUN([_LT_LINKER_OPTION], 3743[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 3744m4_require([_LT_DECL_SED])dnl 3745AC_CACHE_CHECK([$1], [$2], 3746 [$2=no 3747 save_LDFLAGS="$LDFLAGS" 3748 LDFLAGS="$LDFLAGS $3" 3749 echo "$lt_simple_link_test_code" > conftest.$ac_ext 3750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 3751 # The linker can only warn and ignore the option if not recognized 3752 # So say no if there are warnings 3753 if test -s conftest.err; then 3754 # Append any errors to the config.log. 3755 cat conftest.err 1>&AS_MESSAGE_LOG_FD 3756 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 3757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 3758 if diff conftest.exp conftest.er2 >/dev/null; then 3759 $2=yes 3760 fi 3761 else 3762 $2=yes 3763 fi 3764 fi 3765 $RM -r conftest* 3766 LDFLAGS="$save_LDFLAGS" 3767]) 3768 3769if test x"[$]$2" = xyes; then 3770 m4_if([$4], , :, [$4]) 3771else 3772 m4_if([$5], , :, [$5]) 3773fi 3774])# _LT_LINKER_OPTION 3775 3776# Old name: 3777AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 3778dnl aclocal-1.4 backwards compatibility: 3779dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 3780 3781 3782# LT_CMD_MAX_LEN 3783#--------------- 3784AC_DEFUN([LT_CMD_MAX_LEN], 3785[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3786# find the maximum length of command line arguments 3787AC_MSG_CHECKING([the maximum length of command line arguments]) 3788AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 3789 i=0 3790 teststring="ABCD" 3791 3792 case $build_os in 3793 msdosdjgpp*) 3794 # On DJGPP, this test can blow up pretty badly due to problems in libc 3795 # (any single argument exceeding 2000 bytes causes a buffer overrun 3796 # during glob expansion). Even if it were fixed, the result of this 3797 # check would be larger than it should be. 3798 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3799 ;; 3800 3801 gnu*) 3802 # Under GNU Hurd, this test is not required because there is 3803 # no limit to the length of command line arguments. 3804 # Libtool will interpret -1 as no limit whatsoever 3805 lt_cv_sys_max_cmd_len=-1; 3806 ;; 3807 3808 cygwin* | mingw* | cegcc*) 3809 # On Win9x/ME, this test blows up -- it succeeds, but takes 3810 # about 5 minutes as the teststring grows exponentially. 3811 # Worse, since 9x/ME are not pre-emptively multitasking, 3812 # you end up with a "frozen" computer, even though with patience 3813 # the test eventually succeeds (with a max line length of 256k). 3814 # Instead, let's just punt: use the minimum linelength reported by 3815 # all of the supported platforms: 8192 (on NT/2K/XP). 3816 lt_cv_sys_max_cmd_len=8192; 3817 ;; 3818 3819 amigaos*) 3820 # On AmigaOS with pdksh, this test takes hours, literally. 3821 # So we just punt and use a minimum line length of 8192. 3822 lt_cv_sys_max_cmd_len=8192; 3823 ;; 3824 3825 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 3826 # This has been around since 386BSD, at least. Likely further. 3827 if test -x /sbin/sysctl; then 3828 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 3829 elif test -x /usr/sbin/sysctl; then 3830 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 3831 else 3832 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3833 fi 3834 # And add a safety zone 3835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3837 ;; 3838 3839 interix*) 3840 # We know the value 262144 and hardcode it with a safety zone (like BSD) 3841 lt_cv_sys_max_cmd_len=196608 3842 ;; 3843 3844 osf*) 3845 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 3846 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 3847 # nice to cause kernel panics so lets avoid the loop below. 3848 # First set a reasonable default. 3849 lt_cv_sys_max_cmd_len=16384 3850 # 3851 if test -x /sbin/sysconfig; then 3852 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 3853 *1*) lt_cv_sys_max_cmd_len=-1 ;; 3854 esac 3855 fi 3856 ;; 3857 sco3.2v5*) 3858 lt_cv_sys_max_cmd_len=102400 3859 ;; 3860 sysv5* | sco5v6* | sysv4.2uw2*) 3861 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 3862 if test -n "$kargmax"; then 3863 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 3864 else 3865 lt_cv_sys_max_cmd_len=32768 3866 fi 3867 ;; 3868 *) 3869 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 3870 if test -n "$lt_cv_sys_max_cmd_len"; then 3871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 3872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 3873 else 3874 # Make teststring a little bigger before we do anything with it. 3875 # a 1K string should be a reasonable start. 3876 for i in 1 2 3 4 5 6 7 8 ; do 3877 teststring=$teststring$teststring 3878 done 3879 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 3880 # If test is not a shell built-in, we'll probably end up computing a 3881 # maximum length that is only half of the actual maximum length, but 3882 # we can't tell. 3883 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 3884 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 3885 test $i != 17 # 1/2 MB should be enough 3886 do 3887 i=`expr $i + 1` 3888 teststring=$teststring$teststring 3889 done 3890 # Only check the string length outside the loop. 3891 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 3892 teststring= 3893 # Add a significant safety factor because C++ compilers can tack on 3894 # massive amounts of additional arguments before passing them to the 3895 # linker. It appears as though 1/2 is a usable value. 3896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 3897 fi 3898 ;; 3899 esac 3900]) 3901if test -n $lt_cv_sys_max_cmd_len ; then 3902 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 3903else 3904 AC_MSG_RESULT(none) 3905fi 3906max_cmd_len=$lt_cv_sys_max_cmd_len 3907_LT_DECL([], [max_cmd_len], [0], 3908 [What is the maximum length of a command?]) 3909])# LT_CMD_MAX_LEN 3910 3911# Old name: 3912AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 3913dnl aclocal-1.4 backwards compatibility: 3914dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 3915 3916 3917# _LT_HEADER_DLFCN 3918# ---------------- 3919m4_defun([_LT_HEADER_DLFCN], 3920[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 3921])# _LT_HEADER_DLFCN 3922 3923 3924# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3925# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3926# ---------------------------------------------------------------- 3927m4_defun([_LT_TRY_DLOPEN_SELF], 3928[m4_require([_LT_HEADER_DLFCN])dnl 3929if test "$cross_compiling" = yes; then : 3930 [$4] 3931else 3932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 3933 lt_status=$lt_dlunknown 3934 cat > conftest.$ac_ext <<_LT_EOF 3935[#line __oline__ "configure" 3936#include "confdefs.h" 3937 3938#if HAVE_DLFCN_H 3939#include <dlfcn.h> 3940#endif 3941 3942#include <stdio.h> 3943 3944#ifdef RTLD_GLOBAL 3945# define LT_DLGLOBAL RTLD_GLOBAL 3946#else 3947# ifdef DL_GLOBAL 3948# define LT_DLGLOBAL DL_GLOBAL 3949# else 3950# define LT_DLGLOBAL 0 3951# endif 3952#endif 3953 3954/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3955 find out it does not work in some platform. */ 3956#ifndef LT_DLLAZY_OR_NOW 3957# ifdef RTLD_LAZY 3958# define LT_DLLAZY_OR_NOW RTLD_LAZY 3959# else 3960# ifdef DL_LAZY 3961# define LT_DLLAZY_OR_NOW DL_LAZY 3962# else 3963# ifdef RTLD_NOW 3964# define LT_DLLAZY_OR_NOW RTLD_NOW 3965# else 3966# ifdef DL_NOW 3967# define LT_DLLAZY_OR_NOW DL_NOW 3968# else 3969# define LT_DLLAZY_OR_NOW 0 3970# endif 3971# endif 3972# endif 3973# endif 3974#endif 3975 3976void fnord() { int i=42;} 3977int main () 3978{ 3979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3980 int status = $lt_dlunknown; 3981 3982 if (self) 3983 { 3984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 3985 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 3986 /* dlclose (self); */ 3987 } 3988 else 3989 puts (dlerror ()); 3990 3991 return status; 3992}] 3993_LT_EOF 3994 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 3995 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 3996 lt_status=$? 3997 case x$lt_status in 3998 x$lt_dlno_uscore) $1 ;; 3999 x$lt_dlneed_uscore) $2 ;; 4000 x$lt_dlunknown|x*) $3 ;; 4001 esac 4002 else : 4003 # compilation failed 4004 $3 4005 fi 4006fi 4007rm -fr conftest* 4008])# _LT_TRY_DLOPEN_SELF 4009 4010 4011# LT_SYS_DLOPEN_SELF 4012# ------------------ 4013AC_DEFUN([LT_SYS_DLOPEN_SELF], 4014[m4_require([_LT_HEADER_DLFCN])dnl 4015if test "x$enable_dlopen" != xyes; then 4016 enable_dlopen=unknown 4017 enable_dlopen_self=unknown 4018 enable_dlopen_self_static=unknown 4019else 4020 lt_cv_dlopen=no 4021 lt_cv_dlopen_libs= 4022 4023 case $host_os in 4024 beos*) 4025 lt_cv_dlopen="load_add_on" 4026 lt_cv_dlopen_libs= 4027 lt_cv_dlopen_self=yes 4028 ;; 4029 4030 mingw* | pw32* | cegcc*) 4031 lt_cv_dlopen="LoadLibrary" 4032 lt_cv_dlopen_libs= 4033 ;; 4034 4035 cygwin*) 4036 lt_cv_dlopen="dlopen" 4037 lt_cv_dlopen_libs= 4038 ;; 4039 4040 darwin*) 4041 # if libdl is installed we need to link against it 4042 AC_CHECK_LIB([dl], [dlopen], 4043 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 4044 lt_cv_dlopen="dyld" 4045 lt_cv_dlopen_libs= 4046 lt_cv_dlopen_self=yes 4047 ]) 4048 ;; 4049 4050 *) 4051 AC_CHECK_FUNC([shl_load], 4052 [lt_cv_dlopen="shl_load"], 4053 [AC_CHECK_LIB([dld], [shl_load], 4054 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 4055 [AC_CHECK_FUNC([dlopen], 4056 [lt_cv_dlopen="dlopen"], 4057 [AC_CHECK_LIB([dl], [dlopen], 4058 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 4059 [AC_CHECK_LIB([svld], [dlopen], 4060 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 4061 [AC_CHECK_LIB([dld], [dld_link], 4062 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 4063 ]) 4064 ]) 4065 ]) 4066 ]) 4067 ]) 4068 ;; 4069 esac 4070 4071 if test "x$lt_cv_dlopen" != xno; then 4072 enable_dlopen=yes 4073 else 4074 enable_dlopen=no 4075 fi 4076 4077 case $lt_cv_dlopen in 4078 dlopen) 4079 save_CPPFLAGS="$CPPFLAGS" 4080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 4081 4082 save_LDFLAGS="$LDFLAGS" 4083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 4084 4085 save_LIBS="$LIBS" 4086 LIBS="$lt_cv_dlopen_libs $LIBS" 4087 4088 AC_CACHE_CHECK([whether a program can dlopen itself], 4089 lt_cv_dlopen_self, [dnl 4090 _LT_TRY_DLOPEN_SELF( 4091 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 4092 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 4093 ]) 4094 4095 if test "x$lt_cv_dlopen_self" = xyes; then 4096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 4097 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 4098 lt_cv_dlopen_self_static, [dnl 4099 _LT_TRY_DLOPEN_SELF( 4100 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 4101 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 4102 ]) 4103 fi 4104 4105 CPPFLAGS="$save_CPPFLAGS" 4106 LDFLAGS="$save_LDFLAGS" 4107 LIBS="$save_LIBS" 4108 ;; 4109 esac 4110 4111 case $lt_cv_dlopen_self in 4112 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 4113 *) enable_dlopen_self=unknown ;; 4114 esac 4115 4116 case $lt_cv_dlopen_self_static in 4117 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 4118 *) enable_dlopen_self_static=unknown ;; 4119 esac 4120fi 4121_LT_DECL([dlopen_support], [enable_dlopen], [0], 4122 [Whether dlopen is supported]) 4123_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 4124 [Whether dlopen of programs is supported]) 4125_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 4126 [Whether dlopen of statically linked programs is supported]) 4127])# LT_SYS_DLOPEN_SELF 4128 4129# Old name: 4130AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 4131dnl aclocal-1.4 backwards compatibility: 4132dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 4133 4134 4135# _LT_COMPILER_C_O([TAGNAME]) 4136# --------------------------- 4137# Check to see if options -c and -o are simultaneously supported by compiler. 4138# This macro does not hard code the compiler like AC_PROG_CC_C_O. 4139m4_defun([_LT_COMPILER_C_O], 4140[m4_require([_LT_DECL_SED])dnl 4141m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4142m4_require([_LT_TAG_COMPILER])dnl 4143AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 4144 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 4145 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 4146 $RM -r conftest 2>/dev/null 4147 mkdir conftest 4148 cd conftest 4149 mkdir out 4150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 4151 4152 lt_compiler_flag="-o out/conftest2.$ac_objext" 4153 # Insert the option either (1) after the last *FLAGS variable, or 4154 # (2) before a word containing "conftest.", or (3) at the end. 4155 # Note that $ac_compile itself does not contain backslashes and begins 4156 # with a dollar sign (not a hyphen), so the echo should work correctly. 4157 lt_compile=`echo "$ac_compile" | $SED \ 4158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 4159 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 4160 -e 's:$: $lt_compiler_flag:'` 4161 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 4162 (eval "$lt_compile" 2>out/conftest.err) 4163 ac_status=$? 4164 cat out/conftest.err >&AS_MESSAGE_LOG_FD 4165 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 4166 if (exit $ac_status) && test -s out/conftest2.$ac_objext 4167 then 4168 # The compiler can only warn and ignore the option if not recognized 4169 # So say no if there are warnings 4170 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 4171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 4172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 4173 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4174 fi 4175 fi 4176 chmod u+w . 2>&AS_MESSAGE_LOG_FD 4177 $RM conftest* 4178 # SGI C++ compiler will create directory out/ii_files/ for 4179 # template instantiation 4180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 4181 $RM out/* && rmdir out 4182 cd .. 4183 $RM -r conftest 4184 $RM conftest* 4185]) 4186_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 4187 [Does compiler simultaneously support -c and -o options?]) 4188])# _LT_COMPILER_C_O 4189 4190 4191# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 4192# ---------------------------------- 4193# Check to see if we can do hard links to lock some files if needed 4194m4_defun([_LT_COMPILER_FILE_LOCKS], 4195[m4_require([_LT_ENABLE_LOCK])dnl 4196m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4197_LT_COMPILER_C_O([$1]) 4198 4199hard_links="nottested" 4200if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 4201 # do not overwrite the value of need_locks provided by the user 4202 AC_MSG_CHECKING([if we can lock with hard links]) 4203 hard_links=yes 4204 $RM conftest* 4205 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4206 touch conftest.a 4207 ln conftest.a conftest.b 2>&5 || hard_links=no 4208 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4209 AC_MSG_RESULT([$hard_links]) 4210 if test "$hard_links" = no; then 4211 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 4212 need_locks=warn 4213 fi 4214else 4215 need_locks=no 4216fi 4217_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 4218])# _LT_COMPILER_FILE_LOCKS 4219 4220 4221# _LT_CHECK_OBJDIR 4222# ---------------- 4223m4_defun([_LT_CHECK_OBJDIR], 4224[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 4225[rm -f .libs 2>/dev/null 4226mkdir .libs 2>/dev/null 4227if test -d .libs; then 4228 lt_cv_objdir=.libs 4229else 4230 # MS-DOS does not allow filenames that begin with a dot. 4231 lt_cv_objdir=_libs 4232fi 4233rmdir .libs 2>/dev/null]) 4234objdir=$lt_cv_objdir 4235_LT_DECL([], [objdir], [0], 4236 [The name of the directory that contains temporary libtool files])dnl 4237m4_pattern_allow([LT_OBJDIR])dnl 4238AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 4239 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 4240])# _LT_CHECK_OBJDIR 4241 4242 4243# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 4244# -------------------------------------- 4245# Check hardcoding attributes. 4246m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 4247[AC_MSG_CHECKING([how to hardcode library paths into programs]) 4248_LT_TAGVAR(hardcode_action, $1)= 4249if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 4250 test -n "$_LT_TAGVAR(runpath_var, $1)" || 4251 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 4252 4253 # We can hardcode non-existent directories. 4254 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 4255 # If the only mechanism to avoid hardcoding is shlibpath_var, we 4256 # have to relink, otherwise we might link with an installed library 4257 # when we should be linking with a yet-to-be-installed one 4258 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 4259 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 4260 # Linking always hardcodes the temporary library directory. 4261 _LT_TAGVAR(hardcode_action, $1)=relink 4262 else 4263 # We can link without hardcoding, and we can hardcode nonexisting dirs. 4264 _LT_TAGVAR(hardcode_action, $1)=immediate 4265 fi 4266else 4267 # We cannot hardcode anything, or else we can only hardcode existing 4268 # directories. 4269 _LT_TAGVAR(hardcode_action, $1)=unsupported 4270fi 4271AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 4272 4273if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 4274 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 4275 # Fast installation is not supported 4276 enable_fast_install=no 4277elif test "$shlibpath_overrides_runpath" = yes || 4278 test "$enable_shared" = no; then 4279 # Fast installation is not necessary 4280 enable_fast_install=needless 4281fi 4282_LT_TAGDECL([], [hardcode_action], [0], 4283 [How to hardcode a shared library path into an executable]) 4284])# _LT_LINKER_HARDCODE_LIBPATH 4285 4286 4287# _LT_CMD_STRIPLIB 4288# ---------------- 4289m4_defun([_LT_CMD_STRIPLIB], 4290[m4_require([_LT_DECL_EGREP]) 4291striplib= 4292old_striplib= 4293AC_MSG_CHECKING([whether stripping libraries is possible]) 4294if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 4295 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 4296 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 4297 AC_MSG_RESULT([yes]) 4298else 4299# FIXME - insert some real tests, host_os isn't really good enough 4300 case $host_os in 4301 darwin*) 4302 if test -n "$STRIP" ; then 4303 striplib="$STRIP -x" 4304 old_striplib="$STRIP -S" 4305 AC_MSG_RESULT([yes]) 4306 else 4307 AC_MSG_RESULT([no]) 4308 fi 4309 ;; 4310 *) 4311 AC_MSG_RESULT([no]) 4312 ;; 4313 esac 4314fi 4315_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 4316_LT_DECL([], [striplib], [1]) 4317])# _LT_CMD_STRIPLIB 4318 4319 4320# _LT_SYS_DYNAMIC_LINKER([TAG]) 4321# ----------------------------- 4322# PORTME Fill in your ld.so characteristics 4323m4_defun([_LT_SYS_DYNAMIC_LINKER], 4324[AC_REQUIRE([AC_CANONICAL_HOST])dnl 4325m4_require([_LT_DECL_EGREP])dnl 4326m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4327m4_require([_LT_DECL_OBJDUMP])dnl 4328m4_require([_LT_DECL_SED])dnl 4329AC_MSG_CHECKING([dynamic linker characteristics]) 4330m4_if([$1], 4331 [], [ 4332if test "$GCC" = yes; then 4333 case $host_os in 4334 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 4335 *) lt_awk_arg="/^libraries:/" ;; 4336 esac 4337 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 4338 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 4339 # if the path contains ";" then we assume it to be the separator 4340 # otherwise default to the standard path separator (i.e. ":") - it is 4341 # assumed that no part of a normal pathname contains ";" but that should 4342 # okay in the real world where ";" in dirpaths is itself problematic. 4343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 4344 else 4345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4346 fi 4347 # Ok, now we have the path, separated by spaces, we can step through it 4348 # and add multilib dir if necessary. 4349 lt_tmp_lt_search_path_spec= 4350 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 4351 for lt_sys_path in $lt_search_path_spec; do 4352 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 4353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 4354 else 4355 test -d "$lt_sys_path" && \ 4356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 4357 fi 4358 done 4359 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 4360BEGIN {RS=" "; FS="/|\n";} { 4361 lt_foo=""; 4362 lt_count=0; 4363 for (lt_i = NF; lt_i > 0; lt_i--) { 4364 if ($lt_i != "" && $lt_i != ".") { 4365 if ($lt_i == "..") { 4366 lt_count++; 4367 } else { 4368 if (lt_count == 0) { 4369 lt_foo="/" $lt_i lt_foo; 4370 } else { 4371 lt_count--; 4372 } 4373 } 4374 } 4375 } 4376 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 4377 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 4378}'` 4379 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 4380else 4381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 4382fi]) 4383library_names_spec= 4384libname_spec='lib$name' 4385soname_spec= 4386shrext_cmds=".so" 4387postinstall_cmds= 4388postuninstall_cmds= 4389finish_cmds= 4390finish_eval= 4391shlibpath_var= 4392shlibpath_overrides_runpath=unknown 4393version_type=none 4394dynamic_linker="$host_os ld.so" 4395sys_lib_dlsearch_path_spec="/lib /usr/lib" 4396need_lib_prefix=unknown 4397hardcode_into_libs=no 4398 4399# when you set need_version to no, make sure it does not cause -set_version 4400# flags to be left without arguments 4401need_version=unknown 4402 4403case $host_os in 4404aix3*) 4405 version_type=linux 4406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 4407 shlibpath_var=LIBPATH 4408 4409 # AIX 3 has no versioning support, so we append a major version to the name. 4410 soname_spec='${libname}${release}${shared_ext}$major' 4411 ;; 4412 4413aix[[4-9]]*) 4414 version_type=linux 4415 need_lib_prefix=no 4416 need_version=no 4417 hardcode_into_libs=yes 4418 if test "$host_cpu" = ia64; then 4419 # AIX 5 supports IA64 4420 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 4421 shlibpath_var=LD_LIBRARY_PATH 4422 else 4423 # With GCC up to 2.95.x, collect2 would create an import file 4424 # for dependence libraries. The import file would start with 4425 # the line `#! .'. This would cause the generated library to 4426 # depend on `.', always an invalid library. This was fixed in 4427 # development snapshots of GCC prior to 3.0. 4428 case $host_os in 4429 aix4 | aix4.[[01]] | aix4.[[01]].*) 4430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 4431 echo ' yes ' 4432 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 4433 : 4434 else 4435 can_build_shared=no 4436 fi 4437 ;; 4438 esac 4439 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 4440 # soname into executable. Probably we can add versioning support to 4441 # collect2, so additional links can be useful in future. 4442 if test "$aix_use_runtimelinking" = yes; then 4443 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 4444 # instead of lib<name>.a to let people know that these are not 4445 # typical AIX shared libraries. 4446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4447 else 4448 # We preserve .a as extension for shared libraries through AIX4.2 4449 # and later when we are not doing run time linking. 4450 library_names_spec='${libname}${release}.a $libname.a' 4451 soname_spec='${libname}${release}${shared_ext}$major' 4452 fi 4453 shlibpath_var=LIBPATH 4454 fi 4455 ;; 4456 4457amigaos*) 4458 case $host_cpu in 4459 powerpc) 4460 # Since July 2007 AmigaOS4 officially supports .so libraries. 4461 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 4462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4463 ;; 4464 m68k) 4465 library_names_spec='$libname.ixlibrary $libname.a' 4466 # Create ${libname}_ixlibrary.a entries in /sys/libs. 4467 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 4468 ;; 4469 esac 4470 ;; 4471 4472beos*) 4473 library_names_spec='${libname}${shared_ext}' 4474 dynamic_linker="$host_os ld.so" 4475 shlibpath_var=LIBRARY_PATH 4476 ;; 4477 4478bsdi[[45]]*) 4479 version_type=linux 4480 need_version=no 4481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4482 soname_spec='${libname}${release}${shared_ext}$major' 4483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 4484 shlibpath_var=LD_LIBRARY_PATH 4485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 4486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 4487 # the default ld.so.conf also contains /usr/contrib/lib and 4488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 4489 # libtool to hard-code these into programs 4490 ;; 4491 4492cygwin* | mingw* | pw32* | cegcc*) 4493 version_type=windows 4494 shrext_cmds=".dll" 4495 need_version=no 4496 need_lib_prefix=no 4497 4498 case $GCC,$host_os in 4499 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 4500 library_names_spec='$libname.dll.a' 4501 # DLL is installed to $(libdir)/../bin by postinstall_cmds 4502 postinstall_cmds='base_file=`basename \${file}`~ 4503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 4504 dldir=$destdir/`dirname \$dlpath`~ 4505 test -d \$dldir || mkdir -p \$dldir~ 4506 $install_prog $dir/$dlname \$dldir/$dlname~ 4507 chmod a+x \$dldir/$dlname~ 4508 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 4509 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 4510 fi' 4511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 4512 dlpath=$dir/\$dldll~ 4513 $RM \$dlpath' 4514 shlibpath_overrides_runpath=yes 4515 4516 case $host_os in 4517 cygwin*) 4518 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 4519 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4520 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 4521 ;; 4522 mingw* | cegcc*) 4523 # MinGW DLLs use traditional 'lib' prefix 4524 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4525 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 4526 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 4527 # It is most probably a Windows format PATH printed by 4528 # mingw gcc, but we are running on Cygwin. Gcc prints its search 4529 # path with ; separators, and with drive letters. We can handle the 4530 # drive letters (cygwin fileutils understands them), so leave them, 4531 # especially as we might pass files found there to a mingw objdump, 4532 # which wouldn't understand a cygwinified path. Ahh. 4533 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 4534 else 4535 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 4536 fi 4537 ;; 4538 pw32*) 4539 # pw32 DLLs use 'pw' prefix rather than 'lib' 4540 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 4541 ;; 4542 esac 4543 ;; 4544 4545 *) 4546 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 4547 ;; 4548 esac 4549 dynamic_linker='Win32 ld.exe' 4550 # FIXME: first we should search . and the directory the executable is in 4551 shlibpath_var=PATH 4552 ;; 4553 4554darwin* | rhapsody*) 4555 dynamic_linker="$host_os dyld" 4556 version_type=darwin 4557 need_lib_prefix=no 4558 need_version=no 4559 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 4560 soname_spec='${libname}${release}${major}$shared_ext' 4561 shlibpath_overrides_runpath=yes 4562 shlibpath_var=DYLD_LIBRARY_PATH 4563 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 4564m4_if([$1], [],[ 4565 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 4566 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 4567 ;; 4568 4569dgux*) 4570 version_type=linux 4571 need_lib_prefix=no 4572 need_version=no 4573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 4574 soname_spec='${libname}${release}${shared_ext}$major' 4575 shlibpath_var=LD_LIBRARY_PATH 4576 ;; 4577 4578freebsd1*) 4579 dynamic_linker=no 4580 ;; 4581 4582freebsd* | dragonfly*) 4583 # DragonFly does not have aout. When/if they implement a new 4584 # versioning mechanism, adjust this. 4585 if test -x /usr/bin/objformat; then 4586 objformat=`/usr/bin/objformat` 4587 else 4588 case $host_os in 4589 freebsd[[123]]*) objformat=aout ;; 4590 *) objformat=elf ;; 4591 esac 4592 fi 4593 version_type=freebsd-$objformat 4594 case $version_type in 4595 freebsd-elf*) 4596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4597 need_version=no 4598 need_lib_prefix=no 4599 ;; 4600 freebsd-*) 4601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 4602 need_version=yes 4603 ;; 4604 esac 4605 shlibpath_var=LD_LIBRARY_PATH 4606 case $host_os in 4607 freebsd2*) 4608 shlibpath_overrides_runpath=yes 4609 ;; 4610 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 4611 shlibpath_overrides_runpath=yes 4612 hardcode_into_libs=yes 4613 ;; 4614 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 4615 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 4616 shlibpath_overrides_runpath=no 4617 hardcode_into_libs=yes 4618 ;; 4619 *) # from 4.6 on, and DragonFly 4620 shlibpath_overrides_runpath=yes 4621 hardcode_into_libs=yes 4622 ;; 4623 esac 4624 ;; 4625 4626gnu*) 4627 version_type=linux 4628 need_lib_prefix=no 4629 need_version=no 4630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 4631 soname_spec='${libname}${release}${shared_ext}$major' 4632 shlibpath_var=LD_LIBRARY_PATH 4633 hardcode_into_libs=yes 4634 ;; 4635 4636hpux9* | hpux10* | hpux11*) 4637 # Give a soname corresponding to the major version so that dld.sl refuses to 4638 # link against other versions. 4639 version_type=sunos 4640 need_lib_prefix=no 4641 need_version=no 4642 case $host_cpu in 4643 ia64*) 4644 shrext_cmds='.so' 4645 hardcode_into_libs=yes 4646 dynamic_linker="$host_os dld.so" 4647 shlibpath_var=LD_LIBRARY_PATH 4648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4650 soname_spec='${libname}${release}${shared_ext}$major' 4651 if test "X$HPUX_IA64_MODE" = X32; then 4652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 4653 else 4654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 4655 fi 4656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4657 ;; 4658 hppa*64*) 4659 shrext_cmds='.sl' 4660 hardcode_into_libs=yes 4661 dynamic_linker="$host_os dld.sl" 4662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 4663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 4664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4665 soname_spec='${libname}${release}${shared_ext}$major' 4666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 4667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 4668 ;; 4669 *) 4670 shrext_cmds='.sl' 4671 dynamic_linker="$host_os dld.sl" 4672 shlibpath_var=SHLIB_PATH 4673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 4674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4675 soname_spec='${libname}${release}${shared_ext}$major' 4676 ;; 4677 esac 4678 # HP-UX runs *really* slowly unless shared libraries are mode 555. 4679 postinstall_cmds='chmod 555 $lib' 4680 ;; 4681 4682interix[[3-9]]*) 4683 version_type=linux 4684 need_lib_prefix=no 4685 need_version=no 4686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4687 soname_spec='${libname}${release}${shared_ext}$major' 4688 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 4689 shlibpath_var=LD_LIBRARY_PATH 4690 shlibpath_overrides_runpath=no 4691 hardcode_into_libs=yes 4692 ;; 4693 4694irix5* | irix6* | nonstopux*) 4695 case $host_os in 4696 nonstopux*) version_type=nonstopux ;; 4697 *) 4698 if test "$lt_cv_prog_gnu_ld" = yes; then 4699 version_type=linux 4700 else 4701 version_type=irix 4702 fi ;; 4703 esac 4704 need_lib_prefix=no 4705 need_version=no 4706 soname_spec='${libname}${release}${shared_ext}$major' 4707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 4708 case $host_os in 4709 irix5* | nonstopux*) 4710 libsuff= shlibsuff= 4711 ;; 4712 *) 4713 case $LD in # libtool.m4 will add one of these switches to LD 4714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 4715 libsuff= shlibsuff= libmagic=32-bit;; 4716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 4717 libsuff=32 shlibsuff=N32 libmagic=N32;; 4718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 4719 libsuff=64 shlibsuff=64 libmagic=64-bit;; 4720 *) libsuff= shlibsuff= libmagic=never-match;; 4721 esac 4722 ;; 4723 esac 4724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 4725 shlibpath_overrides_runpath=no 4726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 4727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 4728 hardcode_into_libs=yes 4729 ;; 4730 4731# No shared lib support for Linux oldld, aout, or coff. 4732linux*oldld* | linux*aout* | linux*coff*) 4733 dynamic_linker=no 4734 ;; 4735 4736# This must be Linux ELF. 4737linux* | k*bsd*-gnu) 4738 version_type=linux 4739 need_lib_prefix=no 4740 need_version=no 4741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4742 soname_spec='${libname}${release}${shared_ext}$major' 4743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 4744 shlibpath_var=LD_LIBRARY_PATH 4745 shlibpath_overrides_runpath=no 4746 # Some binutils ld are patched to set DT_RUNPATH 4747 save_LDFLAGS=$LDFLAGS 4748 save_libdir=$libdir 4749 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 4750 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 4751 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 4752 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 4753 [shlibpath_overrides_runpath=yes])]) 4754 LDFLAGS=$save_LDFLAGS 4755 libdir=$save_libdir 4756 4757 # This implies no fast_install, which is unacceptable. 4758 # Some rework will be needed to allow for fast_install 4759 # before this can be enabled. 4760 hardcode_into_libs=yes 4761 4762 # Append ld.so.conf contents to the search path 4763 if test -f /etc/ld.so.conf; then 4764 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;/^$/d' | tr '\n' ' '` 4765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 4766 fi 4767 4768 # We used to test for /lib/ld.so.1 and disable shared libraries on 4769 # powerpc, because MkLinux only supported shared libraries with the 4770 # GNU dynamic linker. Since this was broken with cross compilers, 4771 # most powerpc-linux boxes support dynamic linking these days and 4772 # people can always --disable-shared, the test was removed, and we 4773 # assume the GNU/Linux dynamic linker is in use. 4774 dynamic_linker='GNU/Linux ld.so' 4775 ;; 4776 4777netbsd*) 4778 version_type=sunos 4779 need_lib_prefix=no 4780 need_version=no 4781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4784 dynamic_linker='NetBSD (a.out) ld.so' 4785 else 4786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 4787 soname_spec='${libname}${release}${shared_ext}$major' 4788 dynamic_linker='NetBSD ld.elf_so' 4789 fi 4790 shlibpath_var=LD_LIBRARY_PATH 4791 shlibpath_overrides_runpath=yes 4792 hardcode_into_libs=yes 4793 ;; 4794 4795newsos6) 4796 version_type=linux 4797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4798 shlibpath_var=LD_LIBRARY_PATH 4799 shlibpath_overrides_runpath=yes 4800 ;; 4801 4802*nto* | *qnx*) 4803 version_type=qnx 4804 need_lib_prefix=no 4805 need_version=no 4806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4807 soname_spec='${libname}${release}${shared_ext}$major' 4808 shlibpath_var=LD_LIBRARY_PATH 4809 shlibpath_overrides_runpath=no 4810 hardcode_into_libs=yes 4811 dynamic_linker='ldqnx.so' 4812 ;; 4813 4814openbsd*) 4815 version_type=sunos 4816 sys_lib_dlsearch_path_spec="/usr/lib" 4817 need_lib_prefix=no 4818 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 4819 case $host_os in 4820 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 4821 *) need_version=no ;; 4822 esac 4823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 4825 shlibpath_var=LD_LIBRARY_PATH 4826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4827 case $host_os in 4828 openbsd2.[[89]] | openbsd2.[[89]].*) 4829 shlibpath_overrides_runpath=no 4830 ;; 4831 *) 4832 shlibpath_overrides_runpath=yes 4833 ;; 4834 esac 4835 else 4836 shlibpath_overrides_runpath=yes 4837 fi 4838 ;; 4839 4840os2*) 4841 libname_spec='$name' 4842 shrext_cmds=".dll" 4843 need_lib_prefix=no 4844 library_names_spec='$libname${shared_ext} $libname.a' 4845 dynamic_linker='OS/2 ld.exe' 4846 shlibpath_var=LIBPATH 4847 ;; 4848 4849osf3* | osf4* | osf5*) 4850 version_type=osf 4851 need_lib_prefix=no 4852 need_version=no 4853 soname_spec='${libname}${release}${shared_ext}$major' 4854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4855 shlibpath_var=LD_LIBRARY_PATH 4856 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 4857 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 4858 ;; 4859 4860rdos*) 4861 dynamic_linker=no 4862 ;; 4863 4864solaris*) 4865 version_type=linux 4866 need_lib_prefix=no 4867 need_version=no 4868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4869 soname_spec='${libname}${release}${shared_ext}$major' 4870 shlibpath_var=LD_LIBRARY_PATH 4871 shlibpath_overrides_runpath=yes 4872 hardcode_into_libs=yes 4873 # ldd complains unless libraries are executable 4874 postinstall_cmds='chmod +x $lib' 4875 ;; 4876 4877sunos4*) 4878 version_type=sunos 4879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 4880 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 4881 shlibpath_var=LD_LIBRARY_PATH 4882 shlibpath_overrides_runpath=yes 4883 if test "$with_gnu_ld" = yes; then 4884 need_lib_prefix=no 4885 fi 4886 need_version=yes 4887 ;; 4888 4889sysv4 | sysv4.3*) 4890 version_type=linux 4891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4892 soname_spec='${libname}${release}${shared_ext}$major' 4893 shlibpath_var=LD_LIBRARY_PATH 4894 case $host_vendor in 4895 sni) 4896 shlibpath_overrides_runpath=no 4897 need_lib_prefix=no 4898 runpath_var=LD_RUN_PATH 4899 ;; 4900 siemens) 4901 need_lib_prefix=no 4902 ;; 4903 motorola) 4904 need_lib_prefix=no 4905 need_version=no 4906 shlibpath_overrides_runpath=no 4907 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 4908 ;; 4909 esac 4910 ;; 4911 4912sysv4*MP*) 4913 if test -d /usr/nec ;then 4914 version_type=linux 4915 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 4916 soname_spec='$libname${shared_ext}.$major' 4917 shlibpath_var=LD_LIBRARY_PATH 4918 fi 4919 ;; 4920 4921sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4922 version_type=freebsd-elf 4923 need_lib_prefix=no 4924 need_version=no 4925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 4926 soname_spec='${libname}${release}${shared_ext}$major' 4927 shlibpath_var=LD_LIBRARY_PATH 4928 shlibpath_overrides_runpath=yes 4929 hardcode_into_libs=yes 4930 if test "$with_gnu_ld" = yes; then 4931 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 4932 else 4933 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 4934 case $host_os in 4935 sco3.2v5*) 4936 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 4937 ;; 4938 esac 4939 fi 4940 sys_lib_dlsearch_path_spec='/usr/lib' 4941 ;; 4942 4943tpf*) 4944 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 4945 version_type=linux 4946 need_lib_prefix=no 4947 need_version=no 4948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4949 shlibpath_var=LD_LIBRARY_PATH 4950 shlibpath_overrides_runpath=no 4951 hardcode_into_libs=yes 4952 ;; 4953 4954uts4*) 4955 version_type=linux 4956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 4957 soname_spec='${libname}${release}${shared_ext}$major' 4958 shlibpath_var=LD_LIBRARY_PATH 4959 ;; 4960 4961*) 4962 dynamic_linker=no 4963 ;; 4964esac 4965AC_MSG_RESULT([$dynamic_linker]) 4966test "$dynamic_linker" = no && can_build_shared=no 4967 4968variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 4969if test "$GCC" = yes; then 4970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 4971fi 4972 4973if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 4974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 4975fi 4976if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 4977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 4978fi 4979 4980_LT_DECL([], [variables_saved_for_relink], [1], 4981 [Variables whose values should be saved in libtool wrapper scripts and 4982 restored at link time]) 4983_LT_DECL([], [need_lib_prefix], [0], 4984 [Do we need the "lib" prefix for modules?]) 4985_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 4986_LT_DECL([], [version_type], [0], [Library versioning type]) 4987_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 4988_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 4989_LT_DECL([], [shlibpath_overrides_runpath], [0], 4990 [Is shlibpath searched before the hard-coded library search path?]) 4991_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 4992_LT_DECL([], [library_names_spec], [1], 4993 [[List of archive names. First name is the real one, the rest are links. 4994 The last name is the one that the linker finds with -lNAME]]) 4995_LT_DECL([], [soname_spec], [1], 4996 [[The coded name of the library, if different from the real name]]) 4997_LT_DECL([], [postinstall_cmds], [2], 4998 [Command to use after installation of a shared archive]) 4999_LT_DECL([], [postuninstall_cmds], [2], 5000 [Command to use after uninstallation of a shared archive]) 5001_LT_DECL([], [finish_cmds], [2], 5002 [Commands used to finish a libtool library installation in a directory]) 5003_LT_DECL([], [finish_eval], [1], 5004 [[As "finish_cmds", except a single script fragment to be evaled but 5005 not shown]]) 5006_LT_DECL([], [hardcode_into_libs], [0], 5007 [Whether we should hardcode library paths into libraries]) 5008_LT_DECL([], [sys_lib_search_path_spec], [2], 5009 [Compile-time system search path for libraries]) 5010_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 5011 [Run-time system search path for libraries]) 5012])# _LT_SYS_DYNAMIC_LINKER 5013 5014 5015# _LT_PATH_TOOL_PREFIX(TOOL) 5016# -------------------------- 5017# find a file program which can recognize shared library 5018AC_DEFUN([_LT_PATH_TOOL_PREFIX], 5019[m4_require([_LT_DECL_EGREP])dnl 5020AC_MSG_CHECKING([for $1]) 5021AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 5022[case $MAGIC_CMD in 5023[[\\/*] | ?:[\\/]*]) 5024 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5025 ;; 5026*) 5027 lt_save_MAGIC_CMD="$MAGIC_CMD" 5028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5029dnl $ac_dummy forces splitting on constant user-supplied paths. 5030dnl POSIX.2 word splitting is done only on the output of word expansions, 5031dnl not every word. This closes a longstanding sh security hole. 5032 ac_dummy="m4_if([$2], , $PATH, [$2])" 5033 for ac_dir in $ac_dummy; do 5034 IFS="$lt_save_ifs" 5035 test -z "$ac_dir" && ac_dir=. 5036 if test -f $ac_dir/$1; then 5037 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 5038 if test -n "$file_magic_test_file"; then 5039 case $deplibs_check_method in 5040 "file_magic "*) 5041 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5042 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5043 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5044 $EGREP "$file_magic_regex" > /dev/null; then 5045 : 5046 else 5047 cat <<_LT_EOF 1>&2 5048 5049*** Warning: the command libtool uses to detect shared libraries, 5050*** $file_magic_cmd, produces output that libtool cannot recognize. 5051*** The result is that libtool may fail to recognize shared libraries 5052*** as such. This will affect the creation of libtool libraries that 5053*** depend on shared libraries, but programs linked with such libtool 5054*** libraries will work regardless of this problem. Nevertheless, you 5055*** may want to report the problem to your system manager and/or to 5056*** bug-libtool@gnu.org 5057 5058_LT_EOF 5059 fi ;; 5060 esac 5061 fi 5062 break 5063 fi 5064 done 5065 IFS="$lt_save_ifs" 5066 MAGIC_CMD="$lt_save_MAGIC_CMD" 5067 ;; 5068esac]) 5069MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5070if test -n "$MAGIC_CMD"; then 5071 AC_MSG_RESULT($MAGIC_CMD) 5072else 5073 AC_MSG_RESULT(no) 5074fi 5075_LT_DECL([], [MAGIC_CMD], [0], 5076 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 5077])# _LT_PATH_TOOL_PREFIX 5078 5079# Old name: 5080AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 5081dnl aclocal-1.4 backwards compatibility: 5082dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 5083 5084 5085# _LT_PATH_MAGIC 5086# -------------- 5087# find a file program which can recognize a shared library 5088m4_defun([_LT_PATH_MAGIC], 5089[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 5090if test -z "$lt_cv_path_MAGIC_CMD"; then 5091 if test -n "$ac_tool_prefix"; then 5092 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 5093 else 5094 MAGIC_CMD=: 5095 fi 5096fi 5097])# _LT_PATH_MAGIC 5098 5099 5100# LT_PATH_LD 5101# ---------- 5102# find the pathname to the GNU or non-GNU linker 5103AC_DEFUN([LT_PATH_LD], 5104[AC_REQUIRE([AC_PROG_CC])dnl 5105AC_REQUIRE([AC_CANONICAL_HOST])dnl 5106AC_REQUIRE([AC_CANONICAL_BUILD])dnl 5107m4_require([_LT_DECL_SED])dnl 5108m4_require([_LT_DECL_EGREP])dnl 5109 5110AC_ARG_WITH([gnu-ld], 5111 [AS_HELP_STRING([--with-gnu-ld], 5112 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 5113 [test "$withval" = no || with_gnu_ld=yes], 5114 [with_gnu_ld=no])dnl 5115 5116ac_prog=ld 5117if test "$GCC" = yes; then 5118 # Check if gcc -print-prog-name=ld gives a path. 5119 AC_MSG_CHECKING([for ld used by $CC]) 5120 case $host in 5121 *-*-mingw*) 5122 # gcc leaves a trailing carriage return which upsets mingw 5123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5124 *) 5125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5126 esac 5127 case $ac_prog in 5128 # Accept absolute paths. 5129 [[\\/]]* | ?:[[\\/]]*) 5130 re_direlt='/[[^/]][[^/]]*/\.\./' 5131 # Canonicalize the pathname of ld 5132 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5133 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5134 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5135 done 5136 test -z "$LD" && LD="$ac_prog" 5137 ;; 5138 "") 5139 # If it fails, then pretend we aren't using GCC. 5140 ac_prog=ld 5141 ;; 5142 *) 5143 # If it is relative, then search for the first ld in PATH. 5144 with_gnu_ld=unknown 5145 ;; 5146 esac 5147elif test "$with_gnu_ld" = yes; then 5148 AC_MSG_CHECKING([for GNU ld]) 5149else 5150 AC_MSG_CHECKING([for non-GNU ld]) 5151fi 5152AC_CACHE_VAL(lt_cv_path_LD, 5153[if test -z "$LD"; then 5154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5155 for ac_dir in $PATH; do 5156 IFS="$lt_save_ifs" 5157 test -z "$ac_dir" && ac_dir=. 5158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5159 lt_cv_path_LD="$ac_dir/$ac_prog" 5160 # Check to see if the program is GNU ld. I'd rather use --version, 5161 # but apparently some variants of GNU ld only accept -v. 5162 # Break only if it was the GNU/non-GNU ld that we prefer. 5163 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5164 *GNU* | *'with BFD'*) 5165 test "$with_gnu_ld" != no && break 5166 ;; 5167 *) 5168 test "$with_gnu_ld" != yes && break 5169 ;; 5170 esac 5171 fi 5172 done 5173 IFS="$lt_save_ifs" 5174else 5175 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5176fi]) 5177LD="$lt_cv_path_LD" 5178if test -n "$LD"; then 5179 AC_MSG_RESULT($LD) 5180else 5181 AC_MSG_RESULT(no) 5182fi 5183test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 5184_LT_PATH_LD_GNU 5185AC_SUBST([LD]) 5186 5187_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 5188])# LT_PATH_LD 5189 5190# Old names: 5191AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 5192AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 5193dnl aclocal-1.4 backwards compatibility: 5194dnl AC_DEFUN([AM_PROG_LD], []) 5195dnl AC_DEFUN([AC_PROG_LD], []) 5196 5197 5198# _LT_PATH_LD_GNU 5199#- -------------- 5200m4_defun([_LT_PATH_LD_GNU], 5201[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 5202[# I'd rather use --version here, but apparently some GNU lds only accept -v. 5203case `$LD -v 2>&1 </dev/null` in 5204*GNU* | *'with BFD'*) 5205 lt_cv_prog_gnu_ld=yes 5206 ;; 5207*) 5208 lt_cv_prog_gnu_ld=no 5209 ;; 5210esac]) 5211with_gnu_ld=$lt_cv_prog_gnu_ld 5212])# _LT_PATH_LD_GNU 5213 5214 5215# _LT_CMD_RELOAD 5216# -------------- 5217# find reload flag for linker 5218# -- PORTME Some linkers may need a different reload flag. 5219m4_defun([_LT_CMD_RELOAD], 5220[AC_CACHE_CHECK([for $LD option to reload object files], 5221 lt_cv_ld_reload_flag, 5222 [lt_cv_ld_reload_flag='-r']) 5223reload_flag=$lt_cv_ld_reload_flag 5224case $reload_flag in 5225"" | " "*) ;; 5226*) reload_flag=" $reload_flag" ;; 5227esac 5228reload_cmds='$LD$reload_flag -o $output$reload_objs' 5229case $host_os in 5230 darwin*) 5231 if test "$GCC" = yes; then 5232 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5233 else 5234 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5235 fi 5236 ;; 5237esac 5238_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 5239_LT_DECL([], [reload_cmds], [2])dnl 5240])# _LT_CMD_RELOAD 5241 5242 5243# _LT_CHECK_MAGIC_METHOD 5244# ---------------------- 5245# how to check for library dependencies 5246# -- PORTME fill in with the dynamic library characteristics 5247m4_defun([_LT_CHECK_MAGIC_METHOD], 5248[m4_require([_LT_DECL_EGREP]) 5249m4_require([_LT_DECL_OBJDUMP]) 5250AC_CACHE_CHECK([how to recognize dependent libraries], 5251lt_cv_deplibs_check_method, 5252[lt_cv_file_magic_cmd='$MAGIC_CMD' 5253lt_cv_file_magic_test_file= 5254lt_cv_deplibs_check_method='unknown' 5255# Need to set the preceding variable on all platforms that support 5256# interlibrary dependencies. 5257# 'none' -- dependencies not supported. 5258# `unknown' -- same as none, but documents that we really don't know. 5259# 'pass_all' -- all dependencies passed with no checks. 5260# 'test_compile' -- check by making test program. 5261# 'file_magic [[regex]]' -- check by looking for files in library path 5262# which responds to the $file_magic_cmd with a given extended regex. 5263# If you have `file' or equivalent on your system and you're not sure 5264# whether `pass_all' will *always* work, you probably want this one. 5265 5266case $host_os in 5267aix[[4-9]]*) 5268 lt_cv_deplibs_check_method=pass_all 5269 ;; 5270 5271beos*) 5272 lt_cv_deplibs_check_method=pass_all 5273 ;; 5274 5275bsdi[[45]]*) 5276 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 5277 lt_cv_file_magic_cmd='/usr/bin/file -L' 5278 lt_cv_file_magic_test_file=/shlib/libc.so 5279 ;; 5280 5281cygwin*) 5282 # func_win32_libid is a shell function defined in ltmain.sh 5283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5284 lt_cv_file_magic_cmd='func_win32_libid' 5285 ;; 5286 5287mingw* | pw32*) 5288 # Base MSYS/MinGW do not provide the 'file' command needed by 5289 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5290 # unless we find 'file', for example because we are cross-compiling. 5291 if ( file / ) >/dev/null 2>&1; then 5292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5293 lt_cv_file_magic_cmd='func_win32_libid' 5294 else 5295 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5296 lt_cv_file_magic_cmd='$OBJDUMP -f' 5297 fi 5298 ;; 5299 5300cegcc) 5301 # use the weaker test based on 'objdump'. See mingw*. 5302 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5303 lt_cv_file_magic_cmd='$OBJDUMP -f' 5304 ;; 5305 5306darwin* | rhapsody*) 5307 lt_cv_deplibs_check_method=pass_all 5308 ;; 5309 5310freebsd* | dragonfly*) 5311 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5312 case $host_cpu in 5313 i*86 ) 5314 # Not sure whether the presence of OpenBSD here was a mistake. 5315 # Let's accept both of them until this is cleared up. 5316 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 5317 lt_cv_file_magic_cmd=/usr/bin/file 5318 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5319 ;; 5320 esac 5321 else 5322 lt_cv_deplibs_check_method=pass_all 5323 fi 5324 ;; 5325 5326gnu*) 5327 lt_cv_deplibs_check_method=pass_all 5328 ;; 5329 5330hpux10.20* | hpux11*) 5331 lt_cv_file_magic_cmd=/usr/bin/file 5332 case $host_cpu in 5333 ia64*) 5334 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 5335 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5336 ;; 5337 hppa*64*) 5338 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 5339 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5340 ;; 5341 *) 5342 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 5343 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5344 ;; 5345 esac 5346 ;; 5347 5348interix[[3-9]]*) 5349 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5350 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 5351 ;; 5352 5353irix5* | irix6* | nonstopux*) 5354 case $LD in 5355 *-32|*"-32 ") libmagic=32-bit;; 5356 *-n32|*"-n32 ") libmagic=N32;; 5357 *-64|*"-64 ") libmagic=64-bit;; 5358 *) libmagic=never-match;; 5359 esac 5360 lt_cv_deplibs_check_method=pass_all 5361 ;; 5362 5363# This must be Linux ELF. 5364linux* | k*bsd*-gnu) 5365 lt_cv_deplibs_check_method=pass_all 5366 ;; 5367 5368netbsd*) 5369 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5370 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5371 else 5372 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 5373 fi 5374 ;; 5375 5376newos6*) 5377 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 5378 lt_cv_file_magic_cmd=/usr/bin/file 5379 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5380 ;; 5381 5382*nto* | *qnx*) 5383 lt_cv_deplibs_check_method=pass_all 5384 ;; 5385 5386openbsd*) 5387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5388 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 5389 else 5390 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 5391 fi 5392 ;; 5393 5394osf3* | osf4* | osf5*) 5395 lt_cv_deplibs_check_method=pass_all 5396 ;; 5397 5398rdos*) 5399 lt_cv_deplibs_check_method=pass_all 5400 ;; 5401 5402solaris*) 5403 lt_cv_deplibs_check_method=pass_all 5404 ;; 5405 5406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5407 lt_cv_deplibs_check_method=pass_all 5408 ;; 5409 5410sysv4 | sysv4.3*) 5411 case $host_vendor in 5412 motorola) 5413 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]]' 5414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5415 ;; 5416 ncr) 5417 lt_cv_deplibs_check_method=pass_all 5418 ;; 5419 sequent) 5420 lt_cv_file_magic_cmd='/bin/file' 5421 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 5422 ;; 5423 sni) 5424 lt_cv_file_magic_cmd='/bin/file' 5425 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 5426 lt_cv_file_magic_test_file=/lib/libc.so 5427 ;; 5428 siemens) 5429 lt_cv_deplibs_check_method=pass_all 5430 ;; 5431 pc) 5432 lt_cv_deplibs_check_method=pass_all 5433 ;; 5434 esac 5435 ;; 5436 5437tpf*) 5438 lt_cv_deplibs_check_method=pass_all 5439 ;; 5440esac 5441]) 5442file_magic_cmd=$lt_cv_file_magic_cmd 5443deplibs_check_method=$lt_cv_deplibs_check_method 5444test -z "$deplibs_check_method" && deplibs_check_method=unknown 5445 5446_LT_DECL([], [deplibs_check_method], [1], 5447 [Method to check whether dependent libraries are shared objects]) 5448_LT_DECL([], [file_magic_cmd], [1], 5449 [Command to use when deplibs_check_method == "file_magic"]) 5450])# _LT_CHECK_MAGIC_METHOD 5451 5452 5453# LT_PATH_NM 5454# ---------- 5455# find the pathname to a BSD- or MS-compatible name lister 5456AC_DEFUN([LT_PATH_NM], 5457[AC_REQUIRE([AC_PROG_CC])dnl 5458AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 5459[if test -n "$NM"; then 5460 # Let the user override the test. 5461 lt_cv_path_NM="$NM" 5462else 5463 lt_nm_to_check="${ac_tool_prefix}nm" 5464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5465 lt_nm_to_check="$lt_nm_to_check nm" 5466 fi 5467 for lt_tmp_nm in $lt_nm_to_check; do 5468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5470 IFS="$lt_save_ifs" 5471 test -z "$ac_dir" && ac_dir=. 5472 tmp_nm="$ac_dir/$lt_tmp_nm" 5473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5474 # Check to see if the nm accepts a BSD-compat flag. 5475 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5476 # nm: unknown option "B" ignored 5477 # Tru64's nm complains that /dev/null is an invalid object file 5478 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5479 */dev/null* | *'Invalid file or object type'*) 5480 lt_cv_path_NM="$tmp_nm -B" 5481 break 5482 ;; 5483 *) 5484 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5485 */dev/null*) 5486 lt_cv_path_NM="$tmp_nm -p" 5487 break 5488 ;; 5489 *) 5490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5491 continue # so that we can try to find one that supports BSD flags 5492 ;; 5493 esac 5494 ;; 5495 esac 5496 fi 5497 done 5498 IFS="$lt_save_ifs" 5499 done 5500 : ${lt_cv_path_NM=no} 5501fi]) 5502if test "$lt_cv_path_NM" != "no"; then 5503 NM="$lt_cv_path_NM" 5504else 5505 # Didn't find any BSD compatible name lister, look for dumpbin. 5506 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 5507 AC_SUBST([DUMPBIN]) 5508 if test "$DUMPBIN" != ":"; then 5509 NM="$DUMPBIN" 5510 fi 5511fi 5512test -z "$NM" && NM=nm 5513AC_SUBST([NM]) 5514_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 5515 5516AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 5517 [lt_cv_nm_interface="BSD nm" 5518 echo "int some_variable = 0;" > conftest.$ac_ext 5519 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 5520 (eval "$ac_compile" 2>conftest.err) 5521 cat conftest.err >&AS_MESSAGE_LOG_FD 5522 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 5523 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5524 cat conftest.err >&AS_MESSAGE_LOG_FD 5525 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 5526 cat conftest.out >&AS_MESSAGE_LOG_FD 5527 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5528 lt_cv_nm_interface="MS dumpbin" 5529 fi 5530 rm -f conftest*]) 5531])# LT_PATH_NM 5532 5533# Old names: 5534AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 5535AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 5536dnl aclocal-1.4 backwards compatibility: 5537dnl AC_DEFUN([AM_PROG_NM], []) 5538dnl AC_DEFUN([AC_PROG_NM], []) 5539 5540 5541# LT_LIB_M 5542# -------- 5543# check for math library 5544AC_DEFUN([LT_LIB_M], 5545[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5546LIBM= 5547case $host in 5548*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 5549 # These system don't have libm, or don't need it 5550 ;; 5551*-ncr-sysv4.3*) 5552 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 5553 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 5554 ;; 5555*) 5556 AC_CHECK_LIB(m, cos, LIBM="-lm") 5557 ;; 5558esac 5559AC_SUBST([LIBM]) 5560])# LT_LIB_M 5561 5562# Old name: 5563AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 5564dnl aclocal-1.4 backwards compatibility: 5565dnl AC_DEFUN([AC_CHECK_LIBM], []) 5566 5567 5568# _LT_COMPILER_NO_RTTI([TAGNAME]) 5569# ------------------------------- 5570m4_defun([_LT_COMPILER_NO_RTTI], 5571[m4_require([_LT_TAG_COMPILER])dnl 5572 5573_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5574 5575if test "$GCC" = yes; then 5576 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5577 5578 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 5579 lt_cv_prog_compiler_rtti_exceptions, 5580 [-fno-rtti -fno-exceptions], [], 5581 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 5582fi 5583_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 5584 [Compiler flag to turn off builtin functions]) 5585])# _LT_COMPILER_NO_RTTI 5586 5587 5588# _LT_CMD_GLOBAL_SYMBOLS 5589# ---------------------- 5590m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 5591[AC_REQUIRE([AC_CANONICAL_HOST])dnl 5592AC_REQUIRE([AC_PROG_CC])dnl 5593AC_REQUIRE([LT_PATH_NM])dnl 5594AC_REQUIRE([LT_PATH_LD])dnl 5595m4_require([_LT_DECL_SED])dnl 5596m4_require([_LT_DECL_EGREP])dnl 5597m4_require([_LT_TAG_COMPILER])dnl 5598 5599# Check for command to grab the raw symbol name followed by C symbol from nm. 5600AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 5601AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 5602[ 5603# These are sane defaults that work on at least a few old systems. 5604# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5605 5606# Character class describing NM global symbol codes. 5607symcode='[[BCDEGRST]]' 5608 5609# Regexp to match symbols that can be accessed directly from C. 5610sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5611 5612# Define system-specific variables. 5613case $host_os in 5614aix*) 5615 symcode='[[BCDT]]' 5616 ;; 5617cygwin* | mingw* | pw32* | cegcc*) 5618 symcode='[[ABCDGISTW]]' 5619 ;; 5620hpux*) 5621 if test "$host_cpu" = ia64; then 5622 symcode='[[ABCDEGRST]]' 5623 fi 5624 ;; 5625irix* | nonstopux*) 5626 symcode='[[BCDEGRST]]' 5627 ;; 5628osf*) 5629 symcode='[[BCDEGQRST]]' 5630 ;; 5631solaris*) 5632 symcode='[[BDRT]]' 5633 ;; 5634sco3.2v5*) 5635 symcode='[[DT]]' 5636 ;; 5637sysv4.2uw2*) 5638 symcode='[[DT]]' 5639 ;; 5640sysv5* | sco5v6* | unixware* | OpenUNIX*) 5641 symcode='[[ABDT]]' 5642 ;; 5643sysv4) 5644 symcode='[[DFNSTU]]' 5645 ;; 5646esac 5647 5648# If we're using GNU nm, then use its standard symbol codes. 5649case `$NM -V 2>&1` in 5650*GNU* | *'with BFD'*) 5651 symcode='[[ABCDGIRSTW]]' ;; 5652esac 5653 5654# Transform an extracted symbol line into a proper C declaration. 5655# Some systems (esp. on ia64) link data and code symbols differently, 5656# so use this general approach. 5657lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5658 5659# Transform an extracted symbol line into symbol name and symbol address 5660lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 5661lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5662 5663# Handle CRLF in mingw tool chain 5664opt_cr= 5665case $build_os in 5666mingw*) 5667 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5668 ;; 5669esac 5670 5671# Try without a prefix underscore, then with it. 5672for ac_symprfx in "" "_"; do 5673 5674 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5675 symxfrm="\\1 $ac_symprfx\\2 \\2" 5676 5677 # Write the raw and C identifiers. 5678 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5679 # Fake it for dumpbin and say T for any non-static function 5680 # and D for any global variable. 5681 # Also find C++ and __fastcall symbols from MSVC++, 5682 # which start with @ or ?. 5683 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 5684" {last_section=section; section=\$ 3};"\ 5685" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5686" \$ 0!~/External *\|/{next};"\ 5687" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5688" {if(hide[section]) next};"\ 5689" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5690" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5691" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5692" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5693" ' prfx=^$ac_symprfx]" 5694 else 5695 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5696 fi 5697 5698 # Check to see that the pipe works correctly. 5699 pipe_works=no 5700 5701 rm -f conftest* 5702 cat > conftest.$ac_ext <<_LT_EOF 5703#ifdef __cplusplus 5704extern "C" { 5705#endif 5706char nm_test_var; 5707void nm_test_func(void); 5708void nm_test_func(void){} 5709#ifdef __cplusplus 5710} 5711#endif 5712int main(){nm_test_var='a';nm_test_func();return(0);} 5713_LT_EOF 5714 5715 if AC_TRY_EVAL(ac_compile); then 5716 # Now try to grab the symbols. 5717 nlist=conftest.nm 5718 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 5719 # Try sorting and uniquifying the output. 5720 if sort "$nlist" | uniq > "$nlist"T; then 5721 mv -f "$nlist"T "$nlist" 5722 else 5723 rm -f "$nlist"T 5724 fi 5725 5726 # Make sure that we snagged all the symbols we need. 5727 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5728 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5729 cat <<_LT_EOF > conftest.$ac_ext 5730#ifdef __cplusplus 5731extern "C" { 5732#endif 5733 5734_LT_EOF 5735 # Now generate the symbol file. 5736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5737 5738 cat <<_LT_EOF >> conftest.$ac_ext 5739 5740/* The mapping between symbol names and symbols. */ 5741const struct { 5742 const char *name; 5743 void *address; 5744} 5745lt__PROGRAM__LTX_preloaded_symbols[[]] = 5746{ 5747 { "@PROGRAM@", (void *) 0 }, 5748_LT_EOF 5749 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5750 cat <<\_LT_EOF >> conftest.$ac_ext 5751 {0, (void *) 0} 5752}; 5753 5754/* This works around a problem in FreeBSD linker */ 5755#ifdef FREEBSD_WORKAROUND 5756static const void *lt_preloaded_setup() { 5757 return lt__PROGRAM__LTX_preloaded_symbols; 5758} 5759#endif 5760 5761#ifdef __cplusplus 5762} 5763#endif 5764_LT_EOF 5765 # Now try linking the two files. 5766 mv conftest.$ac_objext conftstm.$ac_objext 5767 lt_save_LIBS="$LIBS" 5768 lt_save_CFLAGS="$CFLAGS" 5769 LIBS="conftstm.$ac_objext" 5770 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 5771 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 5772 pipe_works=yes 5773 fi 5774 LIBS="$lt_save_LIBS" 5775 CFLAGS="$lt_save_CFLAGS" 5776 else 5777 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 5778 fi 5779 else 5780 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 5781 fi 5782 else 5783 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 5784 fi 5785 else 5786 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 5787 cat conftest.$ac_ext >&5 5788 fi 5789 rm -rf conftest* conftst* 5790 5791 # Do not use the global_symbol_pipe unless it works. 5792 if test "$pipe_works" = yes; then 5793 break 5794 else 5795 lt_cv_sys_global_symbol_pipe= 5796 fi 5797done 5798]) 5799if test -z "$lt_cv_sys_global_symbol_pipe"; then 5800 lt_cv_sys_global_symbol_to_cdecl= 5801fi 5802if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5803 AC_MSG_RESULT(failed) 5804else 5805 AC_MSG_RESULT(ok) 5806fi 5807 5808_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 5809 [Take the output of nm and produce a listing of raw symbols and C names]) 5810_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 5811 [Transform the output of nm in a proper C declaration]) 5812_LT_DECL([global_symbol_to_c_name_address], 5813 [lt_cv_sys_global_symbol_to_c_name_address], [1], 5814 [Transform the output of nm in a C name address pair]) 5815_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 5816 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 5817 [Transform the output of nm in a C name address pair when lib prefix is needed]) 5818]) # _LT_CMD_GLOBAL_SYMBOLS 5819 5820 5821# _LT_COMPILER_PIC([TAGNAME]) 5822# --------------------------- 5823m4_defun([_LT_COMPILER_PIC], 5824[m4_require([_LT_TAG_COMPILER])dnl 5825_LT_TAGVAR(lt_prog_compiler_wl, $1)= 5826_LT_TAGVAR(lt_prog_compiler_pic, $1)= 5827_LT_TAGVAR(lt_prog_compiler_static, $1)= 5828 5829AC_MSG_CHECKING([for $compiler option to produce PIC]) 5830m4_if([$1], [CXX], [ 5831 # C++ specific cases for pic, static, wl, etc. 5832 if test "$GXX" = yes; then 5833 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5834 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5835 5836 case $host_os in 5837 aix*) 5838 # All AIX code is PIC. 5839 if test "$host_cpu" = ia64; then 5840 # AIX 5 now supports IA64 processor 5841 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5842 fi 5843 ;; 5844 5845 amigaos*) 5846 case $host_cpu in 5847 powerpc) 5848 # see comment about AmigaOS4 .so support 5849 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5850 ;; 5851 m68k) 5852 # FIXME: we need at least 68020 code to build shared libraries, but 5853 # adding the `-m68020' flag to GCC prevents building anything better, 5854 # like `-m68040'. 5855 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5856 ;; 5857 esac 5858 ;; 5859 5860 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5861 # PIC is the default for these OSes. 5862 ;; 5863 mingw* | cygwin* | os2* | pw32* | cegcc*) 5864 # This hack is so that the source file can tell whether it is being 5865 # built for inclusion in a dll (and should export symbols for example). 5866 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5867 # (--disable-auto-import) libraries 5868 m4_if([$1], [GCJ], [], 5869 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5870 ;; 5871 darwin* | rhapsody*) 5872 # PIC is the default on this platform 5873 # Common symbols not allowed in MH_DYLIB files 5874 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5875 ;; 5876 *djgpp*) 5877 # DJGPP does not support shared libraries at all 5878 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5879 ;; 5880 interix[[3-9]]*) 5881 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5882 # Instead, we relocate shared libraries at runtime. 5883 ;; 5884 sysv4*MP*) 5885 if test -d /usr/nec; then 5886 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5887 fi 5888 ;; 5889 hpux*) 5890 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 5891 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 5892 # sets the default TLS model and affects inlining. 5893 case $host_cpu in 5894 hppa*64*) 5895 ;; 5896 *) 5897 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5898 ;; 5899 esac 5900 ;; 5901 *qnx* | *nto*) 5902 # QNX uses GNU C++, but need to define -shared option too, otherwise 5903 # it will coredump. 5904 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5905 ;; 5906 *) 5907 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5908 ;; 5909 esac 5910 else 5911 case $host_os in 5912 aix[[4-9]]*) 5913 # All AIX code is PIC. 5914 if test "$host_cpu" = ia64; then 5915 # AIX 5 now supports IA64 processor 5916 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5917 else 5918 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5919 fi 5920 ;; 5921 chorus*) 5922 case $cc_basename in 5923 cxch68*) 5924 # Green Hills C++ Compiler 5925 # _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" 5926 ;; 5927 esac 5928 ;; 5929 dgux*) 5930 case $cc_basename in 5931 ec++*) 5932 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5933 ;; 5934 ghcx*) 5935 # Green Hills C++ Compiler 5936 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5937 ;; 5938 *) 5939 ;; 5940 esac 5941 ;; 5942 freebsd* | dragonfly*) 5943 # FreeBSD uses GNU C++ 5944 ;; 5945 hpux9* | hpux10* | hpux11*) 5946 case $cc_basename in 5947 CC*) 5948 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5949 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5950 if test "$host_cpu" != ia64; then 5951 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5952 fi 5953 ;; 5954 aCC*) 5955 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5956 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5957 case $host_cpu in 5958 hppa*64*|ia64*) 5959 # +Z the default 5960 ;; 5961 *) 5962 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5963 ;; 5964 esac 5965 ;; 5966 *) 5967 ;; 5968 esac 5969 ;; 5970 interix*) 5971 # This is c89, which is MS Visual C++ (no shared libs) 5972 # Anyone wants to do a port? 5973 ;; 5974 irix5* | irix6* | nonstopux*) 5975 case $cc_basename in 5976 CC*) 5977 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5978 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5979 # CC pic flag -KPIC is the default. 5980 ;; 5981 *) 5982 ;; 5983 esac 5984 ;; 5985 linux* | k*bsd*-gnu) 5986 case $cc_basename in 5987 KCC*) 5988 # KAI C++ Compiler 5989 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5990 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5991 ;; 5992 ecpc* ) 5993 # old Intel C++ for x86_64 which still supported -KPIC. 5994 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5995 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5996 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5997 ;; 5998 icpc* ) 5999 # Intel C++, used to be incompatible with GCC. 6000 # ICC 10 doesn't accept -KPIC any more. 6001 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6002 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6003 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6004 ;; 6005 pgCC* | pgcpp*) 6006 # Portland Group C++ compiler 6007 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6008 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6009 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6010 ;; 6011 cxx*) 6012 # Compaq C++ 6013 # Make sure the PIC flag is empty. It appears that all Alpha 6014 # Linux and Compaq Tru64 Unix objects are PIC. 6015 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6016 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6017 ;; 6018 xlc* | xlC*) 6019 # IBM XL 8.0 on PPC 6020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6021 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6022 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6023 ;; 6024 *) 6025 case `$CC -V 2>&1 | sed 5q` in 6026 *Sun\ C*) 6027 # Sun C++ 5.9 6028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6029 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6030 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6031 ;; 6032 esac 6033 ;; 6034 esac 6035 ;; 6036 lynxos*) 6037 ;; 6038 m88k*) 6039 ;; 6040 mvs*) 6041 case $cc_basename in 6042 cxx*) 6043 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 6044 ;; 6045 *) 6046 ;; 6047 esac 6048 ;; 6049 netbsd*) 6050 ;; 6051 *qnx* | *nto*) 6052 # QNX uses GNU C++, but need to define -shared option too, otherwise 6053 # it will coredump. 6054 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6055 ;; 6056 osf3* | osf4* | osf5*) 6057 case $cc_basename in 6058 KCC*) 6059 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 6060 ;; 6061 RCC*) 6062 # Rational C++ 2.4.1 6063 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6064 ;; 6065 cxx*) 6066 # Digital/Compaq C++ 6067 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6068 # Make sure the PIC flag is empty. It appears that all Alpha 6069 # Linux and Compaq Tru64 Unix objects are PIC. 6070 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6071 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6072 ;; 6073 *) 6074 ;; 6075 esac 6076 ;; 6077 psos*) 6078 ;; 6079 solaris*) 6080 case $cc_basename in 6081 CC*) 6082 # Sun C++ 4.2, 5.x and Centerline C++ 6083 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6084 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6085 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6086 ;; 6087 gcx*) 6088 # Green Hills C++ Compiler 6089 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6090 ;; 6091 *) 6092 ;; 6093 esac 6094 ;; 6095 sunos4*) 6096 case $cc_basename in 6097 CC*) 6098 # Sun C++ 4.x 6099 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6100 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6101 ;; 6102 lcc*) 6103 # Lucid 6104 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6105 ;; 6106 *) 6107 ;; 6108 esac 6109 ;; 6110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6111 case $cc_basename in 6112 CC*) 6113 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6114 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6115 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6116 ;; 6117 esac 6118 ;; 6119 tandem*) 6120 case $cc_basename in 6121 NCC*) 6122 # NonStop-UX NCC 3.20 6123 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6124 ;; 6125 *) 6126 ;; 6127 esac 6128 ;; 6129 vxworks*) 6130 ;; 6131 *) 6132 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6133 ;; 6134 esac 6135 fi 6136], 6137[ 6138 if test "$GCC" = yes; then 6139 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6140 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6141 6142 case $host_os in 6143 aix*) 6144 # All AIX code is PIC. 6145 if test "$host_cpu" = ia64; then 6146 # AIX 5 now supports IA64 processor 6147 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6148 fi 6149 ;; 6150 6151 amigaos*) 6152 case $host_cpu in 6153 powerpc) 6154 # see comment about AmigaOS4 .so support 6155 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6156 ;; 6157 m68k) 6158 # FIXME: we need at least 68020 code to build shared libraries, but 6159 # adding the `-m68020' flag to GCC prevents building anything better, 6160 # like `-m68040'. 6161 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 6162 ;; 6163 esac 6164 ;; 6165 6166 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6167 # PIC is the default for these OSes. 6168 ;; 6169 6170 mingw* | cygwin* | pw32* | os2* | cegcc*) 6171 # This hack is so that the source file can tell whether it is being 6172 # built for inclusion in a dll (and should export symbols for example). 6173 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6174 # (--disable-auto-import) libraries 6175 m4_if([$1], [GCJ], [], 6176 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6177 ;; 6178 6179 darwin* | rhapsody*) 6180 # PIC is the default on this platform 6181 # Common symbols not allowed in MH_DYLIB files 6182 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 6183 ;; 6184 6185 hpux*) 6186 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 6187 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 6188 # sets the default TLS model and affects inlining. 6189 case $host_cpu in 6190 hppa*64*) 6191 # +Z the default 6192 ;; 6193 *) 6194 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6195 ;; 6196 esac 6197 ;; 6198 6199 interix[[3-9]]*) 6200 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6201 # Instead, we relocate shared libraries at runtime. 6202 ;; 6203 6204 msdosdjgpp*) 6205 # Just because we use GCC doesn't mean we suddenly get shared libraries 6206 # on systems that don't support them. 6207 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6208 enable_shared=no 6209 ;; 6210 6211 *nto* | *qnx*) 6212 # QNX uses GNU C++, but need to define -shared option too, otherwise 6213 # it will coredump. 6214 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6215 ;; 6216 6217 sysv4*MP*) 6218 if test -d /usr/nec; then 6219 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 6220 fi 6221 ;; 6222 6223 *) 6224 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6225 ;; 6226 esac 6227 else 6228 # PORTME Check for flag to pass linker flags through the system compiler. 6229 case $host_os in 6230 aix*) 6231 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6232 if test "$host_cpu" = ia64; then 6233 # AIX 5 now supports IA64 processor 6234 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6235 else 6236 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 6237 fi 6238 ;; 6239 6240 mingw* | cygwin* | pw32* | os2* | cegcc*) 6241 # This hack is so that the source file can tell whether it is being 6242 # built for inclusion in a dll (and should export symbols for example). 6243 m4_if([$1], [GCJ], [], 6244 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 6245 ;; 6246 6247 hpux9* | hpux10* | hpux11*) 6248 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6249 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6250 # not for PA HP-UX. 6251 case $host_cpu in 6252 hppa*64*|ia64*) 6253 # +Z the default 6254 ;; 6255 *) 6256 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6257 ;; 6258 esac 6259 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6260 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 6261 ;; 6262 6263 irix5* | irix6* | nonstopux*) 6264 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6265 # PIC (with -KPIC) is the default. 6266 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6267 ;; 6268 6269 linux* | k*bsd*-gnu) 6270 case $cc_basename in 6271 # old Intel for x86_64 which still supported -KPIC. 6272 ecc*) 6273 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6274 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6275 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6276 ;; 6277 # icc used to be incompatible with GCC. 6278 # ICC 10 doesn't accept -KPIC any more. 6279 icc* | ifort*) 6280 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6281 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 6282 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 6283 ;; 6284 # Lahey Fortran 8.1. 6285 lf95*) 6286 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6287 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 6288 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 6289 ;; 6290 pgcc* | pgf77* | pgf90* | pgf95*) 6291 # Portland Group compilers (*not* the Pentium gcc compiler, 6292 # which looks to be a dead project) 6293 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6294 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 6295 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6296 ;; 6297 ccc*) 6298 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6299 # All Alpha code is PIC. 6300 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6301 ;; 6302 xl*) 6303 # IBM XL C 8.0/Fortran 10.1 on PPC 6304 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6305 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 6306 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 6307 ;; 6308 *) 6309 case `$CC -V 2>&1 | sed 5q` in 6310 *Sun\ C*) 6311 # Sun C 5.9 6312 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6313 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6314 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6315 ;; 6316 *Sun\ F*) 6317 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6318 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6319 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6320 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 6321 ;; 6322 esac 6323 ;; 6324 esac 6325 ;; 6326 6327 newsos6) 6328 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6329 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6330 ;; 6331 6332 *nto* | *qnx*) 6333 # QNX uses GNU C++, but need to define -shared option too, otherwise 6334 # it will coredump. 6335 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 6336 ;; 6337 6338 osf3* | osf4* | osf5*) 6339 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6340 # All OSF/1 code is PIC. 6341 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6342 ;; 6343 6344 rdos*) 6345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6346 ;; 6347 6348 solaris*) 6349 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6350 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6351 case $cc_basename in 6352 f77* | f90* | f95*) 6353 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 6354 *) 6355 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 6356 esac 6357 ;; 6358 6359 sunos4*) 6360 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6361 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6362 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6363 ;; 6364 6365 sysv4 | sysv4.2uw2* | sysv4.3*) 6366 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6367 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6368 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6369 ;; 6370 6371 sysv4*MP*) 6372 if test -d /usr/nec ;then 6373 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6374 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6375 fi 6376 ;; 6377 6378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6379 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6380 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6381 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6382 ;; 6383 6384 unicos*) 6385 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6386 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6387 ;; 6388 6389 uts4*) 6390 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6391 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6392 ;; 6393 6394 *) 6395 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 6396 ;; 6397 esac 6398 fi 6399]) 6400case $host_os in 6401 # For platforms which do not support PIC, -DPIC is meaningless: 6402 *djgpp*) 6403 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 6404 ;; 6405 *) 6406 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 6407 ;; 6408esac 6409AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 6410_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 6411 [How to pass a linker flag through the compiler]) 6412 6413# 6414# Check to make sure the PIC flag actually works. 6415# 6416if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 6417 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 6418 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 6419 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 6420 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 6421 "" | " "*) ;; 6422 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6423 esac], 6424 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 6425 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6426fi 6427_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 6428 [Additional compiler flags for building library objects]) 6429 6430# 6431# Check to make sure the static flag actually works. 6432# 6433wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 6434_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 6435 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 6436 $lt_tmp_static_flag, 6437 [], 6438 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 6439_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 6440 [Compiler flag to prevent dynamic linking]) 6441])# _LT_COMPILER_PIC 6442 6443 6444# _LT_LINKER_SHLIBS([TAGNAME]) 6445# ---------------------------- 6446# See if the linker supports building shared libraries. 6447m4_defun([_LT_LINKER_SHLIBS], 6448[AC_REQUIRE([LT_PATH_LD])dnl 6449AC_REQUIRE([LT_PATH_NM])dnl 6450m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6451m4_require([_LT_DECL_EGREP])dnl 6452m4_require([_LT_DECL_SED])dnl 6453m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 6454m4_require([_LT_TAG_COMPILER])dnl 6455AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6456m4_if([$1], [CXX], [ 6457 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6458 case $host_os in 6459 aix[[4-9]]*) 6460 # If we're using GNU nm, then we don't want the "-C" option. 6461 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6462 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6463 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6464 else 6465 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6466 fi 6467 ;; 6468 pw32*) 6469 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 6470 ;; 6471 cygwin* | mingw* | cegcc*) 6472 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 6473 ;; 6474 *) 6475 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6476 ;; 6477 esac 6478 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6479], [ 6480 runpath_var= 6481 _LT_TAGVAR(allow_undefined_flag, $1)= 6482 _LT_TAGVAR(always_export_symbols, $1)=no 6483 _LT_TAGVAR(archive_cmds, $1)= 6484 _LT_TAGVAR(archive_expsym_cmds, $1)= 6485 _LT_TAGVAR(compiler_needs_object, $1)=no 6486 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6487 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6488 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6489 _LT_TAGVAR(hardcode_automatic, $1)=no 6490 _LT_TAGVAR(hardcode_direct, $1)=no 6491 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6492 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6493 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6494 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6495 _LT_TAGVAR(hardcode_minus_L, $1)=no 6496 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6497 _LT_TAGVAR(inherit_rpath, $1)=no 6498 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6499 _LT_TAGVAR(module_cmds, $1)= 6500 _LT_TAGVAR(module_expsym_cmds, $1)= 6501 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 6502 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 6503 _LT_TAGVAR(thread_safe_flag_spec, $1)= 6504 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6505 # include_expsyms should be a list of space-separated symbols to be *always* 6506 # included in the symbol list 6507 _LT_TAGVAR(include_expsyms, $1)= 6508 # exclude_expsyms can be an extended regexp of symbols to exclude 6509 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6511 # as well as any symbol that contains `d'. 6512 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 6513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6514 # platforms (ab)use it in PIC code, but their linkers get confused if 6515 # the symbol is explicitly referenced. Since portable code cannot 6516 # rely on this symbol name, it's probably fine to never include it in 6517 # preloaded symbol tables. 6518 # Exclude shared library initialization/finalization symbols. 6519dnl Note also adjust exclude_expsyms for C++ above. 6520 extract_expsyms_cmds= 6521 6522 case $host_os in 6523 cygwin* | mingw* | pw32* | cegcc*) 6524 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6525 # When not using gcc, we currently assume that we are using 6526 # Microsoft Visual C++. 6527 if test "$GCC" != yes; then 6528 with_gnu_ld=no 6529 fi 6530 ;; 6531 interix*) 6532 # we just hope/assume this is gcc and not c89 (= MSVC++) 6533 with_gnu_ld=yes 6534 ;; 6535 openbsd*) 6536 with_gnu_ld=no 6537 ;; 6538 esac 6539 6540 _LT_TAGVAR(ld_shlibs, $1)=yes 6541 if test "$with_gnu_ld" = yes; then 6542 # If archive_cmds runs LD, not CC, wlarc should be empty 6543 wlarc='${wl}' 6544 6545 # Set some defaults for GNU ld with shared library support. These 6546 # are reset later if shared libraries are not supported. Putting them 6547 # here allows them to be overridden if necessary. 6548 runpath_var=LD_RUN_PATH 6549 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6550 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6551 # ancient GNU ld didn't support --whole-archive et. al. 6552 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 6553 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6554 else 6555 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6556 fi 6557 supports_anon_versioning=no 6558 case `$LD -v 2>&1` in 6559 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6560 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6561 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6562 *\ 2.11.*) ;; # other 2.11 versions 6563 *) supports_anon_versioning=yes ;; 6564 esac 6565 6566 # See if GNU ld supports shared libraries. 6567 case $host_os in 6568 aix[[3-9]]*) 6569 # On AIX/PPC, the GNU linker is very broken 6570 if test "$host_cpu" != ia64; then 6571 _LT_TAGVAR(ld_shlibs, $1)=no 6572 cat <<_LT_EOF 1>&2 6573 6574*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6575*** to be unable to reliably create shared libraries on AIX. 6576*** Therefore, libtool is disabling shared libraries support. If you 6577*** really care for shared libraries, you may want to modify your PATH 6578*** so that a non-GNU linker is found, and then restart. 6579 6580_LT_EOF 6581 fi 6582 ;; 6583 6584 amigaos*) 6585 case $host_cpu in 6586 powerpc) 6587 # see comment about AmigaOS4 .so support 6588 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6589 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6590 ;; 6591 m68k) 6592 _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)' 6593 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6594 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6595 ;; 6596 esac 6597 ;; 6598 6599 beos*) 6600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6601 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6602 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6603 # support --undefined. This deserves some investigation. FIXME 6604 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6605 else 6606 _LT_TAGVAR(ld_shlibs, $1)=no 6607 fi 6608 ;; 6609 6610 cygwin* | mingw* | pw32* | cegcc*) 6611 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6612 # as there is no search path for DLLs. 6613 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6614 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6615 _LT_TAGVAR(always_export_symbols, $1)=no 6616 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6617 _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' 6618 6619 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6620 _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' 6621 # If the export-symbols file already is a .def file (1st line 6622 # is EXPORTS), use it as is; otherwise, prepend... 6623 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6624 cp $export_symbols $output_objdir/$soname.def; 6625 else 6626 echo EXPORTS > $output_objdir/$soname.def; 6627 cat $export_symbols >> $output_objdir/$soname.def; 6628 fi~ 6629 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6630 else 6631 _LT_TAGVAR(ld_shlibs, $1)=no 6632 fi 6633 ;; 6634 6635 interix[[3-9]]*) 6636 _LT_TAGVAR(hardcode_direct, $1)=no 6637 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6638 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6639 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6640 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6641 # Instead, shared libraries are loaded at an image base (0x10000000 by 6642 # default) and relocated if they conflict, which is a slow very memory 6643 # consuming and fragmenting process. To avoid this, we pick a random, 6644 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6645 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6646 _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' 6647 _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' 6648 ;; 6649 6650 gnu* | linux* | tpf* | k*bsd*-gnu) 6651 tmp_diet=no 6652 if test "$host_os" = linux-dietlibc; then 6653 case $cc_basename in 6654 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 6655 esac 6656 fi 6657 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 6658 && test "$tmp_diet" = no 6659 then 6660 tmp_addflag= 6661 tmp_sharedflag='-shared' 6662 case $cc_basename,$host_cpu in 6663 pgcc*) # Portland Group C compiler 6664 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6665 tmp_addflag=' $pic_flag' 6666 ;; 6667 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6668 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6669 tmp_addflag=' $pic_flag -Mnomain' ;; 6670 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6671 tmp_addflag=' -i_dynamic' ;; 6672 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6673 tmp_addflag=' -i_dynamic -nofor_main' ;; 6674 ifc* | ifort*) # Intel Fortran compiler 6675 tmp_addflag=' -nofor_main' ;; 6676 lf95*) # Lahey Fortran 8.1 6677 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6678 tmp_sharedflag='--shared' ;; 6679 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 6680 tmp_sharedflag='-qmkshrobj' 6681 tmp_addflag= ;; 6682 esac 6683 case `$CC -V 2>&1 | sed 5q` in 6684 *Sun\ C*) # Sun C 5.9 6685 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6686 _LT_TAGVAR(compiler_needs_object, $1)=yes 6687 tmp_sharedflag='-G' ;; 6688 *Sun\ F*) # Sun Fortran 8.3 6689 tmp_sharedflag='-G' ;; 6690 esac 6691 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6692 6693 if test "x$supports_anon_versioning" = xyes; then 6694 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6696 echo "local: *; };" >> $output_objdir/$libname.ver~ 6697 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6698 fi 6699 6700 case $cc_basename in 6701 xlf*) 6702 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 6703 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 6704 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6705 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 6706 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 6707 if test "x$supports_anon_versioning" = xyes; then 6708 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6710 echo "local: *; };" >> $output_objdir/$libname.ver~ 6711 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 6712 fi 6713 ;; 6714 esac 6715 else 6716 _LT_TAGVAR(ld_shlibs, $1)=no 6717 fi 6718 ;; 6719 6720 netbsd*) 6721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6722 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6723 wlarc= 6724 else 6725 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6726 _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' 6727 fi 6728 ;; 6729 6730 solaris*) 6731 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 6732 _LT_TAGVAR(ld_shlibs, $1)=no 6733 cat <<_LT_EOF 1>&2 6734 6735*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6736*** create shared libraries on Solaris systems. Therefore, libtool 6737*** is disabling shared libraries support. We urge you to upgrade GNU 6738*** binutils to release 2.9.1 or newer. Another option is to modify 6739*** your PATH or compiler configuration so that the native linker is 6740*** used, and then restart. 6741 6742_LT_EOF 6743 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6744 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6745 _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' 6746 else 6747 _LT_TAGVAR(ld_shlibs, $1)=no 6748 fi 6749 ;; 6750 6751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 6752 case `$LD -v 2>&1` in 6753 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 6754 _LT_TAGVAR(ld_shlibs, $1)=no 6755 cat <<_LT_EOF 1>&2 6756 6757*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 6758*** reliably create shared libraries on SCO systems. Therefore, libtool 6759*** is disabling shared libraries support. We urge you to upgrade GNU 6760*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 6761*** your PATH or compiler configuration so that the native linker is 6762*** used, and then restart. 6763 6764_LT_EOF 6765 ;; 6766 *) 6767 # For security reasons, it is highly recommended that you always 6768 # use absolute paths for naming shared libraries, and exclude the 6769 # DT_RUNPATH tag from executables and libraries. But doing so 6770 # requires that you compile everything twice, which is a pain. 6771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6772 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6773 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6774 _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' 6775 else 6776 _LT_TAGVAR(ld_shlibs, $1)=no 6777 fi 6778 ;; 6779 esac 6780 ;; 6781 6782 sunos4*) 6783 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6784 wlarc= 6785 _LT_TAGVAR(hardcode_direct, $1)=yes 6786 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6787 ;; 6788 6789 *) 6790 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6791 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6792 _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' 6793 else 6794 _LT_TAGVAR(ld_shlibs, $1)=no 6795 fi 6796 ;; 6797 esac 6798 6799 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 6800 runpath_var= 6801 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6802 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6803 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6804 fi 6805 else 6806 # PORTME fill in a description of your system's linker (not GNU ld) 6807 case $host_os in 6808 aix3*) 6809 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6810 _LT_TAGVAR(always_export_symbols, $1)=yes 6811 _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' 6812 # Note: this linker hardcodes the directories in LIBPATH if there 6813 # are no directories specified by -L. 6814 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6815 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 6816 # Neither direct hardcoding nor static linking is supported with a 6817 # broken collect2. 6818 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6819 fi 6820 ;; 6821 6822 aix[[4-9]]*) 6823 if test "$host_cpu" = ia64; then 6824 # On IA64, the linker does run time linking by default, so we don't 6825 # have to do anything special. 6826 aix_use_runtimelinking=no 6827 exp_sym_flag='-Bexport' 6828 no_entry_flag="" 6829 else 6830 # If we're using GNU nm, then we don't want the "-C" option. 6831 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6832 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 6833 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6834 else 6835 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 6836 fi 6837 aix_use_runtimelinking=no 6838 6839 # Test if we are trying to use run time linking or normal 6840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6841 # need to do runtime linking. 6842 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6843 for ld_flag in $LDFLAGS; do 6844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6845 aix_use_runtimelinking=yes 6846 break 6847 fi 6848 done 6849 ;; 6850 esac 6851 6852 exp_sym_flag='-bexport' 6853 no_entry_flag='-bnoentry' 6854 fi 6855 6856 # When large executables or shared objects are built, AIX ld can 6857 # have problems creating the table of contents. If linking a library 6858 # or program results in "error TOC overflow" add -mminimal-toc to 6859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6861 6862 _LT_TAGVAR(archive_cmds, $1)='' 6863 _LT_TAGVAR(hardcode_direct, $1)=yes 6864 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6865 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6866 _LT_TAGVAR(link_all_deplibs, $1)=yes 6867 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 6868 6869 if test "$GCC" = yes; then 6870 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6871 # We only want to do this on AIX 4.2 and lower, the check 6872 # below for broken collect2 doesn't work under 4.3+ 6873 collect2name=`${CC} -print-prog-name=collect2` 6874 if test -f "$collect2name" && 6875 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6876 then 6877 # We have reworked collect2 6878 : 6879 else 6880 # We have old collect2 6881 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6882 # It fails to find uninstalled libraries when the uninstalled 6883 # path is not listed in the libpath. Setting hardcode_minus_L 6884 # to unsupported forces relinking 6885 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6887 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6888 fi 6889 ;; 6890 esac 6891 shared_flag='-shared' 6892 if test "$aix_use_runtimelinking" = yes; then 6893 shared_flag="$shared_flag "'${wl}-G' 6894 fi 6895 else 6896 # not using gcc 6897 if test "$host_cpu" = ia64; then 6898 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6899 # chokes on -Wl,-G. The following line is correct: 6900 shared_flag='-G' 6901 else 6902 if test "$aix_use_runtimelinking" = yes; then 6903 shared_flag='${wl}-G' 6904 else 6905 shared_flag='${wl}-bM:SRE' 6906 fi 6907 fi 6908 fi 6909 6910 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 6911 # It seems that -bexpall does not export symbols beginning with 6912 # underscore (_), so it is better to generate a list of symbols to export. 6913 _LT_TAGVAR(always_export_symbols, $1)=yes 6914 if test "$aix_use_runtimelinking" = yes; then 6915 # Warning - without using the other runtime loading flags (-brtl), 6916 # -berok will link without error, but may produce a broken library. 6917 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6918 # Determine the default libpath from the value encoded in an 6919 # empty executable. 6920 _LT_SYS_MODULE_PATH_AIX 6921 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6922 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6923 else 6924 if test "$host_cpu" = ia64; then 6925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6926 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6927 _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" 6928 else 6929 # Determine the default libpath from the value encoded in an 6930 # empty executable. 6931 _LT_SYS_MODULE_PATH_AIX 6932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6933 # Warning - without using the other run time loading flags, 6934 # -berok will link without error, but may produce a broken library. 6935 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6936 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6937 # Exported symbols can be pulled into shared objects from archives 6938 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6939 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6940 # This is similar to how AIX traditionally builds its shared libraries. 6941 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6942 fi 6943 fi 6944 ;; 6945 6946 amigaos*) 6947 case $host_cpu in 6948 powerpc) 6949 # see comment about AmigaOS4 .so support 6950 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6951 _LT_TAGVAR(archive_expsym_cmds, $1)='' 6952 ;; 6953 m68k) 6954 _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)' 6955 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6956 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6957 ;; 6958 esac 6959 ;; 6960 6961 bsdi[[45]]*) 6962 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6963 ;; 6964 6965 cygwin* | mingw* | pw32* | cegcc*) 6966 # When not using gcc, we currently assume that we are using 6967 # Microsoft Visual C++. 6968 # hardcode_libdir_flag_spec is actually meaningless, as there is 6969 # no search path for DLLs. 6970 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6971 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6972 # Tell ltmain to make .lib files, not .a files. 6973 libext=lib 6974 # Tell ltmain to make .dll files, not .so files. 6975 shrext_cmds=".dll" 6976 # FIXME: Setting linknames here is a bad hack. 6977 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6978 # The linker will automatically build a .lib file if we build a DLL. 6979 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6980 # FIXME: Should let the user specify the lib program. 6981 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 6982 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 6983 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6984 ;; 6985 6986 darwin* | rhapsody*) 6987 _LT_DARWIN_LINKER_FEATURES($1) 6988 ;; 6989 6990 dgux*) 6991 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6993 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6994 ;; 6995 6996 freebsd1*) 6997 _LT_TAGVAR(ld_shlibs, $1)=no 6998 ;; 6999 7000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7001 # support. Future versions do this automatically, but an explicit c++rt0.o 7002 # does not break anything, and helps significantly (at the cost of a little 7003 # extra space). 7004 freebsd2.2*) 7005 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7006 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7007 _LT_TAGVAR(hardcode_direct, $1)=yes 7008 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7009 ;; 7010 7011 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7012 freebsd2*) 7013 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7014 _LT_TAGVAR(hardcode_direct, $1)=yes 7015 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7016 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7017 ;; 7018 7019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7020 freebsd* | dragonfly*) 7021 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7022 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7023 _LT_TAGVAR(hardcode_direct, $1)=yes 7024 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7025 ;; 7026 7027 hpux9*) 7028 if test "$GCC" = yes; then 7029 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7030 else 7031 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7032 fi 7033 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7034 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7035 _LT_TAGVAR(hardcode_direct, $1)=yes 7036 7037 # hardcode_minus_L: Not really in the search PATH, 7038 # but as the default location of the library. 7039 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7040 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7041 ;; 7042 7043 hpux10*) 7044 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7045 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7046 else 7047 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7048 fi 7049 if test "$with_gnu_ld" = no; then 7050 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7051 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 7052 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7053 _LT_TAGVAR(hardcode_direct, $1)=yes 7054 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7055 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7056 # hardcode_minus_L: Not really in the search PATH, 7057 # but as the default location of the library. 7058 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7059 fi 7060 ;; 7061 7062 hpux11*) 7063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7064 case $host_cpu in 7065 hppa*64*) 7066 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7067 ;; 7068 ia64*) 7069 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7070 ;; 7071 *) 7072 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7073 ;; 7074 esac 7075 else 7076 case $host_cpu in 7077 hppa*64*) 7078 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7079 ;; 7080 ia64*) 7081 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7082 ;; 7083 *) 7084 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7085 ;; 7086 esac 7087 fi 7088 if test "$with_gnu_ld" = no; then 7089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7090 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7091 7092 case $host_cpu in 7093 hppa*64*|ia64*) 7094 _LT_TAGVAR(hardcode_direct, $1)=no 7095 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7096 ;; 7097 *) 7098 _LT_TAGVAR(hardcode_direct, $1)=yes 7099 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7100 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7101 7102 # hardcode_minus_L: Not really in the search PATH, 7103 # but as the default location of the library. 7104 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7105 ;; 7106 esac 7107 fi 7108 ;; 7109 7110 irix5* | irix6* | nonstopux*) 7111 if test "$GCC" = yes; then 7112 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7113 # Try to use the -exported_symbol ld option, if it does not 7114 # work, assume that -exports_file does not work either and 7115 # implicitly export all symbols. 7116 save_LDFLAGS="$LDFLAGS" 7117 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7118 AC_LINK_IFELSE(int foo(void) {}, 7119 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 7120 ) 7121 LDFLAGS="$save_LDFLAGS" 7122 else 7123 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7124 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 7125 fi 7126 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7128 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7129 _LT_TAGVAR(inherit_rpath, $1)=yes 7130 _LT_TAGVAR(link_all_deplibs, $1)=yes 7131 ;; 7132 7133 netbsd*) 7134 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7135 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7136 else 7137 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7138 fi 7139 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7140 _LT_TAGVAR(hardcode_direct, $1)=yes 7141 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7142 ;; 7143 7144 newsos6) 7145 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7146 _LT_TAGVAR(hardcode_direct, $1)=yes 7147 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7148 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7149 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7150 ;; 7151 7152 *nto* | *qnx*) 7153 ;; 7154 7155 openbsd*) 7156 if test -f /usr/libexec/ld.so; then 7157 _LT_TAGVAR(hardcode_direct, $1)=yes 7158 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7159 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7161 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7162 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7163 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7164 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7165 else 7166 case $host_os in 7167 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 7168 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7169 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7170 ;; 7171 *) 7172 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 7174 ;; 7175 esac 7176 fi 7177 else 7178 _LT_TAGVAR(ld_shlibs, $1)=no 7179 fi 7180 ;; 7181 7182 os2*) 7183 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7184 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7185 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7186 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 7187 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7188 ;; 7189 7190 osf3*) 7191 if test "$GCC" = yes; then 7192 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7193 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7194 else 7195 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7196 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7197 fi 7198 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7199 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7200 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7201 ;; 7202 7203 osf4* | osf5*) # as osf3* with the addition of -msym flag 7204 if test "$GCC" = yes; then 7205 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 7206 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7207 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7208 else 7209 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7210 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7211 _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~ 7212 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 7213 7214 # Both c and cxx compiler support -rpath directly 7215 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7216 fi 7217 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 7218 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7219 ;; 7220 7221 solaris*) 7222 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 7223 if test "$GCC" = yes; then 7224 wlarc='${wl}' 7225 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7226 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7227 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7228 else 7229 case `$CC -V 2>&1` in 7230 *"Compilers 5.0"*) 7231 wlarc='' 7232 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7233 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7234 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7235 ;; 7236 *) 7237 wlarc='${wl}' 7238 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7239 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7240 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7241 ;; 7242 esac 7243 fi 7244 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7245 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7246 case $host_os in 7247 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7248 *) 7249 # The compiler driver will combine and reorder linker options, 7250 # but understands `-z linker_flag'. GCC discards it without `$wl', 7251 # but is careful enough not to reorder. 7252 # Supported since Solaris 2.6 (maybe 2.5.1?) 7253 if test "$GCC" = yes; then 7254 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7255 else 7256 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7257 fi 7258 ;; 7259 esac 7260 _LT_TAGVAR(link_all_deplibs, $1)=yes 7261 ;; 7262 7263 sunos4*) 7264 if test "x$host_vendor" = xsequent; then 7265 # Use $CC to link under sequent, because it throws in some extra .o 7266 # files that make .init and .fini sections work. 7267 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7268 else 7269 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7270 fi 7271 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7272 _LT_TAGVAR(hardcode_direct, $1)=yes 7273 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7274 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7275 ;; 7276 7277 sysv4) 7278 case $host_vendor in 7279 sni) 7280 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7281 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 7282 ;; 7283 siemens) 7284 ## LD is ld it makes a PLAMLIB 7285 ## CC just makes a GrossModule. 7286 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7287 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 7288 _LT_TAGVAR(hardcode_direct, $1)=no 7289 ;; 7290 motorola) 7291 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7292 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 7293 ;; 7294 esac 7295 runpath_var='LD_RUN_PATH' 7296 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7297 ;; 7298 7299 sysv4.3*) 7300 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7301 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7302 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 7303 ;; 7304 7305 sysv4*MP*) 7306 if test -d /usr/nec; then 7307 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7308 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7309 runpath_var=LD_RUN_PATH 7310 hardcode_runpath_var=yes 7311 _LT_TAGVAR(ld_shlibs, $1)=yes 7312 fi 7313 ;; 7314 7315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7316 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7317 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7319 runpath_var='LD_RUN_PATH' 7320 7321 if test "$GCC" = yes; then 7322 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7323 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7324 else 7325 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7326 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7327 fi 7328 ;; 7329 7330 sysv5* | sco3.2v5* | sco5v6*) 7331 # Note: We can NOT use -z defs as we might desire, because we do not 7332 # link with -lc, and that would cause any symbols used from libc to 7333 # always be unresolved, which means just about no library would 7334 # ever link correctly. If we're not using GNU ld we use -z text 7335 # though, which does catch some bad symbols but isn't as heavy-handed 7336 # as -z defs. 7337 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 7338 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 7339 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7340 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7341 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 7342 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7343 _LT_TAGVAR(link_all_deplibs, $1)=yes 7344 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 7345 runpath_var='LD_RUN_PATH' 7346 7347 if test "$GCC" = yes; then 7348 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7349 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7350 else 7351 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7352 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7353 fi 7354 ;; 7355 7356 uts4*) 7357 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7359 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7360 ;; 7361 7362 *) 7363 _LT_TAGVAR(ld_shlibs, $1)=no 7364 ;; 7365 esac 7366 7367 if test x$host_vendor = xsni; then 7368 case $host in 7369 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7370 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 7371 ;; 7372 esac 7373 fi 7374 fi 7375]) 7376AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7377test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7378 7379_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 7380 7381_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 7382_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 7383_LT_DECL([], [extract_expsyms_cmds], [2], 7384 [The commands to extract the exported symbol list from a shared archive]) 7385 7386# 7387# Do we need to explicitly link libc? 7388# 7389case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 7390x|xyes) 7391 # Assume -lc should be added 7392 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7393 7394 if test "$enable_shared" = yes && test "$GCC" = yes; then 7395 case $_LT_TAGVAR(archive_cmds, $1) in 7396 *'~'*) 7397 # FIXME: we may have to deal with multi-command sequences. 7398 ;; 7399 '$CC '*) 7400 # Test whether the compiler implicitly links with -lc since on some 7401 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7402 # to ld, don't add -lc before -lgcc. 7403 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 7404 $RM conftest* 7405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7406 7407 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 7408 soname=conftest 7409 lib=conftest 7410 libobjs=conftest.$ac_objext 7411 deplibs= 7412 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 7413 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 7414 compiler_flags=-v 7415 linker_flags=-v 7416 verstring= 7417 output_objdir=. 7418 libname=conftest 7419 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 7420 _LT_TAGVAR(allow_undefined_flag, $1)= 7421 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 7422 then 7423 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7424 else 7425 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7426 fi 7427 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 7428 else 7429 cat conftest.err 1>&5 7430 fi 7431 $RM conftest* 7432 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 7433 ;; 7434 esac 7435 fi 7436 ;; 7437esac 7438 7439_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 7440 [Whether or not to add -lc for building shared libraries]) 7441_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 7442 [enable_shared_with_static_runtimes], [0], 7443 [Whether or not to disallow shared libs when runtime libs are static]) 7444_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 7445 [Compiler flag to allow reflexive dlopens]) 7446_LT_TAGDECL([], [whole_archive_flag_spec], [1], 7447 [Compiler flag to generate shared objects directly from archives]) 7448_LT_TAGDECL([], [compiler_needs_object], [1], 7449 [Whether the compiler copes with passing no objects directly]) 7450_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 7451 [Create an old-style archive from a shared archive]) 7452_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 7453 [Create a temporary old-style archive to link instead of a shared archive]) 7454_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 7455_LT_TAGDECL([], [archive_expsym_cmds], [2]) 7456_LT_TAGDECL([], [module_cmds], [2], 7457 [Commands used to build a loadable module if different from building 7458 a shared archive.]) 7459_LT_TAGDECL([], [module_expsym_cmds], [2]) 7460_LT_TAGDECL([], [with_gnu_ld], [1], 7461 [Whether we are building with GNU ld or not]) 7462_LT_TAGDECL([], [allow_undefined_flag], [1], 7463 [Flag that allows shared libraries with undefined symbols to be built]) 7464_LT_TAGDECL([], [no_undefined_flag], [1], 7465 [Flag that enforces no undefined symbols]) 7466_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 7467 [Flag to hardcode $libdir into a binary during linking. 7468 This must work even if $libdir does not exist]) 7469_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 7470 [[If ld is used when linking, flag to hardcode $libdir into a binary 7471 during linking. This must work even if $libdir does not exist]]) 7472_LT_TAGDECL([], [hardcode_libdir_separator], [1], 7473 [Whether we need a single "-rpath" flag with a separated argument]) 7474_LT_TAGDECL([], [hardcode_direct], [0], 7475 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 7476 DIR into the resulting binary]) 7477_LT_TAGDECL([], [hardcode_direct_absolute], [0], 7478 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 7479 DIR into the resulting binary and the resulting library dependency is 7480 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 7481 library is relocated]) 7482_LT_TAGDECL([], [hardcode_minus_L], [0], 7483 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 7484 into the resulting binary]) 7485_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 7486 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 7487 into the resulting binary]) 7488_LT_TAGDECL([], [hardcode_automatic], [0], 7489 [Set to "yes" if building a shared library automatically hardcodes DIR 7490 into the library and all subsequent libraries and executables linked 7491 against it]) 7492_LT_TAGDECL([], [inherit_rpath], [0], 7493 [Set to yes if linker adds runtime paths of dependent libraries 7494 to runtime path list]) 7495_LT_TAGDECL([], [link_all_deplibs], [0], 7496 [Whether libtool must link a program against all its dependency libraries]) 7497_LT_TAGDECL([], [fix_srcfile_path], [1], 7498 [Fix the shell variable $srcfile for the compiler]) 7499_LT_TAGDECL([], [always_export_symbols], [0], 7500 [Set to "yes" if exported symbols are required]) 7501_LT_TAGDECL([], [export_symbols_cmds], [2], 7502 [The commands to list exported symbols]) 7503_LT_TAGDECL([], [exclude_expsyms], [1], 7504 [Symbols that should not be listed in the preloaded symbols]) 7505_LT_TAGDECL([], [include_expsyms], [1], 7506 [Symbols that must always be exported]) 7507_LT_TAGDECL([], [prelink_cmds], [2], 7508 [Commands necessary for linking programs (against libraries) with templates]) 7509_LT_TAGDECL([], [file_list_spec], [1], 7510 [Specify filename containing input files]) 7511dnl FIXME: Not yet implemented 7512dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 7513dnl [Compiler flag to generate thread safe objects]) 7514])# _LT_LINKER_SHLIBS 7515 7516 7517# _LT_LANG_C_CONFIG([TAG]) 7518# ------------------------ 7519# Ensure that the configuration variables for a C compiler are suitably 7520# defined. These variables are subsequently used by _LT_CONFIG to write 7521# the compiler configuration to `libtool'. 7522m4_defun([_LT_LANG_C_CONFIG], 7523[m4_require([_LT_DECL_EGREP])dnl 7524lt_save_CC="$CC" 7525AC_LANG_PUSH(C) 7526 7527# Source file extension for C test sources. 7528ac_ext=c 7529 7530# Object file extension for compiled C test sources. 7531objext=o 7532_LT_TAGVAR(objext, $1)=$objext 7533 7534# Code to be used in simple compile tests 7535lt_simple_compile_test_code="int some_variable = 0;" 7536 7537# Code to be used in simple link tests 7538lt_simple_link_test_code='int main(){return(0);}' 7539 7540_LT_TAG_COMPILER 7541# Save the default compiler, since it gets overwritten when the other 7542# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7543compiler_DEFAULT=$CC 7544 7545# save warnings/boilerplate of simple test code 7546_LT_COMPILER_BOILERPLATE 7547_LT_LINKER_BOILERPLATE 7548 7549if test -n "$compiler"; then 7550 _LT_COMPILER_NO_RTTI($1) 7551 _LT_COMPILER_PIC($1) 7552 _LT_COMPILER_C_O($1) 7553 _LT_COMPILER_FILE_LOCKS($1) 7554 _LT_LINKER_SHLIBS($1) 7555 _LT_SYS_DYNAMIC_LINKER($1) 7556 _LT_LINKER_HARDCODE_LIBPATH($1) 7557 LT_SYS_DLOPEN_SELF 7558 _LT_CMD_STRIPLIB 7559 7560 # Report which library types will actually be built 7561 AC_MSG_CHECKING([if libtool supports shared libraries]) 7562 AC_MSG_RESULT([$can_build_shared]) 7563 7564 AC_MSG_CHECKING([whether to build shared libraries]) 7565 test "$can_build_shared" = "no" && enable_shared=no 7566 7567 # On AIX, shared libraries and static libraries use the same namespace, and 7568 # are all built from PIC. 7569 case $host_os in 7570 aix3*) 7571 test "$enable_shared" = yes && enable_static=no 7572 if test -n "$RANLIB"; then 7573 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7574 postinstall_cmds='$RANLIB $lib' 7575 fi 7576 ;; 7577 7578 aix[[4-9]]*) 7579 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7580 test "$enable_shared" = yes && enable_static=no 7581 fi 7582 ;; 7583 esac 7584 AC_MSG_RESULT([$enable_shared]) 7585 7586 AC_MSG_CHECKING([whether to build static libraries]) 7587 # Make sure either enable_shared or enable_static is yes. 7588 test "$enable_shared" = yes || enable_static=yes 7589 AC_MSG_RESULT([$enable_static]) 7590 7591 _LT_CONFIG($1) 7592fi 7593AC_LANG_POP 7594CC="$lt_save_CC" 7595])# _LT_LANG_C_CONFIG 7596 7597 7598# _LT_PROG_CXX 7599# ------------ 7600# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 7601# compiler, we have our own version here. 7602m4_defun([_LT_PROG_CXX], 7603[ 7604pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 7605AC_PROG_CXX 7606if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7607 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7608 (test "X$CXX" != "Xg++"))) ; then 7609 AC_PROG_CXXCPP 7610else 7611 _lt_caught_CXX_error=yes 7612fi 7613popdef([AC_MSG_ERROR]) 7614])# _LT_PROG_CXX 7615 7616dnl aclocal-1.4 backwards compatibility: 7617dnl AC_DEFUN([_LT_PROG_CXX], []) 7618 7619 7620# _LT_LANG_CXX_CONFIG([TAG]) 7621# -------------------------- 7622# Ensure that the configuration variables for a C++ compiler are suitably 7623# defined. These variables are subsequently used by _LT_CONFIG to write 7624# the compiler configuration to `libtool'. 7625m4_defun([_LT_LANG_CXX_CONFIG], 7626[AC_REQUIRE([_LT_PROG_CXX])dnl 7627m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7628m4_require([_LT_DECL_EGREP])dnl 7629 7630AC_LANG_PUSH(C++) 7631_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7632_LT_TAGVAR(allow_undefined_flag, $1)= 7633_LT_TAGVAR(always_export_symbols, $1)=no 7634_LT_TAGVAR(archive_expsym_cmds, $1)= 7635_LT_TAGVAR(compiler_needs_object, $1)=no 7636_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7637_LT_TAGVAR(hardcode_direct, $1)=no 7638_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7639_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7640_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 7641_LT_TAGVAR(hardcode_libdir_separator, $1)= 7642_LT_TAGVAR(hardcode_minus_L, $1)=no 7643_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 7644_LT_TAGVAR(hardcode_automatic, $1)=no 7645_LT_TAGVAR(inherit_rpath, $1)=no 7646_LT_TAGVAR(module_cmds, $1)= 7647_LT_TAGVAR(module_expsym_cmds, $1)= 7648_LT_TAGVAR(link_all_deplibs, $1)=unknown 7649_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7650_LT_TAGVAR(no_undefined_flag, $1)= 7651_LT_TAGVAR(whole_archive_flag_spec, $1)= 7652_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7653 7654# Source file extension for C++ test sources. 7655ac_ext=cpp 7656 7657# Object file extension for compiled C++ test sources. 7658objext=o 7659_LT_TAGVAR(objext, $1)=$objext 7660 7661# No sense in running all these tests if we already determined that 7662# the CXX compiler isn't working. Some variables (like enable_shared) 7663# are currently assumed to apply to all compilers on this platform, 7664# and will be corrupted by setting them based on a non-working compiler. 7665if test "$_lt_caught_CXX_error" != yes; then 7666 # Code to be used in simple compile tests 7667 lt_simple_compile_test_code="int some_variable = 0;" 7668 7669 # Code to be used in simple link tests 7670 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 7671 7672 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7673 _LT_TAG_COMPILER 7674 7675 # save warnings/boilerplate of simple test code 7676 _LT_COMPILER_BOILERPLATE 7677 _LT_LINKER_BOILERPLATE 7678 7679 # Allow CC to be a program name with arguments. 7680 lt_save_CC=$CC 7681 lt_save_LD=$LD 7682 lt_save_GCC=$GCC 7683 GCC=$GXX 7684 lt_save_with_gnu_ld=$with_gnu_ld 7685 lt_save_path_LD=$lt_cv_path_LD 7686 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 7687 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 7688 else 7689 $as_unset lt_cv_prog_gnu_ld 7690 fi 7691 if test -n "${lt_cv_path_LDCXX+set}"; then 7692 lt_cv_path_LD=$lt_cv_path_LDCXX 7693 else 7694 $as_unset lt_cv_path_LD 7695 fi 7696 test -z "${LDCXX+set}" || LD=$LDCXX 7697 CC=${CXX-"c++"} 7698 compiler=$CC 7699 _LT_TAGVAR(compiler, $1)=$CC 7700 _LT_CC_BASENAME([$compiler]) 7701 7702 if test -n "$compiler"; then 7703 # We don't want -fno-exception when compiling C++ code, so set the 7704 # no_builtin_flag separately 7705 if test "$GXX" = yes; then 7706 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 7707 else 7708 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 7709 fi 7710 7711 if test "$GXX" = yes; then 7712 # Set up default GNU C++ configuration 7713 7714 LT_PATH_LD 7715 7716 # Check if GNU C++ uses GNU ld as the underlying linker, since the 7717 # archiving commands below assume that GNU ld is being used. 7718 if test "$with_gnu_ld" = yes; then 7719 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 7720 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7721 7722 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 7723 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 7724 7725 # If archive_cmds runs LD, not CC, wlarc should be empty 7726 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 7727 # investigate it a little bit more. (MM) 7728 wlarc='${wl}' 7729 7730 # ancient GNU ld didn't support --whole-archive et. al. 7731 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 7732 $GREP 'no-whole-archive' > /dev/null; then 7733 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7734 else 7735 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7736 fi 7737 else 7738 with_gnu_ld=no 7739 wlarc= 7740 7741 # A generic and very simple default shared library creation 7742 # command for GNU C++ for the case where it uses the native 7743 # linker, instead of GNU ld. If possible, this setting should 7744 # overridden to take advantage of the native linker features on 7745 # the platform it is being used on. 7746 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7747 fi 7748 7749 # Commands to make compiler produce verbose output that lists 7750 # what "hidden" libraries, object files and flags are used when 7751 # linking a shared library. 7752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 7753 7754 else 7755 GXX=no 7756 with_gnu_ld=no 7757 wlarc= 7758 fi 7759 7760 # PORTME: fill in a description of your system's C++ link characteristics 7761 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 7762 _LT_TAGVAR(ld_shlibs, $1)=yes 7763 case $host_os in 7764 aix3*) 7765 # FIXME: insert proper C++ library support 7766 _LT_TAGVAR(ld_shlibs, $1)=no 7767 ;; 7768 aix[[4-9]]*) 7769 if test "$host_cpu" = ia64; then 7770 # On IA64, the linker does run time linking by default, so we don't 7771 # have to do anything special. 7772 aix_use_runtimelinking=no 7773 exp_sym_flag='-Bexport' 7774 no_entry_flag="" 7775 else 7776 aix_use_runtimelinking=no 7777 7778 # Test if we are trying to use run time linking or normal 7779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7780 # need to do runtime linking. 7781 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 7782 for ld_flag in $LDFLAGS; do 7783 case $ld_flag in 7784 *-brtl*) 7785 aix_use_runtimelinking=yes 7786 break 7787 ;; 7788 esac 7789 done 7790 ;; 7791 esac 7792 7793 exp_sym_flag='-bexport' 7794 no_entry_flag='-bnoentry' 7795 fi 7796 7797 # When large executables or shared objects are built, AIX ld can 7798 # have problems creating the table of contents. If linking a library 7799 # or program results in "error TOC overflow" add -mminimal-toc to 7800 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7801 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7802 7803 _LT_TAGVAR(archive_cmds, $1)='' 7804 _LT_TAGVAR(hardcode_direct, $1)=yes 7805 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7806 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7807 _LT_TAGVAR(link_all_deplibs, $1)=yes 7808 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 7809 7810 if test "$GXX" = yes; then 7811 case $host_os in aix4.[[012]]|aix4.[[012]].*) 7812 # We only want to do this on AIX 4.2 and lower, the check 7813 # below for broken collect2 doesn't work under 4.3+ 7814 collect2name=`${CC} -print-prog-name=collect2` 7815 if test -f "$collect2name" && 7816 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7817 then 7818 # We have reworked collect2 7819 : 7820 else 7821 # We have old collect2 7822 _LT_TAGVAR(hardcode_direct, $1)=unsupported 7823 # It fails to find uninstalled libraries when the uninstalled 7824 # path is not listed in the libpath. Setting hardcode_minus_L 7825 # to unsupported forces relinking 7826 _LT_TAGVAR(hardcode_minus_L, $1)=yes 7827 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7828 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7829 fi 7830 esac 7831 shared_flag='-shared' 7832 if test "$aix_use_runtimelinking" = yes; then 7833 shared_flag="$shared_flag "'${wl}-G' 7834 fi 7835 else 7836 # not using gcc 7837 if test "$host_cpu" = ia64; then 7838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7839 # chokes on -Wl,-G. The following line is correct: 7840 shared_flag='-G' 7841 else 7842 if test "$aix_use_runtimelinking" = yes; then 7843 shared_flag='${wl}-G' 7844 else 7845 shared_flag='${wl}-bM:SRE' 7846 fi 7847 fi 7848 fi 7849 7850 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 7851 # It seems that -bexpall does not export symbols beginning with 7852 # underscore (_), so it is better to generate a list of symbols to 7853 # export. 7854 _LT_TAGVAR(always_export_symbols, $1)=yes 7855 if test "$aix_use_runtimelinking" = yes; then 7856 # Warning - without using the other runtime loading flags (-brtl), 7857 # -berok will link without error, but may produce a broken library. 7858 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 7859 # Determine the default libpath from the value encoded in an empty 7860 # executable. 7861 _LT_SYS_MODULE_PATH_AIX 7862 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7863 7864 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7865 else 7866 if test "$host_cpu" = ia64; then 7867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 7868 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 7869 _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" 7870 else 7871 # Determine the default libpath from the value encoded in an 7872 # empty executable. 7873 _LT_SYS_MODULE_PATH_AIX 7874 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 7875 # Warning - without using the other run time loading flags, 7876 # -berok will link without error, but may produce a broken library. 7877 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 7878 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 7879 # Exported symbols can be pulled into shared objects from archives 7880 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 7881 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 7882 # This is similar to how AIX traditionally builds its shared 7883 # libraries. 7884 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7885 fi 7886 fi 7887 ;; 7888 7889 beos*) 7890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7891 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7892 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7893 # support --undefined. This deserves some investigation. FIXME 7894 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7895 else 7896 _LT_TAGVAR(ld_shlibs, $1)=no 7897 fi 7898 ;; 7899 7900 chorus*) 7901 case $cc_basename in 7902 *) 7903 # FIXME: insert proper C++ library support 7904 _LT_TAGVAR(ld_shlibs, $1)=no 7905 ;; 7906 esac 7907 ;; 7908 7909 cygwin* | mingw* | pw32* | cegcc*) 7910 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 7911 # as there is no search path for DLLs. 7912 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7913 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 7914 _LT_TAGVAR(always_export_symbols, $1)=no 7915 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 7916 7917 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7918 _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' 7919 # If the export-symbols file already is a .def file (1st line 7920 # is EXPORTS), use it as is; otherwise, prepend... 7921 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7922 cp $export_symbols $output_objdir/$soname.def; 7923 else 7924 echo EXPORTS > $output_objdir/$soname.def; 7925 cat $export_symbols >> $output_objdir/$soname.def; 7926 fi~ 7927 $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' 7928 else 7929 _LT_TAGVAR(ld_shlibs, $1)=no 7930 fi 7931 ;; 7932 darwin* | rhapsody*) 7933 _LT_DARWIN_LINKER_FEATURES($1) 7934 ;; 7935 7936 dgux*) 7937 case $cc_basename in 7938 ec++*) 7939 # FIXME: insert proper C++ library support 7940 _LT_TAGVAR(ld_shlibs, $1)=no 7941 ;; 7942 ghcx*) 7943 # Green Hills C++ Compiler 7944 # FIXME: insert proper C++ library support 7945 _LT_TAGVAR(ld_shlibs, $1)=no 7946 ;; 7947 *) 7948 # FIXME: insert proper C++ library support 7949 _LT_TAGVAR(ld_shlibs, $1)=no 7950 ;; 7951 esac 7952 ;; 7953 7954 freebsd[[12]]*) 7955 # C++ shared libraries reported to be fairly broken before 7956 # switch to ELF 7957 _LT_TAGVAR(ld_shlibs, $1)=no 7958 ;; 7959 7960 freebsd-elf*) 7961 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7962 ;; 7963 7964 freebsd* | dragonfly*) 7965 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 7966 # conventions 7967 _LT_TAGVAR(ld_shlibs, $1)=yes 7968 ;; 7969 7970 gnu*) 7971 ;; 7972 7973 hpux9*) 7974 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 7975 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7976 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 7977 _LT_TAGVAR(hardcode_direct, $1)=yes 7978 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 7979 # but as the default 7980 # location of the library. 7981 7982 case $cc_basename in 7983 CC*) 7984 # FIXME: insert proper C++ library support 7985 _LT_TAGVAR(ld_shlibs, $1)=no 7986 ;; 7987 aCC*) 7988 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7989 # Commands to make compiler produce verbose output that lists 7990 # what "hidden" libraries, object files and flags are used when 7991 # linking a shared library. 7992 # 7993 # There doesn't appear to be a way to prevent this compiler from 7994 # explicitly linking system object files so we need to strip them 7995 # from the output so that they don't get included in the library 7996 # dependencies. 7997 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; $ECHO "X$list" | $Xsed' 7998 ;; 7999 *) 8000 if test "$GXX" = yes; then 8001 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8002 else 8003 # FIXME: insert proper C++ library support 8004 _LT_TAGVAR(ld_shlibs, $1)=no 8005 fi 8006 ;; 8007 esac 8008 ;; 8009 8010 hpux10*|hpux11*) 8011 if test $with_gnu_ld = no; then 8012 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 8013 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8014 8015 case $host_cpu in 8016 hppa*64*|ia64*) 8017 ;; 8018 *) 8019 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8020 ;; 8021 esac 8022 fi 8023 case $host_cpu in 8024 hppa*64*|ia64*) 8025 _LT_TAGVAR(hardcode_direct, $1)=no 8026 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8027 ;; 8028 *) 8029 _LT_TAGVAR(hardcode_direct, $1)=yes 8030 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8031 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 8032 # but as the default 8033 # location of the library. 8034 ;; 8035 esac 8036 8037 case $cc_basename in 8038 CC*) 8039 # FIXME: insert proper C++ library support 8040 _LT_TAGVAR(ld_shlibs, $1)=no 8041 ;; 8042 aCC*) 8043 case $host_cpu in 8044 hppa*64*) 8045 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8046 ;; 8047 ia64*) 8048 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8049 ;; 8050 *) 8051 _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' 8052 ;; 8053 esac 8054 # Commands to make compiler produce verbose output that lists 8055 # what "hidden" libraries, object files and flags are used when 8056 # linking a shared library. 8057 # 8058 # There doesn't appear to be a way to prevent this compiler from 8059 # explicitly linking system object files so we need to strip them 8060 # from the output so that they don't get included in the library 8061 # dependencies. 8062 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 8063 ;; 8064 *) 8065 if test "$GXX" = yes; then 8066 if test $with_gnu_ld = no; then 8067 case $host_cpu in 8068 hppa*64*) 8069 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8070 ;; 8071 ia64*) 8072 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8073 ;; 8074 *) 8075 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8076 ;; 8077 esac 8078 fi 8079 else 8080 # FIXME: insert proper C++ library support 8081 _LT_TAGVAR(ld_shlibs, $1)=no 8082 fi 8083 ;; 8084 esac 8085 ;; 8086 8087 interix[[3-9]]*) 8088 _LT_TAGVAR(hardcode_direct, $1)=no 8089 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8090 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8091 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8093 # Instead, shared libraries are loaded at an image base (0x10000000 by 8094 # default) and relocated if they conflict, which is a slow very memory 8095 # consuming and fragmenting process. To avoid this, we pick a random, 8096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8097 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8098 _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' 8099 _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' 8100 ;; 8101 irix5* | irix6*) 8102 case $cc_basename in 8103 CC*) 8104 # SGI C++ 8105 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8106 8107 # Archives containing C++ object files must be created using 8108 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 8109 # necessary to make sure instantiated templates are included 8110 # in the archive. 8111 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 8112 ;; 8113 *) 8114 if test "$GXX" = yes; then 8115 if test "$with_gnu_ld" = no; then 8116 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8117 else 8118 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 8119 fi 8120 fi 8121 _LT_TAGVAR(link_all_deplibs, $1)=yes 8122 ;; 8123 esac 8124 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8125 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8126 _LT_TAGVAR(inherit_rpath, $1)=yes 8127 ;; 8128 8129 linux* | k*bsd*-gnu) 8130 case $cc_basename in 8131 KCC*) 8132 # Kuck and Associates, Inc. (KAI) C++ Compiler 8133 8134 # KCC will only create a shared library if the output file 8135 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8136 # to its proper name (with version) after linking. 8137 _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' 8138 _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' 8139 # Commands to make compiler produce verbose output that lists 8140 # what "hidden" libraries, object files and flags are used when 8141 # linking a shared library. 8142 # 8143 # There doesn't appear to be a way to prevent this compiler from 8144 # explicitly linking system object files so we need to strip them 8145 # from the output so that they don't get included in the library 8146 # dependencies. 8147 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 8148 8149 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8150 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8151 8152 # Archives containing C++ object files must be created using 8153 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 8154 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 8155 ;; 8156 icpc* | ecpc* ) 8157 # Intel C++ 8158 with_gnu_ld=yes 8159 # version 8.0 and above of icpc choke on multiply defined symbols 8160 # if we add $predep_objects and $postdep_objects, however 7.1 and 8161 # earlier do not add the objects themselves. 8162 case `$CC -V 2>&1` in 8163 *"Version 7."*) 8164 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8165 _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' 8166 ;; 8167 *) # Version 8.0 or newer 8168 tmp_idyn= 8169 case $host_cpu in 8170 ia64*) tmp_idyn=' -i_dynamic';; 8171 esac 8172 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8173 _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' 8174 ;; 8175 esac 8176 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8178 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8179 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8180 ;; 8181 pgCC* | pgcpp*) 8182 # Portland Group C++ compiler 8183 case `$CC -V` in 8184 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 8185 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 8186 rm -rf $tpldir~ 8187 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 8188 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 8189 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 8190 rm -rf $tpldir~ 8191 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 8192 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 8193 $RANLIB $oldlib' 8194 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 8195 rm -rf $tpldir~ 8196 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8197 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8198 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 8199 rm -rf $tpldir~ 8200 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 8201 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 8202 ;; 8203 *) # Version 6 will use weak symbols 8204 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 8205 _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' 8206 ;; 8207 esac 8208 8209 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 8210 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8211 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8212 ;; 8213 cxx*) 8214 # Compaq C++ 8215 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8216 _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' 8217 8218 runpath_var=LD_RUN_PATH 8219 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8220 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8221 8222 # Commands to make compiler produce verbose output that lists 8223 # what "hidden" libraries, object files and flags are used when 8224 # linking a shared library. 8225 # 8226 # There doesn't appear to be a way to prevent this compiler from 8227 # explicitly linking system object files so we need to strip them 8228 # from the output so that they don't get included in the library 8229 # dependencies. 8230 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 8231 ;; 8232 xl*) 8233 # IBM XL 8.0 on PPC, with GNU ld 8234 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8235 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 8236 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8237 if test "x$supports_anon_versioning" = xyes; then 8238 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 8239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8240 echo "local: *; };" >> $output_objdir/$libname.ver~ 8241 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8242 fi 8243 ;; 8244 *) 8245 case `$CC -V 2>&1 | sed 5q` in 8246 *Sun\ C*) 8247 # Sun C++ 5.9 8248 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8249 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8250 _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' 8251 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8252 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8253 _LT_TAGVAR(compiler_needs_object, $1)=yes 8254 8255 # Not sure whether something based on 8256 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 8257 # would be better. 8258 output_verbose_link_cmd='echo' 8259 8260 # Archives containing C++ object files must be created using 8261 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8262 # necessary to make sure instantiated templates are included 8263 # in the archive. 8264 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8265 ;; 8266 esac 8267 ;; 8268 esac 8269 ;; 8270 8271 lynxos*) 8272 # FIXME: insert proper C++ library support 8273 _LT_TAGVAR(ld_shlibs, $1)=no 8274 ;; 8275 8276 m88k*) 8277 # FIXME: insert proper C++ library support 8278 _LT_TAGVAR(ld_shlibs, $1)=no 8279 ;; 8280 8281 mvs*) 8282 case $cc_basename in 8283 cxx*) 8284 # FIXME: insert proper C++ library support 8285 _LT_TAGVAR(ld_shlibs, $1)=no 8286 ;; 8287 *) 8288 # FIXME: insert proper C++ library support 8289 _LT_TAGVAR(ld_shlibs, $1)=no 8290 ;; 8291 esac 8292 ;; 8293 8294 netbsd*) 8295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8296 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 8297 wlarc= 8298 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8299 _LT_TAGVAR(hardcode_direct, $1)=yes 8300 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8301 fi 8302 # Workaround some broken pre-1.5 toolchains 8303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 8304 ;; 8305 8306 *nto* | *qnx*) 8307 _LT_TAGVAR(ld_shlibs, $1)=yes 8308 ;; 8309 8310 openbsd2*) 8311 # C++ shared libraries are fairly broken 8312 _LT_TAGVAR(ld_shlibs, $1)=no 8313 ;; 8314 8315 openbsd*) 8316 if test -f /usr/libexec/ld.so; then 8317 _LT_TAGVAR(hardcode_direct, $1)=yes 8318 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8319 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 8320 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8321 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8322 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8323 _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' 8324 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 8325 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8326 fi 8327 output_verbose_link_cmd=echo 8328 else 8329 _LT_TAGVAR(ld_shlibs, $1)=no 8330 fi 8331 ;; 8332 8333 osf3* | osf4* | osf5*) 8334 case $cc_basename in 8335 KCC*) 8336 # Kuck and Associates, Inc. (KAI) C++ Compiler 8337 8338 # KCC will only create a shared library if the output file 8339 # ends with ".so" (or ".sl" for HP-UX), so rename the library 8340 # to its proper name (with version) after linking. 8341 _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' 8342 8343 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 8344 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8345 8346 # Archives containing C++ object files must be created using 8347 # the KAI C++ compiler. 8348 case $host in 8349 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 8350 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 8351 esac 8352 ;; 8353 RCC*) 8354 # Rational C++ 2.4.1 8355 # FIXME: insert proper C++ library support 8356 _LT_TAGVAR(ld_shlibs, $1)=no 8357 ;; 8358 cxx*) 8359 case $host in 8360 osf3*) 8361 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8362 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8363 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8364 ;; 8365 *) 8366 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 8367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8368 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 8369 echo "-hidden">> $lib.exp~ 8370 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 8371 $RM $lib.exp' 8372 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 8373 ;; 8374 esac 8375 8376 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8377 8378 # Commands to make compiler produce verbose output that lists 8379 # what "hidden" libraries, object files and flags are used when 8380 # linking a shared library. 8381 # 8382 # There doesn't appear to be a way to prevent this compiler from 8383 # explicitly linking system object files so we need to strip them 8384 # from the output so that they don't get included in the library 8385 # dependencies. 8386 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 8387 ;; 8388 *) 8389 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8390 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 8391 case $host in 8392 osf3*) 8393 _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8394 ;; 8395 *) 8396 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8397 ;; 8398 esac 8399 8400 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 8401 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 8402 8403 # Commands to make compiler produce verbose output that lists 8404 # what "hidden" libraries, object files and flags are used when 8405 # linking a shared library. 8406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 8407 8408 else 8409 # FIXME: insert proper C++ library support 8410 _LT_TAGVAR(ld_shlibs, $1)=no 8411 fi 8412 ;; 8413 esac 8414 ;; 8415 8416 psos*) 8417 # FIXME: insert proper C++ library support 8418 _LT_TAGVAR(ld_shlibs, $1)=no 8419 ;; 8420 8421 sunos4*) 8422 case $cc_basename in 8423 CC*) 8424 # Sun C++ 4.x 8425 # FIXME: insert proper C++ library support 8426 _LT_TAGVAR(ld_shlibs, $1)=no 8427 ;; 8428 lcc*) 8429 # Lucid 8430 # FIXME: insert proper C++ library support 8431 _LT_TAGVAR(ld_shlibs, $1)=no 8432 ;; 8433 *) 8434 # FIXME: insert proper C++ library support 8435 _LT_TAGVAR(ld_shlibs, $1)=no 8436 ;; 8437 esac 8438 ;; 8439 8440 solaris*) 8441 case $cc_basename in 8442 CC*) 8443 # Sun C++ 4.2, 5.x and Centerline C++ 8444 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 8445 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 8446 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 8447 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8448 $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' 8449 8450 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 8451 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8452 case $host_os in 8453 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8454 *) 8455 # The compiler driver will combine and reorder linker options, 8456 # but understands `-z linker_flag'. 8457 # Supported since Solaris 2.6 (maybe 2.5.1?) 8458 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 8459 ;; 8460 esac 8461 _LT_TAGVAR(link_all_deplibs, $1)=yes 8462 8463 output_verbose_link_cmd='echo' 8464 8465 # Archives containing C++ object files must be created using 8466 # "CC -xar", where "CC" is the Sun C++ compiler. This is 8467 # necessary to make sure instantiated templates are included 8468 # in the archive. 8469 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 8470 ;; 8471 gcx*) 8472 # Green Hills C++ Compiler 8473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8474 8475 # The C++ compiler must be used to create the archive. 8476 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 8477 ;; 8478 *) 8479 # GNU C++ compiler with Solaris linker 8480 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 8481 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 8482 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 8483 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8484 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8485 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8486 8487 # Commands to make compiler produce verbose output that lists 8488 # what "hidden" libraries, object files and flags are used when 8489 # linking a shared library. 8490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 8491 else 8492 # g++ 2.7 appears to require `-G' NOT `-shared' on this 8493 # platform. 8494 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 8495 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8496 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 8497 8498 # Commands to make compiler produce verbose output that lists 8499 # what "hidden" libraries, object files and flags are used when 8500 # linking a shared library. 8501 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 8502 fi 8503 8504 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 8505 case $host_os in 8506 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 8507 *) 8508 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8509 ;; 8510 esac 8511 fi 8512 ;; 8513 esac 8514 ;; 8515 8516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 8517 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8518 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8519 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8520 runpath_var='LD_RUN_PATH' 8521 8522 case $cc_basename in 8523 CC*) 8524 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8525 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8526 ;; 8527 *) 8528 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8529 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8530 ;; 8531 esac 8532 ;; 8533 8534 sysv5* | sco3.2v5* | sco5v6*) 8535 # Note: We can NOT use -z defs as we might desire, because we do not 8536 # link with -lc, and that would cause any symbols used from libc to 8537 # always be unresolved, which means just about no library would 8538 # ever link correctly. If we're not using GNU ld we use -z text 8539 # though, which does catch some bad symbols but isn't as heavy-handed 8540 # as -z defs. 8541 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 8542 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 8543 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8544 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 8545 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 8546 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 8547 _LT_TAGVAR(link_all_deplibs, $1)=yes 8548 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 8549 runpath_var='LD_RUN_PATH' 8550 8551 case $cc_basename in 8552 CC*) 8553 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8554 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8555 ;; 8556 *) 8557 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8558 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8559 ;; 8560 esac 8561 ;; 8562 8563 tandem*) 8564 case $cc_basename in 8565 NCC*) 8566 # NonStop-UX NCC 3.20 8567 # FIXME: insert proper C++ library support 8568 _LT_TAGVAR(ld_shlibs, $1)=no 8569 ;; 8570 *) 8571 # FIXME: insert proper C++ library support 8572 _LT_TAGVAR(ld_shlibs, $1)=no 8573 ;; 8574 esac 8575 ;; 8576 8577 vxworks*) 8578 # FIXME: insert proper C++ library support 8579 _LT_TAGVAR(ld_shlibs, $1)=no 8580 ;; 8581 8582 *) 8583 # FIXME: insert proper C++ library support 8584 _LT_TAGVAR(ld_shlibs, $1)=no 8585 ;; 8586 esac 8587 8588 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 8589 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 8590 8591 _LT_TAGVAR(GCC, $1)="$GXX" 8592 _LT_TAGVAR(LD, $1)="$LD" 8593 8594 ## CAVEAT EMPTOR: 8595 ## There is no encapsulation within the following macros, do not change 8596 ## the running order or otherwise move them around unless you know exactly 8597 ## what you are doing... 8598 _LT_SYS_HIDDEN_LIBDEPS($1) 8599 _LT_COMPILER_PIC($1) 8600 _LT_COMPILER_C_O($1) 8601 _LT_COMPILER_FILE_LOCKS($1) 8602 _LT_LINKER_SHLIBS($1) 8603 _LT_SYS_DYNAMIC_LINKER($1) 8604 _LT_LINKER_HARDCODE_LIBPATH($1) 8605 8606 _LT_CONFIG($1) 8607 fi # test -n "$compiler" 8608 8609 CC=$lt_save_CC 8610 LDCXX=$LD 8611 LD=$lt_save_LD 8612 GCC=$lt_save_GCC 8613 with_gnu_ld=$lt_save_with_gnu_ld 8614 lt_cv_path_LDCXX=$lt_cv_path_LD 8615 lt_cv_path_LD=$lt_save_path_LD 8616 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 8617 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 8618fi # test "$_lt_caught_CXX_error" != yes 8619 8620AC_LANG_POP 8621])# _LT_LANG_CXX_CONFIG 8622 8623 8624# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 8625# --------------------------------- 8626# Figure out "hidden" library dependencies from verbose 8627# compiler output when linking a shared library. 8628# Parse the compiler output and extract the necessary 8629# objects, libraries and library flags. 8630m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 8631[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 8632# Dependencies to place before and after the object being linked: 8633_LT_TAGVAR(predep_objects, $1)= 8634_LT_TAGVAR(postdep_objects, $1)= 8635_LT_TAGVAR(predeps, $1)= 8636_LT_TAGVAR(postdeps, $1)= 8637_LT_TAGVAR(compiler_lib_search_path, $1)= 8638 8639dnl we can't use the lt_simple_compile_test_code here, 8640dnl because it contains code intended for an executable, 8641dnl not a library. It's possible we should let each 8642dnl tag define a new lt_????_link_test_code variable, 8643dnl but it's only used here... 8644m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 8645int a; 8646void foo (void) { a = 0; } 8647_LT_EOF 8648], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 8649class Foo 8650{ 8651public: 8652 Foo (void) { a = 0; } 8653private: 8654 int a; 8655}; 8656_LT_EOF 8657], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 8658 subroutine foo 8659 implicit none 8660 integer*4 a 8661 a=0 8662 return 8663 end 8664_LT_EOF 8665], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 8666 subroutine foo 8667 implicit none 8668 integer a 8669 a=0 8670 return 8671 end 8672_LT_EOF 8673], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 8674public class foo { 8675 private int a; 8676 public void bar (void) { 8677 a = 0; 8678 } 8679}; 8680_LT_EOF 8681]) 8682dnl Parse the compiler output and extract the necessary 8683dnl objects, libraries and library flags. 8684if AC_TRY_EVAL(ac_compile); then 8685 # Parse the compiler output and extract the necessary 8686 # objects, libraries and library flags. 8687 8688 # Sentinel used to keep track of whether or not we are before 8689 # the conftest object file. 8690 pre_test_object_deps_done=no 8691 8692 for p in `eval "$output_verbose_link_cmd"`; do 8693 case $p in 8694 8695 -L* | -R* | -l*) 8696 # Some compilers place space between "-{L,R}" and the path. 8697 # Remove the space. 8698 if test $p = "-L" || 8699 test $p = "-R"; then 8700 prev=$p 8701 continue 8702 else 8703 prev= 8704 fi 8705 8706 if test "$pre_test_object_deps_done" = no; then 8707 case $p in 8708 -L* | -R*) 8709 # Internal compiler library paths should come after those 8710 # provided the user. The postdeps already come after the 8711 # user supplied libs so there is no need to process them. 8712 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 8713 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 8714 else 8715 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 8716 fi 8717 ;; 8718 # The "-l" case would never come before the object being 8719 # linked, so don't bother handling this case. 8720 esac 8721 else 8722 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 8723 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 8724 else 8725 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 8726 fi 8727 fi 8728 ;; 8729 8730 *.$objext) 8731 # This assumes that the test object file only shows up 8732 # once in the compiler output. 8733 if test "$p" = "conftest.$objext"; then 8734 pre_test_object_deps_done=yes 8735 continue 8736 fi 8737 8738 if test "$pre_test_object_deps_done" = no; then 8739 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 8740 _LT_TAGVAR(predep_objects, $1)="$p" 8741 else 8742 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 8743 fi 8744 else 8745 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 8746 _LT_TAGVAR(postdep_objects, $1)="$p" 8747 else 8748 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 8749 fi 8750 fi 8751 ;; 8752 8753 *) ;; # Ignore the rest. 8754 8755 esac 8756 done 8757 8758 # Clean up. 8759 rm -f a.out a.exe 8760else 8761 echo "libtool.m4: error: problem compiling $1 test program" 8762fi 8763 8764$RM -f confest.$objext 8765 8766# PORTME: override above test on systems where it is broken 8767m4_if([$1], [CXX], 8768[case $host_os in 8769interix[[3-9]]*) 8770 # Interix 3.5 installs completely hosed .la files for C++, so rather than 8771 # hack all around it, let's just trust "g++" to DTRT. 8772 _LT_TAGVAR(predep_objects,$1)= 8773 _LT_TAGVAR(postdep_objects,$1)= 8774 _LT_TAGVAR(postdeps,$1)= 8775 ;; 8776 8777linux*) 8778 case `$CC -V 2>&1 | sed 5q` in 8779 *Sun\ C*) 8780 # Sun C++ 5.9 8781 8782 # The more standards-conforming stlport4 library is 8783 # incompatible with the Cstd library. Avoid specifying 8784 # it if it's in CXXFLAGS. Ignore libCrun as 8785 # -library=stlport4 depends on it. 8786 case " $CXX $CXXFLAGS " in 8787 *" -library=stlport4 "*) 8788 solaris_use_stlport4=yes 8789 ;; 8790 esac 8791 8792 if test "$solaris_use_stlport4" != yes; then 8793 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8794 fi 8795 ;; 8796 esac 8797 ;; 8798 8799solaris*) 8800 case $cc_basename in 8801 CC*) 8802 # The more standards-conforming stlport4 library is 8803 # incompatible with the Cstd library. Avoid specifying 8804 # it if it's in CXXFLAGS. Ignore libCrun as 8805 # -library=stlport4 depends on it. 8806 case " $CXX $CXXFLAGS " in 8807 *" -library=stlport4 "*) 8808 solaris_use_stlport4=yes 8809 ;; 8810 esac 8811 8812 # Adding this requires a known-good setup of shared libraries for 8813 # Sun compiler versions before 5.6, else PIC objects from an old 8814 # archive will be linked into the output, leading to subtle bugs. 8815 if test "$solaris_use_stlport4" != yes; then 8816 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 8817 fi 8818 ;; 8819 esac 8820 ;; 8821esac 8822]) 8823 8824case " $_LT_TAGVAR(postdeps, $1) " in 8825*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 8826esac 8827 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 8828if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 8829 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 8830fi 8831_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 8832 [The directories searched by this compiler when creating a shared library]) 8833_LT_TAGDECL([], [predep_objects], [1], 8834 [Dependencies to place before and after the objects being linked to 8835 create a shared library]) 8836_LT_TAGDECL([], [postdep_objects], [1]) 8837_LT_TAGDECL([], [predeps], [1]) 8838_LT_TAGDECL([], [postdeps], [1]) 8839_LT_TAGDECL([], [compiler_lib_search_path], [1], 8840 [The library search path used internally by the compiler when linking 8841 a shared library]) 8842])# _LT_SYS_HIDDEN_LIBDEPS 8843 8844 8845# _LT_PROG_F77 8846# ------------ 8847# Since AC_PROG_F77 is broken, in that it returns the empty string 8848# if there is no fortran compiler, we have our own version here. 8849m4_defun([_LT_PROG_F77], 8850[ 8851pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 8852AC_PROG_F77 8853if test -z "$F77" || test "X$F77" = "Xno"; then 8854 _lt_disable_F77=yes 8855fi 8856popdef([AC_MSG_ERROR]) 8857])# _LT_PROG_F77 8858 8859dnl aclocal-1.4 backwards compatibility: 8860dnl AC_DEFUN([_LT_PROG_F77], []) 8861 8862 8863# _LT_LANG_F77_CONFIG([TAG]) 8864# -------------------------- 8865# Ensure that the configuration variables for a Fortran 77 compiler are 8866# suitably defined. These variables are subsequently used by _LT_CONFIG 8867# to write the compiler configuration to `libtool'. 8868m4_defun([_LT_LANG_F77_CONFIG], 8869[AC_REQUIRE([_LT_PROG_F77])dnl 8870AC_LANG_PUSH(Fortran 77) 8871 8872_LT_TAGVAR(archive_cmds_need_lc, $1)=no 8873_LT_TAGVAR(allow_undefined_flag, $1)= 8874_LT_TAGVAR(always_export_symbols, $1)=no 8875_LT_TAGVAR(archive_expsym_cmds, $1)= 8876_LT_TAGVAR(export_dynamic_flag_spec, $1)= 8877_LT_TAGVAR(hardcode_direct, $1)=no 8878_LT_TAGVAR(hardcode_direct_absolute, $1)=no 8879_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 8880_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 8881_LT_TAGVAR(hardcode_libdir_separator, $1)= 8882_LT_TAGVAR(hardcode_minus_L, $1)=no 8883_LT_TAGVAR(hardcode_automatic, $1)=no 8884_LT_TAGVAR(inherit_rpath, $1)=no 8885_LT_TAGVAR(module_cmds, $1)= 8886_LT_TAGVAR(module_expsym_cmds, $1)= 8887_LT_TAGVAR(link_all_deplibs, $1)=unknown 8888_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8889_LT_TAGVAR(no_undefined_flag, $1)= 8890_LT_TAGVAR(whole_archive_flag_spec, $1)= 8891_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 8892 8893# Source file extension for f77 test sources. 8894ac_ext=f 8895 8896# Object file extension for compiled f77 test sources. 8897objext=o 8898_LT_TAGVAR(objext, $1)=$objext 8899 8900# No sense in running all these tests if we already determined that 8901# the F77 compiler isn't working. Some variables (like enable_shared) 8902# are currently assumed to apply to all compilers on this platform, 8903# and will be corrupted by setting them based on a non-working compiler. 8904if test "$_lt_disable_F77" != yes; then 8905 # Code to be used in simple compile tests 8906 lt_simple_compile_test_code="\ 8907 subroutine t 8908 return 8909 end 8910" 8911 8912 # Code to be used in simple link tests 8913 lt_simple_link_test_code="\ 8914 program t 8915 end 8916" 8917 8918 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8919 _LT_TAG_COMPILER 8920 8921 # save warnings/boilerplate of simple test code 8922 _LT_COMPILER_BOILERPLATE 8923 _LT_LINKER_BOILERPLATE 8924 8925 # Allow CC to be a program name with arguments. 8926 lt_save_CC="$CC" 8927 lt_save_GCC=$GCC 8928 CC=${F77-"f77"} 8929 compiler=$CC 8930 _LT_TAGVAR(compiler, $1)=$CC 8931 _LT_CC_BASENAME([$compiler]) 8932 GCC=$G77 8933 if test -n "$compiler"; then 8934 AC_MSG_CHECKING([if libtool supports shared libraries]) 8935 AC_MSG_RESULT([$can_build_shared]) 8936 8937 AC_MSG_CHECKING([whether to build shared libraries]) 8938 test "$can_build_shared" = "no" && enable_shared=no 8939 8940 # On AIX, shared libraries and static libraries use the same namespace, and 8941 # are all built from PIC. 8942 case $host_os in 8943 aix3*) 8944 test "$enable_shared" = yes && enable_static=no 8945 if test -n "$RANLIB"; then 8946 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8947 postinstall_cmds='$RANLIB $lib' 8948 fi 8949 ;; 8950 aix[[4-9]]*) 8951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8952 test "$enable_shared" = yes && enable_static=no 8953 fi 8954 ;; 8955 esac 8956 AC_MSG_RESULT([$enable_shared]) 8957 8958 AC_MSG_CHECKING([whether to build static libraries]) 8959 # Make sure either enable_shared or enable_static is yes. 8960 test "$enable_shared" = yes || enable_static=yes 8961 AC_MSG_RESULT([$enable_static]) 8962 8963 _LT_TAGVAR(GCC, $1)="$G77" 8964 _LT_TAGVAR(LD, $1)="$LD" 8965 8966 ## CAVEAT EMPTOR: 8967 ## There is no encapsulation within the following macros, do not change 8968 ## the running order or otherwise move them around unless you know exactly 8969 ## what you are doing... 8970 _LT_COMPILER_PIC($1) 8971 _LT_COMPILER_C_O($1) 8972 _LT_COMPILER_FILE_LOCKS($1) 8973 _LT_LINKER_SHLIBS($1) 8974 _LT_SYS_DYNAMIC_LINKER($1) 8975 _LT_LINKER_HARDCODE_LIBPATH($1) 8976 8977 _LT_CONFIG($1) 8978 fi # test -n "$compiler" 8979 8980 GCC=$lt_save_GCC 8981 CC="$lt_save_CC" 8982fi # test "$_lt_disable_F77" != yes 8983 8984AC_LANG_POP 8985])# _LT_LANG_F77_CONFIG 8986 8987 8988# _LT_PROG_FC 8989# ----------- 8990# Since AC_PROG_FC is broken, in that it returns the empty string 8991# if there is no fortran compiler, we have our own version here. 8992m4_defun([_LT_PROG_FC], 8993[ 8994pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 8995AC_PROG_FC 8996if test -z "$FC" || test "X$FC" = "Xno"; then 8997 _lt_disable_FC=yes 8998fi 8999popdef([AC_MSG_ERROR]) 9000])# _LT_PROG_FC 9001 9002dnl aclocal-1.4 backwards compatibility: 9003dnl AC_DEFUN([_LT_PROG_FC], []) 9004 9005 9006# _LT_LANG_FC_CONFIG([TAG]) 9007# ------------------------- 9008# Ensure that the configuration variables for a Fortran compiler are 9009# suitably defined. These variables are subsequently used by _LT_CONFIG 9010# to write the compiler configuration to `libtool'. 9011m4_defun([_LT_LANG_FC_CONFIG], 9012[AC_REQUIRE([_LT_PROG_FC])dnl 9013AC_LANG_PUSH(Fortran) 9014 9015_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9016_LT_TAGVAR(allow_undefined_flag, $1)= 9017_LT_TAGVAR(always_export_symbols, $1)=no 9018_LT_TAGVAR(archive_expsym_cmds, $1)= 9019_LT_TAGVAR(export_dynamic_flag_spec, $1)= 9020_LT_TAGVAR(hardcode_direct, $1)=no 9021_LT_TAGVAR(hardcode_direct_absolute, $1)=no 9022_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 9023_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 9024_LT_TAGVAR(hardcode_libdir_separator, $1)= 9025_LT_TAGVAR(hardcode_minus_L, $1)=no 9026_LT_TAGVAR(hardcode_automatic, $1)=no 9027_LT_TAGVAR(inherit_rpath, $1)=no 9028_LT_TAGVAR(module_cmds, $1)= 9029_LT_TAGVAR(module_expsym_cmds, $1)= 9030_LT_TAGVAR(link_all_deplibs, $1)=unknown 9031_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9032_LT_TAGVAR(no_undefined_flag, $1)= 9033_LT_TAGVAR(whole_archive_flag_spec, $1)= 9034_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 9035 9036# Source file extension for fc test sources. 9037ac_ext=${ac_fc_srcext-f} 9038 9039# Object file extension for compiled fc test sources. 9040objext=o 9041_LT_TAGVAR(objext, $1)=$objext 9042 9043# No sense in running all these tests if we already determined that 9044# the FC compiler isn't working. Some variables (like enable_shared) 9045# are currently assumed to apply to all compilers on this platform, 9046# and will be corrupted by setting them based on a non-working compiler. 9047if test "$_lt_disable_FC" != yes; then 9048 # Code to be used in simple compile tests 9049 lt_simple_compile_test_code="\ 9050 subroutine t 9051 return 9052 end 9053" 9054 9055 # Code to be used in simple link tests 9056 lt_simple_link_test_code="\ 9057 program t 9058 end 9059" 9060 9061 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9062 _LT_TAG_COMPILER 9063 9064 # save warnings/boilerplate of simple test code 9065 _LT_COMPILER_BOILERPLATE 9066 _LT_LINKER_BOILERPLATE 9067 9068 # Allow CC to be a program name with arguments. 9069 lt_save_CC="$CC" 9070 lt_save_GCC=$GCC 9071 CC=${FC-"f95"} 9072 compiler=$CC 9073 GCC=$ac_cv_fc_compiler_gnu 9074 9075 _LT_TAGVAR(compiler, $1)=$CC 9076 _LT_CC_BASENAME([$compiler]) 9077 9078 if test -n "$compiler"; then 9079 AC_MSG_CHECKING([if libtool supports shared libraries]) 9080 AC_MSG_RESULT([$can_build_shared]) 9081 9082 AC_MSG_CHECKING([whether to build shared libraries]) 9083 test "$can_build_shared" = "no" && enable_shared=no 9084 9085 # On AIX, shared libraries and static libraries use the same namespace, and 9086 # are all built from PIC. 9087 case $host_os in 9088 aix3*) 9089 test "$enable_shared" = yes && enable_static=no 9090 if test -n "$RANLIB"; then 9091 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9092 postinstall_cmds='$RANLIB $lib' 9093 fi 9094 ;; 9095 aix[[4-9]]*) 9096 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9097 test "$enable_shared" = yes && enable_static=no 9098 fi 9099 ;; 9100 esac 9101 AC_MSG_RESULT([$enable_shared]) 9102 9103 AC_MSG_CHECKING([whether to build static libraries]) 9104 # Make sure either enable_shared or enable_static is yes. 9105 test "$enable_shared" = yes || enable_static=yes 9106 AC_MSG_RESULT([$enable_static]) 9107 9108 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 9109 _LT_TAGVAR(LD, $1)="$LD" 9110 9111 ## CAVEAT EMPTOR: 9112 ## There is no encapsulation within the following macros, do not change 9113 ## the running order or otherwise move them around unless you know exactly 9114 ## what you are doing... 9115 _LT_SYS_HIDDEN_LIBDEPS($1) 9116 _LT_COMPILER_PIC($1) 9117 _LT_COMPILER_C_O($1) 9118 _LT_COMPILER_FILE_LOCKS($1) 9119 _LT_LINKER_SHLIBS($1) 9120 _LT_SYS_DYNAMIC_LINKER($1) 9121 _LT_LINKER_HARDCODE_LIBPATH($1) 9122 9123 _LT_CONFIG($1) 9124 fi # test -n "$compiler" 9125 9126 GCC=$lt_save_GCC 9127 CC="$lt_save_CC" 9128fi # test "$_lt_disable_FC" != yes 9129 9130AC_LANG_POP 9131])# _LT_LANG_FC_CONFIG 9132 9133 9134# _LT_LANG_GCJ_CONFIG([TAG]) 9135# -------------------------- 9136# Ensure that the configuration variables for the GNU Java Compiler compiler 9137# are suitably defined. These variables are subsequently used by _LT_CONFIG 9138# to write the compiler configuration to `libtool'. 9139m4_defun([_LT_LANG_GCJ_CONFIG], 9140[AC_REQUIRE([LT_PROG_GCJ])dnl 9141AC_LANG_SAVE 9142 9143# Source file extension for Java test sources. 9144ac_ext=java 9145 9146# Object file extension for compiled Java test sources. 9147objext=o 9148_LT_TAGVAR(objext, $1)=$objext 9149 9150# Code to be used in simple compile tests 9151lt_simple_compile_test_code="class foo {}" 9152 9153# Code to be used in simple link tests 9154lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 9155 9156# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9157_LT_TAG_COMPILER 9158 9159# save warnings/boilerplate of simple test code 9160_LT_COMPILER_BOILERPLATE 9161_LT_LINKER_BOILERPLATE 9162 9163# Allow CC to be a program name with arguments. 9164lt_save_CC="$CC" 9165lt_save_GCC=$GCC 9166GCC=yes 9167CC=${GCJ-"gcj"} 9168compiler=$CC 9169_LT_TAGVAR(compiler, $1)=$CC 9170_LT_TAGVAR(LD, $1)="$LD" 9171_LT_CC_BASENAME([$compiler]) 9172 9173# GCJ did not exist at the time GCC didn't implicitly link libc in. 9174_LT_TAGVAR(archive_cmds_need_lc, $1)=no 9175 9176_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 9177 9178if test -n "$compiler"; then 9179 _LT_COMPILER_NO_RTTI($1) 9180 _LT_COMPILER_PIC($1) 9181 _LT_COMPILER_C_O($1) 9182 _LT_COMPILER_FILE_LOCKS($1) 9183 _LT_LINKER_SHLIBS($1) 9184 _LT_LINKER_HARDCODE_LIBPATH($1) 9185 9186 _LT_CONFIG($1) 9187fi 9188 9189AC_LANG_RESTORE 9190 9191GCC=$lt_save_GCC 9192CC="$lt_save_CC" 9193])# _LT_LANG_GCJ_CONFIG 9194 9195 9196# _LT_LANG_RC_CONFIG([TAG]) 9197# ------------------------- 9198# Ensure that the configuration variables for the Windows resource compiler 9199# are suitably defined. These variables are subsequently used by _LT_CONFIG 9200# to write the compiler configuration to `libtool'. 9201m4_defun([_LT_LANG_RC_CONFIG], 9202[AC_REQUIRE([LT_PROG_RC])dnl 9203AC_LANG_SAVE 9204 9205# Source file extension for RC test sources. 9206ac_ext=rc 9207 9208# Object file extension for compiled RC test sources. 9209objext=o 9210_LT_TAGVAR(objext, $1)=$objext 9211 9212# Code to be used in simple compile tests 9213lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 9214 9215# Code to be used in simple link tests 9216lt_simple_link_test_code="$lt_simple_compile_test_code" 9217 9218# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9219_LT_TAG_COMPILER 9220 9221# save warnings/boilerplate of simple test code 9222_LT_COMPILER_BOILERPLATE 9223_LT_LINKER_BOILERPLATE 9224 9225# Allow CC to be a program name with arguments. 9226lt_save_CC="$CC" 9227lt_save_GCC=$GCC 9228GCC= 9229CC=${RC-"windres"} 9230compiler=$CC 9231_LT_TAGVAR(compiler, $1)=$CC 9232_LT_CC_BASENAME([$compiler]) 9233_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 9234 9235if test -n "$compiler"; then 9236 : 9237 _LT_CONFIG($1) 9238fi 9239 9240GCC=$lt_save_GCC 9241AC_LANG_RESTORE 9242CC="$lt_save_CC" 9243])# _LT_LANG_RC_CONFIG 9244 9245 9246# LT_PROG_GCJ 9247# ----------- 9248AC_DEFUN([LT_PROG_GCJ], 9249[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 9250 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 9251 [AC_CHECK_TOOL(GCJ, gcj,) 9252 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 9253 AC_SUBST(GCJFLAGS)])])[]dnl 9254]) 9255 9256# Old name: 9257AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 9258dnl aclocal-1.4 backwards compatibility: 9259dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 9260 9261 9262# LT_PROG_RC 9263# ---------- 9264AC_DEFUN([LT_PROG_RC], 9265[AC_CHECK_TOOL(RC, windres,) 9266]) 9267 9268# Old name: 9269AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 9270dnl aclocal-1.4 backwards compatibility: 9271dnl AC_DEFUN([LT_AC_PROG_RC], []) 9272 9273 9274# _LT_DECL_EGREP 9275# -------------- 9276# If we don't have a new enough Autoconf to choose the best grep 9277# available, choose the one first in the user's PATH. 9278m4_defun([_LT_DECL_EGREP], 9279[AC_REQUIRE([AC_PROG_EGREP])dnl 9280AC_REQUIRE([AC_PROG_FGREP])dnl 9281test -z "$GREP" && GREP=grep 9282_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 9283_LT_DECL([], [EGREP], [1], [An ERE matcher]) 9284_LT_DECL([], [FGREP], [1], [A literal string matcher]) 9285dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 9286AC_SUBST([GREP]) 9287]) 9288 9289 9290# _LT_DECL_OBJDUMP 9291# -------------- 9292# If we don't have a new enough Autoconf to choose the best objdump 9293# available, choose the one first in the user's PATH. 9294m4_defun([_LT_DECL_OBJDUMP], 9295[AC_CHECK_TOOL(OBJDUMP, objdump, false) 9296test -z "$OBJDUMP" && OBJDUMP=objdump 9297_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 9298AC_SUBST([OBJDUMP]) 9299]) 9300 9301 9302# _LT_DECL_SED 9303# ------------ 9304# Check for a fully-functional sed program, that truncates 9305# as few characters as possible. Prefer GNU sed if found. 9306m4_defun([_LT_DECL_SED], 9307[AC_PROG_SED 9308test -z "$SED" && SED=sed 9309Xsed="$SED -e 1s/^X//" 9310_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 9311_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 9312 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 9313])# _LT_DECL_SED 9314 9315m4_ifndef([AC_PROG_SED], [ 9316# NOTE: This macro has been submitted for inclusion into # 9317# GNU Autoconf as AC_PROG_SED. When it is available in # 9318# a released version of Autoconf we should remove this # 9319# macro and use it instead. # 9320 9321m4_defun([AC_PROG_SED], 9322[AC_MSG_CHECKING([for a sed that does not truncate output]) 9323AC_CACHE_VAL(lt_cv_path_SED, 9324[# Loop through the user's path and test for sed and gsed. 9325# Then use that list of sed's as ones to test for truncation. 9326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9327for as_dir in $PATH 9328do 9329 IFS=$as_save_IFS 9330 test -z "$as_dir" && as_dir=. 9331 for lt_ac_prog in sed gsed; do 9332 for ac_exec_ext in '' $ac_executable_extensions; do 9333 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 9334 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 9335 fi 9336 done 9337 done 9338done 9339IFS=$as_save_IFS 9340lt_ac_max=0 9341lt_ac_count=0 9342# Add /usr/xpg4/bin/sed as it is typically found on Solaris 9343# along with /bin/sed that truncates output. 9344for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 9345 test ! -f $lt_ac_sed && continue 9346 cat /dev/null > conftest.in 9347 lt_ac_count=0 9348 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 9349 # Check for GNU sed and select it if it is found. 9350 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 9351 lt_cv_path_SED=$lt_ac_sed 9352 break 9353 fi 9354 while true; do 9355 cat conftest.in conftest.in >conftest.tmp 9356 mv conftest.tmp conftest.in 9357 cp conftest.in conftest.nl 9358 echo >>conftest.nl 9359 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 9360 cmp -s conftest.out conftest.nl || break 9361 # 10000 chars as input seems more than enough 9362 test $lt_ac_count -gt 10 && break 9363 lt_ac_count=`expr $lt_ac_count + 1` 9364 if test $lt_ac_count -gt $lt_ac_max; then 9365 lt_ac_max=$lt_ac_count 9366 lt_cv_path_SED=$lt_ac_sed 9367 fi 9368 done 9369done 9370]) 9371SED=$lt_cv_path_SED 9372AC_SUBST([SED]) 9373AC_MSG_RESULT([$SED]) 9374])#AC_PROG_SED 9375])#m4_ifndef 9376 9377# Old name: 9378AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 9379dnl aclocal-1.4 backwards compatibility: 9380dnl AC_DEFUN([LT_AC_PROG_SED], []) 9381 9382 9383# _LT_CHECK_SHELL_FEATURES 9384# ------------------------ 9385# Find out whether the shell is Bourne or XSI compatible, 9386# or has some other useful features. 9387m4_defun([_LT_CHECK_SHELL_FEATURES], 9388[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 9389# Try some XSI features 9390xsi_shell=no 9391( _lt_dummy="a/b/c" 9392 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 9393 = c,a/b,, \ 9394 && eval 'test $(( 1 + 1 )) -eq 2 \ 9395 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9396 && xsi_shell=yes 9397AC_MSG_RESULT([$xsi_shell]) 9398_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 9399 9400AC_MSG_CHECKING([whether the shell understands "+="]) 9401lt_shell_append=no 9402( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 9403 >/dev/null 2>&1 \ 9404 && lt_shell_append=yes 9405AC_MSG_RESULT([$lt_shell_append]) 9406_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 9407 9408if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9409 lt_unset=unset 9410else 9411 lt_unset=false 9412fi 9413_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 9414 9415# test EBCDIC or ASCII 9416case `echo X|tr X '\101'` in 9417 A) # ASCII based system 9418 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9419 lt_SP2NL='tr \040 \012' 9420 lt_NL2SP='tr \015\012 \040\040' 9421 ;; 9422 *) # EBCDIC based system 9423 lt_SP2NL='tr \100 \n' 9424 lt_NL2SP='tr \r\n \100\100' 9425 ;; 9426esac 9427_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 9428_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 9429])# _LT_CHECK_SHELL_FEATURES 9430 9431 9432# _LT_PROG_XSI_SHELLFNS 9433# --------------------- 9434# Bourne and XSI compatible variants of some useful shell functions. 9435m4_defun([_LT_PROG_XSI_SHELLFNS], 9436[case $xsi_shell in 9437 yes) 9438 cat << \_LT_EOF >> "$cfgfile" 9439 9440# func_dirname file append nondir_replacement 9441# Compute the dirname of FILE. If nonempty, add APPEND to the result, 9442# otherwise set result to NONDIR_REPLACEMENT. 9443func_dirname () 9444{ 9445 case ${1} in 9446 */*) func_dirname_result="${1%/*}${2}" ;; 9447 * ) func_dirname_result="${3}" ;; 9448 esac 9449} 9450 9451# func_basename file 9452func_basename () 9453{ 9454 func_basename_result="${1##*/}" 9455} 9456 9457# func_dirname_and_basename file append nondir_replacement 9458# perform func_basename and func_dirname in a single function 9459# call: 9460# dirname: Compute the dirname of FILE. If nonempty, 9461# add APPEND to the result, otherwise set result 9462# to NONDIR_REPLACEMENT. 9463# value returned in "$func_dirname_result" 9464# basename: Compute filename of FILE. 9465# value retuned in "$func_basename_result" 9466# Implementation must be kept synchronized with func_dirname 9467# and func_basename. For efficiency, we do not delegate to 9468# those functions but instead duplicate the functionality here. 9469func_dirname_and_basename () 9470{ 9471 case ${1} in 9472 */*) func_dirname_result="${1%/*}${2}" ;; 9473 * ) func_dirname_result="${3}" ;; 9474 esac 9475 func_basename_result="${1##*/}" 9476} 9477 9478# func_stripname prefix suffix name 9479# strip PREFIX and SUFFIX off of NAME. 9480# PREFIX and SUFFIX must not contain globbing or regex special 9481# characters, hashes, percent signs, but SUFFIX may contain a leading 9482# dot (in which case that matches only a dot). 9483func_stripname () 9484{ 9485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 9486 # positional parameters, so assign one to ordinary parameter first. 9487 func_stripname_result=${3} 9488 func_stripname_result=${func_stripname_result#"${1}"} 9489 func_stripname_result=${func_stripname_result%"${2}"} 9490} 9491 9492# func_opt_split 9493func_opt_split () 9494{ 9495 func_opt_split_opt=${1%%=*} 9496 func_opt_split_arg=${1#*=} 9497} 9498 9499# func_lo2o object 9500func_lo2o () 9501{ 9502 case ${1} in 9503 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 9504 *) func_lo2o_result=${1} ;; 9505 esac 9506} 9507 9508# func_xform libobj-or-source 9509func_xform () 9510{ 9511 func_xform_result=${1%.*}.lo 9512} 9513 9514# func_arith arithmetic-term... 9515func_arith () 9516{ 9517 func_arith_result=$(( $[*] )) 9518} 9519 9520# func_len string 9521# STRING may not start with a hyphen. 9522func_len () 9523{ 9524 func_len_result=${#1} 9525} 9526 9527_LT_EOF 9528 ;; 9529 *) # Bourne compatible functions. 9530 cat << \_LT_EOF >> "$cfgfile" 9531 9532# func_dirname file append nondir_replacement 9533# Compute the dirname of FILE. If nonempty, add APPEND to the result, 9534# otherwise set result to NONDIR_REPLACEMENT. 9535func_dirname () 9536{ 9537 # Extract subdirectory from the argument. 9538 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 9539 if test "X$func_dirname_result" = "X${1}"; then 9540 func_dirname_result="${3}" 9541 else 9542 func_dirname_result="$func_dirname_result${2}" 9543 fi 9544} 9545 9546# func_basename file 9547func_basename () 9548{ 9549 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 9550} 9551 9552dnl func_dirname_and_basename 9553dnl A portable version of this function is already defined in general.m4sh 9554dnl so there is no need for it here. 9555 9556# func_stripname prefix suffix name 9557# strip PREFIX and SUFFIX off of NAME. 9558# PREFIX and SUFFIX must not contain globbing or regex special 9559# characters, hashes, percent signs, but SUFFIX may contain a leading 9560# dot (in which case that matches only a dot). 9561# func_strip_suffix prefix name 9562func_stripname () 9563{ 9564 case ${2} in 9565 .*) func_stripname_result=`$ECHO "X${3}" \ 9566 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 9567 *) func_stripname_result=`$ECHO "X${3}" \ 9568 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 9569 esac 9570} 9571 9572# sed scripts: 9573my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 9574my_sed_long_arg='1s/^-[[^=]]*=//' 9575 9576# func_opt_split 9577func_opt_split () 9578{ 9579 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 9580 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 9581} 9582 9583# func_lo2o object 9584func_lo2o () 9585{ 9586 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 9587} 9588 9589# func_xform libobj-or-source 9590func_xform () 9591{ 9592 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 9593} 9594 9595# func_arith arithmetic-term... 9596func_arith () 9597{ 9598 func_arith_result=`expr "$[@]"` 9599} 9600 9601# func_len string 9602# STRING may not start with a hyphen. 9603func_len () 9604{ 9605 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 9606} 9607 9608_LT_EOF 9609esac 9610 9611case $lt_shell_append in 9612 yes) 9613 cat << \_LT_EOF >> "$cfgfile" 9614 9615# func_append var value 9616# Append VALUE to the end of shell variable VAR. 9617func_append () 9618{ 9619 eval "$[1]+=\$[2]" 9620} 9621_LT_EOF 9622 ;; 9623 *) 9624 cat << \_LT_EOF >> "$cfgfile" 9625 9626# func_append var value 9627# Append VALUE to the end of shell variable VAR. 9628func_append () 9629{ 9630 eval "$[1]=\$$[1]\$[2]" 9631} 9632 9633_LT_EOF 9634 ;; 9635 esac 9636]) 9637 9638# Helper functions for option handling. -*- Autoconf -*- 9639# 9640# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 9641# Written by Gary V. Vaughan, 2004 9642# 9643# This file is free software; the Free Software Foundation gives 9644# unlimited permission to copy and/or distribute it, with or without 9645# modifications, as long as this notice is preserved. 9646 9647# serial 6 ltoptions.m4 9648 9649# This is to help aclocal find these macros, as it can't see m4_define. 9650AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 9651 9652 9653# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 9654# ------------------------------------------ 9655m4_define([_LT_MANGLE_OPTION], 9656[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 9657 9658 9659# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 9660# --------------------------------------- 9661# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 9662# matching handler defined, dispatch to it. Other OPTION-NAMEs are 9663# saved as a flag. 9664m4_define([_LT_SET_OPTION], 9665[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 9666m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 9667 _LT_MANGLE_DEFUN([$1], [$2]), 9668 [m4_warning([Unknown $1 option `$2'])])[]dnl 9669]) 9670 9671 9672# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 9673# ------------------------------------------------------------ 9674# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 9675m4_define([_LT_IF_OPTION], 9676[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 9677 9678 9679# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 9680# ------------------------------------------------------- 9681# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 9682# are set. 9683m4_define([_LT_UNLESS_OPTIONS], 9684[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9685 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 9686 [m4_define([$0_found])])])[]dnl 9687m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 9688])[]dnl 9689]) 9690 9691 9692# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 9693# ---------------------------------------- 9694# OPTION-LIST is a space-separated list of Libtool options associated 9695# with MACRO-NAME. If any OPTION has a matching handler declared with 9696# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 9697# the unknown option and exit. 9698m4_defun([_LT_SET_OPTIONS], 9699[# Set options 9700m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 9701 [_LT_SET_OPTION([$1], _LT_Option)]) 9702 9703m4_if([$1],[LT_INIT],[ 9704 dnl 9705 dnl Simply set some default values (i.e off) if boolean options were not 9706 dnl specified: 9707 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 9708 ]) 9709 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 9710 ]) 9711 dnl 9712 dnl If no reference was made to various pairs of opposing options, then 9713 dnl we run the default mode handler for the pair. For example, if neither 9714 dnl `shared' nor `disable-shared' was passed, we enable building of shared 9715 dnl archives by default: 9716 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 9717 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 9718 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 9719 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 9720 [_LT_ENABLE_FAST_INSTALL]) 9721 ]) 9722])# _LT_SET_OPTIONS 9723 9724 9725 9726# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 9727# ----------------------------------------- 9728m4_define([_LT_MANGLE_DEFUN], 9729[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 9730 9731 9732# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 9733# ----------------------------------------------- 9734m4_define([LT_OPTION_DEFINE], 9735[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 9736])# LT_OPTION_DEFINE 9737 9738 9739# dlopen 9740# ------ 9741LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 9742]) 9743 9744AU_DEFUN([AC_LIBTOOL_DLOPEN], 9745[_LT_SET_OPTION([LT_INIT], [dlopen]) 9746AC_DIAGNOSE([obsolete], 9747[$0: Remove this warning and the call to _LT_SET_OPTION when you 9748put the `dlopen' option into LT_INIT's first parameter.]) 9749]) 9750 9751dnl aclocal-1.4 backwards compatibility: 9752dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 9753 9754 9755# win32-dll 9756# --------- 9757# Declare package support for building win32 dll's. 9758LT_OPTION_DEFINE([LT_INIT], [win32-dll], 9759[enable_win32_dll=yes 9760 9761case $host in 9762*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 9763 AC_CHECK_TOOL(AS, as, false) 9764 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 9765 AC_CHECK_TOOL(OBJDUMP, objdump, false) 9766 ;; 9767esac 9768 9769test -z "$AS" && AS=as 9770_LT_DECL([], [AS], [0], [Assembler program])dnl 9771 9772test -z "$DLLTOOL" && DLLTOOL=dlltool 9773_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 9774 9775test -z "$OBJDUMP" && OBJDUMP=objdump 9776_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 9777])# win32-dll 9778 9779AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 9780[AC_REQUIRE([AC_CANONICAL_HOST])dnl 9781_LT_SET_OPTION([LT_INIT], [win32-dll]) 9782AC_DIAGNOSE([obsolete], 9783[$0: Remove this warning and the call to _LT_SET_OPTION when you 9784put the `win32-dll' option into LT_INIT's first parameter.]) 9785]) 9786 9787dnl aclocal-1.4 backwards compatibility: 9788dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 9789 9790 9791# _LT_ENABLE_SHARED([DEFAULT]) 9792# ---------------------------- 9793# implement the --enable-shared flag, and supports the `shared' and 9794# `disable-shared' LT_INIT options. 9795# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9796m4_define([_LT_ENABLE_SHARED], 9797[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 9798AC_ARG_ENABLE([shared], 9799 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 9800 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 9801 [p=${PACKAGE-default} 9802 case $enableval in 9803 yes) enable_shared=yes ;; 9804 no) enable_shared=no ;; 9805 *) 9806 enable_shared=no 9807 # Look at the argument we got. We use all the common list separators. 9808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9809 for pkg in $enableval; do 9810 IFS="$lt_save_ifs" 9811 if test "X$pkg" = "X$p"; then 9812 enable_shared=yes 9813 fi 9814 done 9815 IFS="$lt_save_ifs" 9816 ;; 9817 esac], 9818 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 9819 9820 _LT_DECL([build_libtool_libs], [enable_shared], [0], 9821 [Whether or not to build shared libraries]) 9822])# _LT_ENABLE_SHARED 9823 9824LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 9825LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 9826 9827# Old names: 9828AC_DEFUN([AC_ENABLE_SHARED], 9829[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 9830]) 9831 9832AC_DEFUN([AC_DISABLE_SHARED], 9833[_LT_SET_OPTION([LT_INIT], [disable-shared]) 9834]) 9835 9836AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 9837AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 9838 9839dnl aclocal-1.4 backwards compatibility: 9840dnl AC_DEFUN([AM_ENABLE_SHARED], []) 9841dnl AC_DEFUN([AM_DISABLE_SHARED], []) 9842 9843 9844 9845# _LT_ENABLE_STATIC([DEFAULT]) 9846# ---------------------------- 9847# implement the --enable-static flag, and support the `static' and 9848# `disable-static' LT_INIT options. 9849# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9850m4_define([_LT_ENABLE_STATIC], 9851[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 9852AC_ARG_ENABLE([static], 9853 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 9854 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 9855 [p=${PACKAGE-default} 9856 case $enableval in 9857 yes) enable_static=yes ;; 9858 no) enable_static=no ;; 9859 *) 9860 enable_static=no 9861 # Look at the argument we got. We use all the common list separators. 9862 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9863 for pkg in $enableval; do 9864 IFS="$lt_save_ifs" 9865 if test "X$pkg" = "X$p"; then 9866 enable_static=yes 9867 fi 9868 done 9869 IFS="$lt_save_ifs" 9870 ;; 9871 esac], 9872 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 9873 9874 _LT_DECL([build_old_libs], [enable_static], [0], 9875 [Whether or not to build static libraries]) 9876])# _LT_ENABLE_STATIC 9877 9878LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 9879LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 9880 9881# Old names: 9882AC_DEFUN([AC_ENABLE_STATIC], 9883[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 9884]) 9885 9886AC_DEFUN([AC_DISABLE_STATIC], 9887[_LT_SET_OPTION([LT_INIT], [disable-static]) 9888]) 9889 9890AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 9891AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 9892 9893dnl aclocal-1.4 backwards compatibility: 9894dnl AC_DEFUN([AM_ENABLE_STATIC], []) 9895dnl AC_DEFUN([AM_DISABLE_STATIC], []) 9896 9897 9898 9899# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 9900# ---------------------------------- 9901# implement the --enable-fast-install flag, and support the `fast-install' 9902# and `disable-fast-install' LT_INIT options. 9903# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 9904m4_define([_LT_ENABLE_FAST_INSTALL], 9905[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 9906AC_ARG_ENABLE([fast-install], 9907 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 9908 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 9909 [p=${PACKAGE-default} 9910 case $enableval in 9911 yes) enable_fast_install=yes ;; 9912 no) enable_fast_install=no ;; 9913 *) 9914 enable_fast_install=no 9915 # Look at the argument we got. We use all the common list separators. 9916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9917 for pkg in $enableval; do 9918 IFS="$lt_save_ifs" 9919 if test "X$pkg" = "X$p"; then 9920 enable_fast_install=yes 9921 fi 9922 done 9923 IFS="$lt_save_ifs" 9924 ;; 9925 esac], 9926 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 9927 9928_LT_DECL([fast_install], [enable_fast_install], [0], 9929 [Whether or not to optimize for fast installation])dnl 9930])# _LT_ENABLE_FAST_INSTALL 9931 9932LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 9933LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 9934 9935# Old names: 9936AU_DEFUN([AC_ENABLE_FAST_INSTALL], 9937[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 9938AC_DIAGNOSE([obsolete], 9939[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9940the `fast-install' option into LT_INIT's first parameter.]) 9941]) 9942 9943AU_DEFUN([AC_DISABLE_FAST_INSTALL], 9944[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 9945AC_DIAGNOSE([obsolete], 9946[$0: Remove this warning and the call to _LT_SET_OPTION when you put 9947the `disable-fast-install' option into LT_INIT's first parameter.]) 9948]) 9949 9950dnl aclocal-1.4 backwards compatibility: 9951dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 9952dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 9953 9954 9955# _LT_WITH_PIC([MODE]) 9956# -------------------- 9957# implement the --with-pic flag, and support the `pic-only' and `no-pic' 9958# LT_INIT options. 9959# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 9960m4_define([_LT_WITH_PIC], 9961[AC_ARG_WITH([pic], 9962 [AS_HELP_STRING([--with-pic], 9963 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 9964 [pic_mode="$withval"], 9965 [pic_mode=default]) 9966 9967test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 9968 9969_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 9970])# _LT_WITH_PIC 9971 9972LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 9973LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 9974 9975# Old name: 9976AU_DEFUN([AC_LIBTOOL_PICMODE], 9977[_LT_SET_OPTION([LT_INIT], [pic-only]) 9978AC_DIAGNOSE([obsolete], 9979[$0: Remove this warning and the call to _LT_SET_OPTION when you 9980put the `pic-only' option into LT_INIT's first parameter.]) 9981]) 9982 9983dnl aclocal-1.4 backwards compatibility: 9984dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 9985 9986 9987m4_define([_LTDL_MODE], []) 9988LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 9989 [m4_define([_LTDL_MODE], [nonrecursive])]) 9990LT_OPTION_DEFINE([LTDL_INIT], [recursive], 9991 [m4_define([_LTDL_MODE], [recursive])]) 9992LT_OPTION_DEFINE([LTDL_INIT], [subproject], 9993 [m4_define([_LTDL_MODE], [subproject])]) 9994 9995m4_define([_LTDL_TYPE], []) 9996LT_OPTION_DEFINE([LTDL_INIT], [installable], 9997 [m4_define([_LTDL_TYPE], [installable])]) 9998LT_OPTION_DEFINE([LTDL_INIT], [convenience], 9999 [m4_define([_LTDL_TYPE], [convenience])]) 10000 10001# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 10002# 10003# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 10004# Written by Gary V. Vaughan, 2004 10005# 10006# This file is free software; the Free Software Foundation gives 10007# unlimited permission to copy and/or distribute it, with or without 10008# modifications, as long as this notice is preserved. 10009 10010# serial 6 ltsugar.m4 10011 10012# This is to help aclocal find these macros, as it can't see m4_define. 10013AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 10014 10015 10016# lt_join(SEP, ARG1, [ARG2...]) 10017# ----------------------------- 10018# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 10019# associated separator. 10020# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 10021# versions in m4sugar had bugs. 10022m4_define([lt_join], 10023[m4_if([$#], [1], [], 10024 [$#], [2], [[$2]], 10025 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 10026m4_define([_lt_join], 10027[m4_if([$#$2], [2], [], 10028 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 10029 10030 10031# lt_car(LIST) 10032# lt_cdr(LIST) 10033# ------------ 10034# Manipulate m4 lists. 10035# These macros are necessary as long as will still need to support 10036# Autoconf-2.59 which quotes differently. 10037m4_define([lt_car], [[$1]]) 10038m4_define([lt_cdr], 10039[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 10040 [$#], 1, [], 10041 [m4_dquote(m4_shift($@))])]) 10042m4_define([lt_unquote], $1) 10043 10044 10045# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 10046# ------------------------------------------ 10047# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 10048# Note that neither SEPARATOR nor STRING are expanded; they are appended 10049# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 10050# No SEPARATOR is output if MACRO-NAME was previously undefined (different 10051# than defined and empty). 10052# 10053# This macro is needed until we can rely on Autoconf 2.62, since earlier 10054# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 10055m4_define([lt_append], 10056[m4_define([$1], 10057 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 10058 10059 10060 10061# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 10062# ---------------------------------------------------------- 10063# Produce a SEP delimited list of all paired combinations of elements of 10064# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 10065# has the form PREFIXmINFIXSUFFIXn. 10066# Needed until we can rely on m4_combine added in Autoconf 2.62. 10067m4_define([lt_combine], 10068[m4_if(m4_eval([$# > 3]), [1], 10069 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 10070[[m4_foreach([_Lt_prefix], [$2], 10071 [m4_foreach([_Lt_suffix], 10072 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 10073 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 10074 10075 10076# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 10077# ----------------------------------------------------------------------- 10078# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 10079# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 10080m4_define([lt_if_append_uniq], 10081[m4_ifdef([$1], 10082 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 10083 [lt_append([$1], [$2], [$3])$4], 10084 [$5])], 10085 [lt_append([$1], [$2], [$3])$4])]) 10086 10087 10088# lt_dict_add(DICT, KEY, VALUE) 10089# ----------------------------- 10090m4_define([lt_dict_add], 10091[m4_define([$1($2)], [$3])]) 10092 10093 10094# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 10095# -------------------------------------------- 10096m4_define([lt_dict_add_subkey], 10097[m4_define([$1($2:$3)], [$4])]) 10098 10099 10100# lt_dict_fetch(DICT, KEY, [SUBKEY]) 10101# ---------------------------------- 10102m4_define([lt_dict_fetch], 10103[m4_ifval([$3], 10104 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 10105 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 10106 10107 10108# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 10109# ----------------------------------------------------------------- 10110m4_define([lt_if_dict_fetch], 10111[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 10112 [$5], 10113 [$6])]) 10114 10115 10116# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 10117# -------------------------------------------------------------- 10118m4_define([lt_dict_filter], 10119[m4_if([$5], [], [], 10120 [lt_join(m4_quote(m4_default([$4], [[, ]])), 10121 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 10122 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 10123]) 10124 10125# ltversion.m4 -- version numbers -*- Autoconf -*- 10126# 10127# Copyright (C) 2004 Free Software Foundation, Inc. 10128# Written by Scott James Remnant, 2004 10129# 10130# This file is free software; the Free Software Foundation gives 10131# unlimited permission to copy and/or distribute it, with or without 10132# modifications, as long as this notice is preserved. 10133 10134# Generated from ltversion.in. 10135 10136# serial 3017 ltversion.m4 10137# This file is part of GNU Libtool 10138 10139m4_define([LT_PACKAGE_VERSION], [2.2.6b]) 10140m4_define([LT_PACKAGE_REVISION], [1.3017]) 10141 10142AC_DEFUN([LTVERSION_VERSION], 10143[macro_version='2.2.6b' 10144macro_revision='1.3017' 10145_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 10146_LT_DECL(, macro_revision, 0) 10147]) 10148 10149# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 10150# 10151# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 10152# Written by Scott James Remnant, 2004. 10153# 10154# This file is free software; the Free Software Foundation gives 10155# unlimited permission to copy and/or distribute it, with or without 10156# modifications, as long as this notice is preserved. 10157 10158# serial 4 lt~obsolete.m4 10159 10160# These exist entirely to fool aclocal when bootstrapping libtool. 10161# 10162# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 10163# which have later been changed to m4_define as they aren't part of the 10164# exported API, or moved to Autoconf or Automake where they belong. 10165# 10166# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 10167# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 10168# using a macro with the same name in our local m4/libtool.m4 it'll 10169# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 10170# and doesn't know about Autoconf macros at all.) 10171# 10172# So we provide this file, which has a silly filename so it's always 10173# included after everything else. This provides aclocal with the 10174# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 10175# because those macros already exist, or will be overwritten later. 10176# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 10177# 10178# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 10179# Yes, that means every name once taken will need to remain here until 10180# we give up compatibility with versions before 1.7, at which point 10181# we need to keep only those names which we still refer to. 10182 10183# This is to help aclocal find these macros, as it can't see m4_define. 10184AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 10185 10186m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 10187m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 10188m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 10189m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 10190m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 10191m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 10192m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 10193m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 10194m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 10195m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 10196m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 10197m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 10198m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 10199m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 10200m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 10201m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 10202m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 10203m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 10204m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 10205m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 10206m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 10207m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 10208m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 10209m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 10210m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 10211m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 10212m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 10213m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 10214m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 10215m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 10216m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 10217m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 10218m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 10219m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 10220m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 10221m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 10222m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 10223m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 10224m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 10225m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 10226m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 10227m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 10228m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 10229m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 10230m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 10231m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 10232m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 10233m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 10234m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 10235m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 10236m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 10237m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 10238m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 10239m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 10240m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 10241 10242