Changeset 2839 for trunk/psModules/aclocal.m4
- Timestamp:
- Dec 28, 2004, 9:24:22 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/aclocal.m4 (modified) (100 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/aclocal.m4
r2164 r2839 1 # aclocal.m4 generated automatically by aclocal 1.6.3-*- Autoconf -*-2 3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 20021 # generated automatically by aclocal 1.9.2 -*- Autoconf -*- 2 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 4 4 # Free Software Foundation, Inc. 5 5 # This file is free software; the Free Software Foundation … … 11 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12 12 # PARTICULAR PURPOSE. 13 14 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-15 16 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.17 18 # This program is free software; you can redistribute it and/or modify19 # it under the terms of the GNU General Public License as published by20 # the Free Software Foundation; either version 2, or (at your option)21 # any later version.22 23 # This program is distributed in the hope that it will be useful,24 # but WITHOUT ANY WARRANTY; without even the implied warranty of25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the26 # GNU General Public License for more details.27 28 # You should have received a copy of the GNU General Public License29 # along with this program; if not, write to the Free Software30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA31 # 02111-1307, USA.32 33 AC_PREREQ([2.52])34 35 # serial 636 37 # When config.status generates a header, we must update the stamp-h file.38 # This file resides in the same directory as the config header39 # that is generated. We must strip everything past the first ":",40 # and everything past the last "/".41 42 # _AM_DIRNAME(PATH)43 # -----------------44 # Like AS_DIRNAME, only do it during macro expansion45 AC_DEFUN([_AM_DIRNAME],46 [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,47 m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,48 m4_if(regexp([$1], [^/.*]), -1,49 [.],50 patsubst([$1], [^\(/\).*], [\1])),51 patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),52 patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl53 ])# _AM_DIRNAME54 55 56 # The stamp files are numbered to have different names.57 # We could number them on a directory basis, but that's additional58 # complications, let's have a unique counter.59 m4_define([_AM_STAMP_Count], [0])60 61 62 # _AM_STAMP(HEADER)63 # -----------------64 # The name of the stamp file for HEADER.65 AC_DEFUN([_AM_STAMP],66 [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl67 AS_ESCAPE(_AM_DIRNAME(patsubst([$1],68 [:.*])))/stamp-h[]_AM_STAMP_Count])69 70 71 # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)72 # ------------------------------------------------------------73 # We used to try to get a real timestamp in stamp-h. But the fear is that74 # that will cause unnecessary cvs conflicts.75 AC_DEFUN([_AM_CONFIG_HEADER],76 [# Add the stamp file to the list of files AC keeps track of,77 # along with our hook.78 AC_CONFIG_HEADERS([$1],79 [# update the timestamp80 echo 'timestamp for $1' >"_AM_STAMP([$1])"81 $2],82 [$3])83 ])# _AM_CONFIG_HEADER84 85 86 # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)87 # --------------------------------------------------------------88 AC_DEFUN([AM_CONFIG_HEADER],89 [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])90 ])# AM_CONFIG_HEADER91 92 # Do all the work for Automake. -*- Autoconf -*-93 94 # This macro actually does too much some checks are only needed if95 # your package does certain things. But this isn't really a big deal.96 97 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 200298 # Free Software Foundation, Inc.99 100 # This program is free software; you can redistribute it and/or modify101 # it under the terms of the GNU General Public License as published by102 # the Free Software Foundation; either version 2, or (at your option)103 # any later version.104 105 # This program is distributed in the hope that it will be useful,106 # but WITHOUT ANY WARRANTY; without even the implied warranty of107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the108 # GNU General Public License for more details.109 110 # You should have received a copy of the GNU General Public License111 # along with this program; if not, write to the Free Software112 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA113 # 02111-1307, USA.114 115 # serial 8116 117 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be118 # written in clear, in which case automake, when reading aclocal.m4,119 # will think it sees a *use*, and therefore will trigger all it's120 # C support machinery. Also note that it means that autoscan, seeing121 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...122 123 124 AC_PREREQ([2.52])125 126 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow127 # the ones we care about.128 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl129 130 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])131 # AM_INIT_AUTOMAKE([OPTIONS])132 # -----------------------------------------------133 # The call with PACKAGE and VERSION arguments is the old style134 # call (pre autoconf-2.50), which is being phased out. PACKAGE135 # and VERSION should now be passed to AC_INIT and removed from136 # the call to AM_INIT_AUTOMAKE.137 # We support both call styles for the transition. After138 # the next Automake release, Autoconf can make the AC_INIT139 # arguments mandatory, and then we can depend on a new Autoconf140 # release and drop the old call support.141 AC_DEFUN([AM_INIT_AUTOMAKE],142 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl143 AC_REQUIRE([AC_PROG_INSTALL])dnl144 # test to see if srcdir already configured145 if test "`cd $srcdir && pwd`" != "`pwd`" &&146 test -f $srcdir/config.status; then147 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])148 fi149 150 # Define the identity of the package.151 dnl Distinguish between old-style and new-style calls.152 m4_ifval([$2],153 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl154 AC_SUBST([PACKAGE], [$1])dnl155 AC_SUBST([VERSION], [$2])],156 [_AM_SET_OPTIONS([$1])dnl157 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl158 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl159 160 _AM_IF_OPTION([no-define],,161 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])162 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl163 164 # Some tools Automake needs.165 AC_REQUIRE([AM_SANITY_CHECK])dnl166 AC_REQUIRE([AC_ARG_PROGRAM])dnl167 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})168 AM_MISSING_PROG(AUTOCONF, autoconf)169 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})170 AM_MISSING_PROG(AUTOHEADER, autoheader)171 AM_MISSING_PROG(MAKEINFO, makeinfo)172 AM_MISSING_PROG(AMTAR, tar)173 AM_PROG_INSTALL_SH174 AM_PROG_INSTALL_STRIP175 # We need awk for the "check" target. The system "awk" is bad on176 # some platforms.177 AC_REQUIRE([AC_PROG_AWK])dnl178 AC_REQUIRE([AC_PROG_MAKE_SET])dnl179 180 _AM_IF_OPTION([no-dependencies],,181 [AC_PROVIDE_IFELSE([AC_PROG_][CC],182 [_AM_DEPENDENCIES(CC)],183 [define([AC_PROG_][CC],184 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl185 AC_PROVIDE_IFELSE([AC_PROG_][CXX],186 [_AM_DEPENDENCIES(CXX)],187 [define([AC_PROG_][CXX],188 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl189 ])190 ])191 192 # Copyright 2002 Free Software Foundation, Inc.193 194 # This program is free software; you can redistribute it and/or modify195 # it under the terms of the GNU General Public License as published by196 # the Free Software Foundation; either version 2, or (at your option)197 # any later version.198 199 # This program is distributed in the hope that it will be useful,200 # but WITHOUT ANY WARRANTY; without even the implied warranty of201 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the202 # GNU General Public License for more details.203 204 # You should have received a copy of the GNU General Public License205 # along with this program; if not, write to the Free Software206 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA207 208 # AM_AUTOMAKE_VERSION(VERSION)209 # ----------------------------210 # Automake X.Y traces this macro to ensure aclocal.m4 has been211 # generated from the m4 files accompanying Automake X.Y.212 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])213 214 # AM_SET_CURRENT_AUTOMAKE_VERSION215 # -------------------------------216 # Call AM_AUTOMAKE_VERSION so it can be traced.217 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.218 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],219 [AM_AUTOMAKE_VERSION([1.6.3])])220 221 # Helper functions for option handling. -*- Autoconf -*-222 223 # Copyright 2001, 2002 Free Software Foundation, Inc.224 225 # This program is free software; you can redistribute it and/or modify226 # it under the terms of the GNU General Public License as published by227 # the Free Software Foundation; either version 2, or (at your option)228 # any later version.229 230 # This program is distributed in the hope that it will be useful,231 # but WITHOUT ANY WARRANTY; without even the implied warranty of232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the233 # GNU General Public License for more details.234 235 # You should have received a copy of the GNU General Public License236 # along with this program; if not, write to the Free Software237 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA238 # 02111-1307, USA.239 240 # serial 2241 242 # _AM_MANGLE_OPTION(NAME)243 # -----------------------244 AC_DEFUN([_AM_MANGLE_OPTION],245 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])246 247 # _AM_SET_OPTION(NAME)248 # ------------------------------249 # Set option NAME. Presently that only means defining a flag for this option.250 AC_DEFUN([_AM_SET_OPTION],251 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])252 253 # _AM_SET_OPTIONS(OPTIONS)254 # ----------------------------------255 # OPTIONS is a space-separated list of Automake options.256 AC_DEFUN([_AM_SET_OPTIONS],257 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])258 259 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])260 # -------------------------------------------261 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.262 AC_DEFUN([_AM_IF_OPTION],263 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])264 265 #266 # Check to make sure that the build environment is sane.267 #268 269 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.270 271 # This program is free software; you can redistribute it and/or modify272 # it under the terms of the GNU General Public License as published by273 # the Free Software Foundation; either version 2, or (at your option)274 # any later version.275 276 # This program is distributed in the hope that it will be useful,277 # but WITHOUT ANY WARRANTY; without even the implied warranty of278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the279 # GNU General Public License for more details.280 281 # You should have received a copy of the GNU General Public License282 # along with this program; if not, write to the Free Software283 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA284 # 02111-1307, USA.285 286 # serial 3287 288 # AM_SANITY_CHECK289 # ---------------290 AC_DEFUN([AM_SANITY_CHECK],291 [AC_MSG_CHECKING([whether build environment is sane])292 # Just in case293 sleep 1294 echo timestamp > conftest.file295 # Do `set' in a subshell so we don't clobber the current shell's296 # arguments. Must try -L first in case configure is actually a297 # symlink; some systems play weird games with the mod time of symlinks298 # (eg FreeBSD returns the mod time of the symlink's containing299 # directory).300 if (301 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`302 if test "$[*]" = "X"; then303 # -L didn't work.304 set X `ls -t $srcdir/configure conftest.file`305 fi306 rm -f conftest.file307 if test "$[*]" != "X $srcdir/configure conftest.file" \308 && test "$[*]" != "X conftest.file $srcdir/configure"; then309 310 # If neither matched, then we have a broken ls. This can happen311 # if, for instance, CONFIG_SHELL is bash and it inherits a312 # broken ls alias from the environment. This has actually313 # happened. Such a system could not be considered "sane".314 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken315 alias in your environment])316 fi317 318 test "$[2]" = conftest.file319 )320 then321 # Ok.322 :323 else324 AC_MSG_ERROR([newly created file is older than distributed files!325 Check your system clock])326 fi327 AC_MSG_RESULT(yes)])328 329 # -*- Autoconf -*-330 331 332 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.333 334 # This program is free software; you can redistribute it and/or modify335 # it under the terms of the GNU General Public License as published by336 # the Free Software Foundation; either version 2, or (at your option)337 # any later version.338 339 # This program is distributed in the hope that it will be useful,340 # but WITHOUT ANY WARRANTY; without even the implied warranty of341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the342 # GNU General Public License for more details.343 344 # You should have received a copy of the GNU General Public License345 # along with this program; if not, write to the Free Software346 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA347 # 02111-1307, USA.348 349 # serial 3350 351 # AM_MISSING_PROG(NAME, PROGRAM)352 # ------------------------------353 AC_DEFUN([AM_MISSING_PROG],354 [AC_REQUIRE([AM_MISSING_HAS_RUN])355 $1=${$1-"${am_missing_run}$2"}356 AC_SUBST($1)])357 358 359 # AM_MISSING_HAS_RUN360 # ------------------361 # Define MISSING if not defined so far and test if it supports --run.362 # If it does, set am_missing_run to use it, otherwise, to nothing.363 AC_DEFUN([AM_MISSING_HAS_RUN],364 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl365 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"366 # Use eval to expand $SHELL367 if eval "$MISSING --run true"; then368 am_missing_run="$MISSING --run "369 else370 am_missing_run=371 AC_MSG_WARN([`missing' script is too old or missing])372 fi373 ])374 375 # AM_AUX_DIR_EXPAND376 377 # Copyright 2001 Free Software Foundation, Inc.378 379 # This program is free software; you can redistribute it and/or modify380 # it under the terms of the GNU General Public License as published by381 # the Free Software Foundation; either version 2, or (at your option)382 # any later version.383 384 # This program is distributed in the hope that it will be useful,385 # but WITHOUT ANY WARRANTY; without even the implied warranty of386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the387 # GNU General Public License for more details.388 389 # You should have received a copy of the GNU General Public License390 # along with this program; if not, write to the Free Software391 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA392 # 02111-1307, USA.393 394 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets395 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to396 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.397 #398 # Of course, Automake must honor this variable whenever it calls a399 # tool from the auxiliary directory. The problem is that $srcdir (and400 # therefore $ac_aux_dir as well) can be either absolute or relative,401 # depending on how configure is run. This is pretty annoying, since402 # it makes $ac_aux_dir quite unusable in subdirectories: in the top403 # source directory, any form will work fine, but in subdirectories a404 # relative path needs to be adjusted first.405 #406 # $ac_aux_dir/missing407 # fails when called from a subdirectory if $ac_aux_dir is relative408 # $top_srcdir/$ac_aux_dir/missing409 # fails if $ac_aux_dir is absolute,410 # fails when called from a subdirectory in a VPATH build with411 # a relative $ac_aux_dir412 #413 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir414 # are both prefixed by $srcdir. In an in-source build this is usually415 # harmless because $srcdir is `.', but things will broke when you416 # start a VPATH build or use an absolute $srcdir.417 #418 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,419 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:420 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`421 # and then we would define $MISSING as422 # MISSING="\${SHELL} $am_aux_dir/missing"423 # This will work as long as MISSING is not called from configure, because424 # unfortunately $(top_srcdir) has no meaning in configure.425 # However there are other variables, like CC, which are often used in426 # configure, and could therefore not use this "fixed" $ac_aux_dir.427 #428 # Another solution, used here, is to always expand $ac_aux_dir to an429 # absolute PATH. The drawback is that using absolute paths prevent a430 # configured tree to be moved without reconfiguration.431 432 # Rely on autoconf to set up CDPATH properly.433 AC_PREREQ([2.50])434 435 AC_DEFUN([AM_AUX_DIR_EXPAND], [436 # expand $ac_aux_dir to an absolute path437 am_aux_dir=`cd $ac_aux_dir && pwd`438 ])439 440 # AM_PROG_INSTALL_SH441 # ------------------442 # Define $install_sh.443 444 # Copyright 2001 Free Software Foundation, Inc.445 446 # This program is free software; you can redistribute it and/or modify447 # it under the terms of the GNU General Public License as published by448 # the Free Software Foundation; either version 2, or (at your option)449 # any later version.450 451 # This program is distributed in the hope that it will be useful,452 # but WITHOUT ANY WARRANTY; without even the implied warranty of453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the454 # GNU General Public License for more details.455 456 # You should have received a copy of the GNU General Public License457 # along with this program; if not, write to the Free Software458 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA459 # 02111-1307, USA.460 461 AC_DEFUN([AM_PROG_INSTALL_SH],462 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl463 install_sh=${install_sh-"$am_aux_dir/install-sh"}464 AC_SUBST(install_sh)])465 466 # AM_PROG_INSTALL_STRIP467 468 # Copyright 2001 Free Software Foundation, Inc.469 470 # This program is free software; you can redistribute it and/or modify471 # it under the terms of the GNU General Public License as published by472 # the Free Software Foundation; either version 2, or (at your option)473 # any later version.474 475 # This program is distributed in the hope that it will be useful,476 # but WITHOUT ANY WARRANTY; without even the implied warranty of477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the478 # GNU General Public License for more details.479 480 # You should have received a copy of the GNU General Public License481 # along with this program; if not, write to the Free Software482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA483 # 02111-1307, USA.484 485 # One issue with vendor `install' (even GNU) is that you can't486 # specify the program used to strip binaries. This is especially487 # annoying in cross-compiling environments, where the build's strip488 # is unlikely to handle the host's binaries.489 # Fortunately install-sh will honor a STRIPPROG variable, so we490 # always use install-sh in `make install-strip', and initialize491 # STRIPPROG with the value of the STRIP variable (set by the user).492 AC_DEFUN([AM_PROG_INSTALL_STRIP],493 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl494 # Installed binaries are usually stripped using `strip' when the user495 # run `make install-strip'. However `strip' might not be the right496 # tool to use in cross-compilation environments, therefore Automake497 # will honor the `STRIP' environment variable to overrule this program.498 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.499 if test "$cross_compiling" != no; then500 AC_CHECK_TOOL([STRIP], [strip], :)501 fi502 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"503 AC_SUBST([INSTALL_STRIP_PROGRAM])])504 505 # serial 4 -*- Autoconf -*-506 507 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.508 509 # This program is free software; you can redistribute it and/or modify510 # it under the terms of the GNU General Public License as published by511 # the Free Software Foundation; either version 2, or (at your option)512 # any later version.513 514 # This program is distributed in the hope that it will be useful,515 # but WITHOUT ANY WARRANTY; without even the implied warranty of516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the517 # GNU General Public License for more details.518 519 # You should have received a copy of the GNU General Public License520 # along with this program; if not, write to the Free Software521 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA522 # 02111-1307, USA.523 524 525 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be526 # written in clear, in which case automake, when reading aclocal.m4,527 # will think it sees a *use*, and therefore will trigger all it's528 # C support machinery. Also note that it means that autoscan, seeing529 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...530 531 532 533 # _AM_DEPENDENCIES(NAME)534 # ----------------------535 # See how the compiler implements dependency checking.536 # NAME is "CC", "CXX", "GCJ", or "OBJC".537 # We try a few techniques and use that to set a single cache variable.538 #539 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was540 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular541 # dependency, and given that the user is not expected to run this macro,542 # just rely on AC_PROG_CC.543 AC_DEFUN([_AM_DEPENDENCIES],544 [AC_REQUIRE([AM_SET_DEPDIR])dnl545 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl546 AC_REQUIRE([AM_MAKE_INCLUDE])dnl547 AC_REQUIRE([AM_DEP_TRACK])dnl548 549 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],550 [$1], CXX, [depcc="$CXX" am_compiler_list=],551 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],552 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],553 [depcc="$$1" am_compiler_list=])554 555 AC_CACHE_CHECK([dependency style of $depcc],556 [am_cv_$1_dependencies_compiler_type],557 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then558 # We make a subdir and do the tests there. Otherwise we can end up559 # making bogus files that we don't know about and never remove. For560 # instance it was reported that on HP-UX the gcc test will end up561 # making a dummy file named `D' -- because `-MD' means `put the output562 # in D'.563 mkdir conftest.dir564 # Copy depcomp to subdir because otherwise we won't find it if we're565 # using a relative directory.566 cp "$am_depcomp" conftest.dir567 cd conftest.dir568 569 am_cv_$1_dependencies_compiler_type=none570 if test "$am_compiler_list" = ""; then571 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`572 fi573 for depmode in $am_compiler_list; do574 # We need to recreate these files for each test, as the compiler may575 # overwrite some of them when testing with obscure command lines.576 # This happens at least with the AIX C compiler.577 echo '#include "conftest.h"' > conftest.c578 echo 'int i;' > conftest.h579 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf580 581 case $depmode in582 nosideeffect)583 # after this tag, mechanisms are not by side-effect, so they'll584 # only be used when explicitly requested585 if test "x$enable_dependency_tracking" = xyes; then586 continue587 else588 break589 fi590 ;;591 none) break ;;592 esac593 # We check with `-c' and `-o' for the sake of the "dashmstdout"594 # mode. It turns out that the SunPro C++ compiler does not properly595 # handle `-M -o', and we need to detect this.596 if depmode=$depmode \597 source=conftest.c object=conftest.o \598 depfile=conftest.Po tmpdepfile=conftest.TPo \599 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&600 grep conftest.h conftest.Po > /dev/null 2>&1 &&601 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then602 am_cv_$1_dependencies_compiler_type=$depmode603 break604 fi605 done606 607 cd ..608 rm -rf conftest.dir609 else610 am_cv_$1_dependencies_compiler_type=none611 fi612 ])613 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])614 ])615 616 617 # AM_SET_DEPDIR618 # -------------619 # Choose a directory name for dependency files.620 # This macro is AC_REQUIREd in _AM_DEPENDENCIES621 AC_DEFUN([AM_SET_DEPDIR],622 [rm -f .deps 2>/dev/null623 mkdir .deps 2>/dev/null624 if test -d .deps; then625 DEPDIR=.deps626 else627 # MS-DOS does not allow filenames that begin with a dot.628 DEPDIR=_deps629 fi630 rmdir .deps 2>/dev/null631 AC_SUBST([DEPDIR])632 ])633 634 635 # AM_DEP_TRACK636 # ------------637 AC_DEFUN([AM_DEP_TRACK],638 [AC_ARG_ENABLE(dependency-tracking,639 [ --disable-dependency-tracking Speeds up one-time builds640 --enable-dependency-tracking Do not reject slow dependency extractors])641 if test "x$enable_dependency_tracking" != xno; then642 am_depcomp="$ac_aux_dir/depcomp"643 AMDEPBACKSLASH='\'644 fi645 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])646 AC_SUBST([AMDEPBACKSLASH])647 ])648 649 # Generate code to set up dependency tracking. -*- Autoconf -*-650 651 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.652 653 # This program is free software; you can redistribute it and/or modify654 # it under the terms of the GNU General Public License as published by655 # the Free Software Foundation; either version 2, or (at your option)656 # any later version.657 658 # This program is distributed in the hope that it will be useful,659 # but WITHOUT ANY WARRANTY; without even the implied warranty of660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the661 # GNU General Public License for more details.662 663 # You should have received a copy of the GNU General Public License664 # along with this program; if not, write to the Free Software665 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA666 # 02111-1307, USA.667 668 #serial 2669 670 # _AM_OUTPUT_DEPENDENCY_COMMANDS671 # ------------------------------672 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],673 [for mf in $CONFIG_FILES; do674 # Strip MF so we end up with the name of the file.675 mf=`echo "$mf" | sed -e 's/:.*$//'`676 # Check whether this is an Automake generated Makefile or not.677 # We used to match only the files named `Makefile.in', but678 # some people rename them; so instead we look at the file content.679 # Grep'ing the first line is not enough: some people post-process680 # each Makefile.in and add a new line on top of each file to say so.681 # So let's grep whole file.682 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then683 dirpart=`AS_DIRNAME("$mf")`684 else685 continue686 fi687 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue688 # Extract the definition of DEP_FILES from the Makefile without689 # running `make'.690 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`691 test -z "$DEPDIR" && continue692 # When using ansi2knr, U may be empty or an underscore; expand it693 U=`sed -n -e '/^U = / s///p' < "$mf"`694 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"695 # We invoke sed twice because it is the simplest approach to696 # changing $(DEPDIR) to its actual value in the expansion.697 for file in `sed -n -e '698 /^DEP_FILES = .*\\\\$/ {699 s/^DEP_FILES = //700 :loop701 s/\\\\$//702 p703 n704 /\\\\$/ b loop705 p706 }707 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do709 # Make sure the directory exists.710 test -f "$dirpart/$file" && continue711 fdir=`AS_DIRNAME(["$file"])`712 AS_MKDIR_P([$dirpart/$fdir])713 # echo "creating $dirpart/$file"714 echo '# dummy' > "$dirpart/$file"715 done716 done717 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS718 719 720 # AM_OUTPUT_DEPENDENCY_COMMANDS721 # -----------------------------722 # This macro should only be invoked once -- use via AC_REQUIRE.723 #724 # This code is only required when automatic dependency tracking725 # is enabled. FIXME. This creates each `.P' file that we will726 # need in order to bootstrap the dependency handling code.727 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],728 [AC_CONFIG_COMMANDS([depfiles],729 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],730 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])731 ])732 733 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-734 735 # This program is free software; you can redistribute it and/or modify736 # it under the terms of the GNU General Public License as published by737 # the Free Software Foundation; either version 2, or (at your option)738 # any later version.739 740 # This program is distributed in the hope that it will be useful,741 # but WITHOUT ANY WARRANTY; without even the implied warranty of742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the743 # GNU General Public License for more details.744 745 # You should have received a copy of the GNU General Public License746 # along with this program; if not, write to the Free Software747 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA748 # 02111-1307, USA.749 750 # serial 2751 752 # AM_MAKE_INCLUDE()753 # -----------------754 # Check to see how make treats includes.755 AC_DEFUN([AM_MAKE_INCLUDE],756 [am_make=${MAKE-make}757 cat > confinc << 'END'758 doit:759 @echo done760 END761 # If we don't find an include directive, just comment out the code.762 AC_MSG_CHECKING([for style of include used by $am_make])763 am__include="#"764 am__quote=765 _am_result=none766 # First try GNU make style include.767 echo "include confinc" > confmf768 # We grep out `Entering directory' and `Leaving directory'769 # messages which can occur if `w' ends up in MAKEFLAGS.770 # In particular we don't look at `^make:' because GNU make might771 # be invoked under some other name (usually "gmake"), in which772 # case it prints its new name instead of `make'.773 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then774 am__include=include775 am__quote=776 _am_result=GNU777 fi778 # Now try BSD make style include.779 if test "$am__include" = "#"; then780 echo '.include "confinc"' > confmf781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then782 am__include=.include783 am__quote="\""784 _am_result=BSD785 fi786 fi787 AC_SUBST(am__include)788 AC_SUBST(am__quote)789 AC_MSG_RESULT($_am_result)790 rm -f confinc confmf791 ])792 793 # AM_CONDITIONAL -*- Autoconf -*-794 795 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.796 797 # This program is free software; you can redistribute it and/or modify798 # it under the terms of the GNU General Public License as published by799 # the Free Software Foundation; either version 2, or (at your option)800 # any later version.801 802 # This program is distributed in the hope that it will be useful,803 # but WITHOUT ANY WARRANTY; without even the implied warranty of804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the805 # GNU General Public License for more details.806 807 # You should have received a copy of the GNU General Public License808 # along with this program; if not, write to the Free Software809 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA810 # 02111-1307, USA.811 812 # serial 5813 814 AC_PREREQ(2.52)815 816 # AM_CONDITIONAL(NAME, SHELL-CONDITION)817 # -------------------------------------818 # Define a conditional.819 AC_DEFUN([AM_CONDITIONAL],820 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],821 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl822 AC_SUBST([$1_TRUE])823 AC_SUBST([$1_FALSE])824 if $2; then825 $1_TRUE=826 $1_FALSE='#'827 else828 $1_TRUE='#'829 $1_FALSE=830 fi831 AC_CONFIG_COMMANDS_PRE(832 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then833 AC_MSG_ERROR([conditional \"$1\" was never defined.834 Usually this means the macro was only invoked conditionally.])835 fi])])836 13 837 14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- … … 957 134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 958 135 959 # Sed substitution to undo escaping of the cmd sep variable960 unescape_variable_subst='s/\\\(${_S_}\)/\1/g'961 962 136 # Sed substitution to avoid accidental globbing in evaled expressions 963 137 no_glob_subst='s/\*/\\\*/g' … … 1009 183 case $host_os in 1010 184 openbsd*) 1011 old_postinstall_cmds="\$RANLIB -t \$oldlib \${_S_}$old_postinstall_cmds"185 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 1012 186 ;; 1013 187 *) 1014 old_postinstall_cmds="\$RANLIB \$oldlib \${_S_}$old_postinstall_cmds"188 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 1015 189 ;; 1016 190 esac 1017 old_archive_cmds="$old_archive_cmds \${_S_}\$RANLIB \$oldlib"191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1018 192 fi 1019 193 … … 1318 492 LD="${LD-ld} -m elf_i386" 1319 493 ;; 1320 ppc64-*linux* )494 ppc64-*linux*|powerpc64-*linux*) 1321 495 LD="${LD-ld} -m elf32ppclinux" 1322 496 ;; … … 1382 556 # Check whether the given compiler option works 1383 557 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 1384 [AC_CACHE_CHECK([$1], [$2], 558 [AC_REQUIRE([LT_AC_PROG_SED]) 559 AC_CACHE_CHECK([$1], [$2], 1385 560 [$2=no 1386 561 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) … … 1458 633 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1459 634 i=0 1460 test ring="ABCD"635 teststring="ABCD" 1461 636 1462 637 case $build_os in … … 1487 662 ;; 1488 663 664 amigaos*) 665 # On AmigaOS with pdksh, this test takes hours, literally. 666 # So we just punt and use a minimum line length of 8192. 667 lt_cv_sys_max_cmd_len=8192; 668 ;; 669 1489 670 *) 1490 671 # If test is not a shell built-in, we'll probably end up computing a 1491 672 # maximum length that is only half of the actual maximum length, but 1492 673 # we can't tell. 1493 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$test ring" 2>/dev/null` \1494 = "XX$test ring") >/dev/null 2>&1 &&1495 new_result=`expr "X$test ring" : ".*" 2>&1` &&674 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 675 = "XX$teststring") >/dev/null 2>&1 && 676 new_result=`expr "X$teststring" : ".*" 2>&1` && 1496 677 lt_cv_sys_max_cmd_len=$new_result && 1497 678 test $i != 17 # 1/2 MB should be enough 1498 679 do 1499 680 i=`expr $i + 1` 1500 test ring=$testring$testring681 teststring=$teststring$teststring 1501 682 done 1502 test ring=683 teststring= 1503 684 # Add a significant safety factor because C++ compilers can tack on massive 1504 685 # amounts of additional arguments before passing them to the linker. … … 1650 831 ]) 1651 832 ;; 1652 833 1653 834 *) 1654 835 AC_CHECK_FUNC([shl_load], … … 1738 919 mkdir out 1739 920 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1740 1741 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers1742 # that will create temporary files in the current directory regardless of1743 # the output directory. Thus, making CWD read-only will cause this test1744 # to fail, enabling locking or at least warning the user not to do parallel1745 # builds.1746 chmod -w .1747 921 1748 922 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 1769 943 fi 1770 944 chmod u+w . 1771 $rm conftest* out/* 1772 rmdir out 945 $rm conftest* 946 # SGI C++ compiler will create directory out/ii_files/ for 947 # template instantiation 948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 949 $rm out/* && rmdir out 1773 950 cd .. 1774 951 rmdir conftest … … 1876 1053 # FIXME - insert some real tests, host_os isn't really good enough 1877 1054 case $host_os in 1878 NOT-darwin*)1055 darwin*) 1879 1056 if test -n "$STRIP" ; then 1880 1057 striplib="$STRIP -x" … … 1887 1064 AC_MSG_RESULT([no]) 1888 1065 ;; 1889 esac 1066 esac 1890 1067 fi 1891 1068 ])# AC_LIBTOOL_SYS_LIB_STRIP … … 1900 1077 libname_spec='lib$name' 1901 1078 soname_spec= 1902 shrext =".so"1079 shrext_cmds=".so" 1903 1080 postinstall_cmds= 1904 1081 postuninstall_cmds= … … 1988 1165 library_names_spec='$libname.ixlibrary $libname.a' 1989 1166 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1990 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'1167 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' 1991 1168 ;; 1992 1169 … … 2013 1190 cygwin* | mingw* | pw32*) 2014 1191 version_type=windows 2015 shrext =".dll"1192 shrext_cmds=".dll" 2016 1193 need_version=no 2017 1194 need_lib_prefix=no … … 2021 1198 library_names_spec='$libname.dll.a' 2022 1199 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2023 postinstall_cmds='base_file=`basename \${file}` ${_S_}2024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''` ${_S_}2025 dldir=$destdir/`dirname \$dlpath` ${_S_}2026 test -d \$dldir || mkdir -p \$dldir ${_S_}1200 postinstall_cmds='base_file=`basename \${file}`~ 1201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 1202 dldir=$destdir/`dirname \$dlpath`~ 1203 test -d \$dldir || mkdir -p \$dldir~ 2027 1204 $install_prog $dir/$dlname \$dldir/$dlname' 2028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''` ${_S_}2029 dlpath=$dir/\$dldll ${_S_}1205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1206 dlpath=$dir/\$dldll~ 2030 1207 $rm \$dlpath' 2031 1208 shlibpath_overrides_runpath=yes … … 2035 1212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2036 1213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2037 sys_lib_search_path_spec="/ lib /lib/w32api /usr/lib /usr/local/lib"1214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2038 1215 ;; 2039 1216 mingw*) … … 2074 1251 need_lib_prefix=no 2075 1252 need_version=no 2076 # FIXME: Relying on posixy $() will cause problems for 2077 # cross-compilation, but unfortunately the echo tests do not 2078 # yet detect zsh echo's removal of \ escapes. 2079 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext' 1253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2080 1254 soname_spec='${libname}${release}${major}$shared_ext' 2081 1255 shlibpath_overrides_runpath=yes 2082 1256 shlibpath_var=DYLD_LIBRARY_PATH 2083 shrext ='$(test .$module = .yes && echo .so || echo .dylib)'1257 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 2084 1258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 2085 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 2086 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 1259 if test "$GCC" = yes; then 1260 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 1261 else 1262 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 2087 1263 fi 2088 1264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' … … 2100 1276 freebsd1*) 2101 1277 dynamic_linker=no 1278 ;; 1279 1280 kfreebsd*-gnu) 1281 version_type=linux 1282 need_lib_prefix=no 1283 need_version=no 1284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1285 soname_spec='${libname}${release}${shared_ext}$major' 1286 shlibpath_var=LD_LIBRARY_PATH 1287 shlibpath_overrides_runpath=no 1288 hardcode_into_libs=yes 1289 dynamic_linker='GNU ld.so' 2102 1290 ;; 2103 1291 … … 2150 1338 case "$host_cpu" in 2151 1339 ia64*) 2152 shrext ='.so'1340 shrext_cmds='.so' 2153 1341 hardcode_into_libs=yes 2154 1342 dynamic_linker="$host_os dld.so" … … 2165 1353 ;; 2166 1354 hppa*64*) 2167 shrext ='.sl'1355 shrext_cmds='.sl' 2168 1356 hardcode_into_libs=yes 2169 1357 dynamic_linker="$host_os dld.sl" … … 2176 1364 ;; 2177 1365 *) 2178 shrext ='.sl'1366 shrext_cmds='.sl' 2179 1367 dynamic_linker="$host_os dld.sl" 2180 1368 shlibpath_var=SHLIB_PATH … … 2245 1433 hardcode_into_libs=yes 2246 1434 1435 # find out which ABI we are using 1436 libsuff= 1437 case "$host_cpu" in 1438 x86_64*|s390x*|powerpc64*) 1439 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 1440 if AC_TRY_EVAL(ac_compile); then 1441 case `/usr/bin/file conftest.$ac_objext` in 1442 *64-bit*) 1443 libsuff=64 1444 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 1445 ;; 1446 esac 1447 fi 1448 rm -rf conftest* 1449 ;; 1450 esac 1451 1452 # Append ld.so.conf contents to the search path 1453 if test -f /etc/ld.so.conf; then 1454 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` 1455 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 1456 fi 1457 2247 1458 # We used to test for /lib/ld.so.1 and disable shared libraries on 2248 1459 # powerpc, because MkLinux only supported shared libraries with the … … 2252 1463 # assume the GNU/Linux dynamic linker is in use. 2253 1464 dynamic_linker='GNU/Linux ld.so' 1465 ;; 1466 1467 knetbsd*-gnu) 1468 version_type=linux 1469 need_lib_prefix=no 1470 need_version=no 1471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1472 soname_spec='${libname}${release}${shared_ext}$major' 1473 shlibpath_var=LD_LIBRARY_PATH 1474 shlibpath_overrides_runpath=no 1475 hardcode_into_libs=yes 1476 dynamic_linker='GNU ld.so' 2254 1477 ;; 2255 1478 … … 2263 1486 dynamic_linker='NetBSD (a.out) ld.so' 2264 1487 else 2265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${ release}${shared_ext} ${libname}${shared_ext}'1488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2266 1489 soname_spec='${libname}${release}${shared_ext}$major' 2267 1490 dynamic_linker='NetBSD ld.elf_so' … … 2279 1502 ;; 2280 1503 2281 nto-qnx )1504 nto-qnx*) 2282 1505 version_type=linux 2283 1506 need_lib_prefix=no … … 2292 1515 version_type=sunos 2293 1516 need_lib_prefix=no 2294 need_version= no1517 need_version=yes 2295 1518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2296 1519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 2312 1535 os2*) 2313 1536 libname_spec='$name' 2314 shrext =".dll"1537 shrext_cmds=".dll" 2315 1538 need_lib_prefix=no 2316 1539 library_names_spec='$libname${shared_ext} $libname.a' … … 2748 1971 # AC_PROG_LD 2749 1972 # ---------- 2750 # find the path to the GNU or non-GNU linker1973 # find the pathname to the GNU or non-GNU linker 2751 1974 AC_DEFUN([AC_PROG_LD], 2752 1975 [AC_ARG_WITH([gnu-ld], … … 2774 1997 [[\\/]]* | ?:[[\\/]]*) 2775 1998 re_direlt='/[[^/]][[^/]]*/\.\./' 2776 # Canonicalize the path of ld1999 # Canonicalize the pathname of ld 2777 2000 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2778 2001 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do … … 2837 2060 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2838 2061 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 2839 case ` "$LD"-v 2>&1 </dev/null` in2062 case `$LD -v 2>&1 </dev/null` in 2840 2063 *GNU* | *'with BFD'*) 2841 2064 lt_cv_prog_gnu_ld=yes … … 2862 2085 *) reload_flag=" $reload_flag" ;; 2863 2086 esac 2864 reload_cmds='$ CC -nostdlib -Xlinker$reload_flag $archargs-o $output$reload_objs'2087 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2865 2088 ])# AC_PROG_LD_RELOAD_FLAG 2866 2089 … … 2902 2125 ;; 2903 2126 2904 cygwin* | mingw* | pw32*)2905 # win32_libid is a shell function defined in ltmain.sh2127 cygwin*) 2128 # func_win32_libid is a shell function defined in ltmain.sh 2906 2129 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2907 lt_cv_file_magic_cmd='win32_libid' 2130 lt_cv_file_magic_cmd='func_win32_libid' 2131 ;; 2132 2133 mingw* | pw32*) 2134 # Base MSYS/MinGW do not provide the 'file' command needed by 2135 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2136 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2137 lt_cv_file_magic_cmd='$OBJDUMP -f' 2908 2138 ;; 2909 2139 2910 2140 darwin* | rhapsody*) 2911 # this will be overwritten by pass_all, but leave it in just in case2912 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'2913 lt_cv_file_magic_cmd='/usr/bin/file -L'2914 case "$host_os" in2915 rhapsody* | darwin1.[[012]])2916 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`2917 ;;2918 *) # Darwin 1.3 on2919 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'2920 ;;2921 esac2922 2141 lt_cv_deplibs_check_method=pass_all 2923 2142 ;; 2924 2143 2925 freebsd* )2144 freebsd* | kfreebsd*-gnu) 2926 2145 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2927 2146 case $host_cpu in … … 2962 2181 2963 2182 irix5* | irix6* | nonstopux*) 2964 case $host_os in 2965 irix5* | nonstopux*) 2966 # this will be overridden with pass_all, but let us keep it just in case 2967 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 2968 ;; 2969 *) 2970 case $LD in 2971 *-32|*"-32 ") libmagic=32-bit;; 2972 *-n32|*"-n32 ") libmagic=N32;; 2973 *-64|*"-64 ") libmagic=64-bit;; 2974 *) libmagic=never-match;; 2975 esac 2976 # this will be overridden with pass_all, but let us keep it just in case 2977 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" 2978 ;; 2183 case $LD in 2184 *-32|*"-32 ") libmagic=32-bit;; 2185 *-n32|*"-n32 ") libmagic=N32;; 2186 *-64|*"-64 ") libmagic=64-bit;; 2187 *) libmagic=never-match;; 2979 2188 esac 2980 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`2981 2189 lt_cv_deplibs_check_method=pass_all 2982 2190 ;; … … 2985 2193 linux*) 2986 2194 case $host_cpu in 2987 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)2195 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) 2988 2196 lt_cv_deplibs_check_method=pass_all ;; 2989 2197 *) 2990 2198 # glibc up to 2.1.1 does not perform some relocations on ARM 2199 # this will be overridden with pass_all, but let us keep it just in case 2991 2200 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; 2992 2201 esac 2993 2202 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2203 lt_cv_deplibs_check_method=pass_all 2994 2204 ;; 2995 2205 … … 3008 2218 ;; 3009 2219 3010 nto-qnx )2220 nto-qnx*) 3011 2221 lt_cv_deplibs_check_method=unknown 3012 2222 ;; … … 3023 2233 3024 2234 osf3* | osf4* | osf5*) 3025 # this will be overridden with pass_all, but let us keep it just in case3026 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'3027 lt_cv_file_magic_test_file=/shlib/libc.so3028 2235 lt_cv_deplibs_check_method=pass_all 3029 2236 ;; … … 3035 2242 solaris*) 3036 2243 lt_cv_deplibs_check_method=pass_all 3037 lt_cv_file_magic_test_file=/lib/libc.so3038 2244 ;; 3039 2245 … … 3075 2281 # AC_PROG_NM 3076 2282 # ---------- 3077 # find the path to a BSD-compatible name lister2283 # find the pathname to a BSD-compatible name lister 3078 2284 AC_DEFUN([AC_PROG_NM], 3079 2285 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, … … 3213 2419 [AC_REQUIRE([AC_PROG_CXX]) 3214 2420 AC_REQUIRE([AC_PROG_CXXCPP]) 3215 _LT_AC_SHELL_INIT([tagnames= `echo "$tagnames,CXX" | sed 's/^,//'`])2421 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 3216 2422 ])# _LT_AC_LANG_CXX 3217 2423 … … 3229 2435 AC_DEFUN([_LT_AC_LANG_F77], 3230 2436 [AC_REQUIRE([AC_PROG_F77]) 3231 _LT_AC_SHELL_INIT([tagnames= `echo "$tagnames,F77" | sed 's/^,//'`])2437 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 3232 2438 ])# _LT_AC_LANG_F77 3233 2439 … … 3250 2456 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 3251 2457 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 3252 _LT_AC_SHELL_INIT([tagnames= `echo "$tagnames,GCJ" | sed 's/^,//'`])2458 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 3253 2459 ])# _LT_AC_LANG_GCJ 3254 2460 … … 3259 2465 AC_DEFUN([AC_LIBTOOL_RC], 3260 2466 [AC_REQUIRE([LT_AC_PROG_RC]) 3261 _LT_AC_SHELL_INIT([tagnames= `echo "$tagnames,RC" | sed 's/^,//'`])2467 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 3262 2468 ])# AC_LIBTOOL_RC 3263 2469 … … 3301 2507 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 3302 2508 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 3303 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$ ]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then :2509 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : 3304 2510 else 3305 2511 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) … … 3324 2530 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3325 2531 AC_LIBTOOL_PROG_LD_SHLIBS($1) 2532 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3326 2533 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3327 2534 AC_LIBTOOL_SYS_LIB_STRIP 3328 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3329 2535 AC_LIBTOOL_DLOPEN_SELF($1) 3330 2536 … … 3342 2548 test "$enable_shared" = yes && enable_static=no 3343 2549 if test -n "$RANLIB"; then 3344 archive_cmds="$archive_cmds \${_S_}\$RANLIB \$lib"2550 archive_cmds="$archive_cmds~\$RANLIB \$lib" 3345 2551 postinstall_cmds='$RANLIB $lib' 3346 2552 fi 3347 2553 ;; 3348 2554 3349 aix4* )2555 aix4* | aix5*) 3350 2556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 3351 2557 test "$enable_shared" = yes && enable_static=no … … 3353 2559 ;; 3354 2560 darwin* | rhapsody*) 3355 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then2561 if test "$GCC" = yes; then 3356 2562 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3357 2563 case "$host_os" in … … 3359 2565 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 3360 2566 ;; 3361 darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0 3362 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3363 ;; 3364 *) # Darwin 7.0 on 3365 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in 3366 10.[[012]]) 3367 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3368 ;; 3369 *) # 10.3 on 3370 if test -z ${LD_TWOLEVEL_NAMESPACE}; then 3371 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3372 else 3373 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3374 fi 3375 ;; 3376 esac 2567 *) # Darwin 1.3 on 2568 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2569 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2570 else 2571 case ${MACOSX_DEPLOYMENT_TARGET} in 2572 10.[[012]]) 2573 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2574 ;; 2575 10.*) 2576 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2577 ;; 2578 esac 2579 fi 3377 2580 ;; 3378 2581 esac 3379 # FIXME: Relying on posixy $() will cause problems for 3380 # cross-compilation, but unfortunately the echo tests do not 3381 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 3382 # `"' quotes if we put them in here... so don't! 3383 output_verbose_link_cmd='echo' 3384 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 3385 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 2582 output_verbose_link_cmd='echo' 2583 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 2584 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3386 2585 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 3387 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'3388 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'2586 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2587 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3389 2588 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3390 2589 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes … … 3392 2591 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 3393 2592 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3394 fi 3395 ;; 2593 else 2594 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2595 fi 2596 ;; 3396 2597 esac 3397 2598 AC_MSG_RESULT([$enable_shared]) … … 3528 2729 # overridden to take advantage of the native linker features on 3529 2730 # the platform it is being used on. 3530 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'2731 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3531 2732 fi 3532 2733 … … 3657 2858 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 3658 2859 # This is similar to how AIX traditionally builds it's shared libraries. 3659 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag} \${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'2860 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 3660 2861 fi 3661 2862 fi … … 3687 2888 echo EXPORTS > $output_objdir/$soname.def; 3688 2889 cat $export_symbols >> $output_objdir/$soname.def; 3689 fi ${_S_}2890 fi~ 3690 2891 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3691 2892 else … … 3695 2896 3696 2897 darwin* | rhapsody*) 3697 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then2898 if test "$GXX" = yes; then 3698 2899 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3699 2900 case "$host_os" in … … 3701 2902 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 3702 2903 ;; 3703 darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0 3704 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3705 ;; 3706 *) # Darwin 7.0 on 3707 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in 3708 10.[[012]]) 3709 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3710 ;; 3711 *) # 10.3 on 3712 if test -z ${LD_TWOLEVEL_NAMESPACE}; then 3713 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3714 else 3715 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3716 fi 3717 ;; 3718 esac 2904 *) # Darwin 1.3 on 2905 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2906 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2907 else 2908 case ${MACOSX_DEPLOYMENT_TARGET} in 2909 10.[[012]]) 2910 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2911 ;; 2912 10.*) 2913 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2914 ;; 2915 esac 2916 fi 3719 2917 ;; 3720 2918 esac 3721 lt_int_apple_cc_single_mod=no3722 output_verbose_link_cmd='echo'3723 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then3724 lt_int_apple_cc_single_mod=yes3725 fi3726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then3727 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'3728 else3729 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs$allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'3730 fi3731 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib$libobjs $deplibs$compiler_flags'2919 lt_int_apple_cc_single_mod=no 2920 output_verbose_link_cmd='echo' 2921 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 2922 lt_int_apple_cc_single_mod=yes 2923 fi 2924 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2925 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2926 else 2927 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' 2928 fi 2929 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3732 2930 3733 2931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 3734 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then3735 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'3736 else3737 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'3738 fi3739 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'2932 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2933 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2934 else 2935 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2936 fi 2937 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3740 2938 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3741 2939 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes … … 3743 2941 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 3744 2942 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3745 fi 2943 else 2944 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2945 fi 3746 2946 ;; 3747 2947 … … 3770 2970 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3771 2971 ;; 3772 freebsd* )2972 freebsd* | kfreebsd*-gnu) 3773 2973 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3774 2974 # conventions … … 3792 2992 ;; 3793 2993 aCC) 3794 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname ${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'2994 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3795 2995 # Commands to make compiler produce verbose output that lists 3796 2996 # what "hidden" libraries, object files and flags are used when … … 3801 3001 # from the output so that they don't get included in the library 3802 3002 # dependencies. 3803 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 $list'3003 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3804 3004 ;; 3805 3005 *) 3806 3006 if test "$GXX" = yes; then 3807 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname ${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'3007 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3808 3008 else 3809 3009 # FIXME: insert proper C++ library support … … 4094 3294 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4095 3295 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 4096 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done ${_S_}4097 echo "-hidden">> $lib.exp ${_S_}4098 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib ${_S_}3296 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3297 echo "-hidden">> $lib.exp~ 3298 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 4099 3299 $rm $lib.exp' 4100 3300 … … 4173 3373 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 4174 3374 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4175 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}4176 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${_S_}$rm $lib.exp'3375 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3376 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4177 3377 4178 3378 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 4219 3419 if $CC --version | grep -v '^2\.7' > /dev/null; then 4220 3420 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4221 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}4222 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${_S_}$rm $lib.exp'3421 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3422 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4223 3423 4224 3424 # Commands to make compiler produce verbose output that lists … … 4230 3430 # platform. 4231 3431 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4232 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}4233 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${_S_}$rm $lib.exp'3432 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3433 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4234 3434 4235 3435 # Commands to make compiler produce verbose output that lists … … 4280 3480 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4281 3481 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3482 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4282 3483 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4283 3484 AC_LIBTOOL_SYS_LIB_STRIP 4284 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)4285 3485 AC_LIBTOOL_DLOPEN_SELF($1) 4286 3486 … … 4500 3700 test "$enable_shared" = yes && enable_static=no 4501 3701 if test -n "$RANLIB"; then 4502 archive_cmds="$archive_cmds \${_S_}\$RANLIB \$lib"3702 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4503 3703 postinstall_cmds='$RANLIB $lib' 4504 3704 fi 4505 3705 ;; 4506 aix4* )3706 aix4* | aix5*) 4507 3707 test "$enable_shared" = yes && enable_static=no 4508 3708 ;; … … 4524 3724 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4525 3725 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3726 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4526 3727 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4527 3728 AC_LIBTOOL_SYS_LIB_STRIP 4528 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3729 4529 3730 4530 3731 AC_LIBTOOL_CONFIG($1) … … 4574 3775 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4575 3776 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3777 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4576 3778 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4577 3779 AC_LIBTOOL_SYS_LIB_STRIP 4578 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)4579 3780 AC_LIBTOOL_DLOPEN_SELF($1) 4580 3781 … … 4641 3842 if test -n "${ZSH_VERSION+set}" ; then 4642 3843 setopt NO_GLOB_SUBST 4643 fi 3844 fi 4644 3845 # Now quote all the things that may contain metacharacters while being 4645 3846 # careful not to overquote the AC_SUBSTed values. We take copies of the 4646 3847 # variables and quote the copies for generation of the libtool script. 4647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 3848 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 3849 SED SHELL STRIP \ 4648 3850 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4649 3851 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ … … 4695 3897 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 4696 3898 _LT_AC_TAGVAR(module_cmds, $1) | \ 4697 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 3899 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4698 3900 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 4699 3901 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ … … 4703 3905 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 4704 3906 # Double-quote double-evaled strings. 4705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""3907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 4706 3908 ;; 4707 3909 *) … … 4775 3977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4776 3978 4777 # Set the command separator (default: ~)4778 _S_=\${LIBTOOL_CMD_SEP-\~}4779 4780 3979 # Shell to use when invoking shell scripts. 4781 3980 SHELL=$lt_SHELL … … 4829 4028 4830 4029 # A symbol stripping program 4831 STRIP=$ STRIP4030 STRIP=$lt_STRIP 4832 4031 4833 4032 # Used to examine libraries when file_magic_cmd begins "file" … … 4860 4059 4861 4060 # Shared library suffix (normally ".so"). 4862 shrext ='$shrext'4061 shrext_cmds='$shrext_cmds' 4863 4062 4864 4063 # Executable file suffix (normally ""). … … 5104 4303 # `config.status --recheck' to rerun these tests and create the 5105 4304 # libtool script then. 5106 test -f Makefile && make "$ltmain" 4305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 4306 if test -f "$ltmain_in"; then 4307 test -f Makefile && make "$ltmain" 4308 fi 5107 4309 fi 5108 4310 ])# AC_LIBTOOL_CONFIG … … 5177 4379 ;; 5178 4380 solaris* | sysv5*) 5179 symcode='[[BD T]]'4381 symcode='[[BDRT]]' 5180 4382 ;; 5181 4383 sysv4) … … 5195 4397 case `$NM -V 2>&1` in 5196 4398 *GNU* | *'with BFD'*) 5197 symcode='[[ABCDGI STW]]' ;;4399 symcode='[[ABCDGIRSTW]]' ;; 5198 4400 esac 5199 4401 … … 5410 4612 esac 5411 4613 ;; 5412 freebsd* )4614 freebsd* | kfreebsd*-gnu) 5413 4615 # FreeBSD uses GNU C++ 5414 4616 ;; … … 5461 4663 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5462 4664 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5463 ;; 4665 ;; 5464 4666 cxx) 5465 4667 # Compaq C++ … … 5686 4888 linux*) 5687 4889 case $CC in 5688 icc |ecc)4890 icc* | ecc*) 5689 4891 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5690 4892 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5691 4893 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5692 4894 ;; 5693 ccc )4895 ccc*) 5694 4896 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5695 4897 # All Alpha code is PIC. … … 5821 5023 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5822 5024 _LT_AC_TAGVAR(module_cmds, $1)= 5823 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5025 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5824 5026 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5825 5027 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' … … 5877 5079 5878 5080 amigaos*) 5879 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data ${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'5081 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5880 5082 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5881 5083 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes … … 5919 5121 echo EXPORTS > $output_objdir/$soname.def; 5920 5122 cat $export_symbols >> $output_objdir/$soname.def; 5921 fi ${_S_}5123 fi~ 5922 5124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5923 5125 else … … 5963 5165 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5964 5166 ;; 5167 5168 linux*) 5169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5170 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5171 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" 5172 supports_anon_versioning=no 5173 case `$LD -v 2>/dev/null` in 5174 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5177 *\ 2.11.*) ;; # other 2.11 versions 5178 *) supports_anon_versioning=yes ;; 5179 esac 5180 if test $supports_anon_versioning = yes; then 5181 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 5182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5183 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5184 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5185 else 5186 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" 5187 fi 5188 else 5189 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5190 fi 5191 ;; 5965 5192 5966 5193 *) … … 5991 5218 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5992 5219 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5993 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE ${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'5220 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 5994 5221 # Note: this linker hardcodes the directories in LIBPATH if there 5995 5222 # are no directories specified by -L. … … 6113 5340 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6114 5341 # This is similar to how AIX traditionally builds it's shared libraries. 6115 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag} \${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'5342 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6116 5343 fi 6117 5344 fi … … 6119 5346 6120 5347 amigaos*) 6121 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data ${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'5348 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6122 5349 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6123 5350 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes … … 6140 5367 libext=lib 6141 5368 # Tell ltmain to make .dll files, not .so files. 6142 shrext =".dll"5369 shrext_cmds=".dll" 6143 5370 # FIXME: Setting linknames here is a bad hack. 6144 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll ${_S_}linknames='5371 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6145 5372 # The linker will automatically build a .lib file if we build a DLL. 6146 5373 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' … … 6152 5379 6153 5380 darwin* | rhapsody*) 6154 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then5381 if test "$GXX" = yes ; then 6155 5382 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6156 5383 case "$host_os" in … … 6158 5385 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 6159 5386 ;; 6160 darwin1.* | darwin[[2-6]].*) # Darwin 1.3 on, but less than 7.0 6161 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 6162 ;; 6163 *) # Darwin 7.0 on 6164 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in 6165 10.[[012]]) 6166 test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 6167 ;; 6168 *) # 10.3 on 6169 if test -z ${LD_TWOLEVEL_NAMESPACE}; then 6170 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 6171 else 6172 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 6173 fi 6174 ;; 6175 esac 5387 *) # Darwin 1.3 on 5388 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5389 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5390 else 5391 case ${MACOSX_DEPLOYMENT_TARGET} in 5392 10.[[012]]) 5393 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 5394 ;; 5395 10.*) 5396 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 5397 ;; 5398 esac 5399 fi 6176 5400 ;; 6177 5401 esac 6178 # FIXME: Relying on posixy $() will cause problems for6179 # cross-compilation, but unfortunately the echo tests do not6180 # yet detect zsh echo's removal of \ escapes. Also zsh mangles6181 # `"' quotes if we put them in here... so don't!6182 5402 lt_int_apple_cc_single_mod=no 6183 5403 output_verbose_link_cmd='echo' … … 6186 5406 fi 6187 5407 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6188 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $archargs-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'5408 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6189 5409 else 6190 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs ${_S_}$CC -dynamiclib $archargs$allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'5410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' 6191 5411 fi 6192 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib$libobjs $deplibs$compiler_flags'5412 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6193 5413 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6194 5414 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6195 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym ${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'5415 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6196 5416 else 6197 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym ${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'5417 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6198 5418 fi 6199 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym ${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'5419 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6200 5420 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6201 5421 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes … … 6203 5423 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 6204 5424 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6205 fi 5425 else 5426 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5427 fi 6206 5428 ;; 6207 5429 … … 6236 5458 6237 5459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6238 freebsd* )5460 freebsd* | kfreebsd*-gnu) 6239 5461 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6240 5462 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 6245 5467 hpux9*) 6246 5468 if test "$GCC" = yes; then 6247 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname ${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'5469 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6248 5470 else 6249 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname ${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'5471 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6250 5472 fi 6251 5473 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' … … 6367 5589 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6368 5590 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6369 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def ${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'5591 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 6370 5592 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6371 5593 ;; … … 6391 5613 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6392 5614 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6393 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp ${_S_}6394 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib ${_S_}$rm $lib.exp'5615 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 5616 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6395 5617 6396 5618 # Both c and cxx compiler support -rpath directly … … 6412 5634 if test "$GCC" = yes; then 6413 5635 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6414 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}6415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags ${_S_}$rm $lib.exp'5636 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5637 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6416 5638 else 6417 5639 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6418 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}6419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags ${_S_}$rm $lib.exp'5640 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6420 5642 fi 6421 5643 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 6506 5728 # object files and a static libstdc++, better avoid it by now 6507 5729 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6508 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}6509 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags ${_S_}$rm $lib.exp'5730 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6510 5732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6511 5733 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no … … 6543 5765 if test "$enable_shared" = yes && test "$GCC" = yes; then 6544 5766 case $_LT_AC_TAGVAR(archive_cmds, $1) in 6545 * "$_S_"*)5767 *'~'*) 6546 5768 # FIXME: we may have to deal with multi-command sequences. 6547 5769 ;; … … 6553 5775 $rm conftest* 6554 5776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6555 5777 6556 5778 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6557 5779 soname=conftest … … 6715 5937 ]) 6716 5938 5939 # -*- Autoconf -*- 5940 # Copyright (C) 2002, 2003 Free Software Foundation, Inc. 5941 # Generated from amversion.in; do not edit by hand. 5942 5943 # This program is free software; you can redistribute it and/or modify 5944 # it under the terms of the GNU General Public License as published by 5945 # the Free Software Foundation; either version 2, or (at your option) 5946 # any later version. 5947 5948 # This program is distributed in the hope that it will be useful, 5949 # but WITHOUT ANY WARRANTY; without even the implied warranty of 5950 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5951 # GNU General Public License for more details. 5952 5953 # You should have received a copy of the GNU General Public License 5954 # along with this program; if not, write to the Free Software 5955 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 5956 5957 # AM_AUTOMAKE_VERSION(VERSION) 5958 # ---------------------------- 5959 # Automake X.Y traces this macro to ensure aclocal.m4 has been 5960 # generated from the m4 files accompanying Automake X.Y. 5961 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 5962 5963 # AM_SET_CURRENT_AUTOMAKE_VERSION 5964 # ------------------------------- 5965 # Call AM_AUTOMAKE_VERSION so it can be traced. 5966 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 5967 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 5968 [AM_AUTOMAKE_VERSION([1.9.2])]) 5969 5970 # AM_AUX_DIR_EXPAND 5971 5972 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 5973 5974 # This program is free software; you can redistribute it and/or modify 5975 # it under the terms of the GNU General Public License as published by 5976 # the Free Software Foundation; either version 2, or (at your option) 5977 # any later version. 5978 5979 # This program is distributed in the hope that it will be useful, 5980 # but WITHOUT ANY WARRANTY; without even the implied warranty of 5981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5982 # GNU General Public License for more details. 5983 5984 # You should have received a copy of the GNU General Public License 5985 # along with this program; if not, write to the Free Software 5986 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 5987 # 02111-1307, USA. 5988 5989 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 5990 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 5991 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. 5992 # 5993 # Of course, Automake must honor this variable whenever it calls a 5994 # tool from the auxiliary directory. The problem is that $srcdir (and 5995 # therefore $ac_aux_dir as well) can be either absolute or relative, 5996 # depending on how configure is run. This is pretty annoying, since 5997 # it makes $ac_aux_dir quite unusable in subdirectories: in the top 5998 # source directory, any form will work fine, but in subdirectories a 5999 # relative path needs to be adjusted first. 6000 # 6001 # $ac_aux_dir/missing 6002 # fails when called from a subdirectory if $ac_aux_dir is relative 6003 # $top_srcdir/$ac_aux_dir/missing 6004 # fails if $ac_aux_dir is absolute, 6005 # fails when called from a subdirectory in a VPATH build with 6006 # a relative $ac_aux_dir 6007 # 6008 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 6009 # are both prefixed by $srcdir. In an in-source build this is usually 6010 # harmless because $srcdir is `.', but things will broke when you 6011 # start a VPATH build or use an absolute $srcdir. 6012 # 6013 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 6014 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: 6015 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 6016 # and then we would define $MISSING as 6017 # MISSING="\${SHELL} $am_aux_dir/missing" 6018 # This will work as long as MISSING is not called from configure, because 6019 # unfortunately $(top_srcdir) has no meaning in configure. 6020 # However there are other variables, like CC, which are often used in 6021 # configure, and could therefore not use this "fixed" $ac_aux_dir. 6022 # 6023 # Another solution, used here, is to always expand $ac_aux_dir to an 6024 # absolute PATH. The drawback is that using absolute paths prevent a 6025 # configured tree to be moved without reconfiguration. 6026 6027 AC_DEFUN([AM_AUX_DIR_EXPAND], 6028 [dnl Rely on autoconf to set up CDPATH properly. 6029 AC_PREREQ([2.50])dnl 6030 # expand $ac_aux_dir to an absolute path 6031 am_aux_dir=`cd $ac_aux_dir && pwd` 6032 ]) 6033 6034 # AM_CONDITIONAL -*- Autoconf -*- 6035 6036 # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. 6037 6038 # This program is free software; you can redistribute it and/or modify 6039 # it under the terms of the GNU General Public License as published by 6040 # the Free Software Foundation; either version 2, or (at your option) 6041 # any later version. 6042 6043 # This program is distributed in the hope that it will be useful, 6044 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6045 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6046 # GNU General Public License for more details. 6047 6048 # You should have received a copy of the GNU General Public License 6049 # along with this program; if not, write to the Free Software 6050 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6051 # 02111-1307, USA. 6052 6053 # serial 6 6054 6055 # AM_CONDITIONAL(NAME, SHELL-CONDITION) 6056 # ------------------------------------- 6057 # Define a conditional. 6058 AC_DEFUN([AM_CONDITIONAL], 6059 [AC_PREREQ(2.52)dnl 6060 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 6061 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 6062 AC_SUBST([$1_TRUE]) 6063 AC_SUBST([$1_FALSE]) 6064 if $2; then 6065 $1_TRUE= 6066 $1_FALSE='#' 6067 else 6068 $1_TRUE='#' 6069 $1_FALSE= 6070 fi 6071 AC_CONFIG_COMMANDS_PRE( 6072 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 6073 AC_MSG_ERROR([[conditional "$1" was never defined. 6074 Usually this means the macro was only invoked conditionally.]]) 6075 fi])]) 6076 6077 # serial 7 -*- Autoconf -*- 6078 6079 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 6080 # Free Software Foundation, Inc. 6081 6082 # This program is free software; you can redistribute it and/or modify 6083 # it under the terms of the GNU General Public License as published by 6084 # the Free Software Foundation; either version 2, or (at your option) 6085 # any later version. 6086 6087 # This program is distributed in the hope that it will be useful, 6088 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6089 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6090 # GNU General Public License for more details. 6091 6092 # You should have received a copy of the GNU General Public License 6093 # along with this program; if not, write to the Free Software 6094 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6095 # 02111-1307, USA. 6096 6097 6098 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 6099 # written in clear, in which case automake, when reading aclocal.m4, 6100 # will think it sees a *use*, and therefore will trigger all it's 6101 # C support machinery. Also note that it means that autoscan, seeing 6102 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 6103 6104 6105 6106 # _AM_DEPENDENCIES(NAME) 6107 # ---------------------- 6108 # See how the compiler implements dependency checking. 6109 # NAME is "CC", "CXX", "GCJ", or "OBJC". 6110 # We try a few techniques and use that to set a single cache variable. 6111 # 6112 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 6113 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 6114 # dependency, and given that the user is not expected to run this macro, 6115 # just rely on AC_PROG_CC. 6116 AC_DEFUN([_AM_DEPENDENCIES], 6117 [AC_REQUIRE([AM_SET_DEPDIR])dnl 6118 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 6119 AC_REQUIRE([AM_MAKE_INCLUDE])dnl 6120 AC_REQUIRE([AM_DEP_TRACK])dnl 6121 6122 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 6123 [$1], CXX, [depcc="$CXX" am_compiler_list=], 6124 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 6125 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 6126 [depcc="$$1" am_compiler_list=]) 6127 6128 AC_CACHE_CHECK([dependency style of $depcc], 6129 [am_cv_$1_dependencies_compiler_type], 6130 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6131 # We make a subdir and do the tests there. Otherwise we can end up 6132 # making bogus files that we don't know about and never remove. For 6133 # instance it was reported that on HP-UX the gcc test will end up 6134 # making a dummy file named `D' -- because `-MD' means `put the output 6135 # in D'. 6136 mkdir conftest.dir 6137 # Copy depcomp to subdir because otherwise we won't find it if we're 6138 # using a relative directory. 6139 cp "$am_depcomp" conftest.dir 6140 cd conftest.dir 6141 # We will build objects and dependencies in a subdirectory because 6142 # it helps to detect inapplicable dependency modes. For instance 6143 # both Tru64's cc and ICC support -MD to output dependencies as a 6144 # side effect of compilation, but ICC will put the dependencies in 6145 # the current directory while Tru64 will put them in the object 6146 # directory. 6147 mkdir sub 6148 6149 am_cv_$1_dependencies_compiler_type=none 6150 if test "$am_compiler_list" = ""; then 6151 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 6152 fi 6153 for depmode in $am_compiler_list; do 6154 # Setup a source with many dependencies, because some compilers 6155 # like to wrap large dependency lists on column 80 (with \), and 6156 # we should not choose a depcomp mode which is confused by this. 6157 # 6158 # We need to recreate these files for each test, as the compiler may 6159 # overwrite some of them when testing with obscure command lines. 6160 # This happens at least with the AIX C compiler. 6161 : > sub/conftest.c 6162 for i in 1 2 3 4 5 6; do 6163 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6165 # Solaris 8's {/usr,}/bin/sh. 6166 touch sub/conftst$i.h 6167 done 6168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6169 6170 case $depmode in 6171 nosideeffect) 6172 # after this tag, mechanisms are not by side-effect, so they'll 6173 # only be used when explicitly requested 6174 if test "x$enable_dependency_tracking" = xyes; then 6175 continue 6176 else 6177 break 6178 fi 6179 ;; 6180 none) break ;; 6181 esac 6182 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6183 # mode. It turns out that the SunPro C++ compiler does not properly 6184 # handle `-M -o', and we need to detect this. 6185 if depmode=$depmode \ 6186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6189 >/dev/null 2>conftest.err && 6190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6193 # icc doesn't choke on unknown options, it will just issue warnings 6194 # or remarks (even with -Werror). So we grep stderr for any message 6195 # that says an option was ignored or not supported. 6196 # When given -MP, icc 7.0 and 7.1 complain thusly: 6197 # icc: Command line warning: ignoring option '-M'; no argument required 6198 # The diagnosis changed in icc 8.0: 6199 # icc: Command line remark: option '-MP' not supported 6200 if (grep 'ignoring option' conftest.err || 6201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6202 am_cv_$1_dependencies_compiler_type=$depmode 6203 break 6204 fi 6205 fi 6206 done 6207 6208 cd .. 6209 rm -rf conftest.dir 6210 else 6211 am_cv_$1_dependencies_compiler_type=none 6212 fi 6213 ]) 6214 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 6215 AM_CONDITIONAL([am__fastdep$1], [ 6216 test "x$enable_dependency_tracking" != xno \ 6217 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 6218 ]) 6219 6220 6221 # AM_SET_DEPDIR 6222 # ------------- 6223 # Choose a directory name for dependency files. 6224 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 6225 AC_DEFUN([AM_SET_DEPDIR], 6226 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl 6227 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 6228 ]) 6229 6230 6231 # AM_DEP_TRACK 6232 # ------------ 6233 AC_DEFUN([AM_DEP_TRACK], 6234 [AC_ARG_ENABLE(dependency-tracking, 6235 [ --disable-dependency-tracking speeds up one-time build 6236 --enable-dependency-tracking do not reject slow dependency extractors]) 6237 if test "x$enable_dependency_tracking" != xno; then 6238 am_depcomp="$ac_aux_dir/depcomp" 6239 AMDEPBACKSLASH='\' 6240 fi 6241 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 6242 AC_SUBST([AMDEPBACKSLASH]) 6243 ]) 6244 6245 # Generate code to set up dependency tracking. -*- Autoconf -*- 6246 6247 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 6248 # Free Software Foundation, Inc. 6249 6250 # This program is free software; you can redistribute it and/or modify 6251 # it under the terms of the GNU General Public License as published by 6252 # the Free Software Foundation; either version 2, or (at your option) 6253 # any later version. 6254 6255 # This program is distributed in the hope that it will be useful, 6256 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6257 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6258 # GNU General Public License for more details. 6259 6260 # You should have received a copy of the GNU General Public License 6261 # along with this program; if not, write to the Free Software 6262 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6263 # 02111-1307, USA. 6264 6265 #serial 2 6266 6267 # _AM_OUTPUT_DEPENDENCY_COMMANDS 6268 # ------------------------------ 6269 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 6270 [for mf in $CONFIG_FILES; do 6271 # Strip MF so we end up with the name of the file. 6272 mf=`echo "$mf" | sed -e 's/:.*$//'` 6273 # Check whether this is an Automake generated Makefile or not. 6274 # We used to match only the files named `Makefile.in', but 6275 # some people rename them; so instead we look at the file content. 6276 # Grep'ing the first line is not enough: some people post-process 6277 # each Makefile.in and add a new line on top of each file to say so. 6278 # So let's grep whole file. 6279 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 6280 dirpart=`AS_DIRNAME("$mf")` 6281 else 6282 continue 6283 fi 6284 # Extract the definition of DEPDIR, am__include, and am__quote 6285 # from the Makefile without running `make'. 6286 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6287 test -z "$DEPDIR" && continue 6288 am__include=`sed -n 's/^am__include = //p' < "$mf"` 6289 test -z "am__include" && continue 6290 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6291 # When using ansi2knr, U may be empty or an underscore; expand it 6292 U=`sed -n 's/^U = //p' < "$mf"` 6293 # Find all dependency output files, they are included files with 6294 # $(DEPDIR) in their names. We invoke sed twice because it is the 6295 # simplest approach to changing $(DEPDIR) to its actual value in the 6296 # expansion. 6297 for file in `sed -n " 6298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6300 # Make sure the directory exists. 6301 test -f "$dirpart/$file" && continue 6302 fdir=`AS_DIRNAME(["$file"])` 6303 AS_MKDIR_P([$dirpart/$fdir]) 6304 # echo "creating $dirpart/$file" 6305 echo '# dummy' > "$dirpart/$file" 6306 done 6307 done 6308 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 6309 6310 6311 # AM_OUTPUT_DEPENDENCY_COMMANDS 6312 # ----------------------------- 6313 # This macro should only be invoked once -- use via AC_REQUIRE. 6314 # 6315 # This code is only required when automatic dependency tracking 6316 # is enabled. FIXME. This creates each `.P' file that we will 6317 # need in order to bootstrap the dependency handling code. 6318 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 6319 [AC_CONFIG_COMMANDS([depfiles], 6320 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 6321 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 6322 ]) 6323 6324 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- 6325 6326 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. 6327 6328 # This program is free software; you can redistribute it and/or modify 6329 # it under the terms of the GNU General Public License as published by 6330 # the Free Software Foundation; either version 2, or (at your option) 6331 # any later version. 6332 6333 # This program is distributed in the hope that it will be useful, 6334 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6335 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6336 # GNU General Public License for more details. 6337 6338 # You should have received a copy of the GNU General Public License 6339 # along with this program; if not, write to the Free Software 6340 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6341 # 02111-1307, USA. 6342 6343 # serial 7 6344 6345 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 6346 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 6347 6348 # Do all the work for Automake. -*- Autoconf -*- 6349 6350 # This macro actually does too much some checks are only needed if 6351 # your package does certain things. But this isn't really a big deal. 6352 6353 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 6354 # Free Software Foundation, Inc. 6355 6356 # This program is free software; you can redistribute it and/or modify 6357 # it under the terms of the GNU General Public License as published by 6358 # the Free Software Foundation; either version 2, or (at your option) 6359 # any later version. 6360 6361 # This program is distributed in the hope that it will be useful, 6362 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6364 # GNU General Public License for more details. 6365 6366 # You should have received a copy of the GNU General Public License 6367 # along with this program; if not, write to the Free Software 6368 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6369 # 02111-1307, USA. 6370 6371 # serial 11 6372 6373 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 6374 # AM_INIT_AUTOMAKE([OPTIONS]) 6375 # ----------------------------------------------- 6376 # The call with PACKAGE and VERSION arguments is the old style 6377 # call (pre autoconf-2.50), which is being phased out. PACKAGE 6378 # and VERSION should now be passed to AC_INIT and removed from 6379 # the call to AM_INIT_AUTOMAKE. 6380 # We support both call styles for the transition. After 6381 # the next Automake release, Autoconf can make the AC_INIT 6382 # arguments mandatory, and then we can depend on a new Autoconf 6383 # release and drop the old call support. 6384 AC_DEFUN([AM_INIT_AUTOMAKE], 6385 [AC_PREREQ([2.58])dnl 6386 dnl Autoconf wants to disallow AM_ names. We explicitly allow 6387 dnl the ones we care about. 6388 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 6389 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 6390 AC_REQUIRE([AC_PROG_INSTALL])dnl 6391 # test to see if srcdir already configured 6392 if test "`cd $srcdir && pwd`" != "`pwd`" && 6393 test -f $srcdir/config.status; then 6394 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 6395 fi 6396 6397 # test whether we have cygpath 6398 if test -z "$CYGPATH_W"; then 6399 if (cygpath --version) >/dev/null 2>/dev/null; then 6400 CYGPATH_W='cygpath -w' 6401 else 6402 CYGPATH_W=echo 6403 fi 6404 fi 6405 AC_SUBST([CYGPATH_W]) 6406 6407 # Define the identity of the package. 6408 dnl Distinguish between old-style and new-style calls. 6409 m4_ifval([$2], 6410 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 6411 AC_SUBST([PACKAGE], [$1])dnl 6412 AC_SUBST([VERSION], [$2])], 6413 [_AM_SET_OPTIONS([$1])dnl 6414 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 6415 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 6416 6417 _AM_IF_OPTION([no-define],, 6418 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 6419 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 6420 6421 # Some tools Automake needs. 6422 AC_REQUIRE([AM_SANITY_CHECK])dnl 6423 AC_REQUIRE([AC_ARG_PROGRAM])dnl 6424 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 6425 AM_MISSING_PROG(AUTOCONF, autoconf) 6426 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 6427 AM_MISSING_PROG(AUTOHEADER, autoheader) 6428 AM_MISSING_PROG(MAKEINFO, makeinfo) 6429 AM_PROG_INSTALL_SH 6430 AM_PROG_INSTALL_STRIP 6431 AC_REQUIRE([AM_PROG_MKDIR_P])dnl 6432 # We need awk for the "check" target. The system "awk" is bad on 6433 # some platforms. 6434 AC_REQUIRE([AC_PROG_AWK])dnl 6435 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 6436 AC_REQUIRE([AM_SET_LEADING_DOT])dnl 6437 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 6438 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 6439 [_AM_PROG_TAR([v7])])]) 6440 _AM_IF_OPTION([no-dependencies],, 6441 [AC_PROVIDE_IFELSE([AC_PROG_CC], 6442 [_AM_DEPENDENCIES(CC)], 6443 [define([AC_PROG_CC], 6444 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 6445 AC_PROVIDE_IFELSE([AC_PROG_CXX], 6446 [_AM_DEPENDENCIES(CXX)], 6447 [define([AC_PROG_CXX], 6448 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 6449 ]) 6450 ]) 6451 6452 6453 # When config.status generates a header, we must update the stamp-h file. 6454 # This file resides in the same directory as the config header 6455 # that is generated. The stamp files are numbered to have different names. 6456 6457 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 6458 # loop where config.status creates the headers, so we can generate 6459 # our stamp files there. 6460 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 6461 [# Compute $1's index in $config_headers. 6462 _am_stamp_count=1 6463 for _am_header in $config_headers :; do 6464 case $_am_header in 6465 $1 | $1:* ) 6466 break ;; 6467 * ) 6468 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6469 esac 6470 done 6471 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 6472 6473 # AM_PROG_INSTALL_SH 6474 # ------------------ 6475 # Define $install_sh. 6476 6477 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 6478 6479 # This program is free software; you can redistribute it and/or modify 6480 # it under the terms of the GNU General Public License as published by 6481 # the Free Software Foundation; either version 2, or (at your option) 6482 # any later version. 6483 6484 # This program is distributed in the hope that it will be useful, 6485 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6486 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6487 # GNU General Public License for more details. 6488 6489 # You should have received a copy of the GNU General Public License 6490 # along with this program; if not, write to the Free Software 6491 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6492 # 02111-1307, USA. 6493 6494 AC_DEFUN([AM_PROG_INSTALL_SH], 6495 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6496 install_sh=${install_sh-"$am_aux_dir/install-sh"} 6497 AC_SUBST(install_sh)]) 6498 6499 # -*- Autoconf -*- 6500 # Copyright (C) 2003 Free Software Foundation, Inc. 6501 6502 # This program is free software; you can redistribute it and/or modify 6503 # it under the terms of the GNU General Public License as published by 6504 # the Free Software Foundation; either version 2, or (at your option) 6505 # any later version. 6506 6507 # This program is distributed in the hope that it will be useful, 6508 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6510 # GNU General Public License for more details. 6511 6512 # You should have received a copy of the GNU General Public License 6513 # along with this program; if not, write to the Free Software 6514 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6515 # 02111-1307, USA. 6516 6517 # serial 1 6518 6519 # Check whether the underlying file-system supports filenames 6520 # with a leading dot. For instance MS-DOS doesn't. 6521 AC_DEFUN([AM_SET_LEADING_DOT], 6522 [rm -rf .tst 2>/dev/null 6523 mkdir .tst 2>/dev/null 6524 if test -d .tst; then 6525 am__leading_dot=. 6526 else 6527 am__leading_dot=_ 6528 fi 6529 rmdir .tst 2>/dev/null 6530 AC_SUBST([am__leading_dot])]) 6531 6532 # Check to see how 'make' treats includes. -*- Autoconf -*- 6533 6534 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 6535 6536 # This program is free software; you can redistribute it and/or modify 6537 # it under the terms of the GNU General Public License as published by 6538 # the Free Software Foundation; either version 2, or (at your option) 6539 # any later version. 6540 6541 # This program is distributed in the hope that it will be useful, 6542 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6544 # GNU General Public License for more details. 6545 6546 # You should have received a copy of the GNU General Public License 6547 # along with this program; if not, write to the Free Software 6548 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6549 # 02111-1307, USA. 6550 6551 # serial 2 6552 6553 # AM_MAKE_INCLUDE() 6554 # ----------------- 6555 # Check to see how make treats includes. 6556 AC_DEFUN([AM_MAKE_INCLUDE], 6557 [am_make=${MAKE-make} 6558 cat > confinc << 'END' 6559 am__doit: 6560 @echo done 6561 .PHONY: am__doit 6562 END 6563 # If we don't find an include directive, just comment out the code. 6564 AC_MSG_CHECKING([for style of include used by $am_make]) 6565 am__include="#" 6566 am__quote= 6567 _am_result=none 6568 # First try GNU make style include. 6569 echo "include confinc" > confmf 6570 # We grep out `Entering directory' and `Leaving directory' 6571 # messages which can occur if `w' ends up in MAKEFLAGS. 6572 # In particular we don't look at `^make:' because GNU make might 6573 # be invoked under some other name (usually "gmake"), in which 6574 # case it prints its new name instead of `make'. 6575 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 6576 am__include=include 6577 am__quote= 6578 _am_result=GNU 6579 fi 6580 # Now try BSD make style include. 6581 if test "$am__include" = "#"; then 6582 echo '.include "confinc"' > confmf 6583 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 6584 am__include=.include 6585 am__quote="\"" 6586 _am_result=BSD 6587 fi 6588 fi 6589 AC_SUBST([am__include]) 6590 AC_SUBST([am__quote]) 6591 AC_MSG_RESULT([$_am_result]) 6592 rm -f confinc confmf 6593 ]) 6594 6595 # -*- Autoconf -*- 6596 6597 6598 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. 6599 6600 # This program is free software; you can redistribute it and/or modify 6601 # it under the terms of the GNU General Public License as published by 6602 # the Free Software Foundation; either version 2, or (at your option) 6603 # any later version. 6604 6605 # This program is distributed in the hope that it will be useful, 6606 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6608 # GNU General Public License for more details. 6609 6610 # You should have received a copy of the GNU General Public License 6611 # along with this program; if not, write to the Free Software 6612 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6613 # 02111-1307, USA. 6614 6615 # serial 3 6616 6617 # AM_MISSING_PROG(NAME, PROGRAM) 6618 # ------------------------------ 6619 AC_DEFUN([AM_MISSING_PROG], 6620 [AC_REQUIRE([AM_MISSING_HAS_RUN]) 6621 $1=${$1-"${am_missing_run}$2"} 6622 AC_SUBST($1)]) 6623 6624 6625 # AM_MISSING_HAS_RUN 6626 # ------------------ 6627 # Define MISSING if not defined so far and test if it supports --run. 6628 # If it does, set am_missing_run to use it, otherwise, to nothing. 6629 AC_DEFUN([AM_MISSING_HAS_RUN], 6630 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6631 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 6632 # Use eval to expand $SHELL 6633 if eval "$MISSING --run true"; then 6634 am_missing_run="$MISSING --run " 6635 else 6636 am_missing_run= 6637 AC_MSG_WARN([`missing' script is too old or missing]) 6638 fi 6639 ]) 6640 6641 # AM_PROG_MKDIR_P 6642 # --------------- 6643 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 6644 6645 # Copyright (C) 2003, 2004 Free Software Foundation, Inc. 6646 6647 # This program is free software; you can redistribute it and/or modify 6648 # it under the terms of the GNU General Public License as published by 6649 # the Free Software Foundation; either version 2, or (at your option) 6650 # any later version. 6651 6652 # This program is distributed in the hope that it will be useful, 6653 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6654 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6655 # GNU General Public License for more details. 6656 6657 # You should have received a copy of the GNU General Public License 6658 # along with this program; if not, write to the Free Software 6659 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6660 # 02111-1307, USA. 6661 6662 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 6663 # created by `make install' are always world readable, even if the 6664 # installer happens to have an overly restrictive umask (e.g. 077). 6665 # This was a mistake. There are at least two reasons why we must not 6666 # use `-m 0755': 6667 # - it causes special bits like SGID to be ignored, 6668 # - it may be too restrictive (some setups expect 775 directories). 6669 # 6670 # Do not use -m 0755 and let people choose whatever they expect by 6671 # setting umask. 6672 # 6673 # We cannot accept any implementation of `mkdir' that recognizes `-p'. 6674 # Some implementations (such as Solaris 8's) are not thread-safe: if a 6675 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 6676 # concurrently, both version can detect that a/ is missing, but only 6677 # one can create it and the other will error out. Consequently we 6678 # restrict ourselves to GNU make (using the --version option ensures 6679 # this.) 6680 AC_DEFUN([AM_PROG_MKDIR_P], 6681 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 6682 # We used to keeping the `.' as first argument, in order to 6683 # allow $(mkdir_p) to be used without argument. As in 6684 # $(mkdir_p) $(somedir) 6685 # where $(somedir) is conditionally defined. However this is wrong 6686 # for two reasons: 6687 # 1. if the package is installed by a user who cannot write `.' 6688 # make install will fail, 6689 # 2. the above comment should most certainly read 6690 # $(mkdir_p) $(DESTDIR)$(somedir) 6691 # so it does not work when $(somedir) is undefined and 6692 # $(DESTDIR) is not. 6693 # To support the latter case, we have to write 6694 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 6695 # so the `.' trick is pointless. 6696 mkdir_p='mkdir -p --' 6697 else 6698 # On NextStep and OpenStep, the `mkdir' command does not 6699 # recognize any option. It will interpret all options as 6700 # directories to create, and then abort because `.' already 6701 # exists. 6702 for d in ./-p ./--version; 6703 do 6704 test -d $d && rmdir $d 6705 done 6706 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 6707 if test -f "$ac_aux_dir/mkinstalldirs"; then 6708 mkdir_p='$(mkinstalldirs)' 6709 else 6710 mkdir_p='$(install_sh) -d' 6711 fi 6712 fi 6713 AC_SUBST([mkdir_p])]) 6714 6715 # Helper functions for option handling. -*- Autoconf -*- 6716 6717 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 6718 6719 # This program is free software; you can redistribute it and/or modify 6720 # it under the terms of the GNU General Public License as published by 6721 # the Free Software Foundation; either version 2, or (at your option) 6722 # any later version. 6723 6724 # This program is distributed in the hope that it will be useful, 6725 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6726 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6727 # GNU General Public License for more details. 6728 6729 # You should have received a copy of the GNU General Public License 6730 # along with this program; if not, write to the Free Software 6731 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6732 # 02111-1307, USA. 6733 6734 # serial 2 6735 6736 # _AM_MANGLE_OPTION(NAME) 6737 # ----------------------- 6738 AC_DEFUN([_AM_MANGLE_OPTION], 6739 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 6740 6741 # _AM_SET_OPTION(NAME) 6742 # ------------------------------ 6743 # Set option NAME. Presently that only means defining a flag for this option. 6744 AC_DEFUN([_AM_SET_OPTION], 6745 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 6746 6747 # _AM_SET_OPTIONS(OPTIONS) 6748 # ---------------------------------- 6749 # OPTIONS is a space-separated list of Automake options. 6750 AC_DEFUN([_AM_SET_OPTIONS], 6751 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 6752 6753 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 6754 # ------------------------------------------- 6755 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 6756 AC_DEFUN([_AM_IF_OPTION], 6757 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 6758 6759 # 6760 # Check to make sure that the build environment is sane. 6761 # 6762 6763 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. 6764 6765 # This program is free software; you can redistribute it and/or modify 6766 # it under the terms of the GNU General Public License as published by 6767 # the Free Software Foundation; either version 2, or (at your option) 6768 # any later version. 6769 6770 # This program is distributed in the hope that it will be useful, 6771 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6772 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6773 # GNU General Public License for more details. 6774 6775 # You should have received a copy of the GNU General Public License 6776 # along with this program; if not, write to the Free Software 6777 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6778 # 02111-1307, USA. 6779 6780 # serial 3 6781 6782 # AM_SANITY_CHECK 6783 # --------------- 6784 AC_DEFUN([AM_SANITY_CHECK], 6785 [AC_MSG_CHECKING([whether build environment is sane]) 6786 # Just in case 6787 sleep 1 6788 echo timestamp > conftest.file 6789 # Do `set' in a subshell so we don't clobber the current shell's 6790 # arguments. Must try -L first in case configure is actually a 6791 # symlink; some systems play weird games with the mod time of symlinks 6792 # (eg FreeBSD returns the mod time of the symlink's containing 6793 # directory). 6794 if ( 6795 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 6796 if test "$[*]" = "X"; then 6797 # -L didn't work. 6798 set X `ls -t $srcdir/configure conftest.file` 6799 fi 6800 rm -f conftest.file 6801 if test "$[*]" != "X $srcdir/configure conftest.file" \ 6802 && test "$[*]" != "X conftest.file $srcdir/configure"; then 6803 6804 # If neither matched, then we have a broken ls. This can happen 6805 # if, for instance, CONFIG_SHELL is bash and it inherits a 6806 # broken ls alias from the environment. This has actually 6807 # happened. Such a system could not be considered "sane". 6808 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 6809 alias in your environment]) 6810 fi 6811 6812 test "$[2]" = conftest.file 6813 ) 6814 then 6815 # Ok. 6816 : 6817 else 6818 AC_MSG_ERROR([newly created file is older than distributed files! 6819 Check your system clock]) 6820 fi 6821 AC_MSG_RESULT(yes)]) 6822 6823 # AM_PROG_INSTALL_STRIP 6824 6825 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 6826 6827 # This program is free software; you can redistribute it and/or modify 6828 # it under the terms of the GNU General Public License as published by 6829 # the Free Software Foundation; either version 2, or (at your option) 6830 # any later version. 6831 6832 # This program is distributed in the hope that it will be useful, 6833 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6834 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6835 # GNU General Public License for more details. 6836 6837 # You should have received a copy of the GNU General Public License 6838 # along with this program; if not, write to the Free Software 6839 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6840 # 02111-1307, USA. 6841 6842 # One issue with vendor `install' (even GNU) is that you can't 6843 # specify the program used to strip binaries. This is especially 6844 # annoying in cross-compiling environments, where the build's strip 6845 # is unlikely to handle the host's binaries. 6846 # Fortunately install-sh will honor a STRIPPROG variable, so we 6847 # always use install-sh in `make install-strip', and initialize 6848 # STRIPPROG with the value of the STRIP variable (set by the user). 6849 AC_DEFUN([AM_PROG_INSTALL_STRIP], 6850 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 6851 # Installed binaries are usually stripped using `strip' when the user 6852 # run `make install-strip'. However `strip' might not be the right 6853 # tool to use in cross-compilation environments, therefore Automake 6854 # will honor the `STRIP' environment variable to overrule this program. 6855 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 6856 if test "$cross_compiling" != no; then 6857 AC_CHECK_TOOL([STRIP], [strip], :) 6858 fi 6859 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 6860 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 6861 6862 # Check how to create a tarball. -*- Autoconf -*- 6863 6864 # Copyright (C) 2004 Free Software Foundation, Inc. 6865 6866 # This program is free software; you can redistribute it and/or modify 6867 # it under the terms of the GNU General Public License as published by 6868 # the Free Software Foundation; either version 2, or (at your option) 6869 # any later version. 6870 6871 # This program is distributed in the hope that it will be useful, 6872 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6873 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6874 # GNU General Public License for more details. 6875 6876 # You should have received a copy of the GNU General Public License 6877 # along with this program; if not, write to the Free Software 6878 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6879 # 02111-1307, USA. 6880 6881 # serial 1 6882 6883 6884 # _AM_PROG_TAR(FORMAT) 6885 # -------------------- 6886 # Check how to create a tarball in format FORMAT. 6887 # FORMAT should be one of `v7', `ustar', or `pax'. 6888 # 6889 # Substitute a variable $(am__tar) that is a command 6890 # writing to stdout a FORMAT-tarball containing the directory 6891 # $tardir. 6892 # tardir=directory && $(am__tar) > result.tar 6893 # 6894 # Substitute a variable $(am__untar) that extract such 6895 # a tarball read from stdin. 6896 # $(am__untar) < result.tar 6897 AC_DEFUN([_AM_PROG_TAR], 6898 [# Always define AMTAR for backward compatibility. 6899 AM_MISSING_PROG([AMTAR], [tar]) 6900 m4_if([$1], [v7], 6901 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 6902 [m4_case([$1], [ustar],, [pax],, 6903 [m4_fatal([Unknown tar format])]) 6904 AC_MSG_CHECKING([how to create a $1 tar archive]) 6905 # Loop over all known methods to create a tar archive until one works. 6906 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 6907 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 6908 # Do not fold the above two line into one, because Tru64 sh and 6909 # Solaris sh will not grok spaces in the rhs of `-'. 6910 for _am_tool in $_am_tools 6911 do 6912 case $_am_tool in 6913 gnutar) 6914 for _am_tar in tar gnutar gtar; 6915 do 6916 AM_RUN_LOG([$_am_tar --version]) && break 6917 done 6918 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 6919 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 6920 am__untar="$_am_tar -xf -" 6921 ;; 6922 plaintar) 6923 # Must skip GNU tar: if it does not support --format= it doesn't create 6924 # ustar tarball either. 6925 (tar --version) >/dev/null 2>&1 && continue 6926 am__tar='tar chf - "$$tardir"' 6927 am__tar_='tar chf - "$tardir"' 6928 am__untar='tar xf -' 6929 ;; 6930 pax) 6931 am__tar='pax -L -x $1 -w "$$tardir"' 6932 am__tar_='pax -L -x $1 -w "$tardir"' 6933 am__untar='pax -r' 6934 ;; 6935 cpio) 6936 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 6937 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 6938 am__untar='cpio -i -H $1 -d' 6939 ;; 6940 none) 6941 am__tar=false 6942 am__tar_=false 6943 am__untar=false 6944 ;; 6945 esac 6946 6947 # If the value was cached, stop now. We just wanted to have am__tar 6948 # and am__untar set. 6949 test -n "${am_cv_prog_tar_$1}" && break 6950 6951 # tar/untar a dummy directory, and stop if the command works 6952 rm -rf conftest.dir 6953 mkdir conftest.dir 6954 echo GrepMe > conftest.dir/file 6955 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 6956 rm -rf conftest.dir 6957 if test -s conftest.tar; then 6958 AM_RUN_LOG([$am__untar <conftest.tar]) 6959 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 6960 fi 6961 done 6962 rm -rf conftest.dir 6963 6964 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 6965 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 6966 AC_SUBST([am__tar]) 6967 AC_SUBST([am__untar]) 6968 ]) # _AM_PROG_TAR 6969
Note:
See TracChangeset
for help on using the changeset viewer.
